/* =====================================================================
   Gestoría de Antecedentes Penales — sistema visual V2
   -----------------------------------------------------------------
   Mobile first real: el layout se diseña para 375–430 px y recién
   después se adapta a desktop (spec V2 §3).

   Dirección: institucional contemporáneo, cercano a una fintech.
   Deliberadamente NO evoca portales estatales (spec V2 §27/§49):
   sin escudos, sin celeste y blanco, sin estética Argentina.gob.ar.

   Regla de composición: el blanco domina; el azul se reserva para
   marca, selección y acción (spec V2 §29).
   ===================================================================== */

:root {
    /* Superficies y fondo ------------------------------------------- */
    --bg: #f6f7f9;            /* gris extremadamente claro */
    --surface: #ffffff;
    --surface-alt: #fbfcfd;

    /* Azul institucional -------------------------------------------- */
    --brand: #15345b;
    --brand-700: #1b4275;
    --brand-600: #23568f;     /* azul intermedio */
    --brand-100: #d8e4f2;
    --brand-050: #eef3f9;

    /* Acción positiva ----------------------------------------------- */
    --green: #0e7a55;
    --green-050: #e8f5ef;

    /* Semánticos ----------------------------------------------------- */
    --amber: #a4650a;
    --amber-050: #fdf3e3;
    --red: #b3271e;
    --red-050: #fdeeec;
    --violet: #5b39ad;
    --violet-050: #f0ecfb;

    /* Texto ---------------------------------------------------------- */
    --ink: #1b2530;           /* gris carbón */
    --ink-soft: #566374;
    --ink-mute: #7c8798;

    /* Líneas --------------------------------------------------------- */
    --line: #e4e8ee;
    --line-strong: #cdd5e0;

    /* Formas --------------------------------------------------------- */
    --r-card: 18px;
    --r-card-lg: 20px;
    --r-field: 13px;
    --r-pill: 999px;

    /* Profundidad: mínima, casi todo se resuelve con borde y espacio  */
    --shadow-xs: 0 1px 2px rgba(21, 52, 91, .05);
    --shadow-sm: 0 2px 6px rgba(21, 52, 91, .06);
    --shadow-md: 0 8px 24px rgba(21, 52, 91, .08);

    --container: 1160px;
    --form-col: 470px;
    --font: "Inter", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

/* Varios componentes fijan `display` por clase, y una regla de autor le gana
   siempre a la del user-agent: sin esto, `hidden` deja de ocultar (los
   errores de campo aparecían como un "!" rojo suelto). */
[hidden] { display: none !important; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    line-height: 1.18;
    letter-spacing: -.022em;
    font-weight: 700;
}
h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
a { color: var(--brand-600); text-underline-offset: 2px; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 18px;
}

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--brand); color: #fff; padding: 12px 16px;
    border-radius: 0 0 10px 0; text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible {
    outline: 3px solid var(--brand-600);
    outline-offset: 2px;
    border-radius: 6px;
}

/* =====================================================================
   Header — 56–64 px, sin navegación completa en mobile (spec V2 §5)
   ===================================================================== */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 40;
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; min-height: 58px;
}
.brand {
    display: inline-flex; align-items: center; gap: 9px;
    text-decoration: none; color: inherit;
}
.brand__mark { display: flex; flex: 0 0 auto; }
.brand__text strong {
    display: block; font-size: .96rem; font-weight: 700; letter-spacing: -.02em;
    line-height: 1.15;
}
.brand__text small {
    display: block; font-size: .68rem; color: var(--ink-mute); line-height: 1.3;
}
.header-contact {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .87rem; font-weight: 600; color: var(--brand);
    text-decoration: none; padding: 8px 12px; border-radius: var(--r-pill);
    border: 1px solid var(--line); background: var(--surface);
    white-space: nowrap;
}
.header-contact:hover { background: var(--brand-050); border-color: var(--brand-100); }
.header-contact svg { flex: 0 0 auto; }
.site-nav { display: none; align-items: center; gap: 22px; }
.site-nav a {
    color: var(--ink-soft); text-decoration: none;
    font-size: .89rem; font-weight: 500;
}
.site-nav a:hover { color: var(--brand-600); }

/* Descargo en barra (spec §2/§44). Solo en páginas sin hero. */
.topbar-disclaimer {
    margin: 0; padding: 7px 18px; text-align: center;
    background: var(--surface-alt); border-bottom: 1px solid var(--line);
    color: var(--ink-mute); font-size: .72rem; line-height: 1.4;
}

