/* ============================================
   CORSAAV SOLUCIONES CORPORATIVAS
   Estilos principales (Desktop First)
   ============================================ */

/* ============================================
   VARIABLES CSS (TOKENS DE DISEÑO)
   ============================================ */
:root {
    /* ============================================
       PALETA OFICIAL CORSAAV
       Basada en el brandbook entregado por el cliente.
       ============================================ */
    --color-navy: #0D1B3D;          /* Azul marino principal */
    --color-navy-dark: #06112A;     /* Derivado más oscuro */
    --color-navy-light: #1A2D5C;    /* Derivado intermedio */
    --color-blue: #1E3A8A;          /* Azul royal corporativo */
    --color-blue-light: #3B5BB8;    /* Azul royal claro (derivado) */
    --color-blue-soft: #5B7BCC;     /* Azul suave para acentos sobre fondo oscuro */
    --color-cyan: #00A7C8;          /* Cian tecnológico — acento puntual sobre fondos oscuros */

    /* Grises oficiales */
    --color-gray-900: #1a1a1a;
    --color-gray-800: #2a2a2a;
    --color-gray-700: #4a4a4a;
    --color-gray-600: #5B6470;      /* Gris medio oficial */
    --color-gray-500: #8a8a8a;
    --color-gray-400: #b8b8b8;
    --color-gray-300: #d4d4d4;
    --color-gray-200: #E5E7EB;      /* Gris claro oficial */
    --color-gray-100: #F1F3F6;      /* Derivado claro */
    --color-gray-50:  #F8F9FA;      /* Casi blanco oficial */

    --color-white: #ffffff;
    --color-black: #000000;

    --color-success: #2e7d32;
    --color-error: #c62828;
    --color-warning: #f57c00;

    /* ============================================
       TIPOGRAFÍA OFICIAL
       - Montserrat: títulos y encabezados
       - Lato: cuerpo y contenidos
       ============================================ */
    --font-heading: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-body: 'Lato', 'Segoe UI', system-ui, -apple-system, sans-serif;

    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.25rem;
    --fs-2xl: 1.5rem;
    --fs-3xl: 1.875rem;
    --fs-4xl: 2.25rem;
    --fs-5xl: 3rem;
    --fs-6xl: 3.75rem;

    --fw-light: 300;
    --fw-normal: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;

    --lh-tight: 1.2;
    --lh-snug: 1.4;
    --lh-normal: 1.6;
    --lh-relaxed: 1.75;

    /* Espaciados */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Layout */
    --container-max: 1280px;
    --container-padding: 1.5rem;
    --header-height: 80px;

    /* Bordes */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(13, 27, 61, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(13, 27, 61, 0.08), 0 2px 4px -2px rgba(13, 27, 61, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(13, 27, 61, 0.1), 0 4px 6px -4px rgba(13, 27, 61, 0.08);
    --shadow-xl: 0 20px 25px -5px rgba(13, 27, 61, 0.12), 0 8px 10px -6px rgba(13, 27, 61, 0.08);
    --shadow-2xl: 0 25px 50px -12px rgba(13, 27, 61, 0.2);

    /* Transiciones */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 400ms ease-in-out;

    /* z-index */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-overlay: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-toast: 800;
}

/* ============================================
   RESET Y BASES
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
    color: var(--color-gray-800);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--color-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-blue-light);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: var(--lh-tight);
    font-weight: var(--fw-bold);
    color: var(--color-navy);
}

p {
    line-height: var(--lh-normal);
}

.hidden {
    display: none !important;
}

/* ============================================
   LAYOUT - CONTAINER
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    line-height: 1;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
}

.btn-icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-navy) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-blue-light) 0%, var(--color-blue) 100%);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-white);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-navy);
    border-color: var(--color-gray-300);
}

.btn-outline:hover {
    background-color: var(--color-navy);
    color: var(--color-white);
    border-color: var(--color-navy);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn-whatsapp {
    background-color: #25d366;
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-whatsapp:hover {
    background-color: #1ebe5d;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-block {
    width: 100%;
}

.btn-small {
    padding: 0.625rem 1.25rem;
    font-size: var(--fs-sm);
}

/* ============================================
   HEADER / NAVEGACIÓN STICKY
   Inicio: transparente sobre el hero (texto blanco).
   Al hacer scroll: fondo blanco sólido (texto navy).
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background-color: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color 0.35s ease, border-color 0.35s ease,
                box-shadow 0.35s ease, backdrop-filter 0.35s ease;
    height: var(--header-height);
}

/* Header en estado transparente sobre el hero (glassmorphism sutil) */
.site-header.transparent {
    background-color: rgba(3, 13, 31, 0.28);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header.transparent .brand,
.site-header.transparent .brand-name,
.site-header.transparent .nav-link {
    color: var(--color-white);
}

.site-header.transparent .brand-tagline {
    color: rgba(255, 255, 255, 0.75);
}

.site-header.transparent .nav-link:hover {
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.10);
}

.site-header.transparent .nav-link.active {
    color: var(--color-cyan);
}

.site-header.transparent .nav-link.active::after {
    background-color: var(--color-cyan);
}

.site-header.transparent .menu-toggle span {
    background-color: var(--color-white);
}

/* Header sólido (al hacer scroll fuera del hero) */
.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--color-gray-200);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    color: var(--color-navy);
    transition: color 0.3s ease;
}

/* SVG inline del isotipo C|S — usa currentColor para heredar el color del .brand */
.brand-mark {
    width: auto;
    height: 44px;
    flex-shrink: 0;
    display: block;
    overflow: visible;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    font-weight: var(--fw-extrabold);
    color: var(--color-navy);
    letter-spacing: 0.5px;
}

.brand-tagline {
    font-size: var(--fs-xs);
    color: var(--color-gray-600);
    font-weight: var(--fw-medium);
    letter-spacing: 0.3px;
}

/* Navegación principal */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.nav-link {
    display: inline-block;
    padding: 0.625rem 1rem;
    color: var(--color-gray-700);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--color-navy);
    background-color: var(--color-gray-100);
}

.nav-link.active {
    color: var(--color-blue);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--color-blue);
    border-radius: var(--radius-full);
}

.nav-cta {
    margin-left: var(--space-3);
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-navy) 100%);
    color: var(--color-white);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* Panel móvil del menú — oculto en desktop */
.mobile-nav-head,
.mobile-nav-footer {
    display: none;
}

