/*
  bona mu! · landing lista de espera
  Paleta y tipografía fijas del manual de marca (no tocar):
  crema #F5EBDD fondo · café #38251C texto · coral #FF765E botones
  lavanda #B7ACCD solo sobre fondos oscuros · ocre #C4A14C solo detalle
  DM Serif Text (titulares) + DM Sans (texto)
*/
:root {
  color-scheme: light;
  --crema: #F5EBDD;
  --crema-2: #EFE0CB;   /* crema un tono más profundo, para bloques */
  --cafe: #38251C;
  --cafe-70: rgba(56, 37, 28, .72);
  --coral: #FF765E;
  --lavanda: #B7ACCD;
  --ocre: #C4A14C;
  --serif: "DM Serif Text", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-lg: 28px;
  --r-md: 18px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--cafe);
  font: 17px/1.6 var(--sans);
  overflow-x: clip;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 7vw, 64px); letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 4.6vw, 46px); }
h3 { font-size: 23px; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cafe); outline-offset: 3px; border-radius: 6px; }

.band { padding: clamp(56px, 8vw, 112px) max(5vw, 20px); }
.band > * { max-width: var(--max); margin-inline: auto; }

/* Botones: coral con texto café (contraste 5,5:1). Nunca blanco sobre coral. */
.btn {
  appearance: none; border: 0; cursor: pointer;
  font: 700 17px/1 var(--sans);
  color: var(--cafe); background: var(--coral);
  border-radius: 999px; padding: 18px 30px; min-height: 56px;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { background: #FF8A75; }
.btn:active { transform: scale(.98); }
.btn-sm { font-size: 15px; padding: 10px 18px; min-height: 44px; }
.btn-lg { width: 100%; max-width: 360px; }
.micro { font-size: 14px; color: var(--cafe-70); margin-top: 12px; }

.sq { display: inline-block; width: 14px; height: 14px; border-radius: 3px; background: var(--coral); }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px max(5vw, 20px);
  background: rgba(245, 235, 221, .92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 26px/1 var(--serif); text-decoration: none; padding: 8px 0; }

/* 01 Hero: el texto y el botón entran en la primera pantalla del celular */
.hero { padding-top: clamp(16px, 4vw, 56px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero { display: grid; gap: 36px; max-width: calc(var(--max) + 10vw); margin-inline: auto; }
.hero > * { max-width: none; margin: 0; }
.hero .lead { font-size: 17px; margin: 18px 0 26px; max-width: 34em; }
.hero-art { margin: 0; }
.hero-art svg { display: block; width: 100%; height: auto; max-height: 520px; }
@media (min-width: 880px) {
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 64px; }
  .hero .lead { font-size: 19px; }
}
@media (max-width: 879px) {
  .hero-art svg { max-height: 360px; margin-inline: auto; }
}
@media (max-width: 380px) {
  h1 { font-size: 34px; }
  .hero .lead { font-size: 16px; margin: 14px 0 20px; }
}

/* 02 ¿Te suena? */
.suena { background: var(--crema-2); }
.quotes { list-style: none; padding: 0; margin: 36px auto 0; display: grid; gap: 16px; }
.quotes li { background: var(--crema); border-radius: var(--r-md); padding: 26px 26px 26px 28px; }
.quotes li:nth-child(2) { border-top-left-radius: 4px; }
.quotes blockquote { margin: 0; font: 22px/1.35 var(--serif); }
.kicker { margin-top: 36px; font-size: 20px; font-weight: 700; }
@media (min-width: 880px) {
  .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .quotes li:nth-child(2) { transform: translateY(28px); }
  .kicker { margin-top: 64px; }
}

/* 03 Cómo funciona: es una secuencia real, por eso va numerada */
.steps { list-style: none; padding: 0; margin: 36px auto 0; display: grid; gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 18px; align-items: start; }
.steps li::before {
  content: counter(s); grid-row: span 2;
  width: 56px; height: 56px; border-radius: 16px; background: var(--cafe); color: var(--crema);
  display: grid; place-items: center; font: 24px/1 var(--serif);
}
.ico { width: 34px; height: 34px; fill: none; stroke: var(--cafe); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.steps p { font-size: 18px; max-width: 30em; }
@media (min-width: 880px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
  .steps li { grid-template-columns: 1fr; gap: 16px; }
  .steps li::before { grid-row: auto; }
}

/* 04 Por qué es distinto */
.diff { padding-top: 0; }
.diff-grid { display: grid; gap: 14px; margin-top: 36px; }
.diff-grid > div { background: var(--crema-2); border-radius: var(--r-lg); padding: 28px; }
.diff-grid p { margin-top: 10px; }
@media (min-width: 880px) { .diff-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

/* 05 Quién está detrás */
.team { padding-top: 0; }
.team .sub { margin-top: 14px; font-size: 18px; }
.people { list-style: none; padding: 0; margin: 32px auto 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 210px)); gap: 14px; }
.people li { display: grid; gap: 2px; padding: 20px; border-radius: var(--r-md); background: var(--crema-2); }
.people li[data-pending] { display: none; } /* ocultas hasta tener nombre y foto reales */
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--lavanda); display: grid; place-items: center; font: 20px/1 var(--serif); margin-bottom: 12px; }
.people b { font-weight: 700; line-height: 1.3; }
.people span:last-child { font-size: 15px; color: var(--cafe-70); }
.allies { margin-top: 28px; color: var(--cafe-70); }

/* 06 Lo que no hacemos: el bloque más fuerte de la página */
.nots { background: var(--cafe); color: var(--crema); }
.nots h2 { color: var(--lavanda); }
.nots-list { display: grid; gap: 36px; margin-top: 44px; }
.nots-list h3 { font-size: clamp(28px, 4vw, 38px); color: var(--crema); }
.nots-list p { margin-top: 10px; font-size: 18px; color: rgba(245, 235, 221, .82); max-width: 26em; }
.nots-list > div { padding-left: 22px; border-left: 4px solid var(--coral); }
@media (min-width: 880px) { .nots-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }

/* 07 Preguntas */
.faq > * { max-width: 760px; }
.faq-list { margin-top: 32px; }
details { border-bottom: 1.5px solid rgba(56, 37, 28, .2); }
summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 700; font-size: 18px; min-height: 44px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 28px/1 var(--serif); }
details[open] summary::after { content: "–"; }
details p { padding: 0 0 22px; max-width: 36em; }

