/*
Theme Name: AffiliateIndustryTech Child
Theme URI: https://affiliateindustrytech.shop
Description: Tema hijo personalizado para plataforma de marketing de afiliados
Author: AIT Team
Template: generatepress
Version: 1.0.1
*/

/* ==========================================
   VARIABLES GLOBALES
   ========================================== */
:root {
    --primary-color: #2563eb;
    --secondary-color: #10b981;
    --dark-bg: #1e293b;
    --light-bg: #f8fafc;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   RESET Y BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--light-bg);
    overflow-x: hidden;
    width: 100%;
}

/* ==========================================
   HEADER
   ========================================== */
.ait-header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    width: 100%;
}

.ait-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.ait-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    white-space: nowrap;
}

.ait-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.ait-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.ait-nav a:hover {
    color: var(--primary-color);
}

.ait-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================
   HERO
   ========================================== */
.ait-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
    width: 100%;
    overflow: hidden;
}

.ait-hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.ait-hero h1 {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    word-wrap: break-word;
}

.ait-hero p {
    font-size: clamp(1rem, 3vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.95;
}

.ait-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.ait-btn {
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    font-size: clamp(0.875rem, 2vw, 1rem);
    text-align: center;
    min-width: 140px;
}

.ait-btn-primary {
    background: white;
    color: var(--primary-color);
}

.ait-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.ait-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.ait-btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* ==========================================
   SECCIONES
   ========================================== */
.ait-companies-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
    width: 100%;
}

.ait-section-title {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    padding: 0 1rem;
    word-wrap: break-word;
}

.ait-section-subtitle {
    text-align: center;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: var(--text-light);
    margin-bottom: 2rem;
    padding: 0 1rem;
}

/* ==========================================
   GRID DE EMPRESAS
   ========================================== */
.ait-companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 1.5rem;
    width: 100%;
}

.ait-company-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    width: 100%;
}

.ait-company-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.ait-company-logo {
    width: 60px;
    height: 60px;
    background: var(--light-bg);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.ait-company-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

.ait-company-card p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.ait-company-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.ait-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ==========================================
   CATEGORÍAS
   ========================================== */
.ait-categories {
    background: white;
    padding: 3rem 1rem;
    width: 100%;
    overflow: hidden;
}

.ait-categories-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.ait-category-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 1rem;
}

.ait-tab {
    padding: 0.625rem 1.25rem;
    background: var(--light-bg);
    border: none;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
    white-space: nowrap;
}

.ait-tab:hover,
.ait-tab.active {
    background: var(--primary-color);
    color: white;
}

/* ==========================================
   BENEFICIOS
   ========================================== */
.ait-benefits {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
    width: 100%;
}

.ait-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.ait-benefit-card {
    text-align: center;
    padding: 1.5rem;
}

.ait-benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), #1e40af);
    color: white;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem;
}

.ait-benefit-card h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin-bottom: 1rem;
}

.ait-benefit-card p {
    color: var(--text-light);
    font-size: clamp(0.875rem, 2vw, 1rem);
}

/* ==========================================
   FOOTER
   ========================================== */
.ait-footer {
    background: var(--dark-bg);
    color: white;
    padding: 3rem 1rem 1rem;
    width: 100%;
    overflow: hidden;
}

.ait-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.ait-footer-column h4 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.ait-footer-column ul {
    list-style: none;
    padding: 0;
}

.ait-footer-column ul li {
    margin-bottom: 0.75rem;
}

.ait-footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.875rem;
    word-wrap: break-word;
}

.ait-footer-column a:hover {
    color: white;
}

.ait-footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.ait-footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.ait-footer-social a {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.ait-footer-social a:hover {
    transform: scale(1.2);
}

/* ==========================================
   ESTILOS PARA PÁGINAS DE CONTENIDO
   ========================================== */
.page-content,
.entry-content,
.post-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: white;
    line-height: 1.8;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.entry-content h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 1rem;
    word-wrap: break-word;
}

.entry-content h2 {
    font-size: clamp(1.25rem, 3vw, 1.875rem);
    font-weight: 600;
    color: var(--text-dark);
    margin: 2rem 0 1.5rem;
    line-height: 1.3;
    word-wrap: break-word;
}

.entry-content h3 {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: var(--text-dark);
    margin: 1.5rem 0 1rem;
    word-wrap: break-word;
}

.entry-content p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: clamp(0.9375rem, 2vw, 1.0625rem);
    word-wrap: break-word;
}

.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0 1.5rem 1.5rem;
    padding: 0;
}

