/* ==========================================================================
   MOBILE HARDENING LAYER  ·  N16 Studio
   --------------------------------------------------------------------------
   Se carga DESPUES de liquid-glass.css para ganar especificidad sobre las
   reglas base. Corrige los fallos que solo se manifiestan en dispositivos
   tactiles: zoom automatico de iOS, barra de direcciones, notch, targets de
   toque, scroll horizontal y animaciones que drenan la bateria.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. PREVENCION DE SCROLL HORIZONTAL
   -------------------------------------------------------------------------- */
html {
    max-width: 100%;
    overflow-x: clip;
    -webkit-tap-highlight-color: transparent;
}

body {
    max-width: 100%;
    overflow-x: clip;
    overscroll-behavior-y: auto;
    -webkit-tap-highlight-color: transparent;
}

/* Respuesta táctil instantánea (elimina el retraso de 300ms en pulsaciones) */
a, button, input, select, textarea,
.nav-toggle, .btn-liquid-primary, .btn-liquid-secondary,
.btn-pillar-drawer-toggle, .pillar-card, .pricing-card,
.circuit-duo-card, .service-card, .sticky-whatsapp-btn,
.modal-close-btn, .form-submit-btn, .pill-toggle,
.hero-feat-tag, .chip-tag, .interactive-tag,
.pres-step-tab, .dock-brand, .filter-chip {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Scroll con inercia en contenedores internos scrollables (solo iOS) */
.scroller-x,
.scroller-y,
.table-scroll,
.filter-bar-scroll {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.table-scroll {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Indica al usuario que la tabla se desplaza lateralmente */
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0)),
        linear-gradient(to left, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
    background-position: left center, right center;
    background-repeat: no-repeat;
    background-size: 26px 100%, 26px 100%;
    background-attachment: scroll, scroll;
}

/* --------------------------------------------------------------------------
   2. MEDIOS: NUNCA DESBORDAN SU CONTENEDOR
   -------------------------------------------------------------------------- */
img,
video,
canvas,
svg,
iframe,
embed,
object {
    max-width: 100%;
}

img,
video,
canvas {
    height: auto;
}

/* Los <video> de fondo no deben forzar la altura del documento */
video {
    max-height: 100%;
}

/* --------------------------------------------------------------------------
   3. INPUTS: 16px MINIMOS  (regla critica de iOS)
   --------------------------------------------------------------------------
   Safari en iOS hace zoom automatico al enfocar cualquier control con
   font-size < 16px, y NO vuelve al 100% al cerrar el teclado. El usuario
   queda atrapado en una pagina ampliada. El !important es necesario porque
   existen estilos inline con px menores que hay que sobrescribir.
   -------------------------------------------------------------------------- */
input,
select,
textarea,
button {
    font-family: inherit;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]),
