/*
 * ANNONA — Landing pública (rediseño 2026)
 *
 * Hoja autocontenida: la landing NO carga el theme legacy del sitio
 * (bootstrap/owl/wow). Tokens de marca del design system ANNONA:
 * azul #005CB9 (pale #DAE5F7, mist #F4F7FC), tinta #222222,
 * Open Sans (cuerpo) + Source Sans Pro (títulos).
 */

:root {
    --brand: #005CB9;
    --brand-dark: #004C99;
    --brand-soft: #5C80BF;
    --brand-pale: #DAE5F7;
    --brand-mist: #F4F7FC;
    --ink: #222222;
    --body: #5A5A5A;
    --muted: #757575;
    --faint: #9A9A9A;
    --line: #E4E9F0;
    --ok: #2FB979;
    --danger: #E692A8;
    --danger-text: #C0426B;
    --shadow-card: 0 24px 60px rgba(10, 40, 80, 0.10);
    --shadow-soft: 0 1px 2px rgba(16, 42, 80, 0.06);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --font-head: 'Source Sans Pro', 'Open Sans', -apple-system, sans-serif;
    --font-body: 'Open Sans', -apple-system, sans-serif;
}

/* ------------------------------------------------------------------ */
/* Reset mínimo                                                        */
/* ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 98px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--body);
    background: #FFFFFF;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-soft); }

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font-head);
    font-weight: 400;
    color: var(--ink);
    line-height: 1.18;
}

p { margin: 0 0 1em; }

.landing-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Utilidades de texto ------------------------------------------------ */

.eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 14px;
}

.section-title {
    font-size: 34px;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.section-lead {
    font-size: 16.5px;
    color: var(--body);
    max-width: 560px;
}

.data-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 4px;
}

/* Botones ----------------------------------------------------------- */

.btn-landing {
    display: inline-block;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
    text-align: center;
}

.btn-landing-primary {
    background: var(--brand);
    color: #FFFFFF;
}
.btn-landing-primary:hover,
.btn-landing-primary:focus { background: var(--brand-dark); color: #FFFFFF; }

.btn-landing-ghost {
    background: transparent;
    color: var(--ink);
    border-color: #C9D4E2;
}
.btn-landing-ghost:hover,
.btn-landing-ghost:focus { border-color: var(--brand); color: var(--brand); }

/* ------------------------------------------------------------------ */
/* Preloader                                                           */
/* ------------------------------------------------------------------ */

.preloader {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    background: #FFFFFF;
    transition: opacity .4s ease, visibility .4s ease;
    /* Failsafe: si el JS nunca llega a cerrarlo, se oculta solo.
       Si el JS funcionó, el nodo ya no existe cuando vence el delay. */
    animation: preloader-failsafe .4s ease 7s forwards;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo {
    width: 168px;
    height: auto;
    opacity: 0;
    animation: preloader-fade-in .5s ease forwards;
}

.preloader-bar {
    width: 180px;
    height: 3px;
    border-radius: 999px;
    background: var(--brand-pale);
    overflow: hidden;
    opacity: 0;
    animation: preloader-fade-in .5s ease .15s forwards;
}

.preloader-bar-inner {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: var(--brand);
    animation: preloader-progress 1.8s cubic-bezier(0.4, 0, 0.2, 1) .25s forwards;
}

@keyframes preloader-fade-in {
    to { opacity: 1; }
}

@keyframes preloader-progress {
    0% { width: 0; }
    60% { width: 70%; }
    100% { width: 95%; }
}

@keyframes preloader-failsafe {
    to { opacity: 0; visibility: hidden; }
}

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px rgba(16, 42, 80, 0.06);
}

.site-header-in {
    display: flex;
    align-items: center;
    gap: 36px;
    height: 78px;
}

.site-logo img { height: 42px; width: auto; }

.site-nav {
    display: flex;
    gap: 26px;
    margin-right: auto;
}

.site-nav a {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--body);
    padding: 6px 0;
}
.site-nav a:hover { color: var(--brand); }

.site-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-header-actions .login-link {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--body);
}
.site-header-actions .login-link:hover { color: var(--brand); }

.site-header-actions .btn-landing { padding: 10px 20px; font-size: 11.5px; }

/* Hamburguesa (mobile) */
.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    margin: 4px 0;
    transition: transform .2s ease, opacity .2s ease;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
    padding: 168px 0 72px;
    background:
        radial-gradient(1100px 520px at 85% -10%, var(--brand-mist) 0%, rgba(244, 247, 252, 0) 62%),
        #FFFFFF;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
    gap: 64px;
    align-items: center;
}

