/* ==========================================================================
   MediAgenda · Sitio comercial — Sistema visual v4
   Health-tech SaaS: superficies blancas y luminosas, neutros slate fríos y
   los tres colores del logo (azul profundo, azul cielo, teal). El azul
   profundo lleva las acciones; cielo y teal son acentos gráficos.
   Un solo archivo; todo lo configurable vive en los tokens de la sección 1.
   ========================================================================== */

/* 0. Fuentes --------------------------------------------------------------- */

/* Geist y Geist Mono alojadas en el tema (SIL OFL, ver assets/fonts/OFL.txt):
   sin hoja externa que bloquee el pintado ni conexión a terceros. Variables,
   un archivo por subconjunto; latin-ext solo se descarga si la página lo usa. */
@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/geist-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/geist-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Geist Mono';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/geist-mono-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Geist Mono';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/geist-mono-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 1. Tokens ---------------------------------------------------------------- */

:root {
    color-scheme: light;

    /* Marca · colores del logo oficial. Tres tonos: azul profundo (módulos
       y anillas del isotipo, «Medi»), azul cielo (módulo del calendario) y
       teal (módulo inferior izquierdo). El azul profundo es el primario:
       botones, enlaces, foco y estados activos. Cielo y teal son acentos
       gráficos: no alcanzan 4,5:1 sobre blanco y nunca van en texto normal. */
    --primary-50:  #F2F7FD;
    --primary-100: #E3EEFA;
    --primary-200: #C4DBF3;
    --primary-300: #8FBCEB;
    --primary-500: #378ADA;   /* azul cielo del logo · 3,6:1, solo gráfico o texto grande */
    --primary-600: #165A99;   /* azul profundo del logo · 7,1:1 */
    --primary-700: #124B80;
    --primary-800: #0E3B66;

    --teal-50:  #EFF8F6;
    --teal-100: #DAF0EB;
    --teal-200: #B5E0D7;
    --teal-500: #57B0A2;      /* teal del logo · solo decorativo */
    --teal-700: #1F7A6C;      /* mismo tono, oscurecido para texto · 5,2:1 */
    --teal-800: #17695D;

    --primary: var(--primary-600);
    --primary-hover: var(--primary-700);
    --primary-soft: var(--primary-50);
    --primary-line: var(--primary-200);
    --on-primary: #FFFFFF;

    --brand-deep: var(--primary-600);
    --brand-sky: var(--primary-500);
    --brand-teal: var(--teal-500);
    --brand-gradient: linear-gradient(120deg, var(--brand-deep) 0%, var(--brand-sky) 62%, var(--brand-teal) 100%);
    /* Para texto grande: termina en cielo (3,6:1), nunca en teal. */
    --brand-gradient-text: linear-gradient(100deg, var(--primary-700) 0%, var(--brand-deep) 35%, var(--brand-sky) 100%);

    /* Neutros · slate frío, una sola familia */
    --bg: #FFFFFF;
    --bg-subtle: #F8FAFC;
    --bg-muted: #F1F5F9;
    --surface: #FFFFFF;
    --fg: #0F172A;
    --fg-2: #475569;
    --fg-3: #5F6B7D;          /* 4,9:1 sobre --bg-muted: mínimo AA */
    --border: #E5E9F0;
    --border-strong: #D5DCE6;
    --line-control: #7B889D;  /* 3,6:1: bordes de campos (WCAG 1.4.11) */

    /* Semánticos: estados, nunca acciones */
    --success: var(--teal-700);
    --success-strong: var(--teal-800);
    --success-soft: var(--teal-50);
    --success-line: var(--teal-200);
    --warning: #8A4B08;
    --warning-soft: #FDF3E1;
    --warning-line: #F3D9A8;
    --danger: #A3271B;
    --danger-soft: #FCECEA;
    --danger-line: #F2C3BD;

    /* Tipografía */
    --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

    --text-xs: 0.75rem;     /* metadatos, insignias */
    --text-sm: 0.875rem;    /* etiquetas, texto de apoyo */
    --text-base: 1rem;      /* cuerpo */
    --text-md: 1.0625rem;   /* cuerpo destacado */
    --text-lg: 1.25rem;     /* subtítulos, h3 grande */
    --text-xl: 1.5rem;
    --text-h2: clamp(1.875rem, 1.35rem + 1.9vw, 2.75rem);
    --text-display: clamp(2.375rem, 1.55rem + 3.4vw, 4rem);
    --text-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);

    /* Geometría: tres radios de uso real */
    --r-xs: 6px;    /* insignias, chips internos */
    --r-sm: 10px;   /* botones, campos */
    --r-md: 14px;   /* tarjetas internas, filas de mockup */
    --r-lg: 18px;   /* tarjetas */
    --r-xl: 24px;   /* paneles destacados, ventana de producto */
    --r-pill: 999px;

    /* Sombras difusas, tintadas con slate; nunca negro puro */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px -4px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 1px 3px rgba(15, 23, 42, 0.04), 0 16px 32px -16px rgba(15, 23, 42, 0.14);
    --shadow-lg: 0 2px 6px rgba(15, 23, 42, 0.04), 0 40px 80px -32px rgba(14, 59, 102, 0.24);
    --ring: 0 0 0 3px var(--primary-100);
    --shadow-brand: 0 1px 2px rgba(14, 59, 102, 0.28), 0 8px 20px -8px rgba(22, 90, 153, 0.55);
    --shadow-glow: 0 2px 6px rgba(15, 23, 42, 0.04), 0 48px 96px -40px rgba(22, 90, 153, 0.38), 0 24px 64px -32px rgba(87, 176, 162, 0.30);

    /* Ritmo */
    --gutter: 20px;
    --max: 1200px;
    --max-wide: 1280px;
    --max-text: 760px;
    --section-y: clamp(72px, 8vw, 120px);
    --header-h: 64px;
    --target: 44px;

    /* Movimiento */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --dur: 200ms;
    --dur-slow: 480ms;

    /* Capas */
    --z-overlay: 70;
    --z-nav: 80;
    --z-skip: 100;
}

@media (min-width: 768px)  { :root { --gutter: 32px; --header-h: 68px; } }
@media (min-width: 1200px) { :root { --gutter: 40px; } }

/* 2. Reset y base ---------------------------------------------------------- */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 24px);
    overflow-x: clip;
}
/* Desplazamiento suave solo después de la carga (main.js añade .is-smooth).
   Al abrir una URL con ancla el salto es inmediato: el suave arranca antes de
   que termine la maquetación y deja el destino desplazado o sin alcanzar. */