.entry-content li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
    line-height: 1.6;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    display: block;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    overflow: hidden;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.entry-content table th {
    background: linear-gradient(135deg, var(--primary-color), #1e40af);
    color: white;
    padding: 0.875rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.875rem;
}

.entry-content table td {
    padding: 0.875rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.entry-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    word-wrap: break-word;
}

.entry-content a:hover {
    border-bottom: 2px solid var(--primary-color);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .ait-hero {
        padding: 2.5rem 1rem;
    }
    
    .ait-hero h1 {
        font-size: 1.75rem;
    }
    
    .ait-nav {
        display: none;
    }
    
    .ait-header-container {
        padding: 0 1rem;
    }
    
    .ait-companies-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .ait-cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .ait-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .ait-footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .ait-section-title {
        font-size: 1.75rem;
    }
    
    .ait-benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ait-header-container {
        padding: 0 0.75rem;
    }
    
    .ait-logo {
        font-size: 1.125rem;
    }
    
    .ait-hero {
        padding: 2rem 0.75rem;
    }
    
    .ait-companies-section,
    .ait-benefits,
    .ait-categories {
        padding: 2rem 0.75rem;
    }
    
    .page-content,
    .entry-content {
        padding: 1.5rem 0.75rem;
    }
    
    .ait-company-card {
        padding: 1.25rem;
    }
    
    .entry-content table {
        font-size: 0.8125rem;
    }
    
    .entry-content table th,
    .entry-content table td {
        padding: 0.625rem;
    }
}

/* ==========================================
   UTILIDADES
   ========================================== */
.ait-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.ait-section {
    padding: 3rem 0;
    width: 100%;
    overflow: hidden;
}

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* Prevenir scroll horizontal */
body, html {
    max-width: 100vw;
    overflow-x: hidden;
}

* {
    max-width: 100%;
}
/*
Theme Name: AffiliateIndustryTech Child
Theme URI: https://affiliateindustrytech.shop
Description: Tema hijo personalizado para plataforma de marketing de afiliados
Author: AIT Team
Template: generatepress
Version: 1.0.1
*/

/* ==========================================
   VARIABLES GLOBALES
   ========================================== */
:root {
    --primary-color: #2563eb;
    --secondary-color: #10b981;
    --dark-bg: #1e293b;
    --light-bg: #f8fafc;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   RESET Y BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--light-bg);
    overflow-x: hidden;
    width: 100%;
}

/* ==========================================
   HEADER
   ========================================== */
.ait-header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    width: 100%;
}

.ait-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.ait-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    white-space: nowrap;
}

.ait-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.ait-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.ait-nav a:hover {
    color: var(--primary-color);
}

.ait-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================
   HERO
   ========================================== */
.ait-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
    width: 100%;
    overflow: hidden;
}

.ait-hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.ait-hero h1 {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    word-wrap: break-word;
}

.ait-hero p {
    font-size: clamp(1rem, 3vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.95;
}

.ait-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.ait-btn {
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    font-size: clamp(0.875rem, 2vw, 1rem);
    text-align: center;
    min-width: 140px;
}

.ait-btn-primary {
    background: white;
    color: var(--primary-color);
}

.ait-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.ait-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.ait-btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* ==========================================
   SECCIONES
   ========================================== */
.ait-companies-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
    width: 100%;
}

.ait-section-title {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    padding: 0 1rem;
    word-wrap: break-word;
}

.ait-section-subtitle {
    text-align: center;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: var(--text-light);
    margin-bottom: 2rem;
    padding: 0 1rem;
}

/* ==========================================
   GRID DE EMPRESAS
   ========================================== */
.ait-companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 1.5rem;
    width: 100%;
}

.ait-company-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    width: 100%;
}

.ait-company-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.ait-company-logo {
    width: 60px;
    height: 60px;
    background: var(--light-bg);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.ait-company-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

.ait-company-card p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.ait-company-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.ait-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ==========================================
   CATEGORÍAS
   ========================================== */
.ait-categories {
    background: white;
    padding: 3rem 1rem;
    width: 100%;
    overflow: hidden;
}

.ait-categories-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.ait-category-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 1rem;
}

.ait-tab {
    padding: 0.625rem 1.25rem;
    background: var(--light-bg);
    border: none;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
    white-space: nowrap;
}

.ait-tab:hover,
.ait-tab.active {
    background: var(--primary-color);
    color: white;
}

/* ==========================================
   BENEFICIOS
   ========================================== */
.ait-benefits {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
    width: 100%;
}

.ait-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.ait-benefit-card {
    text-align: center;
    padding: 1.5rem;
}

.ait-benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), #1e40af);
    color: white;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem;
}

.ait-benefit-card h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin-bottom: 1rem;
}

.ait-benefit-card p {
    color: var(--text-light);
    font-size: clamp(0.875rem, 2vw, 1rem);
}

/* ==========================================
   FOOTER
   ========================================== */
.ait-footer {
    background: var(--dark-bg);
    color: white;
    padding: 3rem 1rem 1rem;
    width: 100%;
    overflow: hidden;
}

.ait-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.ait-footer-column h4 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.ait-footer-column ul {
    list-style: none;
    padding: 0;
}

