/* ==========================================================================
   1. SISTEMA DE DISEÑO UNIFICADO (COLORES, TIPOGRAFÍA Y ESCALA ÚNICA)
   ========================================================================== */
:root {
    /* Paleta de Colores Institucional */
    --primary-color: #046bd2;
    --primary-hover: #045cb4;
    --primary-light: #60a5fa;
    --dark-color: #1e293b;
    --darker-color: #0f172a;
    --text-color: #334155;
    --text-light: #e2e8f0;
    --light-bg: #F0F5FA;
    --white: #ffffff;
    --border-color: #D1D5DB;

    /* Familia Tipográfica Única */
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Escala Tipográfica Estandarizada */
    --fs-h1: 1.5rem;       /* 24px - Título empresa en header */
    --fs-h2: 1.85rem;      /* ~30px - Títulos principales de cada sección */
    --fs-h3: 1.2rem;       /* ~19px - Subtítulos de cada sección */
    --fs-h4: 1.05rem;      /* ~17px - Títulos de tarjetas y bloques */
    --fs-body: 0.95rem;    /* ~15.2px - Párrafos, descripciones y listas */
    --fs-small: 0.85rem;   /* ~13.6px - Etiquetas, botones y pies de foto */

    /* Curva de animación elástica para el efecto "brinco" */
    --bounce-ease: cubic-bezier(0.34, 1.56, 0.64, 1);

    --container-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
}

body {
    font-family: var(--font-main);
    font-size: var(--fs-body);
    color: var(--text-color);
    line-height: 1.65;
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

ul {
    list-style: none;
}

/* ==========================================================================
   2. JERARQUÍA TIPOGRÁFICA GLOBAL (MISMO TAMAÑO Y COLOR EN TODAS LAS PÁGINAS)
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    color: var(--dark-color);
    line-height: 1.3;
    margin-bottom: 14px;
}

h2 {
    font-size: var(--fs-h2);
    font-weight: 800;
    letter-spacing: -0.2px;
}

h3 {
    font-size: var(--fs-h3);
    font-weight: 700;
    color: var(--primary-color);
}

h4 {
    font-size: var(--fs-h4);
    font-weight: 700;
    color: var(--dark-color);
}

p, li {
    font-family: var(--font-main);
    font-size: var(--fs-body);
    line-height: 1.65;
    color: var(--text-color);
}

/* Reglas uniformes cuando el fondo es oscuro o azul */
.text-white h1,
.text-white h2,
.text-white h4 {
    color: var(--white);
}

.text-white h3 {
    color: var(--primary-light);
}

.text-white p,
.text-white li,
.text-white a {
    color: var(--text-light);
}

/* ==========================================================================
   3. CONTENEDORES Y ESTRUCTURA DE LAYOUT
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 60px 0;
}

.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--dark-color); }
.bg-primary { background-color: var(--primary-color); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.max-w-800 { max-width: 820px; margin: 0 auto; }
.mt-20 { margin-top: 24px; }

/* Separación estándar entre textos e imágenes / cuadrículas */
.section-header {
    margin-bottom: 42px;
}

.section-header p {
    margin-bottom: 16px;
}

.content-block p {
    margin-bottom: 16px;
}

.badge-mexico,
.content-block p + img,
.content-block ul + .image-wrapper,
.image-wrapper {
    margin-top: 28px;
}

.badge-mexico {
    transition: transform 0.35s var(--bounce-ease);
}

.badge-mexico:hover {
    transform: translateY(-5px) scale(1.03);
}

/* GRIDS RESPONSIVOS */
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; }
.grid-3-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4-col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.align-center { align-items: center; }

/* ==========================================================================
   4. HEADER Y NAVEGACIÓN
   ========================================================================== */
.site-header {
    width: 100%;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 100;
}

.top-header {
    padding: 16px 0;
    width: 100%;
}

.top-header .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.brand {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 25px;
}

.logo {
    width: 120px;
    height: auto;
    flex-shrink: 0;
    transition: transform 0.35s var(--bounce-ease);
}