/* =====================================================================
   Bloque de conversión — primera pantalla (spec V2 §4/§26)
   ===================================================================== */
.convert { padding: 20px 0 0; }
.convert__grid { display: grid; gap: 20px; }

/* --- Encabezado compacto (spec V2 §6) ------------------------------ */
.lead__eyebrow {
    display: inline-block; margin: 0 0 8px;
    font-size: .72rem; font-weight: 700; letter-spacing: .09em;
    text-transform: uppercase; color: var(--brand-600);
}
.lead h1 {
    font-size: 1.72rem; margin: 0 0 8px; max-width: 16ch;
}
.lead__sub {
    font-size: .98rem; color: var(--ink-soft); margin: 0 0 12px; max-width: 44ch;
}
.lead__note {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: .8rem; color: var(--ink-mute); margin: 0;
    line-height: 1.45;
}
.lead__note svg { flex: 0 0 auto; margin-top: 2px; }

/* Apoyo de confianza: solo desktop, donde sobra espacio en la columna izquierda */
.lead__aside { display: none; }

/* --- Card principal ------------------------------------------------- */
.checkout-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-card-lg);
    box-shadow: var(--shadow-sm);
    padding: 18px 16px 20px;
}

.block-label {
    display: block; margin: 0 0 10px;
    font-size: .95rem; font-weight: 650; color: var(--ink);
}

/* --- Selector de modalidad (spec V2 §8/§9) -------------------------- */
.seg {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
    background: var(--brand-050); border: 1px solid var(--brand-100);
    border-radius: 15px; padding: 4px;
}
.seg__opt { position: relative; display: block; }
.seg__opt input {
    position: absolute; opacity: 0; width: 100%; height: 100%;
    margin: 0; cursor: pointer;
}
.seg__box {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    min-height: 46px; padding: 6px 4px;
    border-radius: 11px; border: 1px solid transparent;
    font-size: .92rem; font-weight: 600; color: var(--brand);
    text-align: center; transition: background-color .15s ease, box-shadow .15s ease;
}
.seg__main { display: flex; align-items: center; justify-content: center; gap: 5px; }
.seg__price { font-size: .76rem; font-weight: 500; opacity: .72; }
.seg__opt input:checked + .seg__box {
    background: var(--surface);
    border-color: var(--brand-600);
    box-shadow: var(--shadow-xs);
    color: var(--brand);
}
.seg__opt input:focus-visible + .seg__box {
    outline: 3px solid var(--brand-600); outline-offset: 2px;
}
.seg__check { display: none; flex: 0 0 auto; }
.seg__opt input:checked + .seg__box .seg__check { display: block; }

/* Detalle de la modalidad elegida */
.mode {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-top: 12px; padding: 13px 15px;
    border: 1px solid var(--line); border-radius: var(--r-field);
    background: var(--surface-alt);
}
.mode__name {
    margin: 0; font-size: .93rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
}
.mode__meta { margin: 3px 0 0; font-size: .8rem; color: var(--ink-mute); }
.mode__price {
    margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em;
    white-space: nowrap;
}
.tag {
    display: inline-block; padding: 2px 8px; border-radius: var(--r-pill);
    background: var(--brand-050); color: var(--brand-600);
    font-size: .68rem; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase;
}

