/* Página de Método Aguante: el test, el aviso y el pago. Negro azulado con ámbar; letras Archivo (títulos) e Inter. */
:root {
  --fondo: #0B0E13;
  --fondo-2: #10151C;
  --tarjeta: #151B23;
  --tarjeta-2: #1B222C;
  --borde: #26303C;
  --tinta: #F3F5F8;
  --suave: #9AA4B2;
  --acento: #F5A524;
  --acento-claro: #FFC861;
  --acento-tinta: #1A1206;
  --verde: #34D399;
  --rojo: #F87171;
  --titulos: "Archivo", "Inter", system-ui, sans-serif;
  --texto: "Inter", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--fondo); color: var(--tinta); font: 17px/1.55 var(--texto); min-height: 100vh; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: -20% -30% auto; height: 70vh; background: radial-gradient(ellipse at 50% 0%, rgba(245, 165, 36, 0.16), transparent 62%); pointer-events: none; z-index: 0; }
main, section, header, footer, .barra-fija { position: relative; z-index: 1; }
a { color: var(--acento); }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.barra { display: flex; align-items: center; justify-content: space-between; max-width: 640px; margin: 0 auto; padding: 16px 18px; }
.marca { display: flex; align-items: center; gap: 10px; color: var(--tinta); text-decoration: none; font: 600 17px var(--titulos); letter-spacing: 0.01em; }
.marca b { color: var(--acento); font-weight: 800; }
.marca svg { width: 30px; height: 30px; }
.barra-nota { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--suave); }
.barra-nota svg { width: 15px; height: 15px; }

main, .test, .analizando, .resultado, .pie { max-width: 640px; margin: 0 auto; padding: 0 18px; }

.portada { padding: 34px 0 30px; text-align: center; }
.chip { display: inline-block; border: 1px solid rgba(245, 165, 36, 0.45); color: var(--acento-claro); background: rgba(245, 165, 36, 0.08); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
h1 { font: 800 clamp(34px, 9vw, 52px) / 1.04 var(--titulos); letter-spacing: -0.02em; margin: 20px 0 16px; }
h1 span { display: block; color: var(--acento); }
.bajada { color: var(--suave); font-size: 18px; max-width: 30em; margin: 0 auto 26px; }
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 30px; border: 0; border-radius: 16px; background: var(--acento); color: var(--acento-tinta); font: 700 18px var(--titulos); text-decoration: none; box-shadow: 0 14px 34px rgba(245, 165, 36, 0.28); transition: transform 0.15s ease, background 0.15s ease; width: 100%; max-width: 420px; }
.boton:hover { background: var(--acento-claro); }
.boton:active { transform: scale(0.98); }
.boton:disabled { opacity: 0.55; cursor: default; }
.boton-borde { background: transparent; color: var(--acento); border: 2px solid var(--acento); box-shadow: none; }
.boton-borde:hover { background: rgba(245, 165, 36, 0.1); }
.boton-grande { min-height: 64px; font-size: 19px; }
.enlace { background: none; border: 0; color: var(--suave); text-decoration: underline; text-underline-offset: 3px; margin-top: 16px; font-size: 15px; }
.confianza { list-style: none; display: grid; gap: 10px; margin: 28px auto 0; max-width: 360px; text-align: left; }
.confianza li { display: flex; align-items: center; gap: 10px; color: var(--suave); font-size: 15px; }
.confianza svg { color: var(--verde); }

.dato { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 22px; padding: 24px 22px; margin: 6px 0 34px; }
.dato .dato-cifra { font: 800 44px/1 var(--titulos); color: var(--acento); margin-bottom: 8px; }
.dato-cifra small { font: 600 18px var(--texto); color: var(--tinta); margin-left: 6px; }
.dato p { color: var(--suave); }
.fuente { font-size: 12px; margin-top: 10px; opacity: 0.8; }