/* Botón menú hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-navy);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* ============================================
   HERO PREMIUM (fondo full-bleed · texto al frente)
   ============================================
   - Slider a pantalla completa (inset: 0) con object-fit: cover.
   - Overlay suave solo para legibilidad del texto a la izquierda.
   - Las imágenes del carrusel incluyen degradado izquierdo propio.
   - Scroll overlay desktop: ver responsive.css @media (min-width: 769px).
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--color-white);
    /*
       Fondo base ÚNICO de todo el hero. Sin paneles separados, sin
       capas que dividan el ancho. Radiales muy suaves + degradado
       diagonal sin cortes.
    */
    background:
        radial-gradient(circle at 72% 38%, rgba(0, 167, 200, 0.14), transparent 34%),
        radial-gradient(circle at 20% 55%, rgba(30, 58, 138, 0.16), transparent 42%),
        linear-gradient(135deg, #030D1F 0%, #061A2F 48%, #071B33 100%);
}

/*
   .hero::after deshabilitado en el nuevo diseño.
   El overlay global ahora vive en .hero-visual-slider::before
   (que es full-width y cubre todo el hero). Mantener .hero::after
   adicional duplicaría capas innecesariamente.
*/
.hero::after {
    display: none;
}

/*
   GUARDA DEFENSIVA contra cualquier wrapper que pudiera generar
   un panel/borde rectangular dentro del hero. Estos contenedores
   son sólo estructura, NO deben tener fondo ni borde propios.
*/
.hero-content-wrap,
.hero-content,
.hero .container,
.hero-copy {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/*
   Pseudo-elementos huérfanos desactivados. Si en algún momento
   se reactivan, deben usar el patrón inset:0 full-width.
*/
.hero-content-wrap::before,
.hero-content-wrap::after,
.hero-content::before,
.hero-content::after {
    display: none !important;
}

/* ---- Contenedor del slider visual (fondo a pantalla completa) ---- */
.hero-visual-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Cada slide ocupa todo el hero también. Sin background ni borde. */
.hero-visual {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 900ms ease, visibility 0s linear 900ms;
    will-change: opacity;
    background: transparent;
    border: none;
    box-shadow: none;
}

.hero-visual.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 900ms ease, visibility 0s linear 0s;
}

/*
   Imagen de fondo a pantalla completa. object-fit: cover llena
   todo el hero; object-position centra el encuadre (las artes
   traen degradado izquierdo para el copy).
*/
.hero-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center center;
    display: block;
    border: none;
    border-radius: 0;
    box-shadow: none;
    image-rendering: auto;
}

.hero-visual.active img,
.hero-visual:not(.active) img {
    animation: none;
    transform: none;
    filter: none;
    opacity: 1;
}

/*
   Overlay mínimo: las artes ya incluyen degradado izquierdo.
   Evitar doble velo que apaga nitidez y genera banding.
*/
.hero-visual-slider::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(3, 13, 31, 0.45) 0%,
            rgba(3, 13, 31, 0.18) 18%,
            transparent 36%
        ),
        linear-gradient(
            0deg,
            rgba(3, 13, 31, 0.45) 0%,
            transparent 28%,
            transparent 78%,
            rgba(3, 13, 31, 0.18) 100%
        );
}

/* ---- Acentos visuales corporativos ----
   IMPORTANTE: estos acentos están deshabilitados porque generaban
   una línea vertical visible en el hero:
   - .hero-cyan-bar tenía left:0 + box-shadow 24px cyan
     (creaba un glow vertical lateral).
   - .hero-grid-pattern tenía linear-gradient con líneas verticales
     de 1px cada 90px, y la mask radial cortaba justo en la zona
     del bloque de contenido — el borde de la máscara coincidía con
     una de las líneas del grid y la hacía visible.
   Se mantienen los <div> en el HTML para no romper la estructura.
*/
.hero-accents,
.hero-diagonal,
.hero-cyan-bar,
.hero-grid-pattern {
    display: none;
}

/* ---- Contenido principal HTML (al frente) ---- */
.hero-content-wrap {
    position: relative;
    z-index: 5;
    width: 100%;
    padding-top: var(--header-height);
    padding-bottom: 110px;
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 720px;
    padding-left: var(--space-2);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.55rem 1.15rem;
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--color-white);
    margin-bottom: var(--space-8);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    animation: heroFadeUp 700ms ease both;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-cyan);
    box-shadow: 0 0 12px var(--color-cyan);
}

.hero-title {
    font-size: clamp(2.6rem, 6vw, 5.5rem);
    line-height: 1.0;
    font-weight: var(--fw-extrabold);
    color: var(--color-white);
    margin-bottom: var(--space-6);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
    /* Evitar palabras partidas o separaciones extrañas */
    hyphens: none;
    -webkit-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
    text-wrap: balance;
}

.hero-title-line {
    display: block;
    animation: heroFadeUp 800ms ease both;
}

.hero-title-line:nth-child(2) {
    animation-delay: 120ms;
}

.text-accent {
    background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-blue-soft) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/*
   Sub-título y texto del hero: text-wrap pretty + sin hyphens
   para evitar separaciones tipo "fin anciera" / "ef iciencia".
*/
.hero-subtitle {
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.96);
    font-weight: var(--fw-medium);
    margin-bottom: var(--space-5);
    max-width: 660px;
    letter-spacing: normal;
    word-spacing: normal;
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
    text-wrap: pretty;
    animation: heroFadeUp 800ms ease 200ms both;
}

.hero-text {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: var(--space-10);
    max-width: 620px;
    letter-spacing: normal;
    word-spacing: normal;
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
    text-wrap: pretty;
    animation: heroFadeUp 800ms ease 320ms both;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    animation: heroFadeUp 800ms ease 440ms both;
}

.btn-ghost-light {
    background-color: transparent;
    color: var(--color-white);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: var(--fw-semibold);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-ghost-light:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: var(--color-white);
    color: var(--color-white);
    transform: translateY(-2px);
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reactivar animación suave al cambiar de slide */
.hero-content.is-changing .hero-badge {
    animation: heroFadeUp 600ms ease forwards;
}

.hero-content.is-changing .hero-title-line {
    animation: heroFadeUp 700ms ease forwards 100ms;
}

.hero-content.is-changing .hero-title-line:nth-child(2) {
    animation-delay: 160ms;
}

.hero-content.is-changing .hero-subtitle {
    animation: heroFadeUp 700ms ease forwards 180ms;
}

.hero-content.is-changing .hero-actions {
    animation: heroFadeUp 700ms ease forwards 260ms;
}

/* ---- Flechas laterales (discretas, premium) ---- */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
    opacity: 0.72;
}