/* Resumen persistente cuando el selector se colapsa (spec V2 §18) */
.recap {
    display: none; align-items: center; gap: 12px;
    padding: 12px 14px; border: 1px solid var(--line);
    border-radius: var(--r-field); background: var(--surface-alt);
}
.recap.is-visible { display: flex; }
.recap__name { margin: 0; font-size: .92rem; font-weight: 650; flex: 1 1 auto; }
.recap__price { margin: 0; font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.recap__change {
    flex: 0 0 auto; background: none; border: none; padding: 4px 2px;
    font: inherit; font-size: .84rem; font-weight: 600; color: var(--brand-600);
    text-decoration: underline; cursor: pointer;
}
.picker.is-hidden { display: none; }

.card-rule { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* =====================================================================
   Formulario progresivo (spec V2 §11–§17)
   ===================================================================== */
.wizard__progress {
    display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
    font-size: .78rem; font-weight: 600; color: var(--ink-mute);
    letter-spacing: .02em;
}
.dots { display: inline-flex; gap: 5px; }
.dots i {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--line-strong); display: block;
}
.dots i.is-on { background: var(--brand-600); }

/* Base = sin JavaScript: todos los pasos visibles y apilados.
   El modo por pasos lo activa app.js agregando .is-progressive. */
.step + .step { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
/* Con dos clases para ganarle a los `display` que los componentes declaran
   más abajo: sin JS no hay a dónde navegar, así que no se muestran. */
.wizard .step__actions, .wizard .step__back { display: none; }

.wizard.is-progressive .step { display: none; }
.wizard.is-progressive .step + .step { margin-top: 0; padding-top: 0; border-top: 0; }
.wizard.is-progressive .step.is-active { display: block; animation: step-in .18s ease-out; }
.wizard.is-progressive .step__actions { display: flex; }
.wizard.is-progressive .step__back { display: grid; }
@keyframes step-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

.step__head { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; }
.step__back {
    flex: 0 0 auto; width: 30px; height: 30px; margin: -3px 0 0 -6px;
    display: grid; place-items: center;
    background: none; border: none; border-radius: 50%;
    color: var(--ink-mute); cursor: pointer;
}
.step__back:hover { background: var(--brand-050); color: var(--brand); }
.step__q { margin: 0; font-size: 1.18rem; font-weight: 700; letter-spacing: -.02em; }

.step__actions {
    display: flex; align-items: center; justify-content: flex-end;
    gap: 14px; margin-top: 14px;
}
.btn-next {
    display: inline-flex; align-items: center; gap: 7px;
    min-height: 44px; padding: 10px 18px;
    border: 1px solid var(--brand-100); border-radius: var(--r-field);
    background: var(--brand-050); color: var(--brand);
    font: inherit; font-weight: 650; cursor: pointer;
    transition: background-color .14s ease;
}
.btn-next:hover { background: var(--brand-100); }

/* --- Campos (spec V2 §33) ------------------------------------------ */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .87rem; font-weight: 600; color: var(--ink-soft); }
.field .hint { margin: 0; font-size: .8rem; color: var(--ink-mute); line-height: 1.4; }
.field__wrap { position: relative; display: block; }

.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="date"], .field input[type="password"], .field input[type="number"],
.field select, .field textarea {
    width: 100%;
    font: inherit;
    font-size: 16px;                 /* evita el zoom automático en iOS */
    min-height: 56px;
    padding: 14px 44px 14px 15px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-field);
    transition: border-color .14s ease, box-shadow .14s ease;
}
.field textarea { min-height: 128px; padding-right: 15px; resize: vertical; line-height: 1.5; }
.field select { padding-right: 15px; }

.field input:hover, .field textarea:hover { border-color: #b6c0cf; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--brand-600);
    box-shadow: 0 0 0 3px rgba(35, 86, 143, .15);
}