html.is-smooth { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "ss01", "cv11";
    overflow-x: clip;
}

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

a {
    color: var(--primary);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--dur) var(--ease);
}
a:hover { color: var(--primary-hover); }

h1, h2, h3, h4 {
    margin: 0 0 0.5em;
    color: var(--fg);
    font-weight: 600;
    text-wrap: balance;
}

h1, .display {
    font-size: var(--text-display);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

h2 {
    font-size: var(--text-h2);
    line-height: 1.12;
    letter-spacing: -0.032em;
}

h3 {
    font-size: var(--text-md);
    line-height: 1.35;
    letter-spacing: -0.015em;
}

h4 { font-size: var(--text-base); letter-spacing: -0.01em; }

p { margin: 0 0 1rem; max-width: 68ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
strong, b { font-weight: 600; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--r-xs);
}

::selection { background: var(--primary-200); color: var(--fg); }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: fixed;
    left: 16px; top: -200px;
    z-index: var(--z-skip);
    padding: 12px 18px;
    background: var(--fg);
    color: #FFFFFF;
    border-radius: var(--r-sm);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-md);
}
.skip-link:focus { top: 12px; color: #FFFFFF; }

a, button, summary, label, input, select, textarea, [role="button"] {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(22, 90, 153, 0.12);
}

/* 3. Estructura ------------------------------------------------------------ */

.wrap {
    width: 100%;
    max-width: calc(var(--max) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.wrap--wide { max-width: calc(var(--max-wide) + var(--gutter) * 2); }
.wrap--text { max-width: calc(var(--max-text) + var(--gutter) * 2); }

.section { position: relative; padding-block: var(--section-y); }
.section--subtle {
    background: var(--bg-subtle);
    border-block: 1px solid var(--border);
}
.section--attached { padding-top: clamp(16px, 2vw, 32px); }
/* Dos secciones blancas seguidas no suman sus dos rellenos. */
.section:not(.section--subtle) + .section:not(.section--subtle) { padding-top: 0; }
.section--top { padding-top: clamp(32px, 4vw, 56px); }

.section__head { max-width: 680px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__head h2 { margin-bottom: 0; }
.section__head .lead { margin-top: 16px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .lead { margin-inline: auto; }
.section__head--split { max-width: none; display: grid; gap: 16px 64px; align-items: end; }
@media (min-width: 960px) {
    .section__head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
    .section__head--split .lead { margin-top: 0; }
}

/* Etiqueta de contexto encima de los titulares: sentence case, color de marca. */
/* Etiqueta de sección: cápsula con el glifo 2×2 del isotipo, en sus tres colores. */
.eyebrow {
    --glyph-a: var(--brand-deep);
    --glyph-b: var(--brand-sky);
    --glyph-c: var(--brand-teal);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;   /* también dentro de rejillas, donde se estiraría */
    max-width: 100%;
    margin: 0 0 16px;
    padding: 5px 12px 5px 9px;
    border: 1px solid var(--primary-100);
    border-radius: var(--r-pill);
    background: var(--primary-50);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    line-height: 1.4;
    color: var(--primary-700);
}
.eyebrow::before {
    content: "";
    flex: none;
    width: 11px; height: 11px;
    background:
        linear-gradient(var(--glyph-a), var(--glyph-a)) 0 0 / 5px 5px no-repeat,
        linear-gradient(var(--glyph-b), var(--glyph-b)) 6px 0 / 5px 5px no-repeat,
        linear-gradient(var(--glyph-c), var(--glyph-c)) 0 6px / 5px 5px no-repeat,
        linear-gradient(var(--glyph-a), var(--glyph-a)) 6px 6px / 5px 5px no-repeat;
}
.eyebrow svg { width: 16px; height: 16px; }

.lead {
    font-size: var(--text-lead);
    line-height: 1.6;
    color: var(--fg-2);
    max-width: 60ch;
}

.rule { height: 1px; background: var(--border); border: 0; margin: 0; }

/* 4. Botones --------------------------------------------------------------- */

.btn {
    --btn-bg: var(--surface);
    --btn-fg: var(--fg);
    --btn-border: var(--border-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--target);
    padding: 0 18px;
    border: 1px solid var(--btn-border);
    border-radius: var(--r-sm);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
                color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
                transform 120ms var(--ease);
}
.btn:hover { color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }

.btn__icon { display: inline-grid; place-items: center; transition: transform var(--dur) var(--ease); }
.btn__icon svg { width: 16px; height: 16px; stroke-width: 1.75; }
.btn:hover .btn__icon { transform: translateX(2px); }

.btn--primary {
    --btn-bg: linear-gradient(180deg, #1D67AE 0%, var(--primary) 100%);
    --btn-fg: var(--on-primary);
    --btn-border: var(--primary-700);
    box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.btn--primary:hover { --btn-bg: linear-gradient(180deg, var(--primary) 0%, var(--primary-hover) 100%); }

/* Sobre superficies de marca (llamada final). */
.btn--light { --btn-bg: #FFFFFF; --btn-fg: var(--primary-700); --btn-border: #FFFFFF; box-shadow: 0 8px 20px -8px rgba(8, 30, 56, 0.45); }
.btn--light:hover { --btn-bg: var(--primary-50); --btn-fg: var(--primary-800); }
.btn--outline-light { --btn-bg: rgba(255, 255, 255, 0.08); --btn-fg: #FFFFFF; --btn-border: rgba(255, 255, 255, 0.55); box-shadow: none; }
.btn--outline-light:hover { --btn-bg: rgba(255, 255, 255, 0.16); --btn-fg: #FFFFFF; --btn-border: #FFFFFF; }

.btn--secondary:hover { --btn-bg: var(--bg-subtle); --btn-border: var(--line-control); }

.btn--ghost {
    --btn-bg: transparent;
    --btn-border: transparent;
    --btn-fg: var(--fg-2);
    box-shadow: none;
}
.btn--ghost:hover { --btn-bg: var(--bg-muted); --btn-fg: var(--fg); }

.btn--sm { min-height: 38px; padding: 0 14px; font-size: var(--text-sm); }
.btn--lg { min-height: 50px; padding: 0 22px; font-size: var(--text-base); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row--center { justify-content: center; }

/* Enlace de texto con flecha */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: var(--target);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
}
.link-arrow svg { width: 16px; height: 16px; stroke-width: 1.75; transition: transform var(--dur) var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* 5. Insignias y chips ----------------------------------------------------- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    background: var(--bg-muted);
    color: var(--fg-2);
    font-size: var(--text-xs);
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}
.badge--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--primary { background: var(--primary-soft); border-color: var(--primary-line); color: var(--primary-700); }
.badge--success { background: var(--success-soft); border-color: var(--success-line); color: var(--success-strong); }
.badge--warning { background: var(--warning-soft); border-color: var(--warning-line); color: var(--warning); }
.badge--danger  { background: var(--danger-soft);  border-color: var(--danger-line);  color: var(--danger); }

.icon-chip {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px; height: 40px;
    border-radius: var(--r-sm);
    background: var(--primary-soft);
    color: var(--primary);
    box-shadow: inset 0 0 0 1px var(--primary-100);
}
.icon-chip svg { width: 20px; height: 20px; stroke-width: 1.6; }
.icon-chip--neutral { background: var(--bg-muted); color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--border); }
/* Tonos del isotipo, para grupos de cuatro o seis rasgos (cielo y teal solo como gráfico: 3:1). */
.icon-chip--sky { background: #EAF3FC; color: #2F7CC6; box-shadow: inset 0 0 0 1px #D4E6F8; }
.icon-chip--teal { background: var(--teal-50); color: var(--teal-700); box-shadow: inset 0 0 0 1px var(--teal-100); }
.icon-chip--sm { width: 32px; height: 32px; border-radius: 8px; }
.icon-chip--sm svg { width: 17px; height: 17px; }

/* 6. Tarjetas -------------------------------------------------------------- */

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: clamp(22px, 2.4vw, 28px);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}
.card h3 { margin: 0; }
.card p { margin: 0; font-size: 0.9375rem; color: var(--fg-2); }
.card--subtle { background: var(--bg-subtle); box-shadow: none; }
.card--flat { box-shadow: none; }

a.card { color: inherit; text-decoration: none; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
a.card:hover { color: inherit; border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card__foot { margin-top: auto; padding-top: 4px; }

/* Lista de rasgos sin tarjeta: icono, título y texto en columna. */
.feature-list { display: grid; gap: 28px 32px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feature-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 4px 14px; align-items: start; }
.feature-list .icon-chip { grid-row: span 2; }
.feature-list h3 { margin: 4px 0 0; font-size: var(--text-base); }
.feature-list p { margin: 0; font-size: 0.9375rem; color: var(--fg-2); }
/* Variante apilada: icono encima, hasta cuatro columnas. */
@media (min-width: 1100px) { .feature-list--stack { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feature-list--stack li { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 8px; }
.feature-list--stack .icon-chip { grid-row: auto; margin-bottom: 8px; }
.feature-list--stack h3 { margin: 0; }

/* Lista numerada con filetes */
.marks { list-style: none; margin: 0; padding: 0; display: grid; }
.marks li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    font-size: 0.9375rem;
    color: var(--fg-2);
}
.marks li:last-child { border-bottom: 1px solid var(--border); }
.marks strong { color: var(--fg); }
.marks .n {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--primary);
    padding-top: 3px;
    font-variant-numeric: tabular-nums;
}
.marks .n svg { width: 18px; height: 18px; stroke-width: 1.6; }

/* Nota destacada */
.note {
    padding: 20px 24px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--bg-subtle);
    font-size: 0.9375rem;
    color: var(--fg-2);
}
.note strong { color: var(--fg); }

/* 7. Navegación ------------------------------------------------------------ */

.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-nav);
    padding-top: env(safe-area-inset-top);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.site-header[data-scrolled="true"],
body[data-nav-open="true"] .site-header { border-bottom-color: var(--border); background: rgba(255, 255, 255, 0.92); }

.nav-shell {
    display: flex;
    align-items: center;
    gap: 8px;
    height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: var(--target);
    margin-right: 16px;
    color: var(--fg);
    text-decoration: none;
}
.brand:hover { color: var(--fg); }
.brand__mark { width: 30px; height: 30px; flex: none; }
/* Como el logo oficial: «Medi» en azul profundo y negrita, «Agenda» en tinta. */
.brand__name { font-size: 1.1875rem; font-weight: 500; letter-spacing: -0.035em; line-height: 1; color: var(--fg); }
.brand__name b { font-weight: 700; color: var(--brand-deep); }

.nav-links ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--fg-2);
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--fg); background: var(--bg-muted); }
.nav-links [aria-current="page"] { color: var(--primary); background: var(--primary-soft); }

.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-login, .nav-cta { display: none; }

.nav-burger {
    position: relative;
    width: var(--target); height: var(--target);
    display: grid;
    place-items: center;
    margin-right: -10px;
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--fg);
    cursor: pointer;
}
.nav-burger:hover { background: var(--bg-muted); }
.nav-burger span {
    position: absolute;
    width: 18px; height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 260ms var(--ease);
}
.nav-burger span:nth-child(1) { transform: translateY(-4px); }
.nav-burger span:nth-child(2) { transform: translateY(4px); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { transform: rotate(-45deg); }

/* Menú móvil: panel bajo la cabecera; la cabecera y su botón siguen visibles. */
.nav-overlay {
    position: fixed;
    inset: calc(var(--header-h) + env(safe-area-inset-top)) 0 0;
    z-index: var(--z-overlay);
    display: flex;
    flex-direction: column;
    padding: 12px var(--gutter) calc(24px + env(safe-area-inset-bottom));
    background: var(--bg);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}
.nav-overlay[hidden] { display: none; }
.nav-overlay[data-open="true"] { opacity: 1; transform: none; }
.nav-overlay ul { margin: 0; padding: 0; list-style: none; }
.nav-overlay li + li { border-top: 1px solid var(--border); }
.nav-overlay a:not(.btn) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    color: var(--fg);
    font-size: var(--text-lg);
    font-weight: 500;
    letter-spacing: -0.02em;
    text-decoration: none;
}
.nav-overlay a:not(.btn) svg { width: 18px; height: 18px; color: var(--fg-3); }
.nav-overlay a[aria-current="page"] { color: var(--primary); }
.nav-overlay__foot { display: grid; gap: 10px; margin-top: auto; padding-top: 24px; }

body[data-nav-open="true"] { overflow: hidden; }

@media (min-width: 1024px) {
    .nav-burger, .nav-overlay { display: none !important; }
    .nav-login, .nav-cta { display: inline-flex; }
}
@media (max-width: 1023px) {
    .nav-links { display: none; }
}

/* 8. Hero ------------------------------------------------------------------ */

.hero {
    position: relative;
    padding-block: clamp(40px, 6vw, 88px) 0;
    overflow: hidden;
}
/* Luz tricolor del isotipo (profundo, cielo, teal) tras el producto, sobre
   fondo claro: color sin bloques sólidos. Degradados radiales, sin filter. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 38% 46% at 70% 26%, rgba(55, 138, 218, 0.20), transparent 70%),
        radial-gradient(ellipse 32% 40% at 94% 12%, rgba(22, 90, 153, 0.16), transparent 70%),
        radial-gradient(ellipse 34% 40% at 86% 64%, rgba(87, 176, 162, 0.20), transparent 70%),
        radial-gradient(ellipse 40% 50% at 0% 0%, rgba(55, 138, 218, 0.07), transparent 70%),
        linear-gradient(to bottom, var(--bg-subtle), var(--bg) 78%);
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero > .wrap { position: relative; z-index: 1; }

.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1080px) {
    .hero__grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 56px; }
}

.hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 22px;
    padding: 5px 12px 5px 6px;
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--fg-2);
}
.hero__pill .badge { padding: 1px 8px; }

.hero h1 { margin-bottom: 20px; max-width: 15ch; }
.hero h1 span { color: var(--primary); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero h1 span, .text-brand {
        background: var(--brand-gradient-text);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}
.hero__lead { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.6; color: var(--fg-2); max-width: 52ch; }
.hero .btn-row { margin-top: 32px; }

.hero__checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    font-size: var(--text-sm);
    color: var(--fg-2);
}
.hero__checks li { display: inline-flex; align-items: center; gap: 7px; }
.hero__checks svg { width: 16px; height: 16px; color: var(--success); stroke-width: 2; }

@media (max-width: 559px) {
    .hero .btn-row .btn { width: 100%; }
}

/* 9. Ilustraciones de producto (UI construida en HTML) --------------------- */

.ui-caption { margin: 14px 0 0; font-size: var(--text-xs); color: var(--fg-3); text-align: center; }

/* Borde degradado con los tonos del logo y sombra tintada de marca. */
.ui-window {
    position: relative;
    border: 1px solid transparent;
    border-radius: var(--r-xl);
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(140deg, rgba(55, 138, 218, 0.55), rgba(229, 233, 240, 0.9) 38%, rgba(229, 233, 240, 0.9) 62%, rgba(87, 176, 162, 0.55)) border-box;
    box-shadow: var(--shadow-glow);
    overflow: hidden;
}
.ui-window__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-subtle);
}
.ui-window__dots { display: flex; gap: 6px; }
.ui-window__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.ui-window__url {
    flex: 1;
    max-width: 280px;
    margin-inline: auto;
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--surface);
    font-size: 0.6875rem;
    color: var(--fg-3);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ui-app { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .ui-app { grid-template-columns: 172px minmax(0, 1fr); } }

.ui-side {
    display: none;
    padding: 14px 10px;
    border-right: 1px solid var(--border);
    background: var(--bg-subtle);
}
@media (min-width: 640px) { .ui-side { display: grid; align-content: start; gap: 2px; } }
.ui-side__brand { display: flex; align-items: center; gap: 8px; padding: 2px 8px 14px; font-size: 0.8125rem; font-weight: 600; }
.ui-side__brand svg { width: 20px; height: 20px; }
.ui-side__item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--fg-2);
}
.ui-side__item svg { width: 15px; height: 15px; stroke-width: 1.6; }
.ui-side__item.is-active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-xs), inset 0 0 0 1px var(--border); }
.ui-side__item .count {
    margin-left: auto;
    padding: 0 6px;
    border-radius: var(--r-pill);
    background: var(--primary);
    color: #FFFFFF;
    font-size: 0.625rem;
    line-height: 16px;
}

