/* =========================================================================
   NIGHT & MORROW · base v2 (landing, quiz y legales)
   Todo sans: Poppins (títulos, botones) + Nunito Sans (cuerpo).
   Paleta: crema de fondo, noche solo en 2 bandas, durazno = acción,
   luna = íconos y etiquetas. Ver web/DISENO-v2.md.
   ========================================================================= */

@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(../assets/fonts/poppins-500.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(../assets/fonts/poppins-600.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(../assets/fonts/poppins-700.woff2) format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../assets/fonts/nunitosans-var.woff2) format('woff2'); }

:root {
  --night: #13152E;
  --night-2: #1C1F42;
  --moon: #5665C1;
  --moon-soft: #E6E8F7;
  --peach: #F0B795;
  --peach-deep: #E39A70;
  --peach-soft: #FBE9DD;
  --terra: #A9542F;   /* durazno oscuro para texto chico sobre crema (contraste 4.6:1) */
  --terra-2: #C9704A;
  --cream: #F7F1E8;
  --sand: #EFE5D5;
  --paper: #FFFCF7;
  --ink: #13152E;
  --text: #33354F;
  --text-soft: #5D5F78;
  --on-dark: #F7F1E8;
  --on-dark-soft: #C9C6D6;
  --line: rgba(19, 21, 46, .10);
  --shadow-sm: 0 2px 6px rgba(19, 21, 46, .06), 0 8px 24px rgba(19, 21, 46, .07);
  --shadow-lg: 0 18px 50px rgba(19, 21, 46, .18), 0 4px 12px rgba(19, 21, 46, .08);
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --f-title: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-text: 'Nunito Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--f-title); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--moon); }
strong, b { font-weight: 700; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 640px; }
.section { padding: 56px 0; }
.center { text-align: center; }

.eyebrow {
  font-family: var(--f-title); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--peach); margin: 0 0 12px;
}
.eyebrow--ink { color: #A9542F; }

/* Botón: durazno sobre noche/crema, texto noche (contraste > 9:1) */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 58px; padding: 14px 22px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--peach); color: var(--night);
  font-family: var(--f-title); font-weight: 700; font-size: 17px; line-height: 1.2;
  text-decoration: none; text-align: center;
  box-shadow: 0 10px 24px rgba(227, 154, 112, .38), inset 0 -2px 0 rgba(19, 21, 46, .10);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn:hover { background: #F4C3A6; transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn__arrow { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(19, 21, 46, .10); flex: none; }
.btn__arrow svg { width: 14px; height: 14px; }
.btn-note { margin: 10px 0 0; font-size: 13.5px; text-align: center; color: var(--text-soft); }
.btn-note--dark { color: var(--on-dark-soft); }

/* Marcadores de pendientes (solo internos, se ven a propósito) */
.ph { background: #FFF2B8; color: #6B4E00; font-family: var(--f-title); font-size: .78em; font-weight: 600; padding: 1px 6px; border-radius: 4px; }

/* Huecos de mockups: el archivo de img/mockups/ tapa al respaldo si existe */
.slot { position: relative; overflow: hidden; }
.slot > .slot__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 2; }

/* ---------- Footer y legales ---------- */
.footer { background: var(--sand); color: var(--text-soft); padding: 40px 0 120px; font-size: 13.5px; }
.footer p { margin: 0 0 10px; }
.footer__logo { width: 170px; height: auto; margin: 0 0 18px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 16px; padding: 0; list-style: none; font-family: var(--f-title); font-size: 13px; }
.footer__links a, .footer__links button { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--f-title); font-size: 13px; }

.legal-head { background: var(--night); padding: 16px 0; }
.legal-head img { width: 150px; height: auto; }
.legal { background: var(--cream); }
.legal h1 { font-size: 30px; }
.legal h2 { font-size: 20px; margin-top: 1.6em; }
.legal li { margin: 0 0 8px; }
.legal__back { margin-top: 32px; font-family: var(--f-title); font-weight: 600; }

/* ---------- Banner de cookies y aviso ---------- */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  max-width: 520px; margin: 0 auto; padding: 18px;
  background: var(--paper); color: var(--text); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); font-size: 14.5px;
}
.consent[hidden] { display: none; }
.consent__title { font-family: var(--f-title); font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.consent__actions { display: flex; gap: 10px; margin-top: 12px; }
.consent__actions button { flex: 1; min-height: 46px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-family: var(--f-title); font-weight: 600; cursor: pointer; }
.consent__actions .consent__accept { background: var(--night); color: var(--cream); }
.toast { position: fixed; left: 12px; right: 12px; top: 12px; z-index: 70; max-width: 520px; margin: 0 auto; padding: 12px 16px; background: var(--night); color: var(--cream); border-radius: var(--r-sm); font-size: 14px; box-shadow: var(--shadow-lg); }
.toast[hidden] { display: none; }

/* Revelado suave (core.js agrega .is-in) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.nw { white-space: nowrap; }
.slot.has-img > :not(.slot__img) { display: none !important; }
.slot__img--cover { object-fit: cover !important; }

/* ===== PENDIENTES DE VALEN · se cambian con UNA línea ===== */
/* Garantía: los días salen de esta variable (landing y quiz). 15 → 7: cambiar "15" por "7". */
:root { --gdays: "15"; }
.gd::before { content: var(--gdays); }
/* Para sacar TODA mención de garantía: descomentar la línea de abajo. */
/* .guar, .guarantee, .qz-guarantee, .seal, .seal-sm { display: none !important; } */
/* Ancla ($297 y valor de cada pieza): para sacarla, descomentar la línea de abajo. */
/* .anchor { display: none !important; } */
