/* Visions Project — sistema visual.
   Sale del estilo de los vídeos de @jdbermudezz: fondo cálido casi negro, marfil, rótulos en mayúsculas espaciadas
   con una rayita debajo, la palabra clave en serif cursiva y un naranja brasa para lo que importa. */
@font-face { font-family: 'Inter Tight'; src: url('/fonts/inter-tight-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  color-scheme: dark;
  --fondo: #0e0c0a;
  --sup: #171410;
  --sup-2: #1f1b16;
  --sup-3: #29241d;
  --linea: #2e2821;
  --linea-2: #3d352c;
  --texto: #f1eadf;
  --suave: #b2a899;
  --tenue: #7d7366;
  --brasa: #e8823a;
  --brasa-2: #f4a466;
  --brasa-fondo: rgba(232, 130, 58, .12);
  --ok: #a9c98a;
  --ok-fondo: rgba(169, 201, 138, .12);
  --peligro: #e8684f;
  --sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --r: 16px;
  --r-s: 10px;
  --sombra: 0 20px 60px rgba(0, 0, 0, .45);
  --seguro-abajo: env(safe-area-inset-bottom, 0px);
  --seguro-arriba: env(safe-area-inset-top, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brasa); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brasa); color: #120d08; }
.oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tipografía */
.rotulo { display: inline-flex; flex-direction: column; gap: 8px; font: 600 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--suave); }
.rotulo::after { content: ''; width: 22px; height: 1.5px; background: var(--brasa); }
.rotulo.centro { align-items: center; }
.titular { font: 500 clamp(34px, 6vw, 68px)/1.02 var(--sans); letter-spacing: -.035em; margin: 0; text-wrap: balance; }
.titular em, .t-serif em, h2 em, h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--brasa-2); }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; text-wrap: balance; }
h2 { font: 500 clamp(28px, 4.2vw, 46px)/1.06 var(--sans); }
h3 { font: 600 19px/1.25 var(--sans); }
.serif { font-family: var(--serif); font-weight: 400; }
.suave { color: var(--suave); }
.tenue { color: var(--tenue); }
.mono { font-variant-numeric: tabular-nums; }
p { margin: 0; }

/* Botones */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--brasa); color: #160e07; font-weight: 650; font-size: 15.5px; letter-spacing: -.01em; text-decoration: none; transition: transform .15s ease, background .2s ease, opacity .2s; white-space: nowrap; }
.boton:hover { background: var(--brasa-2); }
.boton:active { transform: scale(.98); }
.boton[disabled] { opacity: .45; pointer-events: none; }
.boton.secundario { background: transparent; color: var(--texto); box-shadow: inset 0 0 0 1px var(--linea-2); }
.boton.secundario:hover { background: var(--sup-2); }
.boton.fantasma { background: transparent; color: var(--suave); min-height: 40px; padding: 0 12px; }
.boton.fantasma:hover { color: var(--texto); background: var(--sup-2); }
.boton.ancho { width: 100%; }
.boton.peq { min-height: 38px; padding: 0 14px; font-size: 14px; }
.boton svg { width: 18px; height: 18px; }

/* Campos */
.campo { display: grid; gap: 8px; }
.campo > span { font-size: 13px; font-weight: 600; color: var(--suave); }
.entrada, textarea.entrada, select.entrada { width: 100%; min-height: 50px; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--linea-2); background: var(--sup); color: var(--texto); font-size: 16px; transition: border-color .2s, background .2s; }
textarea.entrada { min-height: 96px; resize: vertical; line-height: 1.45; }
.entrada:focus { outline: none; border-color: var(--brasa); background: var(--sup-2); }
.entrada::placeholder { color: var(--tenue); }
.aviso-error { color: var(--peligro); font-size: 14px; min-height: 1em; }
.marca-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--suave); cursor: pointer; }
.marca-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brasa); flex: none; }

/* Tarjetas y piezas */
.tarjeta { background: var(--sup); border: 1px solid var(--linea); border-radius: var(--r); padding: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--sup-3); color: var(--suave); font-size: 12px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.chip svg { width: 13px; height: 13px; flex: none; }
button.chip { border: 0; cursor: pointer; }
.chip.brasa { background: var(--brasa-fondo); color: var(--brasa-2); }
.chip.ok { background: var(--ok-fondo); color: var(--ok); }
.barra { height: 6px; border-radius: 99px; background: var(--sup-3); overflow: hidden; }
.barra > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brasa), var(--brasa-2)); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 13px/1 var(--sans); letter-spacing: .26em; }
.marca svg { width: 28px; height: 28px; }

/* Planes */
.planes { display: grid; gap: 10px; }
.plan { position: relative; display: grid; gap: 6px; padding: 16px; border-radius: 16px; border: 1px solid var(--linea-2); background: var(--sup); cursor: pointer; transition: border-color .15s, background .15s; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan-cab { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.plan-cab > b { font-size: 18px; font-weight: 650; }
.plan-precio { margin-left: auto; color: var(--suave); font-size: 13.5px; white-space: nowrap; }
.plan-precio b { color: var(--texto); font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.plan-lema { color: var(--suave); font-size: 14px; }
.plan ul { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; color: var(--suave); }
.plan li::before { content: '✓'; color: var(--brasa); margin-right: 8px; font-weight: 700; }
.plan li.no { color: var(--tenue); }
.plan li.no::before { content: '✗'; color: var(--tenue); }
.plan:has(input:checked) { border-color: var(--brasa); background: var(--brasa-fondo); box-shadow: inset 0 0 0 1px var(--brasa); }
.plan:has(input:focus-visible) { outline: 2px solid var(--brasa); outline-offset: 2px; }
.plan.lleno { opacity: .5; cursor: not-allowed; }

/* Avisos flotantes */
#avisos { position: fixed; left: 50%; bottom: calc(96px + var(--seguro-abajo)); transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--texto); color: #15110c; padding: 13px 16px; border-radius: 14px; font-weight: 600; font-size: 14.5px; box-shadow: var(--sombra); animation: entra .3s cubic-bezier(.2, .8, .2, 1); display: flex; gap: 10px; align-items: center; }
.toast.xp { background: var(--brasa); }
.toast.error { background: var(--peligro); color: #fff; }
@keyframes entra { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

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