.hero h1 {
    font-size: 50px;
    font-weight: 400;
    letter-spacing: -0.015em;
    margin-bottom: 22px;
}

.hero-lead {
    font-size: 17.5px;
    max-width: 520px;
    margin-bottom: 30px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

.hero-note {
    font-size: 13px;
    color: var(--muted);
}
.hero-note .sep { margin: 0 8px; color: #C9D4E2; }

/* Mockup del tablero (SVG) */
.hero-visual { position: relative; }

.dash-mock {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.dash-mock svg { width: 100%; height: auto; display: block; }

.dash-mock .t { font-family: var(--font-body); }
.dash-mock .t-faint { fill: var(--faint); font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.dash-mock .t-kpi { fill: var(--ink); font-family: var(--font-head); font-size: 17px; font-weight: 600; }
.dash-mock .t-tiny { fill: var(--faint); font-size: 7.5px; }
.dash-mock .bar-p { fill: var(--brand-pale); }
.dash-mock .bar-g { fill: var(--brand); }
.dash-mock .track { fill: var(--brand-mist); }
.dash-mock .grid-line { stroke: #EFF3F8; stroke-width: 1; }
.dash-mock .lr-line { stroke: var(--ok); stroke-width: 1.6; fill: none; }
.dash-mock .lr-dot { fill: #FFFFFF; stroke: var(--ok); stroke-width: 1.4; }

.ia-chip {
    position: absolute;
    top: -16px;
    right: -12px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(10, 40, 80, 0.12);
    padding: 9px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
}

.ia-chip .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 0 rgba(47, 185, 121, 0.45);
    animation: ia-pulse 2.4s ease-out infinite;
}

@keyframes ia-pulse {
    0% { box-shadow: 0 0 0 0 rgba(47, 185, 121, 0.45); }
    70% { box-shadow: 0 0 0 9px rgba(47, 185, 121, 0); }
    100% { box-shadow: 0 0 0 0 rgba(47, 185, 121, 0); }
}

/* Banda de métricas */
.metrics {
    border-top: 1px solid var(--line);
    margin-top: 72px;
    padding-top: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.metric-value {
    font-family: var(--font-head);
    font-weight: 300;
    font-size: 38px;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: 6px;
}

.metric-label { font-size: 13.5px; color: var(--muted); }

/* ------------------------------------------------------------------ */
/* Secciones                                                           */
/* ------------------------------------------------------------------ */

.landing-section { padding: 96px 0; }
.landing-section.alt { background: var(--brand-mist); }

.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.centered .section-lead { margin-left: auto; margin-right: auto; }

/* Pipeline ---------------------------------------------------------- */

.pipeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    counter-reset: step;
}

.pipeline-step {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 24px 20px 22px;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.pipeline-step .step-no {
    display: block;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--brand);
    margin-bottom: 14px;
}

.pipeline-step h3 {
    font-family: var(--font-body);
    font-size: 15.5px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pipeline-step p {
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0;
    color: var(--body);
}

.pipeline-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -14px;
    width: 10px;
    height: 10px;
    border-top: 2px solid #C9D4E2;
    border-right: 2px solid #C9D4E2;
    transform: translateY(-50%) rotate(45deg);
}
.pipeline-step:last-child::after { display: none; }

/* Módulos ----------------------------------------------------------- */

.modules {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.module-card {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 30px 28px;
    box-shadow: var(--shadow-soft);
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}

.module-card:hover {
    border-color: var(--brand-pale);
    box-shadow: 0 16px 40px rgba(10, 40, 80, 0.08);
    transform: translateY(-2px);
}

.module-card .module-tag {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-mist);
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 18px;
}

.module-card h3 {
    font-size: 21px;
    font-weight: 600;
    font-family: var(--font-head);
    margin-bottom: 6px;
}

.module-card .module-sub {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 18px;
}

.module-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.module-card li {
    position: relative;
    padding: 7px 0 7px 24px;
    font-size: 13.5px;
    line-height: 1.5;
    border-top: 1px solid #F0F3F8;
}
.module-card li:first-child { border-top: 0; }

.module-card li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 14px;
    width: 5px;
    height: 9px;
    border-right: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: rotate(40deg);
}

/* Banda de desarrollo a medida (cierra la sección de módulos) --------- */

.custom-band {
    margin-top: 22px;
    background: var(--brand);
    border-radius: var(--radius-md);
    padding: 40px 44px;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 44px;
    align-items: center;
}

.custom-band h3 {
    color: #FFFFFF;
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 10px;
}

.custom-band p {
    color: rgba(255, 255, 255, 0.80);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0 0 22px;
}

.custom-band .btn-on-brand {
    display: inline-block;
    background: #FFFFFF;
    color: var(--brand);
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    transition: background-color .18s ease;
}
.custom-band .btn-on-brand:hover { background: var(--brand-pale); color: var(--brand-dark); }

.custom-band-examples {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 32px;
}

.custom-band-examples li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    line-height: 1.45;
    color: #FFFFFF;
}

.custom-band-examples li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 5px;
    height: 9px;
    border-right: 2px solid rgba(255, 255, 255, 0.85);
    border-bottom: 2px solid rgba(255, 255, 255, 0.85);
    transform: rotate(40deg);
}

/* IA ----------------------------------------------------------------- */

.ia-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
    align-items: center;
}

.feature-rows { display: grid; gap: 30px; }

.feature-row {
    border-left: 3px solid var(--brand);
    padding-left: 20px;
}

.feature-row h3 {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.feature-row p {
    font-size: 14px;
    margin: 0;
}

/* Mock de chat */
.chat-card {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 22px 22px 24px;
}

.chat-head {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    padding-bottom: 14px;
    border-bottom: 1px solid #F0F3F8;
    margin-bottom: 18px;
}

.chat-head .chat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ok);
}