.ui-main { padding: 18px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.ui-main__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ui-main__title { display: grid; gap: 1px; }
.ui-main__title b { font-size: 0.9375rem; letter-spacing: -0.015em; }
.ui-main__title span { font-size: 0.6875rem; color: var(--fg-3); }

.ui-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 9px; background: var(--bg-muted); }
.ui-tabs span { padding: 3px 9px; border-radius: 7px; font-size: 0.6875rem; font-weight: 500; color: var(--fg-3); }
.ui-tabs .is-active { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-xs); }

.ui-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.ui-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px 3px 4px;
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--fg-2);
    background: var(--surface);
}
.ui-chip.is-active { border-color: var(--primary-line); background: var(--primary-soft); color: var(--primary-700); }
.ui-avatar {
    display: inline-grid;
    place-items: center;
    width: 18px; height: 18px;
    border-radius: 6px;
    background: var(--primary-100);
    color: var(--primary-700);
    font-size: 0.5625rem;
    font-weight: 600;
}
.ui-avatar--b { background: var(--teal-50); color: var(--teal-800); }
.ui-avatar--c { background: #EAF3FC; color: var(--primary-700); }

.ui-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ui-stat { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-md); }
.ui-stat span { display: block; font-size: 0.625rem; color: var(--fg-3); }
.ui-stat b { display: block; margin-top: 2px; font-size: 1.0625rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

.ui-list { display: grid; gap: 6px; }

/* Fila de cita */
.appt {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--border-strong);
    border-radius: 10px;
    background: var(--surface);
}
.appt__t { font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.appt__n { display: block; font-size: 0.8125rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt__s { display: block; font-size: 0.6875rem; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt--ok { border-left-color: var(--success); }
.appt--hold { border-left-color: #D99A3A; background: #FFFCF6; }
.appt--now { border-left-color: var(--primary); box-shadow: var(--ring); border-color: var(--primary-200); }
.appt--open { border-style: dashed; border-left-style: dashed; background: transparent; }
.appt .badge { font-size: 0.6875rem; padding: 2px 8px; }

/* Conversación de WhatsApp */
.chat { display: grid; gap: 8px; }
.chat__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
}
.chat__head .icon-chip { background: var(--success-soft); color: var(--success); box-shadow: inset 0 0 0 1px var(--success-line); }
.chat__head b { display: block; font-size: 0.8125rem; color: var(--fg); }
.chat__head span { display: block; font-size: 0.6875rem; color: var(--fg-3); }
.chat__in {
    justify-self: start;
    max-width: 88%;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 14px 14px 14px 4px;
    background: var(--bg-subtle);
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--fg);
}
.chat__out {
    justify-self: end;
    padding: 7px 14px;
    border-radius: 14px 14px 4px 14px;
    background: var(--success);
    color: #FFFFFF;
    font-size: 0.8125rem;
    font-weight: 600;
}
.chat__done {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--success-strong);
}
.chat__done svg { width: 14px; height: 14px; stroke-width: 2; }

/* Tarjetas flotantes alrededor de la ventana del hero */
.ui-float {
    position: absolute;
    z-index: 2;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-lg);
}
.ui-float--chat { right: -24px; bottom: -28px; width: 272px; }
.ui-float--quota { left: -28px; bottom: 32px; width: 196px; display: grid; gap: 8px; }
.ui-float--quota b { font-size: 1.25rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ui-float--quota b small { font-size: 0.75rem; font-weight: 500; color: var(--fg-3); }
.ui-float--quota span { font-size: 0.6875rem; color: var(--fg-3); }

.ui-meter { height: 6px; border-radius: var(--r-pill); background: var(--bg-muted); overflow: hidden; }
.ui-meter i { display: block; height: 100%; border-radius: inherit; background: var(--brand-gradient); }

.product-shot { position: relative; margin: 0; }
@media (min-width: 1080px) { .product-shot { margin-right: calc(var(--gutter) * -0.5); } }
@media (max-width: 1199px) { .ui-float--quota { display: none; } }
@media (max-width: 899px) {
    .ui-float--chat { position: relative; right: auto; bottom: auto; width: auto; max-width: 300px; margin: -32px 12px 0 auto; }
}

@media (prefers-reduced-motion: no-preference) {
    .ui-float--chat { animation: float-in 700ms var(--ease) 500ms both; }
    .ui-float--quota { animation: float-in 700ms var(--ease) 700ms both; }
}
@keyframes float-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

/* Reservas en línea: pantalla de teléfono */
.ui-phone {
    width: min(100%, 320px);
    margin-inline: auto;
    padding: 10px;
    border: 1px solid var(--border-strong);
    border-radius: 36px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}
.ui-phone__screen { display: grid; gap: 14px; padding: 22px 16px 18px; border-radius: 28px; background: var(--bg-subtle); }
.ui-phone__doc { display: flex; align-items: center; gap: 10px; }
.ui-phone__doc .ui-avatar { display: grid; width: 38px; height: 38px; border-radius: 12px; font-size: 0.8125rem; }
.ui-phone__doc b { display: block; font-size: 0.875rem; color: var(--fg); }
.ui-phone__doc span { display: block; font-size: 0.6875rem; color: var(--fg-3); }
.ui-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ui-days span { display: grid; gap: 1px; padding: 6px 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); text-align: center; font-size: 0.625rem; color: var(--fg-3); }
.ui-days b { font-size: 0.875rem; color: var(--fg); }
.ui-days .is-active { border-color: var(--primary); background: var(--primary); color: rgba(255, 255, 255, 0.8); }
.ui-days .is-active b { color: #FFFFFF; }
.ui-label { font-size: 0.6875rem; font-weight: 600; color: var(--fg-2); }
.ui-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ui-slots span { padding: 8px 0; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); text-align: center; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--fg); }
.ui-slots .is-taken { color: var(--fg-3); background: transparent; text-decoration: line-through; }
.ui-slots .is-active { border-color: var(--primary); box-shadow: var(--ring); color: var(--primary-700); font-weight: 600; }
.ui-phone__cta { padding: 11px; border-radius: 12px; background: var(--primary); color: #FFFFFF; text-align: center; font-size: 0.8125rem; font-weight: 600; }
.ui-phone__note { font-size: 0.625rem; line-height: 1.45; color: var(--fg-3); text-align: center; }

/* Expediente */
.ui-record { display: grid; gap: 10px; }
.ui-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--danger-line);
    border-radius: 10px;
    background: var(--danger-soft);
    color: var(--danger);
    font-size: 0.75rem;
    font-weight: 600;
}
.ui-alert svg { width: 15px; height: 15px; stroke-width: 1.8; }
.ui-soap { display: grid; gap: 6px; }
.ui-soap div { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: center; font-size: 0.75rem; color: var(--fg-2); }
.ui-soap b {
    display: grid; place-items: center;
    width: 22px; height: 22px;
    border-radius: 6px;
    background: var(--primary-soft);
    color: var(--primary-700);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
}
.ui-line { height: 6px; border-radius: var(--r-pill); background: var(--bg-muted); }
.ui-vitals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ui-vitals span { padding: 7px 8px; border-radius: 9px; background: var(--bg-subtle); border: 1px solid var(--border); font-size: 0.625rem; color: var(--fg-3); }
.ui-vitals b { display: block; font-size: 0.8125rem; color: var(--fg); font-variant-numeric: tabular-nums; }