/* Estado válido: marca discreta, nunca una alerta verde grande (§35) */
.field__ok {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    display: none; pointer-events: none;
}
.field.is-valid .field__ok { display: block; }
.field.is-valid input { border-color: #9dcfba; }

.field.is-invalid input, .field--error input,
.field--error select, .field--error textarea { border-color: var(--red); }
.field.is-invalid input:focus, .field--error input:focus {
    box-shadow: 0 0 0 3px rgba(179, 39, 30, .14);
}
.field__error {
    margin: 0; font-size: .82rem; font-weight: 500; color: var(--red);
    display: flex; align-items: flex-start; gap: 6px;
}
.field__error::before { content: "!"; font-weight: 800; flex: 0 0 auto; }

/* --- Sugerencias de dominio de email -------------------------------
   La lista se cuelga de <body> con position:fixed (ver app.js): los
   pasos inactivos del wizard están ocultos y un dropdown posicionado
   dentro del campo quedaría recortado. Sin JavaScript nunca aparece.
   ------------------------------------------------------------------ */
.email-ac {
    position: fixed; z-index: 60; display: none;
    margin: 0; padding: 5px; list-style: none;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-field);
    box-shadow: var(--shadow-md);
    max-height: 250px; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.email-ac li {
    padding: 12px; border-radius: 9px;
    font-size: 16px; font-weight: 600; line-height: 1.2; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    cursor: pointer;
}
.email-ac li.is-active { background: var(--brand-050); }
.email-ac b { font-weight: 700; color: var(--brand-600); }  /* prefijo que coincide */
.email-ac i { font-style: normal; color: var(--ink-mute); } /* lo que ya escribió */

/* --- Selector de nacionalidad (§11) --------------------------------
   Sin JavaScript se ve el <select> nativo con las 198 opciones y todo
   funciona. Con JavaScript, app.js le agrega `.is-enhanced` y pone un
   buscador encima: un display:none sigue enviando su valor con el
   formulario, así que el control real nunca deja de ser el <select>.
   ------------------------------------------------------------------ */
.field select.is-enhanced { display: none; }

/* El buscador es un input[type=text] dentro de .field: ya hereda el alto, el
   foco, el tilde de válido y el borde de error del resto de los campos. */

.picker-ac li {
    white-space: normal;
    display: flex; align-items: baseline; gap: 2px;
}
/* Nombre del país detrás del gentilicio: ayuda a decidir, no compite. */
.picker-ac i {
    font-style: normal; font-weight: 500;
    color: var(--ink-mute); font-size: .88em;
}

/* --- Consentimiento único (spec V2 §23) ---------------------------- */
.consent {
    display: flex; gap: 11px; align-items: flex-start;
    font-size: .87rem; line-height: 1.45; color: var(--ink-soft);
    padding: 13px 14px; border: 1px solid var(--line);
    border-radius: var(--r-field); background: var(--surface-alt);
    cursor: pointer;
}
.consent input[type="checkbox"] {
    width: 21px; height: 21px; margin: 1px 0 0; flex: 0 0 auto;
    accent-color: var(--brand-600); cursor: pointer;
}
.consent a { font-weight: 600; }
.consents { display: grid; gap: 12px; }

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

/* =====================================================================
   Barra de pago siempre visible (spec V2 §19–§24)
   ===================================================================== */
.paybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 20px rgba(21, 52, 91, .07);
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
}
.paybar__inner { max-width: var(--container); margin: 0 auto; }
.paybar__total {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; margin: 0 0 9px;
}
.paybar__label { font-size: .82rem; font-weight: 600; color: var(--ink-mute); }
.paybar__amount { font-size: 1.25rem; font-weight: 800; letter-spacing: -.025em; }
.paybar__hint {
    margin: 8px 0 0; text-align: center; font-size: .76rem; color: var(--ink-mute);
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.paybar__hint.is-ready { color: var(--green); font-weight: 600; }

.btn-pay {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    width: 100%; min-height: 56px; padding: 14px 20px;
    font: inherit; font-size: 1rem; font-weight: 700; letter-spacing: -.01em;
    color: #fff; background: var(--brand);
    border: 1px solid var(--brand); border-radius: var(--r-field);
    cursor: pointer; text-decoration: none;
    transition: background-color .14s ease, transform .1s ease;
}
.btn-pay:hover:not(:disabled) { background: var(--brand-700); }
.btn-pay:active:not(:disabled) { transform: translateY(1px); }
.btn-pay:disabled {
    /* Menor contraste pero perfectamente legible (spec V2 §20) */
    background: #93a3b6; border-color: #93a3b6; color: #fff;
    cursor: not-allowed;
}
.btn-pay svg { flex: 0 0 auto; }

/* Deja lugar para la barra fija */
.has-paybar { padding-bottom: 168px; }

/* =====================================================================
   Contenido secundario (debajo del flujo comercial, spec V2 §58)
   ===================================================================== */
.section { padding: 40px 0; }
.section--tint { background: var(--surface-alt); border-top: 1px solid var(--line); }
.section--plain { background: var(--surface); border-top: 1px solid var(--line); }
.section__head { max-width: 60ch; margin-bottom: 22px; }
.section__head p { margin: 0; color: var(--ink-soft); }
.section__kicker {
    margin: 0 0 6px; font-size: .72rem; font-weight: 700; letter-spacing: .09em;
    text-transform: uppercase; color: var(--brand-600);
}

/* Cómo funciona (spec V2 §37) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li {
    display: flex; gap: 13px; align-items: flex-start;
    font-size: .93rem; color: var(--ink-soft);
}
.steps li::before {
    counter-increment: s; content: counter(s);
    flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--brand-050); color: var(--brand); border: 1px solid var(--brand-100);
    font-size: .82rem; font-weight: 700;
}
.steps strong { display: block; color: var(--ink); font-weight: 650; }

/* Acordeón: plazos y preguntas frecuentes (spec V2 §38/§39) */
.accordion { display: grid; gap: 9px; }
.accordion details {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-card); padding: 2px 16px;
}
.accordion details[open] { border-color: var(--brand-100); }
.accordion summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 15px 0; cursor: pointer; list-style: none;
    font-size: .94rem; font-weight: 650; color: var(--ink);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
    content: ""; flex: 0 0 auto; width: 9px; height: 9px;
    border-right: 2px solid var(--brand-600); border-bottom: 2px solid var(--brand-600);
    transform: rotate(45deg) translate(-2px, -2px); transition: transform .18s ease;
}
.accordion details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.accordion details > *:not(summary) { margin-top: 0; }
.accordion p, .accordion ul {
    color: var(--ink-soft); font-size: .9rem; margin: 0 0 14px;
}
.accordion ul { padding-left: 1.15em; }
.accordion li { margin-bottom: .35em; }
.faq { display: grid; gap: 9px; }  /* alias heredado */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 2px 16px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0; cursor: pointer; list-style: none; font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--ink-soft); font-size: .9rem; }