select,
textarea {
    font-size: 16px !important;
    line-height: 1.45;
    min-height: 48px; /* target tactil comodo */
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input[type="checkbox"],
input[type="radio"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    accent-color: var(--accent-blue, #2563EB);
    /* Safari no respeta min-height: 0 */
    box-sizing: border-box;
}

/* En escritorio mantenemos el aspecto compacto original */
@media (min-width: 1024px) {
    .form-input,
    .form-textarea {
        min-height: 0;
    }

    .form-textarea {
        min-height: 140px;
    }
}

/* --------------------------------------------------------------------------
   4. SAFE AREAS (notch, barra de inicio, island dynamic en iPhone)
   -------------------------------------------------------------------------- */
:root {
    --sat: env(safe-area-inset-top, 0px);
    --sar: env(safe-area-inset-right, 0px);
    --sab: env(safe-area-inset-bottom, 0px);
    --sal: env(safe-area-inset-left, 0px);
}

/* Barra de anuncio superior (diseño compacto, moderno y ultra-profesional) */
.announcement-bar {
    padding-left: max(14px, var(--sal));
    padding-right: max(14px, var(--sar));
    padding-top: max(8px, calc(var(--sat) * 0.5));
    padding-bottom: 8px;
    gap: 10px;
    min-height: auto;
}

.announcement-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    line-height: 1.25;
    color: var(--text-secondary);
}

.announcement-copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.show-mobile-compact {
    display: none;
}

.hide-mobile-extra {
    display: inline;
}

/* Indicador de estado en vivo con micro-pulso de radar */
.live-status-dot {
    position: relative;
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 2px;
}

.live-status-dot.green {
    background-color: #10B981;
    box-shadow: 0 0 0 1.5px rgba(16, 185, 129, 0.25), 0 0 8px rgba(16, 185, 129, 0.6);
}

.live-status-dot.green::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1.5px solid #10B981;
    animation: liveRadarPulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.live-status-dot.red {
    background-color: #EF4444;
    box-shadow: 0 0 0 1.5px rgba(239, 68, 68, 0.25), 0 0 8px rgba(239, 68, 68, 0.6);
}

.live-status-dot.red::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1.5px solid #EF4444;
    animation: liveRadarPulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes liveRadarPulse {
    0% { transform: scale(0.9); opacity: 0.9; }
    70%, 100% { transform: scale(2.3); opacity: 0; }
}

@media (max-width: 640px) {
    .announcement-bar {
        padding-top: max(6px, calc(var(--sat) * 0.5));
        padding-bottom: 6px;
        padding-left: max(10px, var(--sal));
        padding-right: max(10px, var(--sar));
        gap: 7px;
        white-space: nowrap;
        overflow: hidden;
        justify-content: center;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .announcement-badge {
        flex-shrink: 0;
        padding: 2.5px 7px;
        font-size: 9.5px;
        font-weight: 700;
        letter-spacing: 0.04em;
        line-height: 1.15;
        border-radius: 999px;
        box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
        white-space: nowrap;
    }

    .announcement-text,
    .announcement-bar > span:not(.announcement-badge) {
        flex-shrink: 1;
        min-width: 0;
        font-size: 11.5px;
        gap: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-flex;
        align-items: center;
    }

    .hide-mobile-extra {
        display: none !important;
    }

    .show-mobile-compact {
        display: inline !important;
    }

    /* Grid de Directorio en móvil: 2 por fila ultra-compacto */
    .directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        margin-bottom: 30px !important;
    }

    .merchant-card {
        border-radius: 16px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        height: 100% !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
    }

    .merchant-card.is-spotlight-active .merchant-img-wrap::after {
        top: 6px !important;
        right: 6px !important;
        font-size: 8px !important;
        padding: 2px 6px !important;
        border-radius: 6px !important;
        content: '⭐ Protagonista' !important;
    }

    .merchant-img-wrap {
        height: 112px !important;
        border-radius: 15px 15px 0 0 !important;
    }

    .merchant-body {
        padding: 9px 9px 6px !important;
        gap: 4px !important;
        display: flex !important;
        flex-direction: column !important;
        flex-grow: 1 !important;
    }

    .merchant-body > div:first-child {
        gap: 4px !important;
        margin-bottom: 2px !important;
    }

    .merchant-cat {
        font-size: 9px !important;
        letter-spacing: 0.02em !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 70px !important;
    }

    .merchant-neighborhood-badge {
        font-size: 8.5px !important;
        padding: 1.5px 5px !important;
        border-radius: 5px !important;
        white-space: nowrap !important;
    }

    .merchant-title {
        font-size: 13px !important;
        line-height: 1.2 !important;
        margin-bottom: 2px !important;
        font-weight: 800 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        word-break: break-word !important;
    }

    .merchant-desc {
        font-size: 10.5px !important;
        line-height: 1.3 !important;
        margin-bottom: 3px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        color: var(--text-muted) !important;
    }

    .merchant-intent-tags {
        display: none !important;
    }

    .merchant-address-row {
        font-size: 9.5px !important;
        gap: 3px !important;
        margin-top: auto !important;
        padding-top: 2px !important;
    }

    .merchant-address-row svg {
        width: 11px !important;
        height: 11px !important;
        flex-shrink: 0 !important;
    }

    .merchant-actions-footer {
        padding: 6px 8px 8px !important;
        border-top: 1px solid rgba(226, 232, 240, 0.7) !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
    }

    .merchant-quick-actions {
        display: flex !important;
        gap: 4px !important;
        width: 100% !important;
    }

    .merchant-quick-actions .quick-action-btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        height: 28px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 7px !important;
    }

    .merchant-quick-actions .quick-action-btn svg {
        width: 13px !important;
        height: 13px !important;
    }

    .btn-view-profile {
        width: 100% !important;
        height: 29px !important;
        padding: 0 4px !important;
        font-size: 11px !important;
        border-radius: 7px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
    }
}

/* Boton flotante de WhatsApp: nunca debe quedar bajo la barra de inicio */
.sticky-whatsapp-btn {
    bottom: calc(24px + var(--sab)) !important;
    right: calc(24px + var(--sar)) !important;
}

/* Barra de navegacion superior con relleno del notch */
.header-nav {
    padding-top: max(0px, var(--sat));
}

/* --------------------------------------------------------------------------
   5. TARGETS DE TOQUE MINIMOS 44x44 (WCAG 2.5.5)
   -------------------------------------------------------------------------- */
.nav-link,
.modal-close-btn,
.nav-toggle {
    min-height: 44px;
    min-width: 44px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
}

.modal-close-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Feedback tactil: en movil no hay hover, se usa :active */
@media (hover: none) {
    .nav-link:hover,
    .service-card:hover,
    .pricing-card:hover,
    .btn-liquid-primary:hover {
        transform: none;
    }

    .nav-link:active,
    .btn-liquid-primary:active {
        transform: scale(0.97);
        opacity: 0.9;
    }
}

/* --------------------------------------------------------------------------
   6. MOVIMIENTO REDUCIDO  (acessibilidad + bateria en movil)
   --------------------------------------------------------------------------
   El sitio tiene auroras, parallax, reveals y bucles rAF permanentes. Sin este
   bloque el telefono consume CPU y bateria de forma continua.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .aurora-stream,
    .aurora-grid-pattern {
        animation: none !important;
    }

    /* Los reveals deben verse siempre: si no, el contenido queda invisible */
    .reveal-fade-up,
    .reveal-fade-up.revealed {
        animation: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
    }

    /* Los scrubbers NO se reescriben a static: el JS controla la visibilidad
       de cada capitulo con clases, y aplanar el layout dejaria 3 de 4
       capitulos permanentemente ocultos. Aqui solo se anula la animacion
       (transition-duration global) y el parallax se desactiva en JS. */
    .presentation-scrubber-section,
    .scroll-scrubber-section {
        height: 260vh;
    }
}