/* Panel: barras */
.ui-bars { display: flex; align-items: flex-end; gap: 6px; height: 88px; padding-top: 8px; }
.ui-bars i { flex: 1; border-radius: 5px 5px 2px 2px; background: var(--primary-100); }
.ui-bars i.is-hi { background: linear-gradient(180deg, var(--brand-sky), var(--brand-deep)); }

/* Semana: bloques por servicio */
.ui-week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ui-week__col { display: grid; grid-auto-rows: 18px; gap: 4px; align-content: start; }
.ui-week__day { font-size: 0.625rem; font-weight: 600; color: var(--fg-3); text-align: center; }
.ui-week__b { grid-row: span var(--h, 1); border-radius: 5px; }
.ui-week__b--b { background: var(--primary-100); box-shadow: inset 2px 0 0 var(--primary-500); }
.ui-week__b--g { background: #E2F2EE; box-shadow: inset 2px 0 0 var(--success); }
.ui-week__b--x { background: repeating-linear-gradient(135deg, var(--bg-muted) 0 4px, #E8EDF3 4px 8px); }
.ui-week__b--o { border: 1px dashed var(--border-strong); }
.ui-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.625rem; color: var(--fg-3); }
.ui-legend span { display: inline-flex; align-items: center; gap: 5px; }
.ui-legend i { width: 10px; height: 10px; border-radius: 3px; }

/* Línea de tiempo de recordatorios */
.ui-timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.ui-timeline li { position: relative; display: grid; gap: 1px; padding: 0 0 12px 22px; font-size: 0.6875rem; color: var(--fg-3); }
.ui-timeline li:last-child { padding-bottom: 0; }
.ui-timeline li::before { content: ""; position: absolute; left: 0; top: 3px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); }
.ui-timeline li:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 16px; bottom: 2px; width: 2px; background: var(--border); }
.ui-timeline li.is-done::before { border-color: var(--success); background: var(--success); }
.ui-timeline b { font-size: 0.75rem; color: var(--fg); }