/* Señales de confianza reales (spec V2 §50) */
.trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.trust li {
    display: flex; gap: 10px; align-items: flex-start;
    font-size: .88rem; color: var(--ink-soft);
}
.trust svg { flex: 0 0 auto; margin-top: 2px; }

.payment-methods { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.payment-methods li {
    border: 1px solid var(--line); border-radius: 10px; padding: 7px 13px;
    font-size: .81rem; font-weight: 500; color: var(--ink-soft); background: var(--surface);
}

/* =====================================================================
   Componentes compartidos con el resto de las páginas
   ===================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
    min-height: 52px; padding: 14px 22px; text-align: center;
    border: 1px solid transparent; border-radius: var(--r-field);
    transition: background-color .14s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-700); }
.btn--success { background: var(--green); color: #fff; }
.btn--success:hover { background: #0b6547; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface-alt); }
.btn--block { width: 100%; }
.btn--sm { min-height: 42px; padding: 9px 15px; font-size: .87rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .62; pointer-events: none; }

.form-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-card-lg); padding: 20px 18px; box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }

.notice {
    display: flex; gap: 11px; align-items: flex-start;
    padding: 14px 16px; border-radius: var(--r-card);
    border: 1px solid var(--line); background: var(--surface-alt);
    font-size: .88rem; color: var(--ink-soft);
}
.notice strong { color: var(--ink); }
.notice p:last-child { margin-bottom: 0; }
.notice--info { background: var(--brand-050); border-color: var(--brand-100); }
.notice--success { background: var(--green-050); border-color: #bfe3d3; }
.notice--warning { background: var(--amber-050); border-color: #f0dcb6; }
.notice--error { background: var(--red-050); border-color: #f3cbc7; color: #8d1f18; }

.summary {
    display: grid; margin: 0 0 20px; overflow: hidden;
    border: 1px solid var(--line); border-radius: var(--r-card);
}
.summary__row {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: .93rem;
}
.summary__row:last-child { border-bottom: none; }
.summary__row dt { margin: 0; color: var(--ink-mute); }
.summary__row dd { margin: 0; font-weight: 650; text-align: right; word-break: break-word; }
.summary__row--total { background: var(--surface-alt); }
.summary__row--total dd { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }

.selected-plan {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap; margin-bottom: 20px; padding: 15px 16px;
    background: var(--brand-050); border: 1px solid var(--brand-100);
    border-radius: var(--r-card);
}
.selected-plan__name { margin: 0; font-weight: 700; }
.selected-plan__meta { margin: 0; font-size: .82rem; color: var(--ink-mute); }
.selected-plan__price { margin: 0; font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.checklist li {
    display: flex; gap: 9px; align-items: flex-start;
    font-size: .89rem; color: var(--ink-soft);
}
.checklist li::before { content: "✓"; color: var(--green); font-weight: 700; flex: 0 0 auto; }

.status-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-card-lg); padding: 24px 20px; box-shadow: var(--shadow-sm);
}
.status-card__icon {
    width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-items: center; margin-bottom: 16px;
}
.status-card__icon--success { background: var(--green-050); }
.status-card__icon--pending { background: var(--amber-050); }
.status-card__icon--error { background: var(--red-050); }

.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: var(--r-pill);
    font-size: .75rem; font-weight: 600; white-space: nowrap;
    background: #eef1f5; color: var(--ink-soft);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--green { background: var(--green-050); color: var(--green); }
.badge--amber { background: var(--amber-050); color: var(--amber); }
.badge--blue { background: var(--brand-050); color: var(--brand-600); }
.badge--violet { background: var(--violet-050); color: var(--violet); }
.badge--orange { background: #fdf0e4; color: #a85a10; }
.badge--red { background: var(--red-050); color: var(--red); }
.badge--slate { background: #eef1f5; color: var(--ink-mute); }

/* Páginas legales */
.legal { max-width: 76ch; padding: 32px 0 48px; }
.legal h2 { margin-top: 1.9em; font-size: 1.18rem; }
.legal h3 { margin-top: 1.5em; font-size: 1rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul, .legal ol { padding-left: 1.2em; }
.legal li { margin-bottom: .45em; }
.legal__updated { font-size: .84rem; color: var(--ink-mute); }

/* =====================================================================
   Footer (spec V2 §40/§43/§44)
   ===================================================================== */
.site-footer {
    background: #101d2e; color: #b9c4d2;
    padding: 34px 0 24px; margin-top: 48px;
}
.site-footer a { color: #dbe3ec; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid { display: grid; gap: 26px; }
.site-footer__brand { margin: 0 0 8px; font-weight: 700; color: #fff; font-size: 1rem; }
.site-footer__legal { margin: 0; font-size: .84rem; color: #93a2b5; line-height: 1.55; }
.site-footer__col h3 {
    margin: 0 0 10px; font-size: .73rem; font-weight: 700;
    letter-spacing: .09em; text-transform: uppercase; color: #7e8ea3;
}
.site-footer__links { display: flex; flex-direction: column; gap: 9px; }
.site-footer__links a { font-size: .89rem; }
.site-footer__id {
    margin: 22px 0 0; padding-top: 18px; border-top: 1px solid #23334a;
    font-size: .82rem; color: #93a2b5; line-height: 1.6;
}
.site-footer__id dt { display: inline; font-weight: 600; color: #b9c4d2; }
.site-footer__id dd { display: inline; margin: 0 0 0 4px; }
.site-footer__id div { margin-bottom: 4px; }
.site-footer__disclaimer {
    margin: 18px 0 0; padding: 13px 15px; border-radius: var(--r-field);
    background: #17263a; border: 1px solid #23334a;
    font-size: .82rem; color: #b9c4d2; line-height: 1.55;
}
.site-footer__copy {
    margin: 20px 0 0; padding-top: 16px; border-top: 1px solid #23334a;
    font-size: .78rem; color: #7e8ea3;
}

/* =====================================================================
   Utilidades
   ===================================================================== */
.text-muted { color: var(--ink-mute); }
.text-small { font-size: .85rem; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: 22px; }
.center { text-align: center; }
.narrow { max-width: 620px; margin-left: auto; margin-right: auto; }
.stack > * + * { margin-top: 15px; }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* =====================================================================
   Breakpoints — el diseño base ES el de 390 px
   ===================================================================== */

/* Teléfonos grandes: algo más de aire */
@media (min-width: 420px) {
    .container { padding: 0 22px; }
    .checkout-card { padding: 22px 20px 24px; }
    .lead h1 { font-size: 1.9rem; }
}

/* Tablets */
@media (min-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.6rem; }
    .site-header__inner { min-height: 64px; }
    .site-nav { display: flex; }
    .convert { padding: 34px 0 0; }
    /* Todavía una sola columna: se centra en una medida legible en vez de
       estirar el formulario a lo ancho de la tablet. */
    .convert__grid { max-width: 620px; margin-inline: auto; }
    .lead h1 { font-size: 2.25rem; max-width: 18ch; }
    .lead__sub { font-size: 1.05rem; }
    .section { padding: 56px 0; }
    .form-card { padding: 28px; }
    .form-grid--2 { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: repeat(2, 1fr); gap: 18px 26px; }
    .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

/* Desktop: información a la izquierda, conversión a la derecha (§36) */
@media (min-width: 1024px) {
    .convert { padding: 48px 0 8px; }
    .convert__grid {
        grid-template-columns: minmax(0, 1fr) var(--form-col);
        gap: 56px; align-items: start;
        max-width: none; margin-inline: 0;
    }
    .lead { padding-top: 6px; }
    .lead h1 { font-size: 2.6rem; max-width: 14ch; }
    .lead__sub { max-width: 40ch; }
    .lead__aside { display: block; margin-top: 26px; }
    .checkout-col { position: sticky; top: 84px; }

    /* La barra deja de ser fija y vive dentro de la columna del formulario */
    .paybar {
        position: static; box-shadow: none; border: 1px solid var(--line);
        border-top: 1px solid var(--line); border-radius: var(--r-card-lg);
        margin-top: 14px; padding: 16px 20px;
    }
    .has-paybar { padding-bottom: 0; }
    .steps { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1200px) {
    .container { padding: 0 28px; }
}

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