@font-face {
  font-family: 'Geist';
  src: url('assets/geist.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --negro: #0D0D0D;
  --blanco: #FFFFFF;
  --gris-medio: #8A8A8A;
  --teal-1: #0C9778;
  --teal-2: #0FAB96;
  --teal-3: #12938E;
  --borde: rgba(255, 255, 255, 0.18);
  --borde-fuerte: rgba(255, 255, 255, 0.35);
  --error: #FF8A80;
}

* { box-sizing: border-box; margin: 0; }

body {
  background: var(--negro);
  color: var(--blanco);
  font-family: 'Geist', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Una sola fuente de color: resplandor teal desde abajo a la derecha, con grano. */
.glow {
  position: fixed;
  right: -30vmax;
  bottom: -35vmax;
  width: 80vmax;
  height: 80vmax;
  border-radius: 50%;
  background: radial-gradient(circle, var(--teal-2) 0%, var(--teal-1) 30%, var(--teal-3) 45%, transparent 70%);
  opacity: 0.45;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.top, main, .foot { position: relative; z-index: 2; }

.top { padding: 28px 20px 0; max-width: 640px; margin: 0 auto; }
.logo { height: 21px; width: auto; display: block; }

main { max-width: 640px; margin: 0 auto; padding: 48px 20px 64px; }

/* Píldoras y tarjetas: el vidrio de marca viene de glass.css (.glass / .glass--pill). */
.pill {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

h1 {
  font-weight: 300;
  font-size: clamp(34px, 8vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 20px 0 16px;
}

.lead { color: rgba(255, 255, 255, 0.72); font-size: 17px; max-width: 34em; }

.card {
  margin-top: 36px;
  padding: 24px 20px;
}

.field { margin-bottom: 22px; }
.field-row { display: flex; gap: 14px; }
.field-row .field { flex: 1; min-width: 0; }
.field-small { flex: 0 0 110px !important; }

label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.hint { color: var(--gris-medio); font-size: 13px; margin: -2px 0 8px; }

input:not([type='range']):not([type='checkbox']) {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--borde);
  border-radius: 12px;
  color: var(--blanco);
  font: inherit;
  font-size: 17px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.2s;
}
input::placeholder { color: rgba(255, 255, 255, 0.3); }
input:focus { border-color: var(--teal-2); }
input[aria-invalid='true'] { border-color: var(--error); }

.prefix, .suffix { display: flex; align-items: center; gap: 8px; }
.prefix span, .suffix span { color: var(--gris-medio); font-size: 15px; }

.error { color: var(--error); font-size: 13px; min-height: 0; margin-top: 6px; }
.error:empty { display: none; }

/* "De cada 10": diez puntos; los que llegan tarde quedan apagados. */
.dots { display: flex; gap: 8px; margin: 12px 0 10px; }
.dot { width: 18px; height: 18px; border-radius: 50%; background: var(--blanco); transition: background 0.2s, border-color 0.2s; border: 1px solid var(--blanco); }
.dot.tarde { background: transparent; border-color: var(--gris-medio); }

.range-row { display: flex; align-items: center; gap: 14px; }
input[type='range'] { flex: 1; accent-color: var(--teal-2); height: 28px; }
output { font-size: 15px; white-space: nowrap; min-width: 92px; text-align: right; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
  padding: 16px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--blanco);
  color: var(--negro);
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: 0.9; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

.result { margin-top: 64px; }
.result-label { color: rgba(255, 255, 255, 0.72); font-size: 17px; margin-top: 20px; }
.big {
  font-weight: 200;
  font-size: clamp(48px, 13vw, 88px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 8px 0 10px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.big small { display: block; font-size: 17px; font-weight: 400; letter-spacing: 0; color: var(--gris-medio); margin-top: 10px; }
.result-sub { font-size: 17px; }
.gate-title { font-size: 17px; margin-bottom: 20px; }

.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; color: rgba(255, 255, 255, 0.72); margin-bottom: 4px; }
.check input { margin-top: 3px; accent-color: var(--teal-2); width: 16px; height: 16px; flex: 0 0 auto; }
.check a { color: var(--blanco); }

.breakdown { margin-top: 64px; }
h2 { font-weight: 300; font-size: clamp(28px, 6vw, 38px); letter-spacing: -0.02em; margin-bottom: 20px; }
h3 { font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.card h3:not(:first-child) { margin-top: 18px; }
.card p { color: rgba(255, 255, 255, 0.72); font-size: 15px; }

.steps { list-style: none; padding: 0; border-top: 1px solid var(--borde); }
.steps li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--borde); font-size: 15px; }
.steps li span { color: rgba(255, 255, 255, 0.72); }
.steps strong { font-weight: 500; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.steps .total strong { font-size: 20px; font-weight: 400; }

.note { color: var(--gris-medio); font-size: 13px; margin-top: 12px; }
.btn-cta { margin-top: 28px; }
.aviso { color: var(--gris-medio); font-size: 13px; margin-top: 12px; text-align: center; }

.foot { text-align: center; color: var(--gris-medio); font-size: 13px; padding: 0 20px 32px; }

.revelar { animation: revelar 0.5s ease-out both; }
@keyframes revelar { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .revelar { animation: none; }
  .btn, .dot, input { transition: none; }
}

@media (max-width: 420px) {
  .field-row { flex-direction: column; gap: 0; }
  .field-small { flex: 1 1 auto !important; }
}