.chat-head .chat-status {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: var(--faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.chat-msg {
    max-width: 88%;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 14px;
}

.chat-user {
    margin-left: auto;
    background: var(--brand);
    color: #FFFFFF;
    border-bottom-right-radius: 3px;
}

.chat-bot {
    background: var(--brand-mist);
    color: var(--body);
    border-bottom-left-radius: 3px;
    margin-bottom: 0;
}

.chat-bot strong { color: var(--ink); }

.chat-chart {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 12px 6px;
    margin: 12px 0 10px;
}

.chat-chart svg { width: 100%; height: auto; }
.chat-chart .line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-chart .line-curr { stroke: var(--brand); }
.chat-chart .line-prev { stroke: var(--brand-soft); stroke-dasharray: 1 4; }
.chat-chart .line-dot { fill: var(--brand); }
.chat-chart .line-limit { stroke: var(--danger-text); stroke-width: 1; stroke-dasharray: 4 3; }
.chat-chart .t-tiny.limit { fill: var(--danger-text); }
.chat-chart .t-tiny { fill: var(--faint); font-size: 7px; font-family: var(--font-body); }

.chat-period {
    display: block;
    font-size: 11px;
    color: var(--faint);
}

/* Seguridad ---------------------------------------------------------- */

.security-grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 72px;
    align-items: start;
}

.security-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px 44px;
}

/* Demo / CTA ---------------------------------------------------------- */

.demo-grid {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 72px;
    align-items: start;
}

.demo-copy .section-lead { margin-bottom: 36px; }

.demo-contacts {
    display: flex;
    gap: 56px;
    flex-wrap: wrap;
}

.demo-contacts a { color: var(--ink); font-size: 15px; }
.demo-contacts a:hover { color: var(--brand); }

.demo-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 36px 34px;
}

/* Formulario (markup del form theme bootstrap_3_layout) */
.demo-card .form-group { margin-bottom: 20px; }

.demo-card .form-inline-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.demo-card label,
.demo-card .control-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 7px;
}

.demo-card .form-control {
    display: block;
    width: 100%;
    background: #FAFBFD;
    border: 1px solid #DDE4EE;
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--ink);
    line-height: 1.5;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.demo-card .form-control::placeholder { color: #A9B4C4; }

.demo-card .form-control:focus {
    outline: none;
    background: #FFFFFF;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-pale);
}

.demo-card textarea.form-control { min-height: 110px; resize: vertical; }

.demo-card .has-error .form-control { border-color: var(--danger); }
.demo-card .has-error .control-label { color: var(--danger-text); }

.demo-card .help-block {
    display: block;
    font-size: 12px;
    color: var(--danger-text);
    margin-top: 6px;
}
.demo-card .help-block ul { list-style: none; margin: 0; padding: 0; }
.demo-card .help-block .glyphicon { display: none; }

.demo-card .btn-demo-submit {
    width: 100%;
    margin-top: 6px;
}

.demo-card .btn-demo-submit[disabled] {
    opacity: 0.65;
    cursor: default;
}

.demo-success {
    text-align: center;
    padding: 28px 8px;
}

.demo-success .success-check {
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #E6F7EF;
    position: relative;
}

.demo-success .success-check::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 14px;
    width: 12px;
    height: 20px;
    border-right: 3px solid var(--ok);
    border-bottom: 3px solid var(--ok);
    transform: rotate(42deg);
}

