/* Pequinido — dirección «Nido» (docs/diseno/sistema.md).
   La página sigue un día en la guardería: el reloj fijo avanza con el scroll. */
:root {
  --bg: #F4F7F6; --surface: #FFFFFF; --fg: #14201C; --muted: #4D5B57; --line: #CFDAD6;
  --primary: #1F6F5C; --on-primary: #FFFFFF; --container: #D3EEE5; --on-container: #0B3B2F;
  --accent: #E8893A; --on-accent: #2B1300; --accent-text: #A8560F;
  --band: #1F6F5C; --on-band: #FFFFFF; --on-band-muted: #D3EEE5;
  --display: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1513; --surface: #19221F; --fg: #E3ECE8; --muted: #A4B3AE; --line: #2F3D38;
    --primary: #7FD3BB; --on-primary: #00382C; --container: #1F3D34; --on-container: #C9F0E3;
    --accent: #F4A261; --on-accent: #2B1300; --accent-text: #F4A261;
    --band: #173A31; --on-band: #E3ECE8; --on-band-muted: #A9D8C9; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1513; --surface: #19221F; --fg: #E3ECE8; --muted: #A4B3AE; --line: #2F3D38;
  --primary: #7FD3BB; --on-primary: #00382C; --container: #1F3D34; --on-container: #C9F0E3;
  --accent: #F4A261; --on-accent: #2B1300; --accent-text: #F4A261;
  --band: #173A31; --on-band: #E3ECE8; --on-band-muted: #A9D8C9; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.55 var(--body); overflow-x: clip; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.25rem; font-weight: 800; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap {
  max-width: 1120px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
section { padding-block: clamp(56px, 9vw, 96px); }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 62ch; }
.head { display: grid; gap: 12px; margin-bottom: 40px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  font: 800 1rem var(--display); text-decoration: none;
  background: var(--accent); color: var(--on-accent); transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.play {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px;
  border: 1.5px solid currentColor; border-radius: 999px; font: 700 .95rem/1.15 var(--display); cursor: default;
}
.play svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
.play small { display: block; font: 600 .72rem var(--body); opacity: .85; }

/* Inicio: la banda curva de la app, con el marbete */
.hero { background: var(--band); color: var(--on-band); padding-block: 0 clamp(72px, 10vw, 120px); border-radius: 0 0 50% 50% / 0 0 64px 64px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { font: 800 1.5rem var(--display); text-decoration: none; letter-spacing: -.01em; }
.brand img { display: block; height: 40px; width: auto; }
.top nav { display: flex; gap: 22px; font-weight: 600; font-size: .95rem; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: clamp(24px, 5vw, 56px); }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-copy p { color: var(--on-band-muted); font-size: 1.15rem; max-width: 50ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.marbete {
  aspect-ratio: 85.6 / 54; width: 100%; max-width: 400px; justify-self: center; transform: rotate(-3deg);
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center;
  padding: 7% 7%; border-radius: 18px; background: #FFFFFF; color: #14201C;
  box-shadow: 0 18px 40px rgb(0 0 0 / .28);
}
.marbete b { display: block; font: 800 clamp(1.1rem, 2.4vw, 1.4rem)/1.15 var(--display); }
.marbete span { display: block; font-size: .82rem; color: #4D5B57; }
.marbete .logo { font: 800 .8rem var(--display); color: #1F6F5C; margin-bottom: 12px; }
.marbete .qr { width: clamp(84px, 11vw, 124px); height: auto; display: block; }

/* El día: reloj y teléfono fijos a la derecha en pantallas grandes */
.day-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.steps { display: grid; gap: clamp(56px, 12vh, 120px); min-width: 0; }
.step { display: grid; gap: 10px; }
.time { font: 800 clamp(2.6rem, 6vw, 3.6rem)/1 var(--display); font-variant-numeric: tabular-nums; color: var(--primary); letter-spacing: -.02em; }
.step p { color: var(--muted); max-width: 52ch; }
.step .screen { margin-top: 14px; max-width: 340px; }
.side { display: none; }
.js-wide .side { display: grid; gap: 14px; justify-items: center; position: sticky; top: 32px; }
.js-wide .step .screen { display: none; }
.js-wide .steps { gap: 24px; }
.js-wide .step { min-height: 60vh; align-content: center; opacity: .45; transition: opacity .25s ease; }
.js-wide .step.on { opacity: 1; }
.side .clock { font: 800 3.4rem/1 var(--display); font-variant-numeric: tabular-nums; color: var(--primary); }
.phone { width: 300px; padding: 12px; border-radius: 36px; background: #14201C; }
.phone .screen { min-height: 420px; border: 0; border-radius: 26px; }

.screen { display: grid; gap: 12px; align-content: start; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--fg); font-size: .92rem; }
.screen .bar { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; font-weight: 700; }
.kid { display: flex; gap: 12px; align-items: center; }
.ava { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--container); color: var(--on-container); font: 800 1.05rem var(--display); }
.kid b, .card b { font-family: var(--display); font-weight: 800; }
.kid span { display: block; color: var(--muted); font-size: .82rem; }
.card { padding: 12px 14px; border-radius: 12px; background: var(--container); color: var(--on-container); }
.rows { display: grid; gap: 0; }
.rows div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rows div:last-child { border: 0; }
.fake-btn { display: grid; place-items: center; min-height: 44px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font: 800 .92rem var(--display); }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.photos i { aspect-ratio: 1; border-radius: 12px; background: var(--container); display: grid; place-items: center; }
.photos i::after { content: ""; width: 42%; aspect-ratio: 1; border-radius: 50% 50% 46% 46%; background: var(--primary); opacity: .35; }
.photos i:nth-child(2)::after { background: var(--accent); opacity: .6; border-radius: 22%; }
.photos i:nth-child(3)::after { background: var(--accent); opacity: .5; border-radius: 50%; }

.screen.shot { padding: 0; overflow: hidden; align-content: center; }
.screen.shot img { display: block; width: 100%; height: auto; }

/* El minuto que importa */
.minute { background: var(--container); color: var(--on-container); }
.minute .lead { color: inherit; }
.ruler { display: grid; gap: 18px; padding: clamp(20px, 4vw, 36px); border-radius: 16px; background: var(--surface); color: var(--fg); }
.read { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; }
.read output { font: 800 clamp(2.6rem, 8vw, 4rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.verdict { font: 800 1.15rem var(--display); }
.verdict[data-extra="1"] { color: var(--accent-text); }
.ruler input { width: 100%; accent-color: var(--primary); height: 32px; cursor: pointer; }
.ruler small { color: var(--muted); font-size: .9rem; }
.ticks { display: flex; justify-content: space-between; color: var(--muted); font: 700 .85rem var(--body); font-variant-numeric: tabular-nums; }

.proof { margin: 24px 0 0; display: grid; gap: 10px; justify-items: start; }
.proof img { display: block; width: 100%; max-width: 560px; height: auto; border-radius: 16px; border: 1px solid var(--line); }
.proof figcaption { font-weight: 600; }

.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.roles ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }

.video { display: grid; place-items: center; gap: 10px; aspect-ratio: 16 / 9; width: 100%; padding: 16px; border: 0; border-radius: 16px; background: var(--band); color: var(--on-band); font: 800 1.1rem var(--display); text-align: center; }
.video svg { width: 64px; height: 64px; fill: var(--accent); }
.video iframe { width: 100%; height: 100%; border: 0; border-radius: 16px; }
.video small { display: block; font: 600 .9rem var(--body); color: var(--on-band-muted); }

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.plan { display: grid; gap: 6px; align-content: start; padding: 24px 20px; min-width: 0; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan.pick { background: var(--container); color: var(--on-container); }
.plan .price { font: 800 2rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.plan .who { font-weight: 700; }
.plan p { font-size: .92rem; }
.note { margin-top: 18px; color: var(--muted); font-size: .92rem; }

.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
.trust p { color: var(--muted); margin-top: 6px; }

.faq { display: grid; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 16px 0; font: 800 1.08rem var(--display); cursor: pointer; }
.faq p { padding-bottom: 18px; color: var(--muted); }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.about-copy { display: grid; gap: 14px; }
form { display: grid; gap: 14px; padding: clamp(20px, 4vw, 32px); border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
label { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"] {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--fg); font: 400 1rem var(--body);
}
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; accent-color: var(--primary); }
.status { color: var(--primary); font-weight: 700; }

/* Campo oculto contra robots */
.hp { position: absolute; left: -9999px; }

.legal { display: grid; gap: 14px; padding-block: 32px 64px; max-width: 760px; }
.legal h1 { font-size: 2.2rem; }
.legal h2 { font-size: 1.3rem; margin-top: 14px; }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

footer { background: var(--band); color: var(--on-band); padding-block: 36px; font-size: .92rem; }
.foot { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.foot div { display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (max-width: 860px) {
  .top nav { display: none; }
  .hero-grid, .about, .roles, .trust { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .day-grid { grid-template-columns: minmax(0, 1fr); }
  .marbete { max-width: 340px; }
}
@media (max-width: 460px) { .two { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
