/* Bokori · estilos de la web
   Para cambiar los colores de marca, toca solo las variables de :root */

@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bg: #fbf5ee;          /* crema */
  --bg-alt: #f3e8dc;      /* crema tostado */
  --card: #ffffff;
  --ink: #2b1f2e;         /* ciruela muy oscuro */
  --ink-soft: #66576a;
  --accent: #e8584b;      /* coral */
  --accent-ink: #ffffff;
  --accent-soft: #fde1db;
  --night: #2b2340;       /* azul noche (bloque de la historia) */
  --night-ink: #f6eee6;
  --line: #e6d8ca;
  --radius: 22px;
  --shadow: 0 14px 40px -18px rgba(43, 31, 46, .35);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

/* Cabecera */
.top { padding: 18px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; text-decoration: none; }
.logo img { width: 30px; height: 30px; }
.top-link { font-weight: 700; font-size: .95rem; text-decoration: none; padding: 8px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); }

/* Portada */
.hero { padding: 24px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34ch; }

/* Formulario */
.signup { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-top: 26px; max-width: 480px; }
.signup label.field-label { display: block; font-weight: 800; font-size: .9rem; margin: 0 0 8px; }
.signup input[type="email"], .signup select {
  width: 100%; font: inherit; font-size: 1.05rem; padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); outline: none;
}
.signup input[type="email"]:focus, .signup select:focus { border-color: var(--ink); }
.group { margin-bottom: 16px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block; text-align: center; font-weight: 700; padding: 12px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; user-select: none;
}
.choice input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-soft); line-height: 1.45; margin: 4px 0 16px; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--ink); }
.btn {
  display: inline-block; width: 100%; border: 0; cursor: pointer; text-align: center; text-decoration: none;
  font: inherit; font-weight: 800; font-size: 1.1rem; padding: 16px 22px; border-radius: 14px;
  background: var(--accent); color: var(--accent-ink); transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn.auto { width: auto; }
.form-note { font-size: .85rem; color: var(--ink-soft); margin: 12px 0 0; text-align: center; }
.form-error { display: none; font-size: .9rem; font-weight: 700; color: #b3261e; margin: 0 0 12px; }
.form-error.show { display: block; }
.hidden { display: none !important; }

/* Móvil de la portada */
.phone {
  width: min(300px, 78vw); aspect-ratio: 9 / 19; margin: 0 auto; border-radius: 44px; padding: 12px;
  background: var(--ink); box-shadow: var(--shadow); position: relative;
}
.phone .screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: var(--night); position: relative; }
.phone .screen img.shot { width: 100%; height: 100%; object-fit: cover; }
.fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: var(--night-ink); text-align: center; padding: 24px; }
.fallback .pair { display: flex; gap: 6px; align-items: flex-end; }
.fallback .pair img { width: 64px; height: 64px; }
.fallback .pair img.big { width: 92px; height: 92px; }
.fallback p { font-family: var(--serif); font-size: 1.35rem; line-height: 1.25; margin: 0; }
.has-shot .fallback { display: none; }

/* Secciones */
section { padding: 72px 0; }
.alt { background: var(--bg-alt); }
.center { text-align: center; }
.kicker { font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }

/* Historia */
.story { background: var(--night); color: var(--night-ink); }
.story h2 { color: var(--night-ink); }
.story .kicker { color: #ffb4a8; }
.story p { font-size: 1.15rem; }
.story .sign { font-family: var(--serif); font-size: 1.15rem; opacity: .9; margin-top: 24px; }
.story .sign img { width: 34px; height: 34px; display: inline-block; vertical-align: middle; margin-right: 8px; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step .num { font-family: var(--serif); font-size: 1rem; color: var(--accent); font-weight: 600; }
.step img { width: 56px; height: 56px; margin: 8px 0 14px; }
.step p { color: var(--ink-soft); margin: 0; font-size: 1rem; }

.dash { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: center; margin-top: 64px; }
.dash ul { list-style: none; padding: 0; margin: 18px 0 0; }
.dash li { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; font-weight: 700; }
.dash li img { width: 34px; height: 34px; }

/* Lo que no es */
.nots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; }
.not { border-top: 3px solid var(--ink); padding-top: 16px; }
.not h3 { margin-bottom: .35em; }
.not p { color: var(--ink-soft); font-size: 1rem; }

/* Preguntas */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 1.4rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); font-size: 1rem; }

/* Cierre */
.final { text-align: center; }
.final .btn { max-width: 340px; }

/* Pie */
footer { padding: 36px 0 48px; font-size: .9rem; color: var(--ink-soft); border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* Páginas sencillas (gracias, privacidad, 404) */
.page { padding: 40px 0 80px; }
.page h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.page h2 { font-size: 1.5rem; margin-top: 1.6em; }
.page p, .page li { color: var(--ink-soft); }
.page .hero-icon { width: 84px; height: 84px; margin-bottom: 16px; }
.share { display: grid; gap: 12px; max-width: 420px; margin-top: 24px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }

@media (max-width: 860px) {
  .hero .wrap, .dash { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-bottom: 48px; }
  .steps, .nots { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .dash .phone { order: 2; }
  .phone { width: min(240px, 66vw); border-radius: 36px; }
  .phone .screen { border-radius: 28px; }
}
@media (max-width: 420px) {
  body { font-size: 17px; }
  .signup { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