/* 08 Cierre */
.close { background: var(--crema-2); text-align: center; }
.close > * { margin-inline: auto; }
.close h2 { max-width: 16em; margin-top: 22px; }
.close > p:not(.micro) { margin-top: 14px; font-size: 19px; }
.close .btn { margin-top: 28px; }
.sq-lg { display: block; width: 44px; height: 44px; border-radius: 8px; }

/* Footer */
.foot { padding-block: 40px 48px; font-size: 15px; }
.foot-in { max-width: var(--max); margin-inline: auto; }
.disclaimer { max-width: 44em; color: var(--cafe-70); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 18px; }
.foot-links a { padding: 10px 0; text-underline-offset: 3px; }
.copy { margin-top: 10px; color: var(--cafe-70); }

/* Mini test (dialog) */
dialog {
  border: 0; padding: 0; color: var(--cafe); background: var(--crema);
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0;
}
dialog::backdrop { background: rgba(56, 37, 28, .55); }
dialog[open] { display: flex; flex-direction: column; }
@media (min-width: 640px) {
  dialog { width: min(560px, 92vw); height: auto; max-height: 92vh; margin: auto; border-radius: var(--r-lg); }
}
.test-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.icon-btn { appearance: none; border: 0; background: transparent; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--cafe); flex: none; }
.icon-btn[hidden] { visibility: hidden; display: grid; }
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { background: var(--crema-2); }
.progress { flex: 1; height: 8px; border-radius: 99px; background: var(--crema-2); overflow: hidden; }
.progress span { display: block; height: 100%; width: 25%; background: var(--cafe); border-radius: inherit; transition: width .3s ease; }
.test-body { padding: 8px 24px 32px; overflow-y: auto; flex: 1; }
.test-body h2 { font-size: clamp(28px, 6vw, 34px); }
.test-body .hint { margin-top: 8px; color: var(--cafe-70); font-size: 15px; }
.opts { display: grid; gap: 10px; margin: 24px 0 0; }
.opt {
  appearance: none; display: flex; align-items: center; width: 100%; min-height: 56px; padding: 14px 20px;
  border-radius: var(--r-md); background: #FBF5EC; border: 2px solid transparent; color: var(--cafe);
  font: 500 17px/1.3 var(--sans); text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s;
}
.opt:hover { border-color: rgba(56, 37, 28, .35); }
.opt[aria-pressed="true"] { border-color: var(--cafe); background: var(--crema-2); }

.field { margin-top: 24px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; }
.field input[type="email"] {
  width: 100%; min-height: 56px; padding: 14px 18px; font: 17px var(--sans); color: var(--cafe);
  border: 2px solid rgba(56, 37, 28, .3); border-radius: var(--r-md); background: #FBF5EC;
}
.field input[type="email"]:focus { outline: none; border-color: var(--cafe); }
.field .err { color: #A3341F; font-size: 15px; margin-top: 8px; min-height: 1em; }
.check { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 16px; font-size: 15px; line-height: 1.45; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--cafe); cursor: pointer; }
.test-body .btn { width: 100%; margin-top: 24px; }
.test-body .btn[disabled] { opacity: .6; cursor: progress; }
.fine { margin-top: 14px; font-size: 13px; color: var(--cafe-70); }
.done { text-align: center; padding-top: 24px; }
.done .sq-lg { margin: 0 auto 24px; }
.done p { margin-top: 14px; }
.done .btn { max-width: 320px; }
.link-btn { appearance: none; border: 0; background: none; font: 500 16px var(--sans); color: var(--cafe); text-decoration: underline; text-underline-offset: 3px; margin-top: 16px; padding: 12px; cursor: pointer; }

/* Un solo movimiento: la luz de la ventana entra al cargar */
.beam, .sun { animation: light 1.1s ease-out both; }
@keyframes light { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .beam, .sun { animation: none; }
  .btn, .progress span, .opt label { transition: none; }
}