.logo:hover {
    transform: translateY(-3px) scale(1.03);
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.company-title {
    font-size: var(--fs-h1);
    color: var(--dark-color);
    font-weight: 800;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.company-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.company-tagline {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 4px 0;
    line-height: 1.35;
}

.company-value {
    font-size: var(--fs-small);
    font-style: italic;
    color: var(--dark-color);
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

/* BARRA DE NAVEGACIÓN PRINCIPAL */
.main-nav {
    width: 100%;
    background-color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.main-nav .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.nav-menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 14px 20px;
    color: var(--white);
    font-weight: 700;
    font-size: var(--fs-small);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background-color 0.25s ease;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--primary-hover);
}

/* MENÚS DESPLEGABLES */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 250px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border-top: 3px solid var(--primary-hover);
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown a {
    color: var(--dark-color) !important;
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.82rem;
    font-weight: 600;
    background: transparent;
    text-transform: uppercase;
}

.dropdown a:hover {
    background-color: var(--light-bg) !important;
    color: var(--primary-color) !important;
    padding-left: 22px;
}

.has-dropdown:hover .dropdown {
    display: block;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.1rem;
    padding: 14px 0;
    cursor: pointer;
    font-weight: 700;
}

@media (max-width: 992px) {
    .brand {
        flex-direction: column !important;
        text-align: center;
        gap: 12px;
    }

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

    .menu-toggle {
        display: block;
        width: 100%;
        text-align: left;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu > li {
        width: 100%;
    }

    .has-dropdown:hover .dropdown {
        position: static;
        box-shadow: none;
    }

    .dropdown {
        background-color: var(--primary-hover);
    }

    .dropdown a {
        color: var(--white) !important;
        padding-left: 30px;
    }
}

/* ==========================================================================
   5. CARRUSEL HERO
   ========================================================================== */
.hero-carousel-section {
    position: relative;
    overflow: hidden;
    background: var(--darker-color);
    min-height: 520px;
}

.carousel-container {
    position: relative;
    width: 100%;
    min-height: 520px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-overlay {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    padding: 40px 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.42) 60%, rgba(15, 23, 42, 0.12) 100%);
    display: flex;
    align-items: center;
}

.carousel-caption {
    max-width: 780px;
    color: var(--white);
}

.slide-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.carousel-caption h2 {
    color: var(--white);
    font-size: var(--fs-h2);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 10px;
}

.slide-sectors {
    color: var(--primary-light);
    font-size: var(--fs-small);
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    line-height: 1.45;
}

.slide-services {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.45;
    margin-bottom: 12px;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
}

.slide-description {
    font-size: var(--fs-body);
    color: var(--white);
    line-height: 1.55;
    margin-bottom: 14px;
}

.slide-footer {
    font-size: 0.8rem;
    color: var(--primary-light);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding-top: 8px;
    letter-spacing: 0.5px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(4, 107, 210, 0.8);
    color: var(--white);
    border: none;
    font-size: 1.5rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-50%) scale(1.08);
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

/* ==========================================================================
   6. BLOQUES DE IMAGEN Y TARJETAS DE SERVICIOS (CON EFECTO "BRINCO")
   ========================================================================== */
.image-block,
.image-wrapper {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.38s var(--bounce-ease), box-shadow 0.38s ease;
}

.image-block:hover,
.image-wrapper:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 32px rgba(4, 107, 210, 0.18);
}

.image-block img,
.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--bounce-ease);
}

.image-block:hover img,
.image-wrapper:hover img {
    transform: scale(1.04);
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.38s var(--bounce-ease), box-shadow 0.38s ease, border-color 0.3s ease;
    border: 1px solid rgba(0,0,0,0.08);
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 34px rgba(4, 107, 210, 0.18);
    border-color: rgba(4, 107, 210, 0.35);
}

.service-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--bounce-ease);
}