.hero-arrow:hover {
    background-color: rgba(0, 167, 200, 0.18);
    border-color: var(--color-cyan);
    color: var(--color-white);
    opacity: 1;
    transform: translateY(-50%) scale(1.04);
    box-shadow: 0 4px 18px rgba(0, 167, 200, 0.28);
}

.hero-arrow svg {
    width: 22px;
    height: 22px;
}

.hero-arrow-prev {
    left: clamp(12px, 3vw, 36px);
}

.hero-arrow-next {
    right: clamp(12px, 3vw, 36px);
}

/* ---- Indicador premium: barra de progreso del autoplay ---- */
.hero-progress {
    position: absolute;
    left: clamp(24px, 8vw, 140px);
    bottom: clamp(52px, 9vh, 96px);
    z-index: 8;
    pointer-events: none;
}

.hero-progress-track {
    width: min(200px, 42vw);
    height: 2px;
    background: rgba(255, 255, 255, 0.22);
    overflow: hidden;
    border-radius: 999px;
}

.hero-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-cyan), var(--color-blue));
    border-radius: inherit;
    transform-origin: left center;
}

.hero-progress-bar.is-running {
    animation: heroProgress var(--hero-autoplay-ms, 6000ms) linear forwards;
}

@keyframes heroProgress {
    from { width: 0%; }
    to { width: 100%; }
}

/* ---- Dots inferiores: OCULTOS (solo datos + JS; no se muestran en pantalla) ---- */
.hero-dots-wrap--sr {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Por si algún responsive legacy intenta mostrarlos */
.hero-dots-wrap--sr .hero-dots,
.hero-dots-wrap--sr .hero-dot,
.hero-dots-wrap--sr .dot-number,
.hero-dots-wrap--sr .dot-name {
    display: none !important;
    visibility: hidden !important;
}

/* Legacy: dots visibles desactivados (mantener reglas por si se reutilizan) */
.hero-dots-wrap:not(.hero-dots-wrap--sr) {
    position: absolute;
    bottom: 48px;
    left: 0;
    right: 0;
    z-index: 4;
}

.hero-dots {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* Dots más finos y elegantes — no compiten con el título */
.hero-dot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 10px 12px 12px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.55);
    opacity: 0.45;
    transition: opacity 0.3s ease, color 0.3s ease, border-top-color 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    min-width: 92px;
    text-align: left;
}

.hero-dot:hover {
    color: rgba(255, 255, 255, 0.95);
    opacity: 0.85;
    border-top-color: rgba(255, 255, 255, 0.5);
}

.hero-dot.active {
    color: var(--color-white);
    opacity: 1;
    border-top: 1px solid var(--color-cyan);
    box-shadow: 0 -1px 0 0 var(--color-cyan);
}

.hero-dot .dot-number {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: var(--fw-bold);
    letter-spacing: 2px;
    color: var(--color-cyan);
    line-height: 1;
}

.hero-dot .dot-name {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: var(--fw-semibold);
    letter-spacing: 0.4px;
    line-height: 1.2;
}

/* ---- Scroll indicator ---- */
.scroll-indicator {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    padding-top: 6px;
    z-index: 4;
    transition: border-color var(--transition-base);
}

.scroll-indicator:hover {
    border-color: var(--color-cyan);
}

.scroll-indicator span {
    display: block;
    width: 3px;
    height: 7px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-full);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(16px); opacity: 0; }
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */
.section {
    padding: var(--space-24) 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto var(--space-16);
}

.section-eyebrow {
    display: inline-block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    color: var(--color-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-3);
}

.section-title {
    font-size: var(--fs-5xl);
    color: var(--color-navy);
    margin-bottom: var(--space-4);
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: var(--fs-lg);
    color: var(--color-gray-600);
    line-height: var(--lh-relaxed);
}

.section-header-light .section-eyebrow {
    color: var(--color-blue-soft);
}

.section-header-light .section-title {
    color: var(--color-white);
}

.section-header-light .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================
   SECCIÓN EMPRESA
   ============================================ */
.section-empresa {
    background-color: var(--color-gray-50);
}

.section-empresa--overlap {
    overflow: hidden;
    padding-bottom: var(--space-20);
}

/* Líneas animadas con cola desvanecida */
.empresa-lines {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.empresa-streak {
    position: absolute;
    width: clamp(140px, 18vw, 220px);
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 167, 200, 0) 8%,
        rgba(0, 167, 200, 0.35) 45%,
        rgba(30, 58, 138, 0.18) 72%,
        transparent 100%
    );
    transform: rotate(-22deg);
    opacity: 0;
    animation: empresaStreakPass var(--streak-duration, 7s) var(--streak-delay, 0s) linear infinite;
    will-change: transform, opacity;
}

.empresa-streak:nth-child(1) {
    top: 12%;
    left: -20%;
    --streak-duration: 8s;
    --streak-delay: 0s;
}

.empresa-streak:nth-child(2) {
    top: 28%;
    left: -30%;
    --streak-duration: 10s;
    --streak-delay: 1.5s;
    width: clamp(180px, 22vw, 280px);
}

.empresa-streak:nth-child(3) {
    top: 44%;
    left: -15%;
    --streak-duration: 9s;
    --streak-delay: 3s;
}

.empresa-streak:nth-child(4) {
    top: 58%;
    left: -25%;
    --streak-duration: 11s;
    --streak-delay: 0.8s;
    width: clamp(160px, 20vw, 240px);
}

.empresa-streak:nth-child(5) {
    top: 72%;
    left: -35%;
    --streak-duration: 7.5s;
    --streak-delay: 4.2s;
}

.empresa-streak:nth-child(6) {
    top: 86%;
    left: -18%;
    --streak-duration: 9.5s;
    --streak-delay: 2.4s;
    width: clamp(200px, 24vw, 300px);
}

@keyframes empresaStreakPass {
    0% {
        transform: translateX(0) rotate(-22deg);
        opacity: 0;
    }
    8% {
        opacity: 0.85;
    }
    55% {
        opacity: 0.5;
    }
    100% {
        transform: translateX(calc(100vw + 280px)) rotate(-22deg);
        opacity: 0;
    }
}