.ait-footer-column ul li {
    margin-bottom: 0.75rem;
}

.ait-footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.875rem;
    word-wrap: break-word;
}

.ait-footer-column a:hover {
    color: white;
}

.ait-footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.ait-footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.ait-footer-social a {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.ait-footer-social a:hover {
    transform: scale(1.2);
}

/* ==========================================
   ESTILOS PARA PÁGINAS DE CONTENIDO
   ========================================== */
.page-content,
.entry-content,
.post-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: white;
    line-height: 1.8;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.entry-content h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 1rem;
    word-wrap: break-word;
}

.entry-content h2 {
    font-size: clamp(1.25rem, 3vw, 1.875rem);
    font-weight: 600;
    color: var(--text-dark);
    margin: 2rem 0 1.5rem;
    line-height: 1.3;
    word-wrap: break-word;
}

.entry-content h3 {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: var(--text-dark);
    margin: 1.5rem 0 1rem;
    word-wrap: break-word;
}

.entry-content p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: clamp(0.9375rem, 2vw, 1.0625rem);
    word-wrap: break-word;
}

.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0 1.5rem 1.5rem;
    padding: 0;
}

.entry-content li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
    line-height: 1.6;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    display: block;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    overflow: hidden;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.entry-content table th {
    background: linear-gradient(135deg, var(--primary-color), #1e40af);
    color: white;
    padding: 0.875rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.875rem;
}

.entry-content table td {
    padding: 0.875rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.entry-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    word-wrap: break-word;
}

.entry-content a:hover {
    border-bottom: 2px solid var(--primary-color);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .ait-hero {
        padding: 2.5rem 1rem;
    }
    
    .ait-hero h1 {
        font-size: 1.75rem;
    }
    
    .ait-nav {
        display: none;
    }
    
    .ait-header-container {
        padding: 0 1rem;
    }
    
    .ait-companies-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .ait-cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .ait-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .ait-footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .ait-section-title {
        font-size: 1.75rem;
    }
    
    .ait-benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ait-header-container {
        padding: 0 0.75rem;
    }
    
    .ait-logo {
        font-size: 1.125rem;
    }
    
    .ait-hero {
        padding: 2rem 0.75rem;
    }
    
    .ait-companies-section,
    .ait-benefits,
    .ait-categories {
        padding: 2rem 0.75rem;
    }
    
    .page-content,
    .entry-content {
        padding: 1.5rem 0.75rem;
    }
    
    .ait-company-card {
        padding: 1.25rem;
    }
    
    .entry-content table {
        font-size: 0.8125rem;
    }
    
    .entry-content table th,
    .entry-content table td {
        padding: 0.625rem;
    }
}

/* ==========================================
   UTILIDADES
   ========================================== */
.ait-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.ait-section {
    padding: 3rem 0;
    width: 100%;
    overflow: hidden;
}

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* ==========================================
   FIX CRÍTICO PARA OVERFLOW HORIZONTAL
   ========================================== */
html {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

/* Forzar que ningún elemento se salga */
* {
    max-width: 100%;
}

*:not(svg):not(path) {
    box-sizing: border-box;
}

/* Contenedores principales */
.site,
.site-content,
.content-area,
.site-main,
main,
article {
    max-width: 100vw;
    overflow-x: hidden;
    width: 100%;
}

/* Filas y contenedores de GeneratePress */
.wp-block-group,
.wp-block-columns,
.wp-block-column,
.gb-container,
.gb-grid-wrapper,
.gb-inside-container {
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

/* Corregir márgenes negativos que causan overflow */
[class*="wp-block"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

/* Ajustar anchos fijos problemáticos */
.alignfull,
.alignwide {
    width: 100% !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Videos y embeds responsive */
iframe,
embed,
object,
video {
    max-width: 100% !important;
    height: auto !important;
}

/* Imágenes siempre dentro */
img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

/* Tablas problemáticas */
table {
    width: 100% !important;
    table-layout: fixed !important;
}

/* Fix para elementos con position absolute/fixed */
.fixed,
[style*="position: fixed"],
[style*="position: absolute"] {
    max-width: 100vw !important;
}

/* Prevenir texto largo sin espacios */
p, h1, h2, h3, h4, h5, h6, span, div, a {
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    hyphens: auto !important;
}

/* Fix específico para páginas de WordPress */
@media (max-width: 768px) {
    .site {
        overflow-x: hidden !important;
    }
    
    .site-content {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    /* Resetear márgenes de bloques */
    .wp-block-group__inner-container,
    .wp-block-column {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* Botones full width en móvil */
    .wp-block-button,
    .wp-block-buttons {
        width: 100% !important;
    }
    
    .wp-block-button__link {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Columnas a 100% en móvil */
    .wp-block-columns {
        flex-direction: column !important;
    }
    
    .wp-block-column {
        flex-basis: 100% !important;
        width: 100% !important;
    }
}