.service-card:hover img {
    transform: scale(1.06);
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body h4 a {
    color: var(--dark-color);
    font-size: var(--fs-h4);
    font-weight: 700;
}

.card-body h4 a:hover {
    color: var(--primary-color);
}

.card-body p {
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: var(--fs-body);
    color: var(--text-color);
}

.card-body .btn {
    align-self: flex-start;
}

/* ==========================================================================
   7. DATOS CORPORATIVOS (MÉTRICAS Y SECTORES UNIFICADOS)
   ========================================================================== */
.stats-section {
    position: relative;
    background-image: url('Fijo-11.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 70px 0;
    overflow: hidden;
}

.stats-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.72) 0%, rgba(4, 107, 210, 0.35) 100%);
    z-index: 1;
}

.relative-z {
    position: relative;
    z-index: 2;
}

.stats-header h2 {
    color: var(--white);
    font-size: var(--fs-h2);
}

.stats-header h3 {
    color: var(--primary-light);
    font-size: var(--fs-h3);
    margin-bottom: 35px;
}

.country-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    font-size: var(--fs-small);
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 22px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.38s var(--bounce-ease), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.35s ease;
}

.stat-card:hover {
    background: rgba(15, 23, 42, 0.85);
    transform: translateY(-7px);
    border-color: var(--primary-light);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.stat-icon-wrapper {
    background: rgba(4, 107, 210, 0.35);
    color: var(--primary-light);
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.38s var(--bounce-ease), background-color 0.3s ease;
}

.stat-card:hover .stat-icon-wrapper {
    transform: scale(1.1);
    background: var(--primary-color);
    color: var(--white);
}

.stat-number {
    display: block;
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
}

.stat-number small {
    font-size: 1.05rem;
    color: var(--primary-light);
    margin-left: 2px;
}

.stat-label {
    display: block;
    font-size: var(--fs-small);
    color: var(--text-light);
    margin-top: 4px;
}

.sector-card {
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 22px 20px;
    border-radius: 10px;
    transition: transform 0.38s var(--bounce-ease), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.35s ease;
}

.sector-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-7px);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 12px 28px rgba(4, 107, 210, 0.25);
}

.sector-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.sector-icon {
    color: var(--primary-light);
    transition: transform 0.35s var(--bounce-ease);
}

.sector-card:hover .sector-icon {
    transform: rotate(8deg) scale(1.15);
}

.sector-percent {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
}

.sector-card p {
    font-size: var(--fs-body);
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   8. VENTAJA COMPETITIVA Y LISTAS
   ========================================================================== */
.cta-banner-box {
    background: linear-gradient(145deg, var(--darker-color) 0%, var(--dark-color) 100%);
    border-radius: 12px;
    overflow: hidden;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.38s var(--bounce-ease), box-shadow 0.38s ease, border-color 0.3s ease;
}

.cta-banner-box:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 36px rgba(4, 107, 210, 0.25);
    border-color: rgba(96, 165, 250, 0.4);
}

.cta-banner-image,
.cta-banner-img-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.cta-banner-image img,
.cta-banner-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s var(--bounce-ease);
}

.cta-banner-box:hover .cta-banner-image img,
.cta-banner-box:hover .cta-banner-img-wrapper img {
    transform: scale(1.07);
}

.cta-image-overlay,
.cta-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.95) 100%);
}

.cta-banner-content {
    padding: 28px;
    background: var(--darker-color);
}

.cta-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 14px;
    letter-spacing: 0.8px;
}

.highlight-text {
    font-size: var(--fs-h3);
    font-weight: 800;
    line-height: 1.4;
    color: var(--white);
    margin-bottom: 14px;
}

.cta-divider {
    border: 0;
    height: 2px;
    background: var(--primary-color);
    margin: 0 auto 14px auto;
    width: 50px;
}

.sub-highlight-text {
    font-size: var(--fs-small);
    font-weight: 700;
    color: var(--primary-light);
    text-transform: uppercase;
}

.advantage-list {
    margin-bottom: 24px;
}

.advantage-list li {
    list-style-type: none;
    margin-bottom: 10px;
    font-size: var(--fs-body);
    color: var(--text-color);
    line-height: 1.6;
    transition: color 0.2s ease, transform 0.25s var(--bounce-ease);
}