.empresa-layout {
    position: relative;
    z-index: 1;
}

.section-header--empresa {
    position: relative;
    z-index: 2;
    margin-bottom: var(--space-12);
}

.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.mvv-grid--overlap {
    perspective: 1200px;
    position: relative;
    z-index: 3;
    margin-top: 0;
}

.mvv-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    text-align: center;
}

.mvv-card-inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--color-white);
    padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1.5rem, 2.5vw, 2rem);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(13, 27, 61, 0.07);
    box-shadow:
        0 20px 60px rgba(13, 27, 61, 0.08),
        0 4px 18px rgba(13, 27, 61, 0.04);
    transition:
        transform 350ms cubic-bezier(0.37, 0, 0.63, 1),
        box-shadow 350ms cubic-bezier(0.37, 0, 0.63, 1);
    overflow: hidden;
}

.mvv-card-inner:hover {
    transform: translate3d(0, -4px, 0);
    box-shadow:
        0 28px 70px rgba(13, 27, 61, 0.12),
        0 10px 28px rgba(13, 27, 61, 0.06);
}

.mvv-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.95) 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 400ms cubic-bezier(0.12, 0, 0.39, 0);
    z-index: 0;
}

.mvv-card-inner:hover .mvv-card-overlay {
    opacity: 1;
}

.mvv-number {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    margin: 0 auto var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    border: 2px solid rgba(13, 27, 61, 0.12);
    background: var(--color-white);
    color: var(--color-navy);
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    font-weight: var(--fw-medium);
    letter-spacing: 0.04em;
    transition: border-color 350ms ease, color 350ms ease, background 350ms ease;
}

.mvv-card-inner:hover .mvv-number {
    border-color: rgba(0, 167, 200, 0.45);
    color: var(--color-blue);
}

.mvv-body {
    position: relative;
    z-index: 1;
    width: 100%;
}

.mvv-card h3 {
    font-size: clamp(var(--fs-xl), 2vw, var(--fs-2xl));
    margin-bottom: var(--space-4);
    color: var(--color-navy);
    font-weight: var(--fw-semibold);
    letter-spacing: -0.01em;
}

.mvv-card p {
    color: var(--color-gray-700);
    line-height: var(--lh-relaxed);
    font-size: var(--fs-base);
    margin: 0;
}

.mvv-reveal {
    opacity: 0;
    transform: perspective(1200px) rotateX(28deg) scale(1.08);
    transform-origin: center bottom;
    will-change: transform, opacity;
    transition:
        opacity 1000ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 1000ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: var(--mvv-delay, 0ms);
}

.mvv-reveal.is-visible {
    opacity: 1;
    transform: perspective(1200px) rotateX(0deg) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .mvv-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .mvv-card-inner:hover {
        transform: none;
    }

    .empresa-streak {
        animation: none;
        opacity: 0;
    }
}

.values-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2) var(--space-4);
    text-align: left;
    margin: 0 auto;
    max-width: 280px;
}

.values-list li {
    position: relative;
    padding-left: 0;
    color: var(--color-gray-700);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    line-height: var(--lh-snug);
}

.values-list li::before {
    display: none;
}

/* ============================================
   SECCIÓN SERVICIOS
   ============================================ */
.section-servicios {
    background-color: var(--color-white);
    overflow: hidden;
}

.section-servicios .section-header {
    margin-bottom: var(--space-6);
}

/* ============================================
   SERVICIOS — Carrusel full-bleed (extremo a extremo)
   ============================================ */
.services-carousel-outer {
    position: relative;
    width: 100%;
    max-width: 100vw;
    margin-left: 0;
    padding: 0 0 var(--space-4);
}

.services-swiper {
    overflow: hidden;
    width: 100%;
    padding: var(--space-2) 0 var(--space-4);
}

.services-swiper .swiper-wrapper {
    align-items: stretch;
    transition-timing-function: linear !important;
}

.services-swiper .swiper-slide {
    height: auto;
    display: flex;
}

/* Card vertical premium en carrusel */
.service-card--carousel {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    border: 1px solid rgba(13, 27, 61, 0.08);
    box-shadow: 0 18px 45px rgba(6, 26, 47, 0.08);
    transform: none;
}

.service-card--carousel.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.service-card--carousel.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card--carousel.fade-in.visible:hover,
.service-card--carousel:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(6, 26, 47, 0.14);
    border-color: rgba(30, 58, 138, 0.14);
}

.service-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    background: #e8eef6;
    flex-shrink: 0;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 700ms ease;
}

.service-card--carousel:hover .service-card-image img {
    transform: scale(1.05);
}

.service-card-body {
    padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 2.5vw, 1.875rem) clamp(1.375rem, 2.5vw, 1.875rem);
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1 1 auto;
    min-height: 250px;
    background: #FFFFFF;
}

.service-card-body .service-heading {
    margin-bottom: 0;
}

.service-card-body .service-description {
    margin-bottom: 0;
}

.service-card-body .service-tags {
    margin-bottom: 0;
    flex-grow: 1;
}

.service-card-body .service-link {
    margin-top: auto;
    color: var(--color-blue);
    font-weight: var(--fw-bold);
}

.service-card-body .service-link:hover {
    color: var(--color-cyan);
}

/* Legacy grid (reserva por si se reutiliza) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

/* ============================================
   SERVICE CARD — thumbnail limpio + ícono en título
   ============================================ */
.service-card {
    background-color: var(--color-white);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(13, 27, 61, 0.08);
    transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 32px -24px rgba(13, 27, 61, 0.22);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -28px rgba(13, 27, 61, 0.28);
    border-color: rgba(30, 58, 138, 0.14);
}

/* Thumbnail 16:9 — fotografía limpia, sin texto embebido */
.service-media--thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e8eef6;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.service-media--thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 700ms ease;
}

.service-card:hover .service-media--thumb img {
    transform: scale(1.05);
}

.service-heading {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.service-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, rgba(0, 167, 200, 0.12) 0%, rgba(30, 58, 138, 0.1) 100%);
    border: 1px solid rgba(30, 58, 138, 0.12);
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blue);
    transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-blue) 100%);
    border-color: transparent;
    color: var(--color-white);
}

.service-icon svg {
    width: 22px;
    height: 22px;
}