.demo-success h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.demo-success p { font-size: 14px; color: var(--body); margin: 0; }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 36px 0;
    background: #FFFFFF;
}

.site-footer-in {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.site-footer .footer-logo img { height: 34px; width: auto; }

.site-footer .footer-legal {
    font-size: 12.5px;
    color: var(--faint);
}

.site-footer .footer-links {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 13px;
}

.site-footer .footer-links a { color: var(--muted); font-weight: 600; }
.site-footer .footer-links a:hover { color: var(--brand); }

/* ------------------------------------------------------------------ */
/* Animaciones de entrada                                              */
/* ------------------------------------------------------------------ */

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .6s ease;
    transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .ia-chip .dot { animation: none; }
    /* Preloader sin movimiento: sólo el logo, sin barra de progreso */
    .preloader-logo { opacity: 1; animation: none; }
    .preloader-bar { display: none; }
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1080px) {
    .hero h1 { font-size: 42px; }
    .pipeline { grid-template-columns: repeat(3, 1fr); }
    .pipeline-step:nth-child(3)::after { display: none; }
    .ia-grid, .security-grid, .demo-grid { gap: 48px; }
}

@media (max-width: 900px) {
    .section-title { font-size: 29px; }

    .hero { padding-top: 138px; }
    .hero-grid { grid-template-columns: 1fr; gap: 56px; }
    .hero-lead { max-width: none; }
    .hero-visual { max-width: 560px; }
    .ia-chip { right: 6px; }

    .metrics { grid-template-columns: 1fr 1fr; gap: 28px; }

    .modules { grid-template-columns: 1fr; }
    .custom-band { grid-template-columns: 1fr; gap: 28px; padding: 34px 30px; }
    .ia-grid { grid-template-columns: 1fr; }
    .security-grid { grid-template-columns: 1fr; gap: 40px; }
    .demo-grid { grid-template-columns: 1fr; gap: 48px; }

    /* Nav mobile */
    .site-nav {
        display: none;
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: #FFFFFF;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 20px 40px rgba(16, 42, 80, 0.10);
        padding: 8px 24px 16px;
    }
    .site-header.nav-open .site-nav { display: flex; }
    .site-nav a { padding: 12px 0; border-bottom: 1px solid #F0F3F8; }
    .site-nav a:last-child { border-bottom: 0; }

    /* El CTA cede su lugar a «Ingresar», que queda a la izquierda de la
       hamburguesa (el orden del DOM es al revés: se reordena con `order`) */
    .site-header-in { gap: 16px; }
    .site-header-actions { order: 2; margin-left: auto; }
    .site-header-actions .btn-landing { display: none; }
    /* Secundario a propósito: el único botón azul del móvil es el CTA del hero */
    .site-header-actions .login-link {
        display: inline-block;
        background: transparent;
        color: var(--ink);
        border: 1px solid #C9D4E2;
        padding: 10px 18px;
        border-radius: var(--radius-sm);
        font-size: 11.5px;
        font-weight: 700;
        letter-spacing: 0.10em;
        text-transform: uppercase;
        white-space: nowrap;
        transition: border-color .18s ease, color .18s ease;
    }
    .site-header-actions .login-link:hover { border-color: var(--brand); color: var(--brand); }

    .nav-toggle { display: block; order: 3; }
    .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

@media (max-width: 640px) {
    /* El logo grande no cabe junto al botón: se achica y el header se aprieta */
    .site-header-in { gap: 12px; height: 68px; }
    .site-logo img { height: 34px; }
    .site-nav { top: 68px; }
    .site-header-actions .login-link { padding: 9px 14px; }
    .hero { padding-top: 124px; }

    .landing-section { padding: 64px 0; }
    .hero h1 { font-size: 34px; }
    .hero-lead { font-size: 16px; }
    .metrics { grid-template-columns: 1fr; gap: 24px; margin-top: 56px; }
    .pipeline { grid-template-columns: 1fr; }
    .pipeline-step::after { display: none; }
    .security-list { grid-template-columns: 1fr; gap: 28px; }
    .custom-band-examples { grid-template-columns: 1fr; gap: 12px; }
    .custom-band .btn-on-brand { display: block; text-align: center; }
    .demo-card { padding: 28px 22px; }
    .demo-card .form-inline-pair { grid-template-columns: 1fr; gap: 0; }
    .demo-contacts { gap: 28px; }
    .site-footer-in { flex-direction: column; align-items: flex-start; gap: 14px; }
    .site-footer .footer-links { margin-left: 0; }
}