.advantage-list li:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.check-icon {
    color: var(--primary-color);
    font-weight: 800;
    margin-right: 6px;
}

/* ==========================================================================
   9. BOTONES (SISTEMA GLOBAL ESTILO OUTLINE UNIFICADO)
   ========================================================================== */
.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 13px 28px;
    border-radius: 4px;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: var(--fs-small);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-align: center;
    background-color: transparent;
    border: 2px solid transparent;
    transition: all 0.3s var(--bounce-ease);
    cursor: pointer;
    max-width: 100%;
}

/* A) Botones sobre fondo blanco o claro */
.btn-primary,
.btn-secondary {
    background-color: transparent;
    color: var(--dark-color);
    border-color: var(--dark-color);
}

.btn-primary:hover,
.btn-secondary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* B) Botones sobre fondo oscuro o azul */
.btn-accent,
.bg-primary .btn,
.bg-dark .btn,
.cta-banner-box .btn,
.values-showcase-section .btn {
    background-color: transparent;
    color: var(--white) !important;
    border-color: var(--white);
}

.btn-accent:hover,
.bg-primary .btn:hover,
.bg-dark .btn:hover,
.cta-banner-box .btn:hover,
.values-showcase-section .btn:hover {
    background-color: #000000;
    border-color: #000000;
    color: var(--white) !important;
    transform: translateY(-3px);
}

/* ==========================================================================
   10. SECCIÓN ESENCIA, VALORES Y TESTIMONIOS
   ========================================================================== */
.values-showcase-section {
    background: linear-gradient(135deg, var(--darker-color) 0%, var(--dark-color) 100%);
    padding: 70px 0;
}

.values-top-grid {
    align-items: stretch;
    margin-bottom: 45px;
}

.essence-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 5px solid var(--primary-color);
    border-radius: 10px;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.38s var(--bounce-ease), box-shadow 0.35s ease, border-color 0.3s ease;
}

.essence-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    border-color: rgba(96, 165, 250, 0.45);
}

.essence-manifesto {
    color: var(--primary-light);
    font-size: var(--fs-body);
    font-weight: 700;
    line-height: 1.75;
    letter-spacing: 0.4px;
    margin: 12px 0 20px 0;
}

.essence-divider {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin-bottom: 18px;
}

.essence-title {
    font-size: var(--fs-h2);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 10px;
}

.essence-sub {
    color: var(--text-light);
    font-size: var(--fs-body);
    margin: 0;
}

.values-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.values-box h2 {
    margin-bottom: 6px;
}

.values-box h3 {
    color: var(--primary-light);
    margin-bottom: 22px;
}

.values-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.value-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--fs-body);
    font-weight: 600;
    color: var(--white);
    transition: transform 0.35s var(--bounce-ease), background-color 0.25s ease, border-color 0.25s ease;
}

.value-pill:hover {
    transform: translateY(-3px) translateX(6px);
    background: rgba(4, 107, 210, 0.22);
    border-color: var(--primary-light);
}

.value-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
}

.testimonials-grid {
    gap: 24px;
    margin-bottom: 35px;
}

.quote-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 3px solid var(--primary-color);
    border-radius: 10px;
    padding: 26px 28px;
    transition: transform 0.38s var(--bounce-ease), box-shadow 0.35s ease, border-color 0.3s ease;
}

.quote-card:hover {
    transform: translateY(-7px);
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--primary-light);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.quote-mark {
    display: block;
    font-size: 2.4rem;
    line-height: 1;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.quote-card p {
    color: var(--text-light);
    font-size: var(--fs-body);
    font-style: italic;
    margin-bottom: 14px;
}

.quote-author {
    display: block;
    color: var(--primary-light);
    font-size: var(--fs-small);
    font-weight: 700;
}

/* ==========================================================================
   11. FOOTER Y FLOTANTES
   ========================================================================== */
.site-footer {
    padding-top: 50px;
}

.footer-logo {
    max-width: 110px;
    margin: 0 auto 20px auto;
    transition: transform 0.35s var(--bounce-ease);
}

.footer-logo:hover {
    transform: translateY(-4px) scale(1.04);
}

.footer-col h3 {
    color: var(--white);
    font-size: var(--fs-h3);
}

.footer-col p {
    color: var(--text-light);
    font-size: var(--fs-body);
}

.divider {
    border: 0;
    height: 2px;
    background: var(--primary-color);
    width: 45px;
    margin-bottom: 18px;
}

.contact-info li, .footer-links li {
    margin-bottom: 10px;
    font-size: var(--fs-body);
    color: var(--text-light);
}

.footer-links a:hover,
.contact-info a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    justify-content: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: all 0.35s var(--bounce-ease);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px) scale(1.12);
}