.service-card--carousel .service-title {
    font-size: clamp(1rem, 2.2vw, var(--fs-lg));
    text-wrap: balance;
}

.service-card--carousel .service-tags li {
    font-size: 0.68rem;
    padding: 0.35rem 0.65rem;
}

/* Contenido textual */
.service-content {
    padding: var(--space-6) var(--space-6) var(--space-6);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-title {
    font-size: var(--fs-lg);
    color: var(--color-navy);
    margin-bottom: 0;
    line-height: var(--lh-tight);
}

.service-description {
    font-size: var(--fs-sm);
    color: var(--color-gray-600);
    line-height: var(--lh-snug);
    margin-bottom: var(--space-4);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Etiquetas compactas en cards de resumen */
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
    flex-grow: 1;
    align-content: flex-start;
    list-style: none;
    padding: 0;
}

.service-tags li {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background-color: #F4F7FA;
    color: #2D3748;
    font-size: 12px;
    font-weight: var(--fw-semibold);
    line-height: 1.2;
    border: 1px solid rgba(13, 27, 61, 0.08);
}

.service-card:hover .service-tags li {
    border-color: rgba(30, 58, 138, 0.15);
    background-color: rgba(30, 58, 138, 0.06);
    color: var(--color-navy);
}

.service-list {
    padding-top: var(--space-4);
    margin-bottom: var(--space-5);
    border-top: 1px solid var(--color-gray-200);
    flex-grow: 1;
}

.service-list li {
    position: relative;
    padding-left: var(--space-5);
    padding-block: var(--space-1);
    color: var(--color-gray-700);
    font-size: var(--fs-sm);
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    background-color: var(--color-blue);
    border-radius: var(--radius-full);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-2);
    color: var(--color-blue);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    text-decoration: none;
    transition: gap var(--transition-base);
}

.service-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-base);
}

.service-link:hover {
    color: var(--color-navy);
    gap: var(--space-3);
}

.service-link:hover svg {
    transform: translateX(3px);
}

/* ============================================
   SECCIÓN SOLUCIONES DESTACADAS
   (Bloques imagen ↔ texto alternados)
   ============================================ */
.section-soluciones {
    background: linear-gradient(180deg, #f8fafc 0%, var(--color-white) 48%, var(--color-white) 100%);
    padding-top: 0;
}

.featured-stack {
    display: flex;
    flex-direction: column;
    gap: clamp(var(--space-16), 6vw, var(--space-24));
}

.featured-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

/* Soluciones por especialidad — scroll reveal (desktop: slide horizontal) */
#soluciones .featured-block {
    opacity: 0;
    transform: translateX(-80px);
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

#soluciones .featured-block.featured-block-reverse {
    transform: translateX(80px);
}

#soluciones .featured-block.reveal-visible {
    opacity: 1;
    transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
    #soluciones .featured-block {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }
}

.featured-block-premium {
    grid-template-columns: 1.12fr 0.88fr;
    gap: clamp(var(--space-10), 4vw, var(--space-16));
    padding: clamp(var(--space-6), 3vw, var(--space-10));
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(13, 27, 61, 0.07);
    background: var(--color-white);
    box-shadow:
        0 28px 56px -40px rgba(13, 27, 61, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.featured-anchor {
    scroll-margin-top: calc(var(--header-height, 80px) + var(--space-6));
}

.featured-block-reverse .featured-media {
    order: 2;
}

.featured-block-reverse .featured-content {
    order: 1;
}

.featured-media {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    min-height: 320px;
    background:
        radial-gradient(ellipse at 25% 20%, rgba(30, 58, 138, 0.35) 0%, transparent 62%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 167, 200, 0.16) 0%, transparent 62%),
        linear-gradient(145deg, #f1f5f9 0%, #e8eef6 100%);
    box-shadow: 0 0 0 1px rgba(13, 27, 61, 0.05);
}

/* Banner corporativo con texto — solo en Soluciones por especialidad / lightbox */
.featured-media--banner {
    aspect-ratio: 16 / 9;
    min-height: 0;
    background: #061A2F;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 24px 48px -32px rgba(13, 27, 61, 0.35);
}

.featured-media--banner::before {
    display: none;
}

.featured-media--banner img {
    object-fit: contain;
    object-position: center;
    padding: var(--space-3);
}

.featured-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(13, 27, 61, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 27, 61, 0.015) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 1;
}

.featured-media img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    padding: var(--space-3);
    transition: transform 800ms ease;
    z-index: 2;
}

.featured-media-trigger {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
    position: relative;
    z-index: 2;
    text-align: inherit;
    font: inherit;
    color: inherit;
}

.featured-media-trigger:focus-visible {
    outline: 2px solid var(--color-cyan);
    outline-offset: -2px;
}

.featured-media-hint {
    position: absolute;
    bottom: var(--space-4);
    right: var(--space-4);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--radius-full);
    background: rgba(3, 13, 31, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.04em;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 300ms ease, transform 300ms ease;
    pointer-events: none;
}

.featured-media-hint svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.featured-media:hover .featured-media-hint,
.featured-media-trigger:focus-visible .featured-media-hint {
    opacity: 1;
    transform: translateY(0);
}

.featured-block:hover .featured-media img {
    transform: scale(1.02);
}

.featured-content {
    min-width: 0;
    padding: clamp(var(--space-2), 2vw, var(--space-8)) clamp(var(--space-2), 2vw, var(--space-6));
}

.featured-number {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    color: var(--color-cyan);
    letter-spacing: 0.22em;
    margin-bottom: var(--space-3);
}

.featured-eyebrow {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    color: var(--color-blue);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: var(--space-4);
}

.featured-eyebrow::after {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    margin-top: var(--space-3);
    background: linear-gradient(90deg, var(--color-cyan) 0%, var(--color-blue) 100%);
    border-radius: var(--radius-full);
}

.featured-title {
    font-size: clamp(var(--fs-2xl), 2.4vw, var(--fs-4xl));
    color: var(--color-navy);
    margin-bottom: var(--space-4);
    line-height: var(--lh-tight);
    letter-spacing: -0.02em;
    max-width: 28ch;
    text-wrap: balance;
}

.featured-lead {
    font-size: var(--fs-base);
    color: var(--color-gray-600);
    line-height: 1.65;
    margin-bottom: var(--space-6);
    max-width: 62ch;
    text-wrap: pretty;
    overflow: visible;
}