/* --------------------------------------------------------------------------
   6.1. OPTIMIZACIÓN EXTREMA DE RENDIMIENTO GRÁFICO (GPU & 60FPS EN MÓVIL)
   --------------------------------------------------------------------------
   En móvil desactivamos animaciones infinitas de blurs pesados de 75px.
   Sustituimos el costoso backdrop-filter en tarjetas repetitivas por fondos
   de vidrio de alto rendimiento con alta opacidad. Esto ahorra hasta un 60%
   de ciclos de GPU, eliminando el lag y garantizando scroll sedoso a 60/120fps.
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .aurora-bg-container {
        contain: strict;
        pointer-events: none;
        opacity: 0.85;
    }

    .aurora-stream {
        animation: none !important;
        filter: blur(35px) !important;
        will-change: auto !important;
        transform: translateZ(0) !important;
    }

    .aurora-bg {
        animation: none !important;
        filter: none !important;
        opacity: 0.25 !important;
    }

    .aurora-grid-pattern {
        animation: none !important;
    }

    /* Liberación de texturas GPU en reveals completados */
    .reveal-fade-up.is-visible {
        will-change: auto !important;
    }

    /* Rendimiento superior: fondos nítidos sin backdrop-filter pesado en tarjetas */
    .pillar-card,
    .pricing-card,
    .circuit-duo-card,
    .service-card,
    .dock-container,
    .spotlight-card,
    .spotlight-ad-card,
    .compact-details-inner,
    .comparison-table-wrapper,
    .circuit-spec-col,
    .pillar-detail-col {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(255, 255, 255, 0.96) !important;
    }

    [data-theme="dark"] .pillar-card,
    [data-theme="dark"] .pricing-card,
    [data-theme="dark"] .circuit-duo-card,
    [data-theme="dark"] .service-card,
    [data-theme="dark"] .dock-container,
    [data-theme="dark"] .spotlight-card,
    [data-theme="dark"] .spotlight-ad-card,
    [data-theme="dark"] .compact-details-inner,
    [data-theme="dark"] .comparison-table-wrapper,
    [data-theme="dark"] .circuit-spec-col,
    [data-theme="dark"] .pillar-detail-col {
        background: rgba(15, 23, 42, 0.96) !important;
    }
}

/* ==========================================================================
   7. NAVEGACION MOVIL (menu desplegable)
   ========================================================================== */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: 14px;
    cursor: pointer;
    color: var(--text-primary, #0F172A);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle-box {
    display: block;
    width: 20px;
    height: 14px;
    position: relative;
}

.nav-toggle-box span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.28s ease, opacity 0.2s ease, top 0.28s ease;
}

.nav-toggle-box span:nth-child(1) { top: 0; }
.nav-toggle-box span:nth-child(2) { top: 6px; }
.nav-toggle-box span:nth-child(3) { top: 12px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
}

/* App Wrapper: z-index auto para no aislar el menu en un stacking context inferior al backdrop */
.app-wrapper {
    z-index: auto !important;
}

/* Velo que cierra el menu al tocar fuera */
.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

body.nav-open .nav-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* Punto de corte: por debajo el nav de escritorio no cabe */
@media (max-width: 991px) {
    .header-nav {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        flex-wrap: nowrap;
        gap: 12px;
        z-index: 1001;
    }

    body.nav-open .header-nav {
        z-index: 1001;
    }

    .brand-logo {
        flex-shrink: 0;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
        flex-shrink: 0;
        position: relative;
        z-index: 1002;
    }

    .nav-actions {
        /* Panel desplegable a ancho completo del contenedor */
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        width: 100%;
        box-sizing: border-box;
        z-index: 1002;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 14px;
        background: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: blur(28px) saturate(180%);
        backdrop-filter: blur(28px) saturate(180%);
        border: 1px solid rgba(203, 213, 225, 0.85);
        border-radius: 20px;
        box-shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.25);
        max-height: calc(100dvh - 120px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;

        /* Estado cerrado: fuera de pantalla y no interactuable */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px) scale(0.98);
        transform-origin: top center;
        transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s;
    }

    body.nav-open .nav-actions {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .nav-actions .nav-link {
        justify-content: flex-start;
        width: 100%;
        padding: 12px 16px;
        font-size: 15.5px;
    }

    .nav-actions .btn-liquid-primary {
        width: 100%;
        justify-content: center;
        padding: 13px 20px !important;
        font-size: 15.5px !important;
        margin-top: 4px;
    }
}

/* Si el usuario abre el menu y luego gira el movil a horizontal,
   el nav vuelve a escritorio pero el body podria quedar bloqueado */
@media (min-width: 992px) {
    body.nav-open {
        overflow: visible;
    }
}

/* ==========================================================================
   8. PANTALLAS PEQUENAS  (480px / 360px)
   ========================================================================== */