.footer-bottom {
    background: #111111;
    padding: 18px 0;
    margin-top: 35px;
}

.footer-bottom p {
    font-size: var(--fs-small);
    color: var(--text-light);
    margin: 0;
}

#scrollTopBtn {
    position: fixed;
    bottom: 25px;
    right: 20px;
    width: 42px;
    height: 42px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: none;
    z-index: 999;
    transition: background-color 0.3s ease, transform 0.3s var(--bounce-ease);
}

#scrollTopBtn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-4px) scale(1.1);
}

.whatsapp-float {
    position: fixed;
    width: 52px;
    height: 52px;
    bottom: 25px;
    left: 20px;
    background-color: #25d366;
    color: var(--white);
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s var(--bounce-ease);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: var(--white);
    transform: translateY(-5px) scale(1.12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.whatsapp-icon {
    width: 30px;
    height: 30px;
    fill: var(--white);
}

/* ==========================================================================
   12. GALERÍAS, CARRUSELES INTERNOS, FORMULARIOS Y CAJITAS TÉCNICAS
   ========================================================================== */
.alliances-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    align-items: center;
    margin-top: 28px;
}

.alliance-item {
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.38s var(--bounce-ease), box-shadow 0.35s ease, border-color 0.3s ease;
}

.alliance-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 14px 26px rgba(4, 107, 210, 0.16);
    border-color: var(--primary-color);
}

.alliance-item img {
    max-height: 120px;
    width: auto;
    object-fit: contain;
    transition: transform 0.38s var(--bounce-ease);
}

.alliance-item:hover img {
    transform: scale(1.05);
}

.technical-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 32px 0;
}

.tech-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.38s var(--bounce-ease), box-shadow 0.35s ease, border-color 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 14px 28px rgba(4, 107, 210, 0.18);
    border-color: var(--primary-color);
}

.tech-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: var(--light-bg);
    border-radius: 4px;
    padding: 6px;
    transition: transform 0.4s var(--bounce-ease);
}

.tech-card:hover img {
    transform: scale(1.04);
}

.tech-card-caption {
    font-size: var(--fs-small);
    font-weight: 700;
    color: var(--dark-color);
    text-align: center;
    margin-top: 10px;
    line-height: 1.3;
}

.campaign-images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 24px;
}

.campaign-images-grid .image-block img {
    height: 180px;
    width: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.campaign-horizontal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 28px 0 32px 0;
}

.campaign-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.38s var(--bounce-ease), box-shadow 0.35s ease, border-color 0.3s ease;
}

.campaign-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 14px 28px rgba(4, 107, 210, 0.18);
    border-color: var(--primary-color);
}

.campaign-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.4s var(--bounce-ease);
}

.campaign-card:hover img {
    transform: scale(1.04);
}

.click-zoom {
    cursor: zoom-in;
}

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 82vh;
    border-radius: 8px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
    object-fit: contain;
    animation: zoomIn 0.25s ease-out;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-caption {
    color: var(--text-light);
    font-size: var(--fs-body);
    font-weight: 600;
    margin-top: 15px;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
    color: var(--primary-light);
    transform: scale(1.1);
}

/* Formularios y Tarjetas de Contacto */
.contact-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.38s var(--bounce-ease), box-shadow 0.35s ease, border-color 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(4, 107, 210, 0.14);
    border-color: rgba(4, 107, 210, 0.35);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: var(--fs-small);
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: var(--fs-body);
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--white);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(4, 107, 210, 0.15);
    outline: none;
}