.featured-lead-complement {
    display: block;
    margin-top: var(--space-3);
    font-weight: var(--fw-medium);
    color: var(--color-navy);
}

.featured-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-8);
}

.featured-chips li {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(30, 58, 138, 0.12);
    color: var(--color-navy);
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.03em;
    box-shadow: 0 1px 2px rgba(13, 27, 61, 0.04);
}

.featured-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
}

.featured-actions .btn-primary {
    min-width: 11rem;
}

.featured-scope-toggle {
    background: transparent;
    border: none;
    color: var(--color-blue);
    font-family: var(--font-heading);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.02em;
    cursor: pointer;
    padding: var(--space-3) var(--space-1);
    text-decoration: underline;
    text-decoration-color: rgba(30, 58, 138, 0.35);
    text-underline-offset: 5px;
    transition: color var(--transition-base), text-decoration-color var(--transition-base);
}

.featured-scope-toggle:hover,
.featured-scope-toggle:focus-visible {
    color: var(--color-navy);
    text-decoration-color: var(--color-cyan);
}

.featured-scope-toggle[aria-expanded="true"] {
    color: var(--color-navy);
}

.featured-scope {
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(13, 27, 61, 0.06);
    width: 100%;
    min-width: 0;
}

.featured-scope-inner {
    padding: var(--space-6);
    border-radius: 14px;
    background: #FFFFFF;
    border: 1px solid rgba(13, 27, 61, 0.08);
    box-shadow: 0 8px 32px rgba(13, 27, 61, 0.04);
    width: 100%;
    text-align: left;
}

@media (prefers-reduced-motion: no-preference) {
    .featured-scope:not([hidden]) {
        animation: featuredScopeIn 320ms ease;
    }
}

.featured-scope[hidden] {
    display: none;
}

@keyframes featuredScopeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.featured-scope-inner h4 {
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-blue);
    margin: 0 0 var(--space-3);
}

.featured-scope-inner h4:not(:first-child) {
    margin-top: var(--space-8);
}

.featured-scope-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.featured-scope-list li strong {
    color: var(--color-navy);
    font-weight: var(--fw-semibold);
}

/* Subservicios — lista editorial premium numerada */
.featured-scope-grid {
    counter-reset: scope;
}

.featured-scope-grid li {
    counter-increment: scope;
    position: relative;
    display: block;
    padding: 16px 0 16px 42px;
    border: none;
    border-bottom: 1px solid rgba(13, 27, 61, 0.08);
    border-radius: 0;
    background: transparent;
    font-size: var(--fs-sm);
    color: #061A2F;
    font-weight: var(--fw-medium);
    line-height: 1.55;
    text-align: left;
    text-wrap: pretty;
}

.featured-scope-grid li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.featured-scope-grid li::before {
    content: counter(scope, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 16px;
    width: 42px;
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #00A7C8;
    font-weight: 800;
    line-height: 1.55;
}

.featured-scope-grid li strong {
    display: inline;
    color: #061A2F;
    font-weight: var(--fw-semibold);
}

/* Enfoque del servicio — lista editorial con check discreto */
.featured-scope-focus li {
    position: relative;
    display: block;
    padding: 16px 0 16px 28px;
    border: none;
    border-bottom: 1px solid rgba(13, 27, 61, 0.08);
    border-radius: 0;
    background: transparent;
    font-size: var(--fs-sm);
    color: var(--color-gray-700);
    font-weight: var(--fw-medium);
    line-height: 1.55;
    text-align: left;
    text-wrap: pretty;
}

.featured-scope-focus li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.featured-scope-focus li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 16px;
    width: 28px;
    font-size: 13px;
    font-weight: 800;
    color: #00A7C8;
    line-height: 1.55;
    background: none;
    border-radius: 0;
    margin: 0;
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--color-navy);
    border: 2px solid var(--color-navy);
}

.btn-outline-dark:hover {
    background-color: var(--color-navy);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* ============================================
   SECCIÓN VENTAJAS
   ============================================ */
.section-ventajas {
    background-color: var(--color-gray-50);
    position: relative;
}

.section-ventajas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 400px;
    background:
        radial-gradient(ellipse at top, rgba(30, 58, 138, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.advantages-grid {
    --advantage-cols: 4;
    --advantage-gap: var(--space-6);
    display: grid;
    grid-template-columns: repeat(var(--advantage-cols), 1fr);
    gap: var(--advantage-gap);
    position: relative;
}

.advantage-card {
    background-color: var(--color-white);
    padding: var(--space-8) var(--space-6);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-200);
    transition: all var(--transition-base);
    text-align: center;
}

.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-blue);
}

.advantage-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-4);
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-light) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.advantage-icon svg {
    width: 28px;
    height: 28px;
}

.advantage-card h3 {
    font-size: var(--fs-lg);
    color: var(--color-navy);
    margin-bottom: var(--space-2);
}

.advantage-card p {
    font-size: var(--fs-sm);
    color: var(--color-gray-600);
    line-height: var(--lh-normal);
}

/* Última fila desbalanceada (7 tarjetas): centrar 5–6 y la séptima al ancho estándar */
.advantage-card:nth-child(5) {
    grid-column: 2 / 3;
}

.advantage-card:nth-child(6) {
    grid-column: 3 / 4;
}

.advantage-card:nth-child(7) {
    grid-column: 1 / -1;
    width: calc((100% - (var(--advantage-cols) - 1) * var(--advantage-gap)) / var(--advantage-cols));
    max-width: calc((100% - (var(--advantage-cols) - 1) * var(--advantage-gap)) / var(--advantage-cols));
    justify-self: center;
}

/* ============================================
   SECCIÓN CONFIANZA
   ============================================ */
.section-confianza {
    background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 50%, var(--color-navy-light) 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.section-confianza::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(30, 58, 138, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(59, 91, 184, 0.25) 0%, transparent 50%);
    pointer-events: none;
}