/* Roles */
.ui-roles { display: grid; gap: 6px; }
.ui-roles > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; font-size: 0.75rem; }

/* 10. Secciones de la portada ---------------------------------------------- */

/* Beneficios: cuatro resultados, sin tarjetas. */
.outcomes { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 700px) { .outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .outcomes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.outcome { display: grid; align-content: start; gap: 10px; padding: clamp(24px, 2.6vw, 32px); background: var(--surface); }
.outcome .icon-chip { margin-bottom: 8px; }
.outcome h3 { margin: 0; font-size: var(--text-lg); letter-spacing: -0.025em; }
.outcome p { margin: 0; font-size: 0.9375rem; color: var(--fg-2); }

/* Evidencia: cifras citadas con su fuente. */
.evidence { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 900px) { .evidence { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.evidence__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 24px;
    align-items: start;
    padding: 24px 0 0;
    border-top: 1px solid var(--border);
}
.evidence__k {
    grid-row: span 2;
    min-width: 4.2ch;
    font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.045em;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .evidence__k { background: var(--brand-gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.evidence__k small { font-size: 0.5em; letter-spacing: -0.02em; }
.evidence__l { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
.evidence__s { margin: 0; font-size: var(--text-sm); color: var(--fg-3); }
.evidence-note { margin-top: 28px; font-size: var(--text-sm); color: var(--fg-3); max-width: 80ch; }

/* Producto: composición editorial con un módulo principal. */
.showcase { display: grid; gap: 16px; }
@media (min-width: 900px) { .showcase { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; } }
.showcase > * { min-width: 0; }
@media (min-width: 900px) {
    .showcase__main { grid-column: span 6; }
    .showcase__half { grid-column: span 3; }
    .showcase__third { grid-column: span 2; }
}

.panel {
    display: grid;
    grid-template-rows: auto 1fr;
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}
.panel__body { display: grid; gap: 10px; align-content: start; padding: clamp(24px, 3vw, 36px); }
.panel__body h3 { margin: 0; font-size: var(--text-lg); letter-spacing: -0.025em; }
.panel__body p { margin: 0; font-size: 0.9375rem; color: var(--fg-2); }
.panel__visual {
    position: relative;
    padding: clamp(20px, 2.6vw, 32px);
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
}
.panel__visual > .ui-card { max-width: 440px; margin-inline: auto; }
/* Luz del tono del módulo detrás de cada ilustración. */
.panel__visual { background: radial-gradient(ellipse 70% 90% at 50% 0%, rgba(22, 90, 153, 0.08), transparent 70%), var(--bg-subtle); }
.panel:has(.icon-chip--sky) .panel__visual { background: radial-gradient(ellipse 70% 90% at 50% 0%, rgba(55, 138, 218, 0.13), transparent 70%), var(--bg-subtle); }
.panel:has(.icon-chip--teal) .panel__visual { background: radial-gradient(ellipse 70% 90% at 50% 0%, rgba(87, 176, 162, 0.15), transparent 70%), var(--bg-subtle); }
@media (min-width: 900px) {
    .panel--row { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); grid-template-rows: auto; }
    .panel--row .panel__body { align-content: center; }
    .panel--row .panel__visual { border-top: 0; border-left: 1px solid var(--border); }
}
.panel__points { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 0.9375rem; color: var(--fg-2); }
.panel__points li { display: flex; gap: 10px; }
.panel__points svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--primary); stroke-width: 1.8; }

.ui-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.ui-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.75rem; font-weight: 600; }
.ui-card__head span { font-weight: 500; color: var(--fg-3); }

/* Zig-zag para las secciones de detalle */
.zig { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
    .zig { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; }
    .zig--flip > :first-child { order: 2; }
    .zig--top { align-items: start; }
}
/* Lienzo de las ilustraciones de detalle: luz del isotipo (cielo arriba,
   teal abajo) y retícula de puntos, sobre fondo claro. */
.zig__visual {
    position: relative;
    isolation: isolate;
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    background:
        radial-gradient(ellipse 60% 55% at 88% 6%, rgba(55, 138, 218, 0.20), transparent 70%),
        radial-gradient(ellipse 55% 50% at 6% 96%, rgba(87, 176, 162, 0.20), transparent 70%),
        var(--primary-50);
    overflow: hidden;
}
.zig__visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(22, 90, 153, 0.16) 1px, transparent 1.2px);
    background-size: 18px 18px;
    mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 35%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 35%, transparent 80%);
    pointer-events: none;
}
.zig__visual > * { position: relative; }
.zig__visual .ui-card { box-shadow: var(--shadow-glow); }
.zig__visual > .ui-card { max-width: 420px; margin-inline: auto; }