h2 { font: 800 28px/1.15 var(--titulos); letter-spacing: -0.01em; margin-bottom: 18px; }
.pasos { margin-bottom: 40px; text-align: center; }
.pasos ol { list-style: none; counter-reset: paso; display: grid; gap: 12px; margin-bottom: 24px; text-align: left; }
.pasos li { counter-increment: paso; position: relative; background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 18px; padding: 18px 18px 18px 66px; color: var(--suave); }
.pasos li b { color: var(--tinta); display: block; }
.pasos li::before { content: counter(paso); position: absolute; left: 18px; top: 18px; width: 34px; height: 34px; border-radius: 50%; background: rgba(245, 165, 36, 0.12); color: var(--acento); font: 800 17px/34px var(--titulos); text-align: center; }

.preguntas { margin-bottom: 40px; }
details { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 16px; margin-bottom: 10px; }
summary { list-style: none; padding: 17px 48px 17px 18px; font-weight: 600; position: relative; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 13px; color: var(--acento); font: 700 24px var(--titulos); }
details[open] summary::after { content: "–"; }
details p { padding: 0 18px 18px; color: var(--suave); font-size: 16px; }

/* ---------- el test ---------- */
.test { min-height: 100vh; padding-top: 8px; padding-bottom: 40px; display: flex; flex-direction: column; }
.test-arriba { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.volver { width: 42px; height: 42px; border-radius: 12px; background: var(--tarjeta); border: 1px solid var(--borde); display: grid; place-items: center; }
.progreso { flex: 1; height: 8px; border-radius: 999px; background: var(--tarjeta-2); overflow: hidden; }
.progreso i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--acento), var(--acento-claro)); border-radius: 999px; transition: width 0.3s ease; }
.cuenta { font: 700 14px var(--titulos); color: var(--suave); min-width: 40px; text-align: right; }
.test-cuerpo { flex: 1; animation: entra 0.28s ease; }
.test-cuerpo h2 { font-size: clamp(25px, 6.6vw, 32px); margin-bottom: 10px; }
.ayuda { color: var(--suave); font-size: 15px; margin-bottom: 18px; }
.opciones { display: grid; gap: 10px; margin: 20px 0 22px; }
.opcion { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 14px 18px; text-align: left; background: var(--tarjeta); border: 1.5px solid var(--borde); border-radius: 16px; font-size: 17px; font-weight: 500; transition: border-color 0.15s ease, background 0.15s ease; }
.opcion i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #4A5563; flex: none; display: grid; place-items: center; }
.varias .opcion i { border-radius: 7px; }
.opcion:hover { border-color: #3B4655; }
.opcion.elegida { border-color: var(--acento); background: rgba(245, 165, 36, 0.09); }
.opcion.elegida i { border-color: var(--acento); background: var(--acento); box-shadow: inset 0 0 0 4px var(--tarjeta); }
.varias .opcion.elegida i { box-shadow: none; background: var(--acento) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1206' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 15px no-repeat; }
.test-nota { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--suave); font-size: 13px; }
.test-nota svg { width: 14px; height: 14px; }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } }

.analizando { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.reloj { width: 76px; height: 76px; border-radius: 50%; border: 5px solid var(--tarjeta-2); border-top-color: var(--acento); animation: gira 0.9s linear infinite; margin-bottom: 28px; }
@keyframes gira { to { transform: rotate(360deg); } }
.analizando ul { list-style: none; display: grid; gap: 12px; margin-top: 8px; }
.analizando li { color: var(--suave); opacity: 0.45; display: flex; align-items: center; gap: 10px; justify-content: center; transition: opacity 0.3s ease, color 0.3s ease; }
.analizando li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #4A5563; }
.analizando li.listo { opacity: 1; color: var(--tinta); }
.analizando li.listo::before { border-color: var(--verde); background: var(--verde); box-shadow: inset 0 0 0 4px var(--fondo); }

/* ---------- el aviso y el pago ---------- */
.resultado { padding-top: 14px; padding-bottom: 120px; text-align: center; }
.tarjeta { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 20px; padding: 22px; margin-bottom: 18px; text-align: left; }
.tarjeta.centro { text-align: center; }
.tarjeta .boton { margin-top: 18px; }
.suave { color: var(--suave); }
.alarma { border-color: rgba(248, 113, 113, 0.55); background: rgba(248, 113, 113, 0.08); }
.alarma h3 { font: 800 19px var(--titulos); color: var(--rojo); margin-bottom: 8px; }
.alarma ul { margin: 0 0 10px 20px; }
.alarma p { color: var(--tinta); font-size: 15.5px; }
.suave-alarma { border-color: rgba(245, 165, 36, 0.4); background: rgba(245, 165, 36, 0.07); }
.listo-chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(52, 211, 153, 0.1); color: var(--verde); border: 1px solid rgba(52, 211, 153, 0.35); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 14px; margin: 10px 0 18px; }
.listo-chip svg { width: 15px; height: 15px; }
.senales { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.senales-numero { font: 800 92px/1 var(--titulos); color: var(--acento); letter-spacing: -0.04em; }
.senales-texto { font: 700 24px var(--titulos); color: var(--tinta); }
.aviso-titulo { margin: 14px auto 12px; max-width: 18em; font-size: clamp(25px, 6.6vw, 31px); }
.aviso-texto { color: var(--suave); max-width: 32em; margin: 0 auto 24px; }
.informe { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 20px; padding: 6px 18px; margin: 0 0 22px; text-align: left; }
.fila { display: flex; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--borde); }
.fila:last-child { border-bottom: 0; }
.fila span:first-child { flex: 1; font-weight: 600; }
.fila svg { color: var(--acento); }
.medidor { display: flex; gap: 4px; filter: blur(3px); }
.medidor i { width: 16px; height: 10px; border-radius: 3px; background: var(--acento); }
.medidor i:nth-child(n + 4) { background: var(--tarjeta-2); }
.borroso { filter: blur(5px); color: var(--suave); user-select: none; }
.precio-caja { background: linear-gradient(180deg, rgba(245, 165, 36, 0.14), rgba(245, 165, 36, 0.03)); border: 1.5px solid rgba(245, 165, 36, 0.55); border-radius: 24px; padding: 26px 20px 22px; margin-bottom: 22px; }
.precio-arriba { font: 700 15px var(--titulos); color: var(--acento-claro); letter-spacing: 0.06em; text-transform: uppercase; }
.precio { font: 800 clamp(34px, 10.5vw, 52px)/1.1 var(--titulos); margin: 8px 0 4px; white-space: nowrap; }
.precio small { display: block; font: 600 15px var(--texto); color: var(--suave); margin-top: 4px; }
.precio-sub { color: var(--suave); font-size: 15px; margin-bottom: 20px; }
.incluye { list-style: none; display: grid; gap: 9px; margin: 22px auto 0; max-width: 360px; text-align: left; }
.incluye li { position: relative; padding-left: 28px; font-size: 15.5px; }
.incluye li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--verde); box-shadow: inset 0 0 0 4px var(--tarjeta); }
.seguro { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--suave); font-size: 13px; margin-top: 18px; }
.seguro svg { width: 14px; height: 14px; }
.nota-moneda { color: var(--suave); font-size: 11.5px; margin-top: 10px; opacity: 0.85; }
.error { color: var(--rojo); font-size: 15px; margin-top: 10px; }
.ok { color: var(--verde); }
.espera { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 18px; padding: 18px; margin-bottom: 18px; }
.fila-form { display: flex; gap: 8px; margin-top: 12px; }
.fila-form input { flex: 1; min-width: 0; min-height: 52px; border-radius: 14px; border: 1.5px solid var(--borde); background: var(--fondo-2); color: var(--tinta); padding: 0 14px; font: inherit; }
.fila-form .boton { width: auto; min-height: 52px; padding: 0 18px; font-size: 16px; }
.centro { text-align: center; }

.barra-fija { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(11, 14, 19, 0), var(--fondo) 30%); display: flex; justify-content: center; z-index: 5; }
.pie { padding-top: 10px; padding-bottom: 40px; color: var(--suave); font-size: 13px; text-align: center; }
.pie p { margin-bottom: 8px; }
.pie a { color: var(--suave); }
#test:not([hidden]) ~ .pie, #analizando:not([hidden]) ~ .pie { display: none; }