.section-confianza .container {
    position: relative;
    z-index: 1;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.trust-card {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
    text-align: center;
}

.trust-card:hover {
    transform: translateY(-6px);
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.trust-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-5);
    background: linear-gradient(135deg, var(--color-blue-light) 0%, var(--color-blue-soft) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.trust-icon svg {
    width: 32px;
    height: 32px;
}

.trust-card h3 {
    font-size: var(--fs-lg);
    color: var(--color-white);
    margin-bottom: var(--space-3);
}

.trust-card p {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.75);
    line-height: var(--lh-normal);
}

.metrics-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    margin-top: var(--space-16);
    padding: var(--space-10);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    text-align: center;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.metric-number {
    font-family: var(--font-heading);
    font-size: var(--fs-5xl);
    font-weight: var(--fw-extrabold);
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-blue-soft) 0%, var(--color-blue-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-label {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   SECCIÓN CONTACTO
   ============================================ */
.section-contacto {
    background-color: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: var(--space-12);
    align-items: flex-start;
}

/* Información de contacto */
.contact-info {
    background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 100%);
    color: var(--color-white);
    padding: var(--space-10);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 91, 184, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.contact-info h3 {
    color: var(--color-white);
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-3);
    position: relative;
}

.contact-lead {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-8);
    position: relative;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    margin-bottom: var(--space-8);
    position: relative;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.ci-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blue-soft);
}

.ci-icon svg {
    width: 22px;
    height: 22px;
}

.ci-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ci-label {
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: var(--fw-semibold);
}

.ci-value {
    color: var(--color-white);
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
}

.ci-value:hover {
    color: var(--color-blue-soft);
}

.contact-actions {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
    position: relative;
}

.contact-actions .btn-outline {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.3);
}

.contact-actions .btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-navy);
    border-color: var(--color-white);
}

.contact-social {
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
}

.cs-label {
    display: block;
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-3);
    font-weight: var(--fw-medium);
}

.social-links {
    display: flex;
    gap: var(--space-3);
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: all var(--transition-base);
}

.social-link:hover {
    background-color: var(--color-blue);
    color: var(--color-white);
    transform: translateY(-2px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* Formulario */
.contact-form-wrapper {
    background-color: var(--color-white);
    padding: var(--space-10);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper h3 {
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-2);
}

.form-lead {
    color: var(--color-gray-600);
    margin-bottom: var(--space-8);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-group label {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--color-gray-800);
}

.required {
    color: var(--color-error);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    background-color: var(--color-white);
    border: 1.5px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    color: var(--color-gray-900);
    font-size: var(--fs-base);
    transition: all var(--transition-fast);
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.12);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--color-error);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-check {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-3);
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--color-blue);
    flex-shrink: 0;
}

.form-check label {
    font-weight: var(--fw-normal);
    font-size: var(--fs-sm);
    line-height: var(--lh-normal);
    cursor: pointer;
}

.form-feedback {
    font-size: var(--fs-sm);
    padding: 0;
    margin: 0;
    min-height: 1.5rem;
    text-align: center;
}

.form-feedback.success {
    color: var(--color-success);
    background-color: rgba(46, 125, 50, 0.1);
    padding: var(--space-3);
    border-radius: var(--radius-md);
}

.form-feedback.error {
    color: var(--color-error);
    background-color: rgba(198, 40, 40, 0.1);
    padding: var(--space-3);
    border-radius: var(--radius-md);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background-color: var(--color-navy-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: var(--space-20) 0 var(--space-8);
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: var(--space-10);
    margin-bottom: var(--space-12);
    padding-bottom: var(--space-10);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand {
    color: var(--color-white);
}

.footer-brand .brand-mark {
    height: 48px;
}

.footer-brand .brand-name {
    color: var(--color-white);
}

.footer-brand .brand-tagline {
    color: rgba(255, 255, 255, 0.6);
}

.footer-description {
    margin-top: var(--space-5);
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--fs-sm);
    line-height: var(--lh-relaxed);
    max-width: 320px;
}

.footer-description--mobile {
    display: none;
}

.footer-mobile-only {
    display: none;
}

.footer-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: var(--fs-base);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-5);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
    cursor: default;
    pointer-events: none;
}

.footer-section-toggle-icon {
    display: none;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    position: relative;
}

.footer-section-toggle-icon::before,
.footer-section-toggle-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: var(--color-cyan);
    border-radius: 1px;
    transform: translate(-50%, -50%);
    transition: transform var(--transition-base);
}

.footer-section-toggle-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.footer-col--accordion.is-open .footer-section-toggle-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0;
}

.footer-col-heading {
    color: var(--color-white);
    font-size: var(--fs-base);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col h4,
.footer-col-heading {
    color: var(--color-white);
    font-size: var(--fs-base);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-list a,
.footer-list li {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--fs-sm);
    transition: color var(--transition-fast);
}

.footer-list a:hover {
    color: var(--color-blue-soft);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-5);
}

.footer-social a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background-color: var(--color-blue);
    color: var(--color-white);
}

.footer-social svg {
    width: 16px;
    height: 16px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--fs-sm);
}

.footer-bottom .footer-copyright {
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: var(--space-6);
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--fs-sm);
}

.footer-legal a:hover {
    color: var(--color-white);
}

.footer-contact-actions {
    display: none;
}

.footer-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.625rem 1.125rem;
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.footer-action-btn--whatsapp {
    background: rgba(37, 211, 102, 0.14);
    border: 1px solid rgba(37, 211, 102, 0.35);
    color: #6ee7a0;
}

.footer-action-btn--whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    color: var(--color-white);
}

.footer-action-btn--email {
    background: rgba(0, 167, 200, 0.12);
    border: 1px solid rgba(0, 167, 200, 0.35);
    color: #7dd3ea;
}

.footer-action-btn--email:hover {
    background: var(--color-cyan);
    border-color: var(--color-cyan);
    color: var(--color-white);
}

.footer-location {
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: var(--fs-xs);
    text-align: center;
}

.footer-legal-sep {
    color: rgba(255, 255, 255, 0.35);
    font-size: var(--fs-xs);
}

.footer-legal-cookies--mobile {
    display: none;
}

.footer-legal-cookies--desktop {
    display: inline;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--fs-sm);
    margin: 0;
}

.footer-rights-extra {
    /* visible en desktop */
}

