/* ═══════════════════════════════════════════════════════════════════
   Flujo de venta de certificados (examen → datos → pago → listo)
   Mobile-first. Una sola decisión por pantalla.
   Colores con rol fijo:
     azul      = confianza (marca, estructura)
     ámbar     = la acción que lleva al siguiente paso
     verde     = progreso, acierto, WhatsApp
     fucsia    = pagar con Nequi (su color de marca, para que lo reconozcan)
     rojo      = solo errores
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --brand: #0158AD;
    --brand-deep: #012f63;
    --brand-soft: #eff6ff;
    --brand-line: #bfdbfe;
    --ink: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #f3f6fb;
    --action-1: #FFCD57;
    --action-2: #F5AE14;
    --ok: #16a34a;
    --ok-bg: #f0fdf4;
    --ok-line: #bbf7d0;
    --err: #dc2626;
    --wa: #25D366;
    --nequi: #DA0063;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input, select { font: inherit; }
[hidden] { display: none !important; }

/* ── Contenedor tipo app ── */
.app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    background: #fff;
    display: flex;
    flex-direction: column;
}
@media (min-width: 520px) {
    body { padding: 28px 0; background-image: radial-gradient(900px 420px at 50% -120px, rgba(1,88,173,.12), transparent 70%); }
    .app {
        min-height: 0;
        border-radius: 22px;
        border: 1px solid #e6ebf2;
        box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 24px 48px -28px rgba(15,23,42,.35);
        overflow: clip;
    }
}
main { flex: 1; display: flex; flex-direction: column; }