/* Respuestas de WhatsApp: 1, 2, 3, BAJA */
.mini-grid { display: grid; gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
@media (min-width: 760px) { .mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

/* Pasos */
.steps { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
/* Cada paso toma un tono del isotipo, en el orden de sus módulos. */
.step { --step-c: var(--brand-deep); --step-t: var(--primary-700); position: relative; display: grid; gap: 8px; align-content: start; padding-top: 24px; border-top: 3px solid var(--step-c); }
.step:nth-child(4n+2) { --step-c: var(--brand-sky); }
.step:nth-child(4n+3) { --step-c: var(--brand-teal); --step-t: var(--teal-700); }
.step__n {
    display: inline-grid;
    place-items: center;
    justify-self: start;
    min-width: 28px; height: 28px;
    margin-bottom: 4px;
    padding: 0 8px;
    border-radius: var(--r-pill);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--border);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--step-t);
}
.step h3 { margin: 0; font-size: var(--text-md); }
.step p { margin: 0; font-size: 0.9375rem; color: var(--fg-2); }

/* 11. Precios -------------------------------------------------------------- */

.plans { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

.plan { gap: 0; padding: clamp(24px, 2.6vw, 32px); }
.plan__flagrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; margin: 0 0 8px; }
.plan__name { margin: 0; font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.025em; color: var(--fg); }
.plan__for { margin: 4px 0 0 !important; font-size: var(--text-sm) !important; color: var(--fg-3) !important; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin: 24px 0 0 !important; }
.plan__amt {
    font-size: clamp(2.5rem, 2.1rem + 1vw, 3rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--fg);
    font-variant-numeric: tabular-nums;
}
.plan__cur { font-size: var(--text-base); font-weight: 600; color: var(--fg-2); align-self: flex-start; margin-top: 4px; }
.plan__per { font-size: var(--text-sm); color: var(--fg-3); }
.plan__quota { margin: 8px 0 0 !important; font-size: var(--text-sm) !important; font-weight: 500; color: var(--fg) !important; }
.plan .btn { margin-top: 24px; }
.plan__list { list-style: none; margin: 24px 0 0; padding: 24px 0 0; border-top: 1px solid var(--border); display: grid; gap: 12px; }
.plan__list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 0.9375rem; line-height: 1.45; color: var(--fg-2); }
.plan__list svg { width: 18px; height: 18px; margin-top: 2px; color: var(--primary); stroke-width: 2; }