textarea.form-input {
    resize: vertical;
}

.form-alert {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: var(--fs-small);
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.4;
}

.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Carrusel horizontal interno */
.gallery-carousel-wrapper {
    position: relative;
    width: 100%;
    min-width: 0;
    margin-top: 24px;
    margin-bottom: 24px;
}

.gallery-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    border-radius: 8px;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    background: var(--white);
    border: 1px solid var(--border-color);
    cursor: zoom-in;
    transition: transform 0.38s var(--bounce-ease), box-shadow 0.35s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(4, 107, 210, 0.16);
}

.gallery-item img {
    width: 100%;
    height: 290px;
    object-fit: cover;
    display: block;
    transition: transform 0.45s var(--bounce-ease);
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-caption {
    padding: 10px 12px;
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--dark-color);
    background: var(--white);
    text-align: center;
}

.gallery-nav-btn {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.78);
    color: var(--white);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.25s ease, transform 0.25s var(--bounce-ease);
}

.gallery-nav-btn:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }

/* Cuadrícula y tarjetas de infraestructura / cuadros destacados (3 COLUMNAS SIN HUECOS) */
.infra-cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 32px;
}

.infra-cards-grid .infra-card {
    flex: 1 1 300px;
    min-width: 280px;
}

.infra-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 18px 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.38s var(--bounce-ease), box-shadow 0.35s ease, border-color 0.3s ease;
}

.infra-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(4, 107, 210, 0.15);
    border-color: rgba(4, 107, 210, 0.4);
    border-left-color: var(--primary-color);
}

.infra-card h4 {
    color: var(--primary-color);
    font-size: var(--fs-h4);
    margin: 0 0 8px 0;
}

.infra-card:last-child h4:only-child {
    margin-bottom: 0;
}

.infra-card p {
    font-size: var(--fs-body);
    line-height: 1.55;
    margin: 0;
    color: var(--text-color);
}

/* ==========================================================================
   13. MEDIA QUERIES RESPONSIVAS
   ========================================================================== */
@media (max-width: 992px) {
    .grid-2-col, .grid-3-col, .stats-grid { 
        grid-template-columns: 1fr; 
        gap: 30px;
    }
    .grid-4-col { 
        grid-template-columns: 1fr; 
        gap: 15px;
    }
    .technical-gallery-grid,
    .campaign-horizontal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --fs-h2: 1.45rem;
        --fs-h3: 1.1rem;
        --fs-body: 0.92rem;
    }

    .container {
        padding: 0 18px !important;
    }

    .section {
        padding: 40px 0;
    }

    .btn {
        width: 100%;
        display: block;
        padding: 13px 14px;
        white-space: normal;
        word-wrap: break-word;
    }

    .hero-carousel-section, .carousel-container {
        min-height: 480px;
    }

    .carousel-overlay {
        background: rgba(15, 23, 42, 0.88);
        padding: 20px 0;
    }

    .carousel-btn {
        padding: 6px 10px;
        font-size: 1.1rem;
    }
    .prev-btn { left: 5px; }
    .next-btn { right: 5px; }

    .stats-section {
        padding: 45px 0;
        background-attachment: scroll;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .campaign-images-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .alliances-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .technical-gallery-grid,
    .campaign-horizontal-grid {
        grid-template-columns: 1fr;
    }
}
/* ==========================================================================
   SELECTOR DE IDIOMA (BANDERAS MÉXICO / ESTADOS UNIDOS)
   ========================================================================== */
.nav-menu {
    width: 100%;
}

.lang-switcher {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.lang-switcher .lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px !important;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
    transition: all 0.25s ease;
}

.lang-switcher .lang-btn img {
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.lang-switcher .lang-btn:hover,
.lang-switcher .lang-btn.active-lang {
    background-color: var(--primary-hover);
    border-color: var(--white);
}

@media (max-width: 992px) {
    .lang-switcher {
        margin-left: 0;
        padding: 12px 20px;
    }
}