@media (max-width: 480px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-title {
        font-size: clamp(1.75rem, 8.5vw, 2.25rem);
        line-height: 1.15;
    }

    .btn-liquid-primary {
        padding: 14px 24px;
        font-size: 15px;
    }

    .creative-relief-banner,
    .pricing-roi-summary-strip {
        padding: 14px;
    }

    /* min-width: 280px desborda con padding en pantallas de 320px */
    .roi-strip-left {
        min-width: 0;
        flex-wrap: wrap;
    }

    .presentation-scrubber-section,
    .scroll-scrubber-section {
        /* 500vh en un movil de 600px de alto = scroll interminable */
        height: 320vh;
    }

    .modal-card {
        padding: 20px 16px;
        max-height: 88dvh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sticky-whatsapp-btn {
        width: 48px;
        height: 48px;
        bottom: calc(16px + var(--sab)) !important;
        right: calc(16px + var(--sar)) !important;
    }
}

@media (max-width: 360px) {
    .container {
        padding-left: 13px;
        padding-right: 13px;
    }

    .nav-actions .nav-link {
        padding: 12px 13px;
        font-size: 15px;
    }

    .btn-liquid-primary {
        padding: 13px 18px;
        font-size: 14.5px;
    }

    .spotlight-body,
    .spotlight-ad-body,
    .merchant-showcase-body,
    .merchant-ad-body {
        padding: 14px;
    }
}

/* ==========================================================================
   9. ACCESIBILIDAD GENERICA
   ========================================================================== */
:focus-visible {
    outline: 3px solid var(--accent-blue, #2563EB);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Safari iOS antiguo no soporta :focus-visible */
@supports not selector(:focus-visible) {
    a:focus,
    button:focus,
    input:focus,
    select:focus,
    textarea:focus {
        outline: 3px solid var(--accent-blue, #2563EB);
        outline-offset: 2px;
    }
}

::selection {
    background: rgba(37, 99, 235, 0.22);
    color: inherit;
}

/* iOS: evita el zoom por doble toque en elementos con onclick */
[onclick] {
    touch-action: manipulation;
}

/* ==========================================================================
   HERO METRICS DOCK & ACCIONES COMPACTAS (MÓVIL)
   ========================================================================== */
@media (max-width: 768px) {
    .hero-feature-tags {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0 !important;
        margin-bottom: 14px !important;
        padding: 6px 4px !important;
        background: rgba(255, 255, 255, 0.88) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
        border: 1px solid rgba(203, 213, 225, 0.85) !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05) !important;
    }

    .hero-feat-tag {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 6px 2px !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        gap: 3px !important;
        font-size: 11.5px !important;
        line-height: 1.25 !important;
    }

    .hero-feat-tag:not(:last-child) {
        border-right: 1px solid rgba(226, 232, 240, 0.85) !important;
    }

    .hero-feat-tag svg {
        width: 15px !important;
        height: 15px !important;
        color: #2563EB !important;
    }

    .hero-cta-group {
        display: grid !important;
        grid-template-columns: 1.15fr 0.85fr !important;
        gap: 8px !important;
        width: 100% !important;
        margin-bottom: 10px !important;
    }

    .hero-cta-group .btn-liquid-primary,
    .hero-cta-group .btn-liquid-secondary {
        width: 100% !important;
        padding: 12px 6px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        border-radius: 999px !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
    }

    .hero-cta-group .btn-liquid-primary svg {
        width: 14px !important;
        height: 14px !important;
    }

    .hero-trust-reassurance {
        font-size: 11.5px !important;
        margin-top: 4px !important;
        gap: 6px !important;
    }

    .hero-trust-reassurance svg {
        width: 14px !important;
        height: 14px !important;
    }
}

/* Modo oscuro para hero metrics dock */
[data-theme="dark"] .hero-feature-tags {
    background: rgba(15, 23, 42, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
[data-theme="dark"] .hero-feat-tag:not(:last-child) {
    border-right-color: rgba(255, 255, 255, 0.08) !important;
}
[data-theme="dark"] .hero-feat-tag {
    color: var(--text-primary) !important;
}

/* ==========================================================================
   SCROLL-SCRUBBER INTERACTIVO EN MÓVIL (APPLE-STYLE RESPONSIVE)
   ========================================================================== */
@media (max-width: 768px) {
    .scroll-scrubber-section,
    #scrollStory {
        position: relative !important;
        height: 180vh !important;
        z-index: 1 !important;
    }

    .scroll-scrubber-track {
        position: sticky !important;
        top: 0 !important;
        height: 100dvh !important;
        width: 100% !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
    }

    .scroll-scrubber-sticky {
        width: 100% !important;
        height: 100% !important;
        position: relative !important;
    }

    .scroll-video-wrapper {
        width: 100% !important;
        height: 100% !important;
        position: relative !important;
        overflow: hidden !important;
    }

    /* Fondo animado aurora suave */
    .aurora-bg {
        display: block !important;
        position: absolute !important;
        inset: 0 !important;
        opacity: 0.25 !important;
        pointer-events: none !important;
    }

    /* Tipografía cinética escalada y estilizada como marca de agua en móvil */
    .kinetic-typography-wrapper {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
        pointer-events: none !important;
        z-index: 1 !important;
        background: transparent !important;
    }

    .kin-word {
        position: absolute !important;
        font-family: 'Plus Jakarta Sans', sans-serif !important;
        font-weight: 900 !important;
        text-transform: uppercase !important;
        white-space: nowrap !important;
        opacity: 0.20 !important;
        will-change: transform !important;
    }

    .kw-1 {
        font-size: clamp(4.5rem, 16vw, 7rem) !important;
        top: 8% !important; left: -5% !important;
        color: rgba(37, 99, 235, 0.05) !important;
        -webkit-text-stroke: 1.5px rgba(37, 99, 235, 0.4) !important;
    }
    .kw-2 {
        font-size: clamp(4.5rem, 16vw, 7rem) !important;
        top: 30% !important; right: -10% !important;
        color: rgba(56, 189, 248, 0.05) !important;
        -webkit-text-stroke: 1.5px rgba(56, 189, 248, 0.4) !important;
    }
    .kw-3 {
        font-size: clamp(4rem, 14vw, 6rem) !important;
        top: 60% !important; left: 2% !important;
        color: rgba(29, 78, 216, 0.06) !important;
        -webkit-text-stroke: 1.5px rgba(29, 78, 216, 0.4) !important;
    }
    .kw-4 {
        font-size: clamp(4.5rem, 16vw, 7rem) !important;
        top: 78% !important; left: -10% !important;
        color: rgba(99, 102, 241, 0.05) !important;
        -webkit-text-stroke: 1.5px rgba(99, 102, 241, 0.35) !important;
    }

    /* Capítulo: Tarjeta flotante centrada perfectamente en la pantalla */
    .scrubber-chapter {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        bottom: auto !important;
        right: auto !important;
        margin: 0 !important;
        transform: translate(-50%, -46%) scale(0.96) !important;
        width: calc(100% - 28px) !important;
        max-width: 400px !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 22px 18px !important;
        gap: 12px !important;
        border-radius: 22px !important;
        background: rgba(255, 255, 255, 0.96) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: 1px solid rgba(203, 213, 225, 0.9) !important;
        box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.16) !important;
        z-index: 3 !important;
        opacity: 0 !important;
        filter: none !important;
        pointer-events: none !important;
        transition: opacity 0.28s ease,
                    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    [data-theme="dark"] .scrubber-chapter {
        background: rgba(15, 23, 42, 0.96) !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
        box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.55) !important;
    }

    .scrubber-chapter.schap-visible {
        opacity: 1 !important;
        filter: none !important;
        transform: translate(-50%, -50%) scale(1) !important;
        pointer-events: auto !important;
    }

    .scrubber-chapter > div > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .scrubber-col-left {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 6px !important;
    }

    .schap-eyebrow {
        font-size: 0.72rem !important;
        font-weight: 800 !important;
        letter-spacing: 0.14em !important;
        color: var(--accent-blue, #2563EB) !important;
        text-transform: uppercase !important;
    }

    .schap-title {
        font-size: 1.5rem !important;
        line-height: 1.18 !important;
        font-weight: 800 !important;
        letter-spacing: -0.03em !important;
        margin: 0 !important;
        color: var(--text-hero, #090E1A) !important;
    }

    .schap-body {
        font-size: 0.88rem !important;
        line-height: 1.45 !important;
        color: var(--text-secondary, #64748B) !important;
        margin: 0 !important;
        max-width: 320px !important;
    }

    .scrubber-col-right {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        align-items: center !important;
        gap: 12px !important;
        border-top: 1px solid rgba(226, 232, 240, 0.8) !important;
        padding-top: 12px !important;
        margin-top: 2px !important;
    }

    [data-theme="dark"] .scrubber-col-right {
        border-top-color: rgba(255, 255, 255, 0.08) !important;
    }

    .schap-stat {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 2px !important;
        text-align: center !important;
    }

    .schap-num {
        font-size: 1.6rem !important;
        font-weight: 900 !important;
        color: var(--accent-blue, #2563EB) !important;
        line-height: 1.1 !important;
        letter-spacing: -0.03em !important;
    }

    .schap-label {
        font-size: 0.7rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.04em !important;
        text-transform: uppercase !important;
        color: var(--text-secondary, #64748B) !important;
        line-height: 1.25 !important;
    }

    .schap-cta-inline {
        width: 100% !important;
        margin-top: 4px !important;
    }

    .schap-cta-inline .schap-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 18px !important;
        font-size: 13.5px !important;
        font-weight: 700 !important;
        border-radius: 999px !important;
    }

    /* Barra de progreso inferior y guía interactiva */
    .scroll-video-overlay {
        position: absolute !important;
        inset: 0 !important;
        pointer-events: none !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        padding: 0 18px calc(12px + var(--sab, 0px)) !important;
        gap: 6px !important;
        z-index: 4 !important;
        background: transparent !important;
    }

    .scrubber-progress-bar {
        width: 100% !important;
        height: 3px !important;
        background: rgba(148, 163, 184, 0.25) !important;
        border-radius: 99px !important;
        overflow: hidden !important;
    }

    .scrubber-progress-fill {
        height: 100% !important;
        width: 0% !important;
        background: linear-gradient(90deg, #3B82F6, #06B6D4) !important;
        border-radius: 99px !important;
        transition: width 0.05s linear !important;
    }

    .scrubber-hint {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        color: var(--text-secondary, #64748B) !important;
        font-size: 0.72rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.04em !important;
    }

    .scrubber-hint svg {
        width: 12px !important;
        height: 12px !important;
    }
}

/* ==========================================================================
   PRESENTATION STORY / CARACTERÍSTICAS CINEMÁTICAS CON SCROLL EN MÓVIL
   ========================================================================== */
@media (max-width: 768px) {
    .presentation-scrubber-section,
    #presentationStory {
        height: 190vh !important;
        position: relative !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .presentation-sticky-wrapper {
        position: sticky !important;
        top: 0 !important;
        height: 100vh !important;
        height: 100dvh !important;
        width: 100% !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        perspective: 1000px !important;
        z-index: 5 !important;
    }

    .presentation-static-header {
        position: absolute !important;
        top: calc(8px + var(--sat, 0px)) !important;
        left: 0 !important;
        width: 100% !important;
        text-align: center !important;
        z-index: 10 !important;
        padding: 0 16px !important;
        pointer-events: none !important;
        margin-bottom: 0 !important;
    }

    .presentation-static-header .premium-supertitle-badge {
        display: inline-block !important;
        padding: 3px 10px !important;
        font-size: 0.68rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.05em !important;
        margin-bottom: 2px !important;
        border-radius: 99px !important;
    }

    .presentation-static-header .premium-main-title {
        font-size: clamp(1.15rem, 4.4vw, 1.4rem) !important;
        line-height: 1.18 !important;
        font-weight: 800 !important;
        letter-spacing: -0.03em !important;
        margin-top: 3px !important;
        margin-bottom: 0 !important;
    }

    .presentation-chapter-container {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 2 !important;
        pointer-events: none !important;
    }

    .presentation-chapter {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: calc(65px + var(--sat, 0px)) 14px calc(42px + var(--sab, 0px)) !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        opacity: 0;
        pointer-events: none;
        transition: none !important;
    }

    .presentation-chapter.active {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .presentation-chapter .container {
        padding: 0 !important;
        max-width: 420px !important;
        width: 100% !important;
        margin: 0 auto !important;
        pointer-events: auto !important;
    }

    .premium-feature-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-bottom: 0 !important;
        padding: 16px 16px !important;
        background: rgba(255, 255, 255, 0.96) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: 1px solid rgba(203, 213, 225, 0.9) !important;
        border-radius: 20px !important;
        box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.14) !important;
        max-height: none !important;
        overflow: visible !important;
    }

    [data-theme="dark"] .premium-feature-row {
        background: rgba(15, 23, 42, 0.96) !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
        box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.5) !important;
    }

    .premium-feature-row.inverted .premium-feature-text,
    .premium-feature-text {
        padding: 0 !important;
        order: 1 !important;
    }

    .premium-feature-row.inverted .premium-feature-media,
    .premium-feature-media {
        order: 2 !important;
        width: 100% !important;
    }

    .pf-title {
        font-size: 1.15rem !important;
        font-weight: 800 !important;
        line-height: 1.22 !important;
        letter-spacing: -0.02em !important;
        margin-bottom: 3px !important;
        color: var(--text-hero, #090E1A) !important;
    }

    [data-theme="dark"] .pf-title {
        color: #F8FAFC !important;
    }

    .pf-subtitle {
        font-size: 0.8rem !important;
        line-height: 1.35 !important;
        color: var(--text-secondary, #64748B) !important;
        margin-bottom: 8px !important;
    }

    .pf-bullets {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .pf-bullets li {
        display: flex !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .pf-bullets li svg {
        width: 16px !important;
        height: 16px !important;
        color: var(--primary-accent, #2563EB) !important;
        flex-shrink: 0 !important;
        margin-top: 2px !important;
    }

    .pf-bullets strong {
        display: block !important;
        font-size: 0.84rem !important;
        font-weight: 700 !important;
        color: var(--text-primary, #0F172A) !important;
        line-height: 1.2 !important;
        margin-bottom: 1px !important;
    }

    [data-theme="dark"] .pf-bullets strong {
        color: #F1F5F9 !important;
    }

    .pf-bullets span {
        display: block !important;
        font-size: 0.76rem !important;
        color: var(--text-secondary, #64748B) !important;
        line-height: 1.3 !important;
    }

    /* Imagen normal en Slides 1 y 2 */
    .pf-image-wrapper {
        position: relative !important;
        width: 100% !important;
        height: 110px !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.18) !important;
    }

    .pf-image-wrapper img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .pf-live-badge {
        position: absolute !important;
        bottom: 6px !important;
        left: 6px !important;
        padding: 3px 8px !important;
        font-size: 0.65rem !important;
        font-weight: 700 !important;
        border-radius: 6px !important;
        background: rgba(15, 23, 42, 0.82) !important;
        color: #fff !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
    }

    /* Composición dual en Slide 3 */
    .staggered-premium-composition {
        position: relative !important;
        width: 100% !important;
        height: 95px !important;
        margin: 2px 0 !important;
    }

    .stagger-img-back {
        position: absolute !important;
        top: 0 !important;
        right: 12px !important;
        width: 60% !important;
        height: 80px !important;
        object-fit: cover !important;
        border-radius: 10px !important;
        opacity: 0.75 !important;
        box-shadow: 0 8px 18px -4px rgba(0, 0, 0, 0.2) !important;
        transform: rotate(-2deg) !important;
    }

    .stagger-img-front {
        position: absolute !important;
        bottom: 0 !important;
        left: 12px !important;
        width: 60% !important;
        height: 80px !important;
        object-fit: cover !important;
        border-radius: 10px !important;
        border: 2px solid #ffffff !important;
        box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.35) !important;
        transform: rotate(2deg) !important;
    }

    [data-theme="dark"] .stagger-img-front {
        border-color: #0F172A !important;
    }

    .pf-actions {
        margin-top: 8px !important;
        width: 100% !important;
    }

    .pf-actions .btn-liquid-primary {
        width: 100% !important;
        justify-content: center !important;
        padding: 9px 16px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        border-radius: 999px !important;
    }

    /* Tipografía cinética de fondo como marca de agua sutil */
    .kin-word.pres-kw {
        display: block !important;
        font-size: clamp(3.2rem, 13vw, 4.8rem) !important;
        -webkit-text-stroke: 1.5px rgba(37, 99, 235, 0.18) !important;
        opacity: 0.08 !important;
        pointer-events: none !important;
    }

    .kin-word.pres-kw.kw-1 {
        top: 4% !important;
        left: -10px !important;
    }

    .kin-word.pres-kw.kw-2 {
        top: 72% !important;
        right: -10px !important;
    }

    /* Dock de progreso en la parte inferior */
    .presentation-progress-dock {
        position: absolute !important;
        bottom: calc(14px + var(--sab, 0px)) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 80px) !important;
        max-width: 310px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 5px !important;
        z-index: 15 !important;
        pointer-events: none !important;
    }

    .pres-progress-bar {
        width: 100% !important;
        height: 3px !important;
        background: rgba(148, 163, 184, 0.25) !important;
        border-radius: 99px !important;
        overflow: hidden !important;
    }

    .pres-progress-fill {
        height: 100% !important;
        width: 0% !important;
        background: linear-gradient(90deg, #3B82F6, #06B6D4) !important;
        border-radius: 99px !important;
        transition: width 0.05s linear !important;
    }

    .pres-steps-row {
        display: flex !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 0 4px !important;
    }

    .pres-step {
        font-size: 0.68rem !important;
        font-weight: 600 !important;
        color: var(--text-secondary, #64748B) !important;
        letter-spacing: 0.02em !important;
        opacity: 0.55 !important;
        transition: opacity 0.25s ease, color 0.25s ease !important;
    }

    .pres-step.active {
        opacity: 1 !important;
        color: var(--primary-accent, #2563EB) !important;
        font-weight: 800 !important;
    }

    /* ==========================================================================
       FICHA DE NEGOCIO PREMIUM (SECCIÓN SPOTLIGHT COMPACTA PARA MÓVIL)
       ========================================================================== */
    .section-spotlight,
    #comercio-destacado {
        padding: 34px 14px 28px !important;
        overflow: hidden !important;
    }

    .spotlight-section-header {
        margin-bottom: 14px !important;
        text-align: center !important;
    }

    .spotlight-section-header .premium-supertitle-badge {
        font-size: 0.68rem !important;
        padding: 3px 10px !important;
        margin-bottom: 4px !important;
        display: inline-block !important;
    }

    .spotlight-section-title {
        font-size: clamp(1.22rem, 5vw, 1.45rem) !important;
        line-height: 1.2 !important;
        font-weight: 800 !important;
        letter-spacing: -0.02em !important;
        margin: 0 0 6px !important;
    }

    .spotlight-section-subtitle {
        font-size: 0.82rem !important;
        line-height: 1.4 !important;
        max-width: 360px !important;
        margin: 0 auto !important;
        color: var(--text-secondary, #64748B) !important;
    }

    /* Tarjeta compacta estilizada */
    .spotlight-card {
        grid-template-columns: 1fr !important;
        max-width: 380px !important;
        margin: 0 auto !important;
        border-radius: 20px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border: 1px solid rgba(226, 232, 240, 0.9) !important;
        box-shadow: 0 10px 25px -6px rgba(15, 23, 42, 0.1) !important;
        overflow: hidden !important;
        transition: none !important;
    }

    [data-theme="dark"] .spotlight-card {
        background: rgba(15, 23, 42, 0.92) !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
        box-shadow: 0 10px 25px -6px rgba(0, 0, 0, 0.5) !important;
    }

    /* Foto compacta proporcionada (125px en lugar de 220px) */
    .spotlight-media {
        height: 125px !important;
        min-height: 125px !important;
        max-height: 125px !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .spotlight-media img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Cuerpo compacto de la tarjeta */
    .spotlight-body {
        padding: 12px 14px 14px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
    }

    .spotlight-status-row {
        margin-bottom: 2px !important;
        gap: 6px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .spotlight-active-badge {
        font-size: 9.5px !important;
        padding: 2px 7px !important;
        gap: 5px !important;
        letter-spacing: 0.03em !important;
        font-weight: 800 !important;
    }

    .spotlight-active-badge .spotlight-active-dot {
        width: 5px !important;
        height: 5px !important;
    }

    .spotlight-location-badge {
        font-size: 10px !important;
        font-weight: 600 !important;
        color: #64748B !important;
    }

    .spotlight-cat {
        font-size: 10px !important;
        margin-bottom: 1px !important;
        letter-spacing: 0.04em !important;
        font-weight: 700 !important;
        display: block !important;
    }

    .spotlight-merchant-title {
        font-size: 1.15rem !important;
        line-height: 1.22 !important;
        font-weight: 800 !important;
        margin: 0 0 3px !important;
        color: var(--text-hero, #090E1A) !important;
    }

    [data-theme="dark"] .spotlight-merchant-title {
        color: #F8FAFC !important;
    }

    .spotlight-merchant-desc {
        font-size: 0.78rem !important;
        line-height: 1.38 !important;
        margin: 0 0 6px !important;
        color: var(--text-secondary, #64748B) !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .spotlight-merchant-address {
        font-size: 11px !important;
        gap: 4px !important;
        margin-top: 0 !important;
        color: var(--text-muted, #94A3B8) !important;
    }

    .spotlight-merchant-address svg {
        width: 12px !important;
        height: 12px !important;
        flex-shrink: 0 !important;
    }

    /* Fila de acciones compacta */
    .spotlight-actions-row {
        border-top: 1px solid rgba(226, 232, 240, 0.7) !important;
        padding-top: 9px !important;
        margin-top: 6px !important;
        display: flex !important;
        gap: 6px !important;
        flex-wrap: wrap !important;
        align-items: center !important;
    }

    [data-theme="dark"] .spotlight-actions-row {
        border-top-color: rgba(255, 255, 255, 0.08) !important;
    }

    .spotlight-actions-row .merchant-showcase-quick-btn {
        flex: 1 1 auto !important;
        padding: 5px 8px !important;
        font-size: 11px !important;
        border-radius: 8px !important;
        gap: 4px !important;
        justify-content: center !important;
        height: 30px !important;
    }

    .spotlight-actions-row .spotlight-view-btn {
        flex: 1 1 100% !important;
        margin-left: 0 !important;
        margin-top: 4px !important;
        padding: 8px 14px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        border-radius: 999px !important;
        justify-content: center !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
    }

    /* ==========================================================================
       FOOTER PREMIUM MÓVIL
       ========================================================================== */
    .site-footer {
        padding: 32px 16px calc(88px + var(--sab, 0px)) !important;
        text-align: center !important;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.99) 100%) !important;
        border-top: 1px solid rgba(226, 232, 240, 0.9) !important;
    }

    [data-theme="dark"] .site-footer {
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(10, 15, 26, 0.99) 100%) !important;
        border-top-color: rgba(255, 255, 255, 0.08) !important;
    }

    .footer-top-row {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding-bottom: 22px !important;
        align-items: center !important;
        border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
    }

    [data-theme="dark"] .footer-top-row {
        border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    }

    .footer-brand-col {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 8px !important;
    }

    .footer-brand-wrap {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin-bottom: 2px !important;
    }

    .footer-logo {
        height: 24px !important;
        width: auto !important;
    }

    .footer-brand-badge {
        font-size: 10px !important;
        padding: 2px 8px !important;
        border-radius: 999px !important;
    }

    .footer-brand-tagline {
        font-size: 0.78rem !important;
        line-height: 1.45 !important;
        max-width: 320px !important;
        margin: 0 auto !important;
        color: var(--text-secondary, #64748B) !important;
    }

    .footer-nav-grid {
        display: flex !important;
        justify-content: center !important;
        gap: 32px !important;
        width: 100% !important;
    }

    .footer-nav-col {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .footer-nav-heading {
        font-size: 10.5px !important;
        font-weight: 800 !important;
        letter-spacing: 0.08em !important;
        text-transform: uppercase !important;
        color: var(--text-hero, #0F172A) !important;
        margin-bottom: 2px !important;
    }

    [data-theme="dark"] .footer-nav-heading {
        color: #F8FAFC !important;
    }

    .footer-nav-col a {
        font-size: 12px !important;
        padding: 3px 6px !important;
        color: var(--text-secondary, #64748B) !important;
        text-decoration: none !important;
    }

    .footer-bottom-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        padding-top: 18px !important;
        text-align: center !important;
    }

    .footer-copy {
        font-size: 11px !important;
        color: var(--text-secondary, #64748B) !important;
        order: 2 !important;
    }

    .footer-copy strong {
        color: var(--text-hero, #0F172A) !important;
    }

    [data-theme="dark"] .footer-copy strong {
        color: #F8FAFC !important;
    }

    .footer-tech-chip {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 4px 10px !important;
        border-radius: 999px !important;
        font-size: 10.5px !important;
        font-weight: 600 !important;
        color: #166534 !important;
        background: #DCFCE7 !important;
        border: 1px solid #86EFAC !important;
        order: 1 !important;
    }

    [data-theme="dark"] .footer-tech-chip {
        background: rgba(22, 101, 52, 0.25) !important;
        color: #86EFAC !important;
        border-color: rgba(134, 239, 172, 0.3) !important;
    }

    .footer-pulse-dot {
        width: 5px !important;
        height: 5px !important;
        border-radius: 50% !important;
        background: #16A34A !important;
        display: inline-block !important;
    }
}

/* ==========================================================================
   FOOTER PREMIUM DESKTOP BASE
   ========================================================================== */
.site-footer {
    border-top: 1px solid rgba(226, 232, 240, 0.85);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 50px 0 36px;
    font-size: 13.5px;
    color: var(--text-secondary, #64748B);
    position: relative;
    z-index: 10;
}

[data-theme="dark"] .site-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94) 0%, rgba(10, 15, 26, 0.98) 100%);
}

.footer-top-row {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: start;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

[data-theme="dark"] .footer-top-row {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.footer-brand-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-logo {
    height: 26px;
    width: auto;
    object-fit: contain;
}

.footer-brand-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-accent, #2563EB);
    border: 1px solid rgba(37, 99, 235, 0.18);
}

[data-theme="dark"] .footer-brand-badge {
    background: rgba(56, 189, 248, 0.1);
    color: #38BDF8;
    border-color: rgba(56, 189, 248, 0.2);
}

.footer-brand-tagline {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-secondary, #64748B);
    max-width: 440px;
    margin: 0;
}

.footer-nav-grid {
    display: flex;
    justify-content: flex-end;
    gap: 48px;
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-heading {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-hero, #0F172A);
    margin-bottom: 4px;
}

[data-theme="dark"] .footer-nav-heading {
    color: #F8FAFC;
}

.footer-nav-col a {
    color: var(--text-secondary, #64748B);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-nav-col a:hover {
    color: var(--primary-accent, #2563EB);
    transform: translateX(2px);
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
    font-size: 12.5px;
}

.footer-copy {
    color: var(--text-secondary, #64748B);
}

.footer-copy strong {
    color: var(--text-hero, #0F172A);
}

[data-theme="dark"] .footer-copy strong {
    color: #F8FAFC;
}

.footer-tech-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    color: #166534;
    background: #DCFCE7;
    border: 1px solid #86EFAC;
}

[data-theme="dark"] .footer-tech-chip {
    background: rgba(22, 101, 52, 0.25);
    color: #86EFAC;
    border-color: rgba(134, 239, 172, 0.3);
}

.footer-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16A34A;
    box-shadow: 0 0 8px rgba(22, 163, 74, 0.6);
    display: inline-block;
}

/* Fallback legacy footer styles */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a {
    color: var(--text-secondary, #64748B);
    text-decoration: none;
    transition: var(--spring-ease);
}

.footer-links a:hover {
    color: var(--accent-blue);
}

/* PRESENTATION PROGRESS DOCK (DESKTOP) */
@media (min-width: 769px) {
    .presentation-progress-dock {
        position: absolute;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 48px);
        max-width: 500px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        z-index: 15;
        pointer-events: none;
    }
    .pres-progress-bar {
        width: 100%;
        height: 4px;
        background: rgba(148, 163, 184, 0.25);
        border-radius: 99px;
        overflow: hidden;
    }
    .pres-progress-fill {
        height: 100%;
        width: 0%;
        background: linear-gradient(90deg, #3B82F6, #06B6D4);
        border-radius: 99px;
        transition: width 0.05s linear;
    }
    .pres-steps-row {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 0 4px;
    }
    .pres-step {
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--text-secondary, #64748B);
        letter-spacing: 0.02em;
        opacity: 0.6;
        transition: opacity 0.25s ease, color 0.25s ease;
    }
    .pres-step.active {
        opacity: 1;
        color: var(--primary-accent, #2563EB);
        font-weight: 800;
    }
}