/* Plan recomendado: borde con el degradado de marca y sombra tintada. */
.plan--pick {
    border: 2px solid transparent;
    background:
        linear-gradient(180deg, var(--primary-50), var(--surface) 42%) padding-box,
        var(--brand-gradient) border-box;
    box-shadow: var(--shadow-glow);
}
.badge--brand { background: var(--brand-deep); border-color: var(--brand-deep); color: #FFFFFF; }

.pricing-note {
    display: grid;
    gap: 16px 32px;
    margin-top: 24px;
    padding: 20px 24px;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--bg-subtle);
    list-style: none;
    font-size: var(--text-sm);
    color: var(--fg-2);
}
@media (min-width: 760px) { .pricing-note { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pricing-note { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pricing-note li { display: flex; gap: 10px; }
.pricing-note svg { flex: none; width: 18px; height: 18px; color: var(--fg-3); stroke-width: 1.6; margin-top: 1px; }

/* 12. Tabla comparativa ---------------------------------------------------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-xs); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 620px; }
table.data th, table.data td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data thead th { background: var(--bg-subtle); font-size: var(--text-sm); font-weight: 600; color: var(--fg); }
table.data thead th:nth-child(3) { color: var(--primary); }
table.data tbody th { font-weight: 500; color: var(--fg); }
table.data td { color: var(--fg-2); }
table.data tbody tr:last-child td, table.data tbody tr:last-child th { border-bottom: 0; }
table.data td.num { font-variant-numeric: tabular-nums; color: var(--fg); }
table.data td.yes { color: var(--success-strong); font-weight: 500; }

/* 13. Preguntas frecuentes ------------------------------------------------- */

.faq { display: grid; gap: 40px; }
@media (min-width: 960px) {
    .faq { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 80px; align-items: start; }
    .faq__aside { position: sticky; top: calc(var(--header-h) + 32px); }
}
.qa { border-top: 1px solid var(--border); }
.qa__item { padding: 24px 0; border-bottom: 1px solid var(--border); }
.qa__q { margin: 0 0 8px; font-size: var(--text-md); letter-spacing: -0.015em; }
.qa__a { margin: 0; font-size: 0.9375rem; line-height: 1.65; color: var(--fg-2); }

/* 14. Llamada final -------------------------------------------------------- */

/* El único bloque de color de la página: panel con el azul del logo, luz de
   cielo y teal en las esquinas y el isotipo en marca de agua. El texto se
   apoya en la zona profunda (blanco 7:1; el punto más claro bajo texto, 5:1). */
.cta-panel {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: 32px;
    padding: clamp(36px, 5vw, 64px);
    border-radius: var(--r-xl);
    background:
        radial-gradient(ellipse 55% 70% at 100% 0%, rgba(55, 138, 218, 0.55), transparent 70%),
        radial-gradient(ellipse 34% 50% at 100% 100%, rgba(87, 176, 162, 0.22), transparent 70%),
        linear-gradient(120deg, var(--primary-700) 0%, var(--brand-deep) 45%, #1D66AC 100%);
    color: #FFFFFF;
    box-shadow: var(--shadow-glow);
    overflow: hidden;
}
@media (min-width: 960px) { .cta-panel { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 56px; } }
.cta-panel h2 { margin-bottom: 14px; color: #FFFFFF; }
.cta-panel .lead { margin: 0; color: var(--primary-100); }
.cta-panel .eyebrow {
    --glyph-a: #FFFFFF;
    --glyph-b: var(--primary-300);
    --glyph-c: var(--teal-200);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.10);
    color: #FFFFFF;
}
.cta-panel__mark {
    position: absolute;
    z-index: -1;
    right: -84px; bottom: -150px;
    width: 340px; height: 340px;
    opacity: 0.07;
    pointer-events: none;
}
.cta-panel__mark > path, .cta-panel__mark > rect { fill: #FFFFFF; }
.cta-panel :focus-visible { outline-color: #FFFFFF; }
.cta-panel__side { display: grid; gap: 12px; }
.cta-panel__side .btn { width: 100%; }
.cta-panel__list { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; font-size: var(--text-sm); color: #FFFFFF; }
.cta-panel__list li { display: flex; align-items: center; gap: 8px; }
.cta-panel__list svg { width: 16px; height: 16px; color: var(--teal-200); stroke-width: 2; }
@media (max-width: 559px) { .cta-panel__mark { width: 220px; height: 220px; right: -70px; bottom: -110px; } }

/* 15. Formularios ---------------------------------------------------------- */

.form { display: grid; gap: 18px; }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-size: var(--text-sm); font-weight: 500; color: var(--fg); }
.field .hint { font-size: 0.8125rem; color: var(--fg-3); }

.input, .select, .textarea {
    width: 100%;
    min-height: var(--target);
    padding: 10px 12px;
    font-family: inherit;
    font-size: var(--text-base);  /* 16 px: evita el zoom de iOS */
    color: var(--fg);
    background: var(--surface);
    border: 1px solid var(--line-control);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-xs);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--fg-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.input::placeholder, .textarea::placeholder { color: var(--fg-3); opacity: 1; }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); background: var(--danger-soft); }
.input[aria-invalid="true"]:focus, .select[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--danger-line); }
.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235F6B7D' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.field-error { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--danger); }

.checkbox { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; }
.checkbox input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--primary); }
.checkbox label { font-size: var(--text-sm); line-height: 1.55; color: var(--fg-2); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid; border-radius: var(--r-md); font-size: var(--text-sm); line-height: 1.55; }
.notice strong { display: block; }
.notice--ok   { background: var(--success-soft); border-color: var(--success-line); color: var(--success-strong); }
.notice--bad  { background: var(--danger-soft);  border-color: var(--danger-line);  color: var(--danger); }
.notice--info { background: var(--warning-soft); border-color: var(--warning-line); color: var(--warning); }

.form-card { padding: clamp(24px, 3vw, 36px); border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-md); }
.form-card h2 { font-size: var(--text-xl); letter-spacing: -0.025em; margin-bottom: 4px; }