/* ── Barra superior ── */
.topbar {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand img { height: 28px; width: auto; }
.brand span { color: var(--brand); }
.support {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700; color: var(--text);
    border: 1px solid var(--line); border-radius: 999px;
    padding: 7px 12px; text-decoration: none;
}
.support i { color: var(--wa); font-size: 15px; }

/* ── Progreso ── */
.progress { padding: 12px 20px 0; }
.progress-top { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 7px; }
.progress-top b { color: var(--brand); }
.progress-track { height: 6px; background: #e8edf4; border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), #3b9cff); border-radius: 99px; transition: width .45s ease; }
.progress.done .progress-fill { background: var(--ok); }

/* ── Pantalla y barra de acción ── */
.screen { flex: 1; padding: 20px 20px 24px; animation: screenIn .35s cubic-bezier(.16,1,.3,1); }
@keyframes screenIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.center { text-align: center; }

/* La acción principal siempre queda en la zona del pulgar */
.actions {
    position: sticky; bottom: 0; z-index: 20;
    display: grid; gap: 6px;
    padding: 12px 20px calc(14px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #eef2f7;
}

.btn {
    width: 100%; min-height: 56px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    border-radius: 14px;
    font-size: 17px; font-weight: 800;
    transition: transform .1s, filter .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary {
    background: linear-gradient(180deg, var(--action-1), var(--action-2));
    color: #111827;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 10px 22px -10px rgba(214,140,0,.8);
}
.btn-primary:hover { filter: brightness(1.03); }
.boton-verde .btn-primary { background: #29D884; color: #fff; box-shadow: 0 10px 22px -10px rgba(41,216,132,.8); }
.boton-verde .btn-primary:hover { filter: brightness(1.08); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 22px -12px rgba(22,163,74,.9); }
.btn-wa i { font-size: 22px; }
/* Pagar con Nequi: la tarjeta "RECOMENDADO" del checkout anterior */
.btn-nequi {
    position: relative; width: 100%; margin-top: 8px;
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; text-align: left;
    border: 2px solid var(--nequi); border-radius: 14px; background: #fff;
    box-shadow: 0 10px 22px -14px rgba(218,0,99,.7);
    transition: background .15s, transform .1s;
}
.btn-nequi:hover { background: #fff5f8; }
.btn-nequi:active { transform: scale(.98); }
.btn-nequi img { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; object-fit: cover; background: #fff; }
/* Pago: valor a la izquierda, "Ir a pagar" a la derecha */
.barra-pagar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 2px 6px; }
.barra-total { min-width: 0; }
.barra-total span { display: block; font-size: 13px; color: var(--muted); }
.barra-total b { display: block; font-size: 24px; font-weight: 900; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.barra-total small { font-size: 12px; font-weight: 600; letter-spacing: 0; color: #94a3b8; }
.btn-ir-pagar {
    flex-shrink: 0; min-height: 56px; padding: 0 32px;
    border-radius: 999px; background: #29D884; color: #fff;
    font-size: 17px; font-weight: 800;
    box-shadow: 0 10px 22px -10px rgba(41,216,132,.8);
    transition: transform .1s, filter .15s;
}
.btn-ir-pagar:hover { filter: brightness(1.04); }
.btn-ir-pagar:active { transform: scale(.98); }
/* Junto a "Ir a pagar": cuándo llega y con qué datos */
.pago-nota { display: flex; align-items: flex-start; gap: 9px; padding: 0 2px 4px; font-size: 13px; line-height: 1.45; color: var(--text); }
.pago-nota i { flex-shrink: 0; margin-top: 2px; font-size: 15px; color: var(--ok); }
.pago-nota b { color: var(--ink); overflow-wrap: anywhere; }
/* "Pago seguro con Wompi", justo debajo del botón "Ir a pagar" */
.pago-wompi { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 2px 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.pago-wompi img { display: block; height: 14px; width: auto; }
.btn-nequi-txt { flex: 1; min-width: 0; }
.btn-nequi-txt b { display: block; font-size: 15px; font-weight: 800; line-height: 1.25; color: var(--ink); }
.btn-nequi-txt span { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 700; color: var(--nequi); }
.btn-nequi > i { flex-shrink: 0; font-size: 15px; color: var(--nequi); transition: transform .15s; }
.btn-nequi:hover > i { transform: translateX(3px); }
.badge-rec {
    position: absolute; top: -10px; right: 16px;
    padding: 2px 10px; border-radius: 999px;
    background: var(--nequi); color: #fff;
    font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(218,0,99,.35);
    animation: recPulse 2s cubic-bezier(.4,0,.6,1) infinite;
}
@keyframes recPulse { 50% { opacity: .5; } }
/* "Pagar": botón azul para links de Wompi con todos los medios (C.pagoEnLinea) */
.btn-online {
    background: linear-gradient(180deg, #0a6fd6, var(--brand)); color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 10px 22px -10px rgba(1,88,173,.85);
}
.btn-online:hover { filter: brightness(1.06); }
/* Logos de los medios de pago + "Pago seguro" bajo el botón */
.pay-trust { display: grid; justify-items: center; gap: 5px; padding-top: 4px; }
.pay-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pay-logos > span {
    height: 24px; min-width: 38px; padding: 0 6px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 6px; background: #fff;
    font-size: 10.5px; font-weight: 900; color: var(--muted);
}
.pay-logos img { width: 18px; height: 18px; border-radius: 4px; object-fit: cover; }
.pay-logos .nequi { gap: 4px; padding-left: 3px; color: var(--nequi); font-size: 11px; }
.pay-logos .pse { color: #0f4c97; letter-spacing: .04em; }
.pay-logos .visa { color: #1434CB; font-size: 11.5px; font-style: italic; letter-spacing: .02em; }
.pay-logos .bancolombia { color: #2c2a29; box-shadow: inset 0 -3px 0 #FDDA24; }
.pay-secure { font-size: 12px; font-weight: 600; color: var(--muted); }
.pay-secure i { color: var(--ok); margin-right: 3px; }
.btn-outline { background: #fff; color: var(--text); border: 1.5px solid var(--line); min-height: 50px; font-size: 15px; }
.btn-outline i { color: var(--wa); font-size: 19px; }
.btn-link {
    min-height: 44px; padding: 6px;
    font-size: 14px; font-weight: 700; color: var(--brand);
    text-decoration: underline; text-underline-offset: 3px;
}
.fine { text-align: center; font-size: 12px; color: var(--muted); }
.fine a { color: var(--brand); font-weight: 600; }
.fine i { color: var(--ok); }

/* ── Tipografía ── */
.pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand);
    font-size: 11.5px; font-weight: 700; line-height: 1.3;
    padding: 6px 12px; border-radius: 999px;
}
.h1 { font-size: 28px; line-height: 1.15; font-weight: 900; letter-spacing: -.025em; margin-top: 14px; }
.h1 span { color: var(--brand); }
.h2 { font-size: 23px; line-height: 1.2; font-weight: 900; letter-spacing: -.02em; }
.lead { font-size: 15.5px; line-height: 1.5; color: #475569; margin-top: 10px; }
.sub { font-size: 14.5px; line-height: 1.5; color: var(--muted); margin-top: 6px; }
.lead b, .sub b { color: var(--ink); overflow-wrap: anywhere; }

/* ── Inicio ── */
.hero {
    position: relative; margin-bottom: 18px;
    aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
    background: #e2e8f0;
}
.hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(15,23,42,.5)); pointer-events: none; }
.hero-tag {
    position: absolute; left: 8px; bottom: 8px; z-index: 1; max-width: calc(100% - 16px);
    display: flex; align-items: center; gap: 5px;
    padding: 6px 9px; border-radius: 10px;
    background: rgba(255,255,255,.96); color: var(--brand);
    font-size: 10.5px; font-weight: 800; line-height: 1.3; text-wrap: balance;
}
.hero + .h1 { margin-top: 0; }
.how { margin-top: 20px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fbfcfe; }
.how-title { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.how ol { list-style: none; display: grid; gap: 16px; margin-top: 14px; }
.how li { position: relative; display: flex; align-items: flex-start; gap: 12px; }
/* Línea que une los pasos */
.how li:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 34px; bottom: -14px; width: 2px; background: var(--brand-line); }
.how-n {
    width: 32px; height: 32px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--brand); color: #fff;
    font-size: 14px; font-weight: 800;
}
.how b { display: block; font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.3; padding-top: 1px; }
.how li div span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }

/* ── Examen ── */
.q-count { font-size: 12px; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }
.q-title { font-size: 21px; line-height: 1.35; font-weight: 800; margin-top: 8px; }
.q-figure { margin-top: 16px; padding: 14px 12px; background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; }
.q-figure svg { display: block; width: 100%; height: auto; max-width: 340px; margin: 0 auto; }
.options { display: grid; gap: 12px; margin-top: 22px; }
.opt {
    width: 100%; min-height: 60px;
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; text-align: left;
    border: 2px solid var(--line); border-radius: 14px; background: #fff;
    font-size: 16px; font-weight: 600; color: #1e293b; line-height: 1.35;
    transition: border-color .15s, background .15s;
}
@media (hover: hover) { .opt:not(:disabled):hover { border-color: #93c5fd; background: #f8fbff; } }
.opt:disabled { cursor: default; }
.opt-key {
    width: 30px; height: 30px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 2px solid #cbd5e1;
    font-size: 13px; font-weight: 800; color: var(--muted);
}
.opt.ok { border-color: var(--ok); background: var(--ok-bg); }
.opt.ok .opt-key { background: var(--ok); border-color: var(--ok); color: #fff; }
.opt.bad { border-color: #f87171; background: #fef2f2; }
.opt.bad .opt-key { background: var(--err); border-color: var(--err); color: #fff; }
.q-feedback { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; font-weight: 700; animation: fbPop .35s cubic-bezier(.34,1.56,.64,1); }
.q-feedback.ok { color: #15803d; }
.q-feedback.bad { color: #b91c1c; }
@keyframes fbPop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

/* Cabecera del examen: contador + racha de aciertos */
.q-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.q-streak {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 999px;
    background: #fff7ed; border: 1px solid #fed7aa; color: #c2410c;
    font-size: 12px; font-weight: 800;
    animation: fbPop .4s cubic-bezier(.34,1.56,.64,1);
}
/* Un punto por pregunta: verde acierto, rojo fallo, azul la actual */
.q-dots { display: flex; gap: 4px; margin-top: 10px; }
.q-dots i { flex: 1; height: 5px; border-radius: 99px; background: #e2e8f0; transition: background .3s; }
.q-dots i.ok { background: var(--ok); }
.q-dots i.bad { background: #f87171; }
.q-dots i.now { background: var(--brand); animation: dotNow 1.2s ease-in-out infinite; }
@keyframes dotNow { 50% { opacity: .45; } }

/* Entrada escalonada de la pregunta */
.q-figure { animation: figIn .45s cubic-bezier(.16,1,.3,1) both; }
@keyframes figIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.opt { animation: optIn .4s cubic-bezier(.16,1,.3,1) both; }
.opt:nth-child(1) { animation-delay: .12s; }
.opt:nth-child(2) { animation-delay: .2s; }
.opt:nth-child(3) { animation-delay: .28s; }
.opt:nth-child(4) { animation-delay: .36s; }
@keyframes optIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.opt.ok { animation: optOk .45s cubic-bezier(.34,1.56,.64,1); }
.opt.bad { animation: optBad .4s ease; }
@keyframes optOk { 40% { transform: scale(1.03); } }
@keyframes optBad { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* Animaciones de los gráficos (clases fx-* dentro de los SVG; --d = retraso) */
.q-figure [class*="fx-"] { transform-box: fill-box; transform-origin: center; }
.fx-drop  { animation: fxDrop .55s cubic-bezier(.34,1.56,.64,1) var(--d, 0s) both; }
.fx-fade  { animation: fxFade .5s ease var(--d, 0s) both; }
.fx-slide { animation: fxSlide .9s cubic-bezier(.16,1,.3,1) var(--d, 0s) both; }
.fx-pop   { animation: fxPop .45s cubic-bezier(.34,1.56,.64,1) var(--d, 0s) both; }
.fx-pulse { animation: fxPulse 1.8s ease-in-out var(--d, .6s) infinite; }
.fx-flow  { stroke-dasharray: 5 5; animation: fxFlow .8s linear infinite; }
.fx-drip  { animation: fxDrip 1.4s ease-in var(--d, 0s) infinite; }
.fx-bob   { animation: fxBob 1s ease-in-out infinite; }
@keyframes fxDrop  { from { opacity: 0; transform: translateY(-26px); } to { opacity: 1; transform: none; } }
@keyframes fxFade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fxSlide { from { opacity: 0; transform: translateX(70px); } to { opacity: 1; transform: none; } }
@keyframes fxPop   { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes fxPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes fxFlow  { to { stroke-dashoffset: -10; } }
@keyframes fxDrip  { 0% { opacity: 0; transform: translateY(-4px); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@keyframes fxBob   { 50% { transform: translateY(-1.5px); } }

@media (prefers-reduced-motion: reduce) {
    .q-figure, .q-figure *, .opt, .q-feedback, .q-streak, .q-dots i, .badge-rec { animation: none !important; }
}

/* ── Resultados ── */
.result-icon {
    width: 68px; height: 68px; margin: 16px auto 18px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 28px;
}
.result-icon.ok { background: var(--ok); color: #fff; box-shadow: 0 0 0 8px var(--ok-bg); }
.result-icon.warn { background: #fff7ed; color: #ea580c; }
.result-icon.info { background: var(--brand-soft); color: var(--brand); }
.success-banner {
    display: flex; align-items: center; gap: 12px;
    background: var(--ok-bg); border: 1px solid var(--ok-line); border-radius: 14px;
    padding: 12px 14px;
}
.success-banner > i { color: var(--ok); font-size: 26px; flex-shrink: 0; }
.success-banner b { display: block; font-size: 16px; color: #14532d; }
.success-banner span { display: block; font-size: 13px; color: #166534; margin-top: 1px; }

/* ── Formularios ── */
.back {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 40px; margin: -8px 0 8px;
    font-size: 14px; font-weight: 700; color: var(--muted);
}
.form { display: grid; gap: 16px; margin-top: 20px; }
.field { display: block; }
.label { display: block; font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
/* El nombre del campo va en el placeholder; la etiqueta sigue para lectores de pantalla */
.sin-etiquetas .label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.input {
    width: 100%; height: 54px;
    padding: 0 14px;
    border: 1.5px solid #cbd5e1; border-radius: 12px;
    background: #fff; color: var(--ink);
    font-size: 16px; /* 16px: iOS no hace zoom al enfocar */
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none; appearance: none;
}
select.input {
    padding-right: 40px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(1,88,173,.12); }
.input:user-invalid { border-color: #f87171; background-color: #fef2f2; }
.input-group { display: flex; align-items: stretch; }
.input-group .prefix {
    display: flex; align-items: center; gap: 6px;
    padding: 0 12px; flex-shrink: 0;
    border: 1.5px solid #cbd5e1; border-right: 0; border-radius: 12px 0 0 12px;
    background: #f8fafc; font-size: 15px; font-weight: 700; color: var(--text);
}
.input-group .prefix i { color: var(--wa); font-size: 17px; }
.input-group .input { border-radius: 0 12px 12px 0; }
.hint { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
/* Tipo de documento (CC, TI…) y número en la misma fila */
.doc-row { display: flex; gap: 8px; }
.doc-row select.input { flex: 0 0 auto; width: 100px; padding: 0 30px 0 12px; background-position: right 12px center; font-weight: 700; }
.doc-row select.input.wide { width: 128px; }
.doc-row .input:last-child { flex: 1; min-width: 0; }
.link { font-size: 13.5px; font-weight: 700; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-align: left; }
.email-suggest {
    display: block; width: 100%; text-align: left; margin-top: 8px;
    padding: 10px 12px; border-radius: 10px;
    background: #fffbeb; border: 1px solid #fde68a;
    font-size: 13.5px; color: #92400e;
}
.email-suggest b { color: var(--brand); text-decoration: underline; overflow-wrap: anywhere; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; color: #475569; cursor: pointer; }
.consent input { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; accent-color: var(--brand); }
.privacy { margin: -6px 0 0 30px; font-size: 12.5px; color: #475569; }
.privacy summary { cursor: pointer; color: var(--brand); font-weight: 700; list-style: none; }
.privacy summary::-webkit-details-marker { display: none; }
.privacy div { display: grid; gap: 6px; margin-top: 8px; padding: 12px; border-radius: 10px; background: #f8fafc; border: 1px solid var(--line); line-height: 1.45; }

/* ── Pedido ── */
.summary { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 14px; font-size: 14px; }
.row + .row { border-top: 1px solid #f1f5f9; }
.row > span:first-child { color: var(--muted); flex-shrink: 0; }
.row-val { display: flex; align-items: center; gap: 10px; min-width: 0; text-align: right; }
.row-val b { font-weight: 700; overflow-wrap: anywhere; }
.row.total { background: #f8fafc; }
.row.total > span:first-child { color: var(--ink); font-weight: 800; }
.price { font-size: 26px; font-weight: 900; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price small { font-size: 12px; font-weight: 600; color: #94a3b8; }
.note {
    display: flex; gap: 10px; margin-top: 14px;
    padding: 12px; border-radius: 12px; text-align: left;
    background: #fffbeb; border: 1px solid #fde68a;
    font-size: 13.5px; line-height: 1.45; color: #475569;
}
.note i { color: #d97706; margin-top: 3px; }
.note b { color: var(--ink); }
.reset-link { display: block; margin: 14px auto 0; }
.pago-bajo-precio { display: grid; gap: 6px; margin-top: 14px; }
/* Respuestas clave a la vista debajo del pago (C.claves) */
.claves { list-style: none; display: grid; gap: 11px; margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfe; }
.claves li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.claves i { flex-shrink: 0; margin-top: 2px; font-size: 16px; color: var(--ok); }
.claves b { display: block; font-size: 14px; font-weight: 800; color: var(--ink); }
/* "Prefiero pagar por WhatsApp", junto al pago en línea */
.pago-wa { justify-self: center; margin-bottom: 6px; }
.pago-wa i { margin-right: 4px; font-size: 18px; color: var(--wa); vertical-align: -1px; }
/* "Ayuda" del encabezado, discreta en el paso de pago */
.en-pago .support { border-color: transparent; padding: 7px 4px; font-weight: 600; color: #94a3b8; }
.en-pago .support i { font-size: 13px; color: #94a3b8; }
/* Preguntas frecuentes de la pantalla de pago */
.faq { padding-bottom: 6px; }
.faq details { border-top: 1px solid var(--line); }
.faq .how-title + details { border-top: 0; margin-top: 4px; }
.faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 48px; padding: 10px 0;
    font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.3;
    cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ''; width: 8px; height: 8px; flex-shrink: 0; margin-right: 3px;
    border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
    transform: rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding-bottom: 12px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.faq details a { color: var(--brand); font-weight: 700; }
.btn-outline.nequi i { color: var(--nequi); }
.btn-outline.online i { color: var(--brand); }

/* ── Listo ── */
.info-card {
    display: flex; gap: 12px; text-align: left; margin-top: 20px;
    padding: 14px; border-radius: 14px;
    background: var(--ok-bg); border: 1px solid var(--ok-line);
    font-size: 13.5px; line-height: 1.45; color: #166534;
}
.info-card i { font-size: 22px; color: var(--wa); flex-shrink: 0; }