/* ============================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: var(--color-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
    animation: pulse-whatsapp 2.5s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--color-white);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 16px rgba(37, 211, 102, 0);
    }
}

/* ============================================
   MODALES
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.modal[hidden] {
    display: none;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(13, 27, 61, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeIn var(--transition-base);
}

.modal-content {
    position: relative;
    background-color: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-2xl);
    animation: slideUp var(--transition-base);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content-large {
    max-width: 720px;
    text-align: left;
}

.modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background-color: var(--color-gray-100);
    color: var(--color-gray-600);
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.modal-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-5);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(59, 91, 184, 0.1) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blue);
}

.modal-icon svg {
    width: 36px;
    height: 36px;
}

.modal-content h3 {
    font-size: var(--fs-2xl);
    color: var(--color-navy);
    margin-bottom: var(--space-4);
}

.modal-content p {
    color: var(--color-gray-700);
    margin-bottom: var(--space-6);
    line-height: var(--lh-relaxed);
}

.modal-content .btn {
    margin-top: var(--space-2);
}

.modal-body {
    margin-bottom: var(--space-6);
}

.modal-body h4 {
    font-size: var(--fs-base);
    color: var(--color-navy);
    margin-top: var(--space-5);
    margin-bottom: var(--space-2);
}

.modal-body p {
    font-size: var(--fs-sm);
    margin-bottom: var(--space-3);
}

.modal-body ul {
    margin: 0 0 var(--space-3) var(--space-5);
    padding: 0;
}

.modal-body li {
    font-size: var(--fs-sm);
    margin-bottom: var(--space-2);
    line-height: var(--lh-relaxed);
}

.modal-body a {
    color: var(--color-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.modal-body a:hover {
    color: var(--color-cyan);
}

.modal-note {
    margin-top: var(--space-6);
    padding: var(--space-4);
    background-color: var(--color-gray-100);
    border-radius: var(--radius-md);
    font-size: var(--fs-xs);
    color: var(--color-gray-600);
}

.modal-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
    margin-top: var(--space-6);
}

/* Lightbox — imagen completa de soluciones destacadas */
.modal-lightbox {
    padding: var(--space-4);
}

.modal-content-lightbox {
    max-width: min(96vw, 1280px);
    width: auto;
    padding: var(--space-5);
    background:
        radial-gradient(circle at 80% 20%, rgba(0, 167, 200, 0.08), transparent 40%),
        linear-gradient(160deg, #030D1F 0%, #061A2F 100%);
    border-radius: var(--radius-xl);
    box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.65);
    text-align: center;
}

.modal-close-light {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    z-index: 2;
}

.modal-close-light:hover {
    background-color: var(--color-white);
    color: var(--color-navy);
}

.lightbox-figure {
    margin: 0;
}

.lightbox-figure img {
    display: block;
    max-width: 100%;
    max-height: calc(90vh - 100px);
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox-caption {
    margin-top: var(--space-4);
    padding: 0 var(--space-2);
    font-size: var(--fs-sm);
    line-height: var(--lh-relaxed);
    color: rgba(255, 255, 255, 0.82);
}

/* Opciones de cookies */
.cookie-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin: var(--space-6) 0;
    text-align: left;
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    background-color: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cookie-option:hover {
    background-color: var(--color-gray-100);
    border-color: var(--color-gray-300);
}

.cookie-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--color-blue);
    flex-shrink: 0;
}

.cookie-option strong {
    display: block;
    color: var(--color-navy);
    font-size: var(--fs-sm);
    margin-bottom: 2px;
}

.cookie-option p {
    font-size: var(--fs-xs);
    color: var(--color-gray-600);
    margin: 0;
    line-height: var(--lh-normal);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   BANNER DE COOKIES
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-overlay);
    background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 100%);
    color: var(--color-white);
    padding: var(--space-5) 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
    animation: slideUp var(--transition-slow);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 280px;
}

.cookie-banner-text strong {
    display: block;
    font-size: var(--fs-base);
    margin-bottom: var(--space-1);
}

.cookie-banner-text p {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: var(--lh-normal);
}

.cookie-banner-actions {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

/* ============================================
   ANIMACIONES DE ENTRADA AL VIEWPORT
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   ACCESIBILIDAD
   ============================================ */
.btn:focus-visible,
.nav-link:focus-visible,
.nav-cta:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   INTRO / PRELOADER PREMIUM
   Pantalla inicial: logo animado sobre fondo blanco.
   ============================================ */
body.intro-active {
    overflow: hidden;
}

.site-intro {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
    transition: opacity 700ms ease, visibility 700ms ease;
}

.site-intro.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-logo {
    padding: 0 1.5rem;
    text-align: center;
    transform: translateY(8px);
    animation: introFloat 1800ms ease forwards;
}

.intro-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    color: #061A2F;
    font-family: var(--font-heading);
    font-size: clamp(4rem, 9vw, 7rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    line-height: 1;
}

.intro-letter {
    opacity: 0;
    filter: blur(8px);
}

.intro-c {
    animation: introFromLeft 900ms ease forwards 180ms;
}

.intro-s {
    animation: introFromRight 900ms ease forwards 180ms;
}

.intro-separator {
    width: 2px;
    height: clamp(70px, 9vw, 120px);
    background: linear-gradient(180deg, transparent, #061A2F, transparent);
    transform: scaleY(0);
    transform-origin: center;
    animation: introSeparator 900ms ease forwards 250ms;
}

.intro-brand {
    margin-top: 18px;
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 600;
    letter-spacing: 0.22em;
    color: #061A2F;
    opacity: 0;
    animation: introFadeUp 700ms ease forwards 850ms;
}

.intro-subbrand {
    margin-top: 10px;
    font-family: var(--font-heading);
    font-size: clamp(0.65rem, 1.3vw, 0.95rem);
    font-weight: 500;
    letter-spacing: 0.28em;
    color: #6B7280;
    opacity: 0;
    animation: introSubbrand 800ms ease forwards 1050ms;
}

.intro-line {
    width: 0;
    height: 2px;
    margin: 22px auto 0;
    background: linear-gradient(90deg, transparent, #00A7C8, transparent);
    animation: introLine 800ms ease forwards 1250ms;
}

@keyframes introFromLeft {
    from {
        opacity: 0;
        transform: translateX(-28px);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

@keyframes introFromRight {
    from {
        opacity: 0;
        transform: translateX(28px);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

@keyframes introSeparator {
    from {
        transform: scaleY(0);
        opacity: 0;
    }
    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

@keyframes introFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes introSubbrand {
    from {
        opacity: 0;
        transform: translateY(12px);
        letter-spacing: 0.28em;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 0.48em;
    }
}

@keyframes introLine {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: min(180px, 42vw);
        opacity: 1;
    }
}

@keyframes introFloat {
    from {
        transform: translateY(10px) scale(0.98);
    }
    to {
        transform: translateY(0) scale(1);
    }
}