.contact-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.contact-list li { display: flex; align-items: center; gap: 14px; min-height: 52px; font-size: 0.9375rem; color: var(--fg-2); }
.contact-list a { color: var(--fg); font-weight: 500; text-decoration: none; }
.contact-list a:hover { color: var(--primary); }

/* 16. Páginas internas y contenido editorial ------------------------------- */

.page-head {
    position: relative;
    padding-block: clamp(48px, 6vw, 88px) clamp(32px, 4vw, 56px);
    background: linear-gradient(to bottom, var(--bg-subtle), var(--bg));
    border-bottom: 1px solid var(--border);
}
.page-head h1 { font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.25rem); max-width: 22ch; margin-bottom: 16px; }
.page-head .lead { margin: 0; }
.page-head .btn-row { margin-top: 28px; }
.page-head + .section { padding-top: clamp(48px, 6vw, 80px); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; font-size: var(--text-sm); color: var(--fg-3); }
.crumbs a { color: var(--fg-3); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }
.crumbs span[aria-current] { color: var(--fg); font-weight: 500; }

.module-head { display: grid; gap: 14px; }
.module-head h2, .module-head .eyebrow { margin: 0; }
.module-head .lead { margin: 0; }

.entry { max-width: var(--max-text); }
.entry__meta { margin: 0 0 12px; font-size: var(--text-sm); color: var(--fg-3); }
.entry__content { font-size: var(--text-md); line-height: 1.75; color: var(--fg-2); }
.entry__content > * + * { margin-top: 1.15rem; }
.entry__content h2 { margin-top: 2.4rem; font-size: 1.75rem; }
.entry__content h3 { margin-top: 1.9rem; font-size: var(--text-lg); }
.entry__content ul, .entry__content ol { padding-left: 1.2rem; }
.entry__content li + li { margin-top: 0.4rem; }
.entry__content blockquote { margin: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--primary); font-size: var(--text-lg); color: var(--fg); }
.entry__content img { border-radius: var(--r-lg); }
.entry__content code { font-family: var(--font-mono); font-size: 0.875em; background: var(--bg-muted); padding: 2px 6px; border-radius: 5px; }
.entry__media { margin-bottom: 40px; }
.entry__media img { border-radius: var(--r-lg); }

.post-list { display: grid; gap: 16px; }
@media (min-width: 760px) { .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .post-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

.post-card { overflow: hidden; }
.post-card__img { margin: calc(clamp(22px, 2.4vw, 28px) * -1) calc(clamp(22px, 2.4vw, 28px) * -1) 4px; border-bottom: 1px solid var(--border); }
.post-card__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card .entry__meta { margin: 0; }
.post-card h3 { font-size: var(--text-lg); letter-spacing: -0.02em; }
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a:hover { color: var(--primary); }

.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: var(--target); min-height: var(--target);
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--surface);
    font-size: var(--text-sm);
    font-variant-numeric: tabular-nums;
    color: var(--fg-2);
    text-decoration: none;
}
.pagination .page-numbers:hover { background: var(--bg-muted); color: var(--fg); }
.pagination .page-numbers.current { background: var(--primary); border-color: var(--primary); color: #FFFFFF; }

.empty { max-width: 560px; }
.search-box { max-width: 460px; margin-top: 28px; }
.search-row { display: flex; gap: 8px; align-items: end; }
.search-row .field { flex: 1; }

/* 17. Pie ------------------------------------------------------------------ */

.site-footer {
    padding-block: clamp(56px, 7vw, 88px) calc(28px + env(safe-area-inset-bottom));
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    font-size: var(--text-sm);
}
.site-footer a { color: var(--fg-2); text-decoration: none; }
.site-footer a:hover { color: var(--primary); }
.site-footer .brand { color: var(--fg); }

.footer__top { display: grid; gap: 40px; }
@media (min-width: 960px) { .footer__top { grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 64px; } }
.footer__brand p { margin: 16px 0 0; max-width: 34ch; color: var(--fg-2); }
.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
@media (min-width: 760px) { .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.footer__cols h2 { margin: 0 0 8px; font-size: var(--text-sm); font-weight: 600; letter-spacing: -0.005em; }
.footer__cols ul { list-style: none; margin: 0; padding: 0; }
.footer__cols li a, .footer__cols li span { display: inline-flex; align-items: center; min-height: 36px; color: var(--fg-2); overflow-wrap: anywhere; }

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
    margin-top: clamp(40px, 5vw, 64px);
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--fg-3);
}
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.footer__bottom li a { display: inline-flex; align-items: center; min-height: 32px; color: var(--fg-3); }
.footer__made { margin-left: auto; }
@media (max-width: 559px) { .footer__made { margin-left: 0; } }

/* 18. Revelado al entrar en viewport --------------------------------------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 70ms; }
[data-reveal][data-delay="2"] { transition-delay: 140ms; }
[data-reveal][data-delay="3"] { transition-delay: 210ms; }
[data-reveal][data-delay="4"] { transition-delay: 280ms; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* 19. Utilidades ----------------------------------------------------------- */

.grid-2 { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.grid-3 { display: grid; gap: 16px; }
@media (min-width: 700px)  { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

.center { text-align: center; }
.center > p, p.center { margin-inline: auto; }
.muted { color: var(--fg-2); }
.quiet { color: var(--fg-3); }
.small { font-size: var(--text-sm); }
.xsmall { font-size: 0.8125rem; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.mt-m { margin-top: 20px; }
.mt-l { margin-top: 32px; }
.mt-xl { margin-top: 48px; }

/* 20. Preferencias de movimiento ------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html.is-smooth { scroll-behavior: auto; }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* 21. Impresión ------------------------------------------------------------ */

@media print {
    .site-header, .nav-overlay, .site-footer, .btn, .hero::before, .hero::after { display: none !important; }
    body { background: #FFFFFF; color: #000000; }
    .card, .panel, .ui-window { box-shadow: none; }
}

/* 22. Ajustes de utilidades dentro de componentes -------------------------- */

.card .quiet { color: var(--fg-3); }
.card .xsmall { font-size: 0.8125rem; }

/* 23. Ajustes móviles ------------------------------------------------------- */

@media (max-width: 559px) {
    .hero__pill .badge { display: none; }
    .hero__pill { padding-left: 12px; }
    .evidence__item { grid-template-columns: minmax(0, 1fr); }
    .evidence__k { grid-row: auto; margin-bottom: 8px; }
}

/* El plan recomendado se lee primero cuando los planes se apilan. */
@media (max-width: 959px) {
    .plan--pick { order: -1; }
}
