/* =========================================================
   Mi madrastra — estilos
   Paleta y tipografía tomadas de la maqueta del libro
   ========================================================= */

:root {
  --peach: #fbd0a1;
  --peach-2: #efbe8b;
  --peach-soft: #fde8d2;
  --teal: #00808d;
  --teal-deep: #005f69;
  --coral: #d9867e;
  --coral-2: #e58c86;
  --rose: #eba0a5;
  --pink: #f3d3d5;
  --mint: #d8e8e8;
  --sun: #f7d58a;
  --ink: #3a2a31;
  --ink-soft: #6b5560;
  --paper: #fffaf4;
  --plum: #3b2a35;

  --bg: var(--peach);

  --font-story: "Shantell Sans", "Comic Neue", system-ui, sans-serif;
  --font-title: "Fredoka", "Shantell Sans", system-ui, sans-serif;
  --font-logo: "Delicious Handrawn", "Fredoka", cursive;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --gutter: clamp(16px, 4vw, 48px);
  --radius: 28px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; max-width: 100%; }
/* Red de seguridad: nada de lo que se anima o se desliza dentro de una sección puede ensanchar la página */
section, footer, .chapter { overflow-x: clip; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-story);
  font-variation-settings: "BNCE" 60, "INFM" 10;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color .9s var(--ease-out);
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }

::selection { background: var(--sun); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 10px;
}

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px;
  text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  --shadow: var(--teal-deep);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-title); font-weight: 600; font-size: 18px; letter-spacing: .01em;
  color: #fff; background: var(--teal);
  border: 0; border-radius: 999px;
  padding: 14px 26px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 5px 0 var(--shadow), 0 12px 24px -10px rgba(0, 95, 105, .55);
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--shadow), 0 16px 28px -10px rgba(0, 95, 105, .6); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--shadow), 0 6px 12px -8px rgba(0, 95, 105, .5); }
.btn--small { font-size: 15px; padding: 9px 18px; box-shadow: 0 4px 0 var(--shadow); }
.btn--small:hover { box-shadow: 0 6px 0 var(--shadow); }
.btn--big { font-size: 21px; padding: 18px 34px; }
.btn--ghost {
  background: transparent; color: var(--teal-deep);
  box-shadow: inset 0 0 0 2.5px var(--teal);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .45); box-shadow: inset 0 0 0 2.5px var(--teal); }
.btn--ghost:active { transform: translateY(2px); box-shadow: inset 0 0 0 2.5px var(--teal); }

/* ---------- Cabecera ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: max(12px, env(safe-area-inset-top)) var(--gutter) 0;
  pointer-events: none;
  transition: transform .5s var(--ease-out);
}
.topbar__bar {
  pointer-events: auto;
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 22px; border-radius: 999px;
  transition: background-color .4s, box-shadow .4s;
}
.topbar.is-solid .topbar__bar {
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 12px 30px -20px rgba(58, 42, 49, .45), inset 0 0 0 1px rgba(58, 42, 49, .06);
}
.topbar.is-hidden { transform: translateY(-130%); }
.topbar__logo {
  flex: none;
  font-family: var(--font-logo); font-weight: 700; font-size: 30px; line-height: 1;
  color: var(--teal); text-decoration: none;
  opacity: 0; transform: translateY(-6px);
  transition: opacity .4s, transform .4s var(--ease-out);
}
.topbar.is-solid .topbar__logo, .menu-open .topbar__logo { opacity: 1; transform: none; }
.topbar__nav { display: flex; gap: 6px; margin: 0 auto; }
.topbar__nav a {
  position: relative; white-space: nowrap; text-decoration: none;
  font-weight: 500; font-size: 16px; padding: 8px 12px; border-radius: 999px;
  transition: background-color .25s, color .25s;
}
.topbar__nav a:hover { background: rgba(58, 42, 49, .06); }
.topbar__nav a[aria-current="true"] { background: var(--teal); color: #fff; }
.topbar__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.topbar__nav + .topbar__actions { margin-left: 0; }

.menu-btn {
  position: relative; flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  transition: transform .3s var(--ease-spring), background-color .3s;
}
.menu-btn:hover { transform: scale(1.06); }
.menu-btn__lines { position: relative; width: 18px; height: 12px; }
.menu-btn__lines i {
  position: absolute; left: 0; right: 0; height: 2.5px; border-radius: 2px; background: currentColor;
  transition: transform .4s var(--ease-spring), top .3s var(--ease-out);
}
.menu-btn__lines i:first-child { top: 0; }
.menu-btn__lines i:last-child { top: 9.5px; }
.menu-btn[aria-expanded="true"] { background: var(--coral); }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:first-child { top: 4.75px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:last-child { top: 4.75px; transform: rotate(-45deg); }

/* Menú a pantalla completa */
.menu {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(58, 42, 49, .28); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease-out), visibility 0s .3s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease-out), visibility 0s; }
/* Panel pequeño bajo la cabecera, con los mismos enlaces que ella */
.menu__nav {
  position: absolute; top: calc(max(12px, env(safe-area-inset-top)) + 70px); right: var(--gutter);
  width: min(320px, 100% - 2 * var(--gutter));
  padding: 10px 18px 18px; border-radius: 26px; background: #fffaf4;
  box-shadow: 0 30px 60px -24px rgba(58, 42, 49, .5);
  transform: translateY(-10px) scale(.97); transform-origin: top right;
  transition: transform .35s var(--ease-spring);
}
.menu.is-open .menu__nav { transform: none; }
.menu__nav ol { list-style: none; margin: 0; padding: 0; }
.menu__nav li + li { border-top: 2px dashed rgba(58, 42, 49, .12); }
.menu__nav ol a {
  display: block; padding: 13px 4px; text-decoration: none; font-weight: 700; font-size: 20px; line-height: 1.2;
  font-variation-settings: "BNCE" 80, "INFM" 20; transition: color .2s, padding-left .25s var(--ease-out);
}
.menu__nav ol a:hover, .menu__nav ol a[aria-current="true"] { color: var(--teal); padding-left: 8px; }
.menu__cta { width: 100%; margin-top: 12px; }
html.menu-open { overflow: hidden; }

@media (max-width: 1180px) {
  .topbar__nav { display: none; }
  .topbar__nav + .topbar__actions { margin-left: auto; }
}
@media (max-width: 720px) {
  .topbar__bar { padding-left: 16px; }
}
@media (max-width: 420px) {
  .topbar__cta { display: none; }
}

/* ---------- Indicador de páginas ---------- */
.pager {
  position: fixed; z-index: 40;
  right: 22px; top: 50%; transform: translate(30px, -50%);
  display: flex; flex-direction: column; gap: 10px;
  opacity: 0; pointer-events: none;
  transition: opacity .4s, transform .5s var(--ease-out);
}
.pager.is-visible { opacity: 1; pointer-events: auto; transform: translate(0, -50%); }
.pager button {
  width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center; position: relative;
}
.pager button::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; opacity: .3;
  transition: transform .35s var(--ease-spring), opacity .3s;
}
.pager button:hover::before { opacity: .65; transform: scale(1.3); }
.pager button.is-active::before { opacity: 0; transform: scale(.2); }
.pager button svg {
  position: absolute; width: 18px; height: 18px; fill: var(--coral);
  transform: scale(0); transition: transform .45s var(--ease-spring);
}
.pager button.is-active svg { transform: scale(1); }
.pager button span {
  position: absolute; right: 30px; white-space: nowrap;
  font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: 99px;
  background: var(--paper); box-shadow: 0 6px 18px -8px rgba(58, 42, 49, .35);
  opacity: 0; transform: translateX(6px); pointer-events: none;
  transition: opacity .2s, transform .25s var(--ease-out);
}
.pager button:hover span, .pager button:focus-visible span { opacity: 1; transform: none; }

.pager.is-dark { color: #fff; }

@media (max-width: 860px), (orientation: portrait) {
  .pager {
    right: auto; left: 50%; top: auto; bottom: max(14px, env(safe-area-inset-bottom));
    flex-direction: row; gap: 2px;
    transform: translate(-50%, 30px);
    padding: 4px 8px; border-radius: 99px;
    background: color-mix(in srgb, var(--paper) 70%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .pager.is-visible { transform: translate(-50%, 0); }
  .pager.is-dark { color: var(--ink); }
  .pager button { width: 16px; height: 20px; }
  .pager button::before { width: 5px; height: 5px; }
  .pager button svg { width: 14px; height: 14px; }
  .pager button span { display: none; }
}

/* ---------- Destellos ---------- */
.sparkles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.spark {
  position: absolute; width: var(--s, 20px); height: var(--s, 20px);
  color: #fff; opacity: .9;
  animation: twinkle var(--d, 3.4s) ease-in-out var(--delay, 0s) infinite;
}
.spark svg { width: 100%; height: 100%; fill: currentColor; display: block; }
.spark--soft { color: rgba(255, 255, 255, .55); }
@keyframes twinkle {
  0%, 100% { transform: scale(.55) rotate(0deg); opacity: .35; }
  50% { transform: scale(1) rotate(25deg); opacity: 1; }
}

/* ---------- Portada ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(60% 50% at 50% 40%, rgba(255, 255, 255, .35), transparent 70%),
    var(--peach);
}
.hero__stage {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 100px var(--gutter) 60px;
}
.hero__inner { position: relative; z-index: 1; text-align: center; max-width: 1100px; transform-origin: 50% 50%; }
.hero__kicker {
  margin: 0 0 6px; font-weight: 500; font-size: clamp(15px, 1.6vw, 19px);
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
  font-variation-settings: "BNCE" 0, "INFM" 0;
}
.hero__title {
  margin: 0; line-height: 1;
  display: flex; justify-content: center;   /* si roza los bordes, desborda igual por los dos lados */
  font-family: var(--font-logo); font-weight: 400;
  font-size: clamp(48px, 17vw, 230px);
  letter-spacing: 0;
  color: var(--teal);
}
/* Un solo contorno y una sola sombra para toda la palabra (filtro #title-ink),
   así las letras no se pisan unas a otras */
.arc {
  display: inline-flex; align-items: flex-end; white-space: nowrap;
  padding: .08em .1em;
  filter: url(#title-ink) drop-shadow(0 .035em 0 rgba(58, 42, 49, .13)) drop-shadow(0 .09em .14em rgba(58, 42, 49, .12));
}
.arc .ch {
  display: inline-block;
  transform-origin: 50% 100%;
  will-change: transform;
}
.arc .sp { display: inline-block; width: .28em; }
.hero__lead {
  max-width: 34ch; margin: 22px auto 0;
  font-size: clamp(18px, 2vw, 23px); line-height: 1.5;
}
/* Sin animación (o sin JS): la niña va debajo del texto */
.hero__peek { position: relative; z-index: 1; margin: 28px auto 0; width: min(400px, 46svh, 80vw); }
/* El libro en 3D de la portada (reutiliza las caras de .book3d) */
.hero-book { display: block; padding: 10px 0 0; text-decoration: none; transform-origin: 50% 50%; }
.hero-book__float { display: block; perspective: 1300px; animation: book-float 6s ease-in-out infinite; }
.hero-book .hero-book__body {
  display: block; width: 100%; --d: 20px;
  --rx: 8deg; --ry: -24deg; --open: 0deg;
  transition: none;
}
.hero-book .hero-book__body > span { display: block; }
/* la tapa gira sobre el lomo y deja ver la primera página */
.hero-book__cover {
  position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: left center;
  transform: translateZ(calc(var(--d) / 2)) rotateY(var(--open));
}
.hero-book .book3d__front { transform: none; backface-visibility: hidden; }
.hero-book__endpaper {
  position: absolute; inset: 0; border-radius: 8px 3px 3px 8px;
  transform: rotateY(180deg); backface-visibility: hidden;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .35) 0 2px, transparent 3px) 0 0 / 34px 34px,
    linear-gradient(to left, rgba(120, 60, 30, .18), transparent 12%),
    var(--peach-2);
}
.hero-book__page {
  position: absolute; top: 1.5%; bottom: 1.5%; left: 0; right: 1%;
  transform: translateZ(calc(var(--d) / 2 - 1px));
  border-radius: 2px 6px 6px 2px;
  background: linear-gradient(to right, rgba(120, 60, 30, .14), transparent 7%), #fdf3e7;
}
.hero-book__shadow {
  display: block; width: 72%; height: 22px; margin: 22px auto 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(120, 60, 30, .32), transparent);
  filter: blur(4px); animation: book-shadow 6s ease-in-out infinite;
}
@keyframes book-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(1.2deg); } }
@keyframes book-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.88); opacity: .7; } }

/* Con animación: el libro se abre y entramos en su primera página */
.hero--scrub { height: 300vh; height: 300svh; height: calc(300 * var(--svh, 1svh)); }
.hero--scrub .hero__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0;
  padding: 76px var(--gutter) 40px; justify-content: center; gap: clamp(14px, 3svh, 34px);
}
.hero--scrub .hero__title { font-size: clamp(48px, min(17vw, 19svh), 230px); }
.hero--scrub .hero__peek { margin: 10px auto 0; width: min(420px, 80vw, 46svh); z-index: 2; }
.hero--scrub .hero-book { padding: 0; position: relative; }
.hero--scrub .hero-book__shadow { position: absolute; left: 14%; top: 100%; }
/* el capítulo siguiente se fija justo debajo; al acabar, la página del libro se aparta y ya estamos en él */
.hero--scrub { z-index: 2; }
.hero--scrub + #historia { margin-top: -100vh; margin-top: -100svh; margin-top: calc(-100 * var(--svh, 1svh)); }
.hero--scrub.is-open { background: transparent; }
.hero--scrub.is-open .hero__stage { visibility: hidden; }
.hero--scrub .hero-book__float, .hero--scrub .hero-book__shadow { animation: none; }

.scroll-cue {
  position: absolute; left: 50%; bottom: max(26px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-soft);
}
.scroll-cue svg { width: 22px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2; }
.scroll-cue__dot { fill: var(--coral); stroke: none; animation: cue 1.8s var(--ease-out) infinite; }

@media (max-width: 860px), (orientation: portrait) {
  .scroll-cue { display: none; }
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  80% { transform: translateY(12px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Capítulos (scroll storytelling) ---------- */
.chapter { position: relative; height: var(--h, calc(320 * var(--vh, 1vh))); }
.stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  display: grid; place-items: center;
}
.beat { will-change: opacity, transform; }
.soft { color: var(--ink-soft); font-weight: 600; }

/* 1 · Las familias cambian de forma */
.ch-forma { --h: calc(660 * var(--vh, 1vh)); }
.forma {
  width: min(1200px, 100% - 2 * var(--gutter));
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: clamp(24px, 5vw, 80px);
}
.forma__lines { position: relative; min-height: 3.6em; font-size: clamp(30px, 4.4vw, 62px); }
.forma__lines .beat {
  position: absolute; inset: 0 0 auto 0; margin: 0;
  font-weight: 700; line-height: 1.12; letter-spacing: -.01em;
  font-variation-settings: "BNCE" 80, "INFM" 20;
  text-wrap: balance;
}
.forma__lines em { font-style: normal; color: var(--teal); }
.forma__drawing { position: relative; margin: 0; }
.forma__svg { display: block; width: 100%; height: auto; overflow: visible; }
.tag__txt { font-family: var(--font-story); font-weight: 700; font-size: 24px; fill: currentColor; font-variation-settings: "BNCE" 100, "INFM" 30; }
.tag__txt--main { font-size: 30px; fill: #00808d; }
.tag__txt--call { font-size: 24px; }
.tag__txt--hi { font-size: 34px; }

/* 2 · Poco a poco: galería horizontal */
.ch-poco { --h: calc(400 * var(--vh, 1vh)); }
.stage--track { place-items: center start; }
.track {
  display: flex; align-items: center; gap: clamp(40px, 7vw, 120px);
  padding: 0 clamp(24px, 8vw, 140px);
  height: 100%;
  will-change: transform;
}
.track__intro { flex: none; width: min(560px, 82vw); }
.track__outro { flex: none; width: min(620px, 84vw); padding-right: 6vw; }
.frame { flex: none; margin: 0; display: flex; flex-direction: column; gap: 22px; }
.frame .photo { align-self: flex-start; width: max-content; }
.frame .photo img { height: min(56vh, 70vw); width: auto; }
.frame--right figcaption { align-self: flex-end; }

/* Ilustraciones con marco orgánico (mismo tratamiento que la foto de la autora) */
.photo {
  --tilt: -2deg;
  overflow: hidden; background: #fff;
  border: 10px solid #fff;
  border-radius: 46% 54% 38% 62% / 34% 36% 64% 66%;
  box-shadow: 0 40px 70px -40px rgba(120, 60, 50, .55);
  transform: rotate(var(--tilt));
}
.photo img { display: block; width: 100%; height: auto; transform: scale(1.06); will-change: transform; }
.photo--b { --tilt: 1.6deg; border-radius: 42% 58% 46% 54% / 52% 40% 60% 48%; }
.photo--c { --tilt: -1.4deg; border-radius: 55% 45% 40% 60% / 40% 55% 45% 60%; }

.frame figcaption {
  max-width: 24ch; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.4; font-weight: 500;
  font-variation-settings: "BNCE" 100, "INFM" 30;
  padding-left: 4%;
}

/* 3 · Las cosas pequeñas */
.ch-cosas { --h: calc(260 * var(--vh, 1vh)); }
.cosas { width: min(1240px, 100% - 2 * var(--gutter)); text-align: center; }
.cosas__head { position: relative; z-index: 2; }
.cosas__head .h2 { font-size: clamp(34px, 4.6vw, 66px); }
.cosas__hint { margin: 14px 0 0; font-size: 15px; color: var(--ink-soft); }
.polaroids {
  list-style: none; margin: clamp(28px, 5vh, 56px) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(10px, 1.6vw, 24px);
  perspective: 1400px;
}
.polaroid { width: clamp(150px, 15vw, 214px); transform: rotate(var(--r)); }
.polaroid__card {
  position: relative; display: block; width: 100%; aspect-ratio: 0.86;
  padding: 0; border: 0; background: none; cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .8s var(--ease-out);
}
.polaroid:hover .polaroid__card { transform: translateY(-8px) rotate(calc(var(--r) * -1)) scale(1.04); }
.polaroid__card.is-flipped { transform: rotateY(180deg) !important; }
.polaroid__front, .polaroid__back {
  position: absolute; inset: 0; border-radius: 6px;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  box-shadow: 0 2px 4px rgba(58, 42, 49, .08), 0 22px 40px -22px rgba(58, 42, 49, .45);
}
.polaroid__front {
  background: #fff; padding: 9px 9px 0;
  display: flex; flex-direction: column;
}
.polaroid__front img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.polaroid__front b {
  flex: 1; display: grid; place-items: center;
  font-weight: 600; font-size: clamp(14px, 1.25vw, 18px); line-height: 1.15;
  font-variation-settings: "BNCE" 100, "INFM" 60;
}
.polaroid__back {
  transform: rotateY(180deg);
  background: var(--teal); color: #fff;
  display: grid; place-items: center; padding: 18px;
  font-weight: 600; font-size: clamp(16px, 1.5vw, 21px); line-height: 1.3;
  font-variation-settings: "BNCE" 100, "INFM" 40;
}
.polaroid:nth-child(2n) .polaroid__back { background: var(--coral); }

/* 1b · ¿Qué es una madrastra? */
.ch-que { --h: calc(340 * var(--vh, 1vh)); }
.que {
  width: min(1080px, 100% - 2 * var(--gutter));
  display: grid; justify-items: center; text-align: center; gap: clamp(18px, 3.5svh, 36px);
}
.que__q {
  margin: 0; font-weight: 700; line-height: 1.08;
  font-size: clamp(34px, min(5.6vw, 8svh), 84px);
  font-variation-settings: "BNCE" 90, "INFM" 20;
  will-change: transform;
}
.que__mark {
  color: var(--teal); white-space: nowrap; padding: 0 .08em;
  background: linear-gradient(rgba(90, 168, 122, .34), rgba(90, 168, 122, .34)) no-repeat 0 88% / 100% .42em;
  border-radius: .3em;
}
.que__card {
  width: min(640px, 100%); text-align: left;
  padding: clamp(22px, 3.4vw, 40px) clamp(22px, 4vw, 48px);
  background: #fff; border-radius: 32px; rotate: -1.2deg;
  box-shadow: 0 30px 60px -34px rgba(63, 127, 91, .55), 0 0 0 2px rgba(90, 168, 122, .18);
}
.que__word {
  margin: 0 0 12px; font-family: var(--font-logo); color: #3f7f5b;
  font-size: clamp(38px, 4.6vw, 60px); line-height: 1;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
}
.que__word span {
  font-family: var(--font-story); font-size: clamp(14px, 1.3vw, 17px); font-style: italic;
  color: var(--ink-soft); font-variation-settings: "BNCE" 0, "INFM" 0;
}
.que__def { margin: 0 0 10px; font-size: clamp(18px, 1.9vw, 23px); line-height: 1.5; }
.que__def strong { color: #3f7f5b; }
.que__note { margin: 14px 0 0; font-size: clamp(15px, 1.4vw, 18px); color: var(--ink-soft); }
.que__note em, .que__end em { font-style: normal; color: var(--teal); font-weight: 700; }
.que__end {
  margin: 0; font-weight: 700; font-size: clamp(26px, 3.4vw, 46px);
  font-variation-settings: "BNCE" 90, "INFM" 20;
}

/* 4 · Hay sitio para todos */
.ch-sitio { --h: calc(360 * var(--vh, 1vh)); }
.sitio { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; padding: 0 var(--gutter); }
.sitio__line {
  margin: 0; font-weight: 700; font-size: clamp(28px, 4vw, 54px); line-height: 1.1;
  font-variation-settings: "BNCE" 90, "INFM" 20;
}
.sitio__line--big { font-size: clamp(44px, 7vw, 104px); color: var(--teal); margin-top: -.1em; }
.sitio__line--big em { font-style: normal; }
.sitio__line--small {
  max-width: 30ch; margin-top: 14px;
  font-size: clamp(18px, 1.8vw, 24px); font-weight: 500; color: var(--ink-soft); line-height: 1.45;
}
.sitio__heart {
  position: relative; width: min(46vmin, 440px); aspect-ratio: 24 / 22; margin: 18px 0 6px;
  will-change: transform;
}
.sitio__shape { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--coral); filter: drop-shadow(0 24px 30px rgba(217, 134, 126, .45)); }
.sitio__img {
  position: absolute; inset: 6% 6% 4%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21.2s-7.6-4.6-10.1-9.4C.2 8.5 2 4.4 5.8 4c2.3-.2 4 1.1 6.2 3.5C14.2 5.1 15.9 3.8 18.2 4c3.8.4 5.6 4.5 3.9 7.8-2.5 4.8-10.1 9.4-10.1 9.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21.2s-7.6-4.6-10.1-9.4C.2 8.5 2 4.4 5.8 4c2.3-.2 4 1.1 6.2 3.5C14.2 5.1 15.9 3.8 18.2 4c3.8.4 5.6 4.5 3.9 7.8-2.5 4.8-10.1 9.4-10.1 9.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sitio__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.mini-heart { position: absolute; z-index: 1; width: var(--s); height: var(--s); fill: var(--c); pointer-events: none; }

/* 5 · Un nombre propio */
.ch-nombre { --h: auto; }
.ch-nombre .stage { position: relative; height: auto; min-height: 100svh; min-height: calc(100 * var(--svh, 1svh)); padding: 120px 0; }
.nombre {
  width: min(1200px, 100% - 2 * var(--gutter));
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center;
}
.nombre__img { margin: 0; }

.momi { color: var(--teal); position: relative; display: inline-block; }
.momi::after {
  content: ""; position: absolute; left: -4%; right: -4%; bottom: -.06em; height: .22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C 50 4, 120 4, 197 10' fill='none' stroke='%23d9867e' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.names { margin-top: 30px; }
.names label { display: block; font-weight: 600; margin-bottom: 10px; }
.names__row { display: flex; gap: 10px; }
.names input, .news input {
  flex: 1; min-width: 0; font: inherit; font-size: 17px;
  padding: 11px 18px; border-radius: 99px; border: 2px solid rgba(58, 42, 49, .14);
  background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.names input:focus, .news input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0, 128, 141, .15); }
.names__cloud { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.names__cloud li {
  padding: 6px 16px; border-radius: 99px; background: #fff; font-weight: 600;
  box-shadow: 0 3px 0 rgba(58, 42, 49, .07);
  font-variation-settings: "BNCE" 100, "INFM" 50;
}
.names__cloud li:nth-child(3n+1) { color: var(--teal); }
.names__cloud li:nth-child(3n+2) { color: var(--coral); }

@media (max-width: 860px), (orientation: portrait) {
  .forma { grid-template-columns: minmax(0, 1fr); text-align: center; gap: 28px; }
  .forma__lines { order: 2; min-height: 3.5em; font-size: clamp(26px, 7vw, 40px); }
  .forma__drawing { order: 1; width: min(92vw, 520px); margin: 0 auto; }
  /* Poco a poco: en móvil, las ilustraciones van una debajo de otra y ocupan el ancho disponible */
  .ch-poco { height: auto; }
  .ch-poco .stage { position: relative; height: auto; display: block; padding: 100px 0 80px; }
  .track { flex-direction: column; align-items: stretch; height: auto; gap: 56px; padding: 0 var(--gutter); will-change: auto; transform: none !important; }
  .track__intro, .track__outro { width: 100%; padding-right: 0; }
  .frame { width: 100%; gap: 16px; }
  .frame .photo { align-self: center; width: min(100%, 420px); }
  .frame .photo img { width: 100%; height: auto; }
  .frame--right .photo { align-self: center; }
  .frame figcaption, .frame--right figcaption { align-self: center; max-width: 30ch; text-align: center; padding-left: 0; }
  .ch-cosas { --h: auto; }
  .cosas__head .h2 { font-size: clamp(24px, 7.6vw, 34px); }
  .ch-cosas .stage { position: relative; height: auto; padding: 110px 0 90px; }
  .polaroids { gap: 14px 10px; }
  .polaroid { width: calc(50% - 10px); max-width: 220px; }
  .nombre { grid-template-columns: minmax(0, 1fr); }
  .ch-nombre .stage { padding: 90px 0; }
}


/* ---------- Encabezados de sección ---------- */
.eyebrow {
  margin: 0 0 12px; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--coral); font-variation-settings: "BNCE" 0, "INFM" 0;
}
.h2 {
  margin: 0; font-weight: 800; line-height: 1.04; letter-spacing: -.015em;
  font-size: clamp(40px, 6vw, 82px);
  font-variation-settings: "BNCE" 60, "INFM" 20;
  text-wrap: balance;
}
.h2 em { font-style: normal; color: var(--teal); position: relative; white-space: nowrap; }
.h2 em::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.08em; height: .2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C 50 4, 120 4, 197 10' fill='none' stroke='%23d9867e' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.h2--light { color: #fff; text-shadow: 0 2px 0 rgba(150, 60, 70, .18); }
.lead { margin: 18px 0 0; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.55; max-width: 46ch; color: var(--ink-soft); }
.lead--light { color: rgba(255, 255, 255, .95); }

/* ---------- Familias ---------- */
.families {
  position: relative;
  padding: clamp(110px, 14vw, 180px) var(--gutter) clamp(90px, 10vw, 140px);
  background: var(--paper);
  border-radius: 48px 48px 0 0;
  box-shadow: 0 -30px 60px -40px rgba(58, 42, 49, .25);
}
.families__head { max-width: 1100px; margin: 0 auto; text-align: center; }
.families__head .lead { margin-inline: auto; }

.heart-field {
  max-width: 1040px; margin: 56px auto 0;
  display: flex; flex-direction: column; align-items: center; gap: 34px;
}
.big-heart {
  position: relative; border: 0; background: none; cursor: pointer; padding: 0;
  width: clamp(170px, 19vw, 230px); aspect-ratio: 24 / 22;
  -webkit-tap-highlight-color: transparent;
}
.big-heart svg {
  width: 100%; height: 100%; fill: var(--coral);
  filter: drop-shadow(0 18px 24px rgba(217, 134, 126, .45));
  animation: beat 1.6s var(--ease-out) infinite;
  transition: transform .2s;
}
.big-heart:hover svg { fill: var(--coral-2); }
.big-heart:active svg { transform: scale(.9); }
@keyframes beat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.08); }
  24% { transform: scale(.98); }
  36% { transform: scale(1.05); }
  50% { transform: scale(1); }
}
.big-heart__count {
  position: absolute; left: 50%; top: 53%; transform: translate(-50%, -50%);
  color: #fff; font-size: 15px; font-weight: 600; line-height: 1.05; text-align: center;
  pointer-events: none;
}
.big-heart__count b { display: block; font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; }
.love { display: grid; justify-items: center; gap: 10px; }
.love__hint { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink-soft); min-height: 1.5em; text-align: center; }
.love__hint.is-done { color: var(--coral-2, var(--coral)); }

.chips {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 12px;
}
.kids-gallery { margin: clamp(60px, 8vw, 100px) calc(-1 * var(--gutter)) 0; text-align: center; }
.kids-gallery__title { margin: 0 0 8px; padding: 0 var(--gutter); font-size: clamp(24px, 2.6vw, 34px); font-variation-settings: "BNCE" 80, "INFM" 20; }
.kid-marquee {
  overflow: hidden; padding: 26px 0 30px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.kid-marquee__track {
  list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(18px, 2.4vw, 32px); width: max-content;
  animation: kid-roll 70s linear infinite;
}
.kid-marquee:hover .kid-marquee__track { animation-play-state: paused; }
@keyframes kid-roll { to { transform: translateX(calc(-50% - clamp(18px, 2.4vw, 32px) / 2)); } }
.kid-art figure {
  margin: 0; width: clamp(230px, 24vw, 300px); padding: 12px 12px 14px; background: #fff; border-radius: 10px;
  rotate: var(--r, 0deg); box-shadow: 0 16px 30px -20px rgba(58, 42, 49, .45);
  background-image: radial-gradient(rgba(58, 42, 49, .05) 1px, transparent 1.2px); background-size: 14px 14px;
  transition: rotate .4s var(--ease-spring), scale .4s var(--ease-spring);
}
.kid-art figure:hover { rotate: 0deg; scale: 1.04; }
.kid-art svg { display: block; width: 100%; height: auto; }
.kid-art__lbl { font-family: var(--font-logo); font-size: 17px; fill: #3b2a33; letter-spacing: .02em; }
.kid-art figcaption { margin-top: 6px; font-size: 15px; color: var(--ink-soft); line-height: 1.3; }
.kids-gallery__note { margin: 0 auto; padding: 0 var(--gutter); max-width: 60ch; font-size: 15px; color: var(--ink-soft); }
.kids-gallery__note a { color: var(--teal-deep); font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
  .kid-marquee { overflow-x: auto; }
  .kid-marquee__track { animation: none; padding: 0 var(--gutter); }
  .kid-art[aria-hidden="true"] { display: none; }
}
.chips li { animation: bob 5s ease-in-out var(--delay, 0s) infinite; }
.chips button {
  border: 0; cursor: pointer;
  padding: 11px 20px; border-radius: 99px;
  font-size: clamp(16px, 1.5vw, 19px); font-weight: 500;
  background: var(--chip, var(--pink)); color: var(--ink);
  box-shadow: 0 3px 0 rgba(58, 42, 49, .08);
  transition: transform .3s var(--ease-spring), background-color .25s, color .25s, box-shadow .25s;
  -webkit-tap-highlight-color: transparent;
}
.chips button:hover { transform: translateY(-3px) rotate(-2deg) scale(1.04); }
.chips button:active { transform: scale(.95); }
.chips button.is-on { background: var(--teal); color: #fff; box-shadow: 0 4px 0 var(--teal-deep); }
.chips li:last-child button { background: var(--sun); font-weight: 700; }
.chips li:last-child button.is-on { background: var(--teal); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }

.values {
  max-width: 1160px; margin: clamp(80px, 10vw, 130px) auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px);
}
.value {
  padding: 34px 30px 32px; border-radius: var(--radius);
  background: var(--card, var(--peach-soft));
  transition: transform .5s var(--ease-out);
}
.value:nth-child(2) { --card: #e3eff0; }
.value:nth-child(3) { --card: #fbe3e4; }
.value:hover { transform: translateY(-6px) rotate(-.6deg); }
.value__icon { display: block; width: 52px; height: 52px; margin-bottom: 20px; }
.value__icon svg { width: 100%; height: 100%; fill: none; stroke: var(--teal); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.value__icon circle { fill: var(--teal); stroke: none; }
.value h3 { margin: 0 0 8px; font-size: 24px; font-weight: 700; font-variation-settings: "BNCE" 50, "INFM" 10; }
.value p { margin: 0; color: var(--ink-soft); font-size: 17px; }
@media (max-width: 860px) { .values { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Apoyo por papeles ---------- */
.support { padding: clamp(100px, 12vw, 170px) var(--gutter); background: var(--paper); }
.support__head { max-width: 900px; margin: 0 auto; text-align: center; }
.support__head .lead { margin-inline: auto; }
.roles { max-width: 1160px; margin: clamp(40px, 6vw, 70px) auto 0; }
.role-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 1.4vw, 16px); }
.role-tab {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 16px 10px 14px; border: 3px solid transparent; border-radius: 26px;
  background: color-mix(in srgb, var(--tint) 45%, #fff); cursor: pointer;
  box-shadow: 0 3px 0 rgba(58, 42, 49, .07);
  font-weight: 600; font-size: clamp(14px, 1.4vw, 18px); line-height: 1.15; text-align: center;
  font-variation-settings: "BNCE" 80, "INFM" 30;
  transition: background-color .3s, transform .35s var(--ease-spring), border-color .3s, box-shadow .3s;
  -webkit-tap-highlight-color: transparent;
}
.role-tab:hover { transform: translateY(-3px); }
.role-tab[aria-selected="true"] {
  background: var(--tint); border-color: var(--ink); color: var(--ink);
  transform: translateY(-4px); box-shadow: 0 16px 26px -18px var(--ink);
}
.role-tab__fig { width: clamp(44px, 6vw, 70px); height: auto; overflow: visible; }
.role-tab:focus-visible { outline-offset: 3px; }
.role-panel {
  margin-top: 22px; padding: clamp(24px, 4vw, 52px);
  background: var(--tint); border: 3px solid var(--ink); border-radius: 36px;
  display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 70px); align-items: start;
}
.role-panel[hidden] { display: none; }
.role-panel__head h3 { margin: 0 0 12px; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.08; color: var(--ink); font-variation-settings: "BNCE" 60, "INFM" 20; text-wrap: balance; }
.role-panel__head p { margin: 0; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-soft); max-width: 34ch; }
.role-panel__qa { display: grid; gap: 10px; }

.qa { background: #fff; border-radius: 20px; box-shadow: 0 2px 0 rgba(58, 42, 49, .06); }
.qa__h { margin: 0; font: inherit; }
.qa__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; border: 0; background: none; cursor: pointer; text-align: left;
  font-weight: 600; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.3; color: var(--ink);
  font-variation-settings: "BNCE" 60, "INFM" 20;
}
.qa__q:focus-visible { outline-offset: -3px; }
.qa__plus { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--peach-soft); transition: background-color .3s, transform .45s var(--ease-spring); }
.qa__plus::before, .qa__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2.5px; margin: -1.25px 0 0 -6px; border-radius: 2px; background: var(--teal-deep); transition: transform .35s var(--ease-out); }
.qa__plus::after { transform: rotate(90deg); }
.qa.is-open .qa__plus { background: var(--teal); transform: rotate(180deg); }
.qa.is-open .qa__plus::before, .qa.is-open .qa__plus::after { background: #fff; }
.qa.is-open .qa__plus::after { transform: rotate(0deg); }
.qa__a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .45s var(--ease-out), visibility 0s .45s; }
.qa.is-open .qa__a { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .45s var(--ease-out), visibility 0s; }
.qa__a > div { overflow: hidden; }
.qa__a p { margin: 0; padding: 0 22px 20px; color: var(--ink-soft); font-size: 17px; line-height: 1.6; max-width: 62ch; }

.help-box {
  max-width: 1160px; margin: clamp(24px, 3vw, 40px) auto 0; padding: clamp(22px, 3vw, 36px) clamp(22px, 3.4vw, 44px);
  border-radius: 28px; border: 3px dashed var(--coral); background: #fff;
}
.help-box h3 { margin: 0 0 8px; font-size: clamp(22px, 2.2vw, 28px); color: var(--teal-deep); font-variation-settings: "BNCE" 60, "INFM" 20; }
.help-box p { margin: 0 0 10px; max-width: 78ch; }
.help-box small { color: var(--ink-soft); font-size: 14px; }

@media (max-width: 860px) {
  /* Apoyo: en móvil las cuatro opciones van en una sola fila compacta y el contenido queda justo debajo */
  .role-tabs { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .role-tab { border-radius: 16px; padding: 10px 2px 9px; gap: 6px; font-size: 12px; line-height: 1.15; border-width: 2.5px; }
  .role-tab__fig { width: auto; height: 50px; }
  .role-tab:hover { transform: none; }
  .role-tab[aria-selected="true"] { transform: none; }
  .role-panel { grid-template-columns: minmax(0, 1fr); margin-top: 12px; padding: 22px 16px 18px; border-radius: 24px; gap: 18px; scroll-margin-top: 90px; }
  .role-panel__head h3 { font-size: clamp(24px, 7vw, 30px); margin-bottom: 8px; }
  .role-panel__head p { font-size: 16px; }
  .role-panel__head p { max-width: none; }
}

/* ---------- Preguntas frecuentes ---------- */
.faq { padding: clamp(100px, 12vw, 170px) var(--gutter); background: #fff1e0; }
.faq__grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.faq__head { position: sticky; top: 110px; }
.faq__head .lead { margin-bottom: 26px; }
.faq__list { display: grid; gap: 10px; }
@media (max-width: 860px) { .faq__grid { grid-template-columns: minmax(0, 1fr); } .faq__head { position: static; } }

/* ---------- Una mirada (opinión con fuentes) ---------- */
.view { padding: clamp(100px, 12vw, 170px) var(--gutter); background: #fdf3e7; }
.view__grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.view__head { position: sticky; top: 110px; }
.view__head .h2 { font-size: clamp(34px, 4.4vw, 62px); }
.view__aside { margin: 22px 0 0; padding-left: 16px; border-left: 4px solid var(--coral); font-size: 16px; color: var(--ink-soft); max-width: 40ch; }
.point { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; padding: 28px 0; border-top: 2px dashed rgba(58, 42, 49, .16); }
.point:first-child { border-top: 0; padding-top: 0; }
.point__n { font-family: var(--font-title); font-weight: 700; font-size: 46px; line-height: 1; color: var(--coral); min-width: 1.1ch; }
.point h3 { margin: 0 0 10px; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; font-variation-settings: "BNCE" 60, "INFM" 20; }
.point p { margin: 0; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; max-width: 62ch; }
.point p + p { margin-top: 12px; }
.point p.point__tip { margin-top: 16px; padding: 16px 20px; border-radius: 18px; border-left: 5px solid var(--teal); background: #fff; color: var(--ink); }
.point__tip strong { color: var(--teal-deep); }
.ref { margin-left: 2px; color: var(--teal); font-weight: 700; font-size: .72em; }
.point__list { margin: 14px 0 14px; padding: 0; list-style: none; display: grid; gap: 8px; }
.point__list li { position: relative; padding: 10px 14px 10px 40px; border-radius: 16px; background: #fff; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.5; }
.point__list li::before { content: ""; position: absolute; left: 14px; top: 16px; width: 14px; height: 13px; background: var(--coral); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21.2s-7.6-4.6-10.1-9.4C.2 8.5 2 4.4 5.8 4c2.3-.2 4 1.1 6.2 3.5C14.2 5.1 15.9 3.8 18.2 4c3.8.4 5.6 4.5 3.9 7.8-2.5 4.8-10.1 9.4-10.1 9.4z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21.2s-7.6-4.6-10.1-9.4C.2 8.5 2 4.4 5.8 4c2.3-.2 4 1.1 6.2 3.5C14.2 5.1 15.9 3.8 18.2 4c3.8.4 5.6 4.5 3.9 7.8-2.5 4.8-10.1 9.4-10.1 9.4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.view__help { margin: 8px 0 0; padding: 22px 26px; border-radius: 24px; border: 3px dashed var(--teal); background: #fff; }
.view__help h4 { margin: 0 0 8px; font-size: clamp(20px, 1.8vw, 24px); color: var(--teal-deep); font-variation-settings: "BNCE" 60, "INFM" 20; }
.view__help p { margin: 0 0 12px; font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.view__help p strong:first-child { color: var(--ink); }
.view__help small { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-soft); }
.point__cta { margin-top: 20px !important; }
.view__help a { color: var(--teal-deep); font-weight: 700; text-underline-offset: 3px; }
.view__quote {
  margin: 20px 0 0; padding: clamp(24px, 3vw, 36px); border-radius: 28px;
  background: var(--teal); color: #fff; font-weight: 700; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.25;
  font-variation-settings: "BNCE" 80, "INFM" 20;
}
.view__sources { margin-top: 22px; }
.view--kids { background: #edf5f5; }
.view__aside a { color: var(--teal-deep); font-weight: 700; }
.view__plea {
  margin: 8px 0 22px; padding: clamp(24px, 3vw, 40px); border-radius: 28px;
  background: var(--teal); color: rgba(255, 255, 255, .92);
  font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6;
}
.view__plea strong {
  display: block; margin-bottom: 12px; color: #fff;
  font-size: clamp(26px, 2.8vw, 38px); line-height: 1.1; font-variation-settings: "BNCE" 80, "INFM" 20;
}
.sources { margin: 0; padding: 0 22px 20px 44px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; }
.sources li { margin-bottom: 10px; }
.sources a { color: var(--teal-deep); text-underline-offset: 3px; }
@media (max-width: 860px) {
  .view__grid { grid-template-columns: minmax(0, 1fr); }
  .view__head { position: static; }
  .point { grid-template-columns: minmax(0, 1fr); }
  .point__n { font-size: 36px; }
}

/* ---------- Dibuja ---------- */
.draw {
  position: relative; overflow: hidden;
  padding: clamp(100px, 12vw, 160px) var(--gutter);
  background: var(--rose);
}
.draw__head { position: relative; max-width: 900px; margin: 0 auto 44px; text-align: center; }
.draw__head .lead { margin-inline: auto; }
.draw__share {
  position: relative; max-width: 760px; margin: 28px auto 0; padding: 18px 24px;
  background: rgba(255, 255, 255, .9); border-radius: 22px; text-align: center;
  font-size: clamp(15px, 1.4vw, 17px); line-height: 1.5;
}
.draw__share p { margin: 0; }
.draw__share p + p { margin-top: 6px; }
.draw__share a { color: var(--teal); font-weight: 700; word-break: break-word; }
.paper {
  position: relative; max-width: 1060px; margin: 0 auto;
  background: #fff; border-radius: 32px;
  box-shadow: 0 40px 80px -40px rgba(120, 40, 60, .55), 0 2px 0 rgba(255, 255, 255, .6) inset;
  padding: 16px;
}
.paper__tools {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 6px 6px 14px;
}
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: var(--c);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .14);
  transition: transform .25s var(--ease-spring);
}
.swatch:hover { transform: scale(1.12) rotate(-6deg); }
.swatch.is-active { transform: scale(1.12); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .14), 0 0 0 3px #fff, 0 0 0 5.5px var(--c); }
.sizes { display: flex; gap: 6px; padding: 4px; border-radius: 99px; background: #f6efe9; }
.size {
  width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  display: grid; place-items: center;
}
.size i { width: var(--s); height: var(--s); border-radius: 50%; background: var(--ink); }
.size.is-active { background: #fff; box-shadow: 0 2px 6px rgba(58, 42, 49, .15); }
/* Modo: un solo control con tres opciones; el activo va relleno */
.modes { display: flex; gap: 2px; padding: 4px; border-radius: 99px; background: #f6efe9; margin-left: auto; }
.mode {
  display: flex; align-items: center; gap: 7px; padding: 8px 16px 8px 12px; border: 0; border-radius: 99px;
  background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 15px; font-weight: 600;
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.mode svg, .icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mode:hover { color: var(--ink); }
.mode[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: 0 6px 12px -8px var(--ink); }
/* Deshacer y borrar: iconos sueltos, separados y más discretos */
.history { display: flex; gap: 4px; padding-left: 14px; border-left: 2px solid #f1e6dc; }
.icon-btn {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 42px; height: 42px; padding: 0 10px; border: 0; border-radius: 99px; cursor: pointer;
  background: transparent; color: var(--ink-soft); font-size: 14px; font-weight: 600;
  transition: background-color .2s, color .2s, transform .2s var(--ease-spring);
}
.icon-btn:hover { background: #f6efe9; color: var(--ink); }
.icon-btn:active { transform: scale(.92); }
.icon-btn--danger:hover { background: #fbe3e4; color: #c94f44; }
.icon-btn__ask { display: none; white-space: nowrap; }
.icon-btn--danger.is-armed { background: #c94f44; color: #fff; padding: 0 14px 0 12px; }
.icon-btn--danger.is-armed .icon-btn__ask { display: inline; }
.paper__sheet {
  position: relative; border-radius: 22px; overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 1px 1px, rgba(58, 42, 49, .07) 1px, transparent 0) 0 0 / 22px 22px,
    #fffdf9;
  box-shadow: inset 0 0 0 1.5px #f1e6dc;
}
.paper__sheet canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.paper__sheet.is-stamping canvas { cursor: copy; }
.paper__sheet.is-texting canvas { cursor: text; }
.paper__sheet.is-moving canvas { cursor: grab; }
.sel {
  position: absolute; z-index: 2; border: 2px dashed var(--teal); border-radius: 10px;
  cursor: move; touch-action: none; transform-origin: 50% 50%;
}
.sel[hidden] { display: none; }
.sel__h {
  position: absolute; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  background: var(--teal) center / 16px no-repeat; box-shadow: 0 3px 8px rgba(0, 0, 0, .2);
  touch-action: none; cursor: pointer;
}
.sel__rot { left: 50%; top: -42px; margin-left: -15px; cursor: grab;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M20 12a8 8 0 1 1-3-6.2'/%3E%3Cpath d='M20 4v5h-5'/%3E%3C/svg%3E"); }
.sel__rot::after { content: ""; position: absolute; left: 50%; top: 30px; width: 2px; height: 12px; margin-left: -1px; background: var(--teal); }
.sel__size { right: -15px; bottom: -15px; cursor: nwse-resize;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 10v8h-8M6 14V6h8'/%3E%3C/svg%3E"); }
.sel__del { right: -15px; top: -15px; background-color: var(--coral);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M9 7V4.5h6V7M6.5 7l1 12.5h9l1-12.5M10 11v5M14 11v5'/%3E%3C/svg%3E"); }
.sel__ok { left: -15px; bottom: -15px; background-color: #5aa87a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.sel__h:hover { transform: scale(1.1); }
.sel__h { transition: transform .2s var(--ease-spring); }
.paper__body { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
.stamps { display: grid; gap: 6px; align-content: start; }
.stamps__title { margin: 2px 0 0; font: 600 12px/1 "Fredoka", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); text-align: center; }
.stamps__grid { display: grid; grid-template-columns: repeat(2, 48px); gap: 6px; }
.stamp {
  width: 48px; height: 48px; padding: 3px; border: 0; border-radius: 14px; cursor: pointer;
  background: #f6efe9; display: grid; place-items: center;
  transition: background-color .2s, transform .25s var(--ease-spring), box-shadow .2s;
}
.stamp canvas { width: 100%; height: 100%; display: block; pointer-events: none; }
.stamp:hover { background: #efe3d9; transform: scale(1.06); }
.stamp[aria-pressed="true"] { background: #fff; box-shadow: 0 0 0 3px var(--teal), 0 6px 14px -6px rgba(0, 128, 141, .5); transform: scale(1.06); }
.stamp--text span { font: 400 26px/1 var(--font-logo); color: var(--ink); }
.paper__text {
  position: absolute; z-index: 2; min-width: 120px; padding: 4px 10px; border: 2px dashed var(--teal); border-radius: 10px;
  background: rgba(255, 255, 255, .92); font-family: var(--font-logo); font-size: 26px; color: var(--ink); outline: none;
  transform: translate(-50%, -50%);
}
.paper__hint {
  position: absolute; inset: 0; margin: 0; display: grid; place-items: center;
  font-weight: 300; font-size: clamp(20px, 2.6vw, 30px); color: #c9b5ab;
  pointer-events: none; transition: opacity .4s;
}
.paper__hint.is-gone { opacity: 0; }
.paper__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between; padding: 16px 6px 4px; }
.paper__tip { margin: 0; color: var(--ink-soft); font-size: 16px; }
@media (max-width: 860px) {
  /* En pantallas estrechas las piezas se reparten en filas que se ajustan al ancho, sin deslizar de lado */
  .paper__body { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .stamps { gap: 6px; }
  .stamps__title { text-align: left; margin: 4px 0 0; }
  .stamps__grid { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
  .stamp { width: 100%; height: auto; aspect-ratio: 1; padding: 4px; }
  .stamps--right { order: 3; }
}
@media (max-width: 720px) {
  .paper { padding: 12px; border-radius: 24px; }
  .paper__sheet { aspect-ratio: 4 / 5; }
  .paper__tools .swatches { order: 1; }
  .paper__tools .sizes { order: 2; }
  .paper__tools .history { order: 3; margin-left: auto; padding-left: 0; border-left: 0; }
  .paper__tools .modes { order: 4; width: 100%; margin-left: 0; }
  .mode { flex: 1 1 0; min-width: 0; justify-content: center; padding: 9px 6px; font-size: 14px; }
  .swatch { width: 30px; height: 30px; }
  .paper__foot .btn { width: 100%; }
}
@media (max-width: 420px) {
  /* iconos sobre la etiqueta para que los tres modos quepan siempre */
  .mode { flex-direction: column; gap: 3px; padding: 8px 4px 7px; font-size: 12.5px; border-radius: 20px; }
  .modes { border-radius: 26px; }
}

/* ---------- Para los mayores ---------- */
.adults { padding: clamp(100px, 12vw, 170px) var(--gutter); background: var(--paper); }
.adults__grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start;
}
.adults__body { margin-top: 26px; font-size: clamp(18px, 1.55vw, 21px); line-height: 1.65; }
.adults__body p { margin: 0 0 1em; }
.adults__body strong { color: var(--teal); }
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tip {
  position: relative; padding: 22px 24px 22px 76px; border-radius: 22px; background: var(--peach-soft);
  transition: translate .4s var(--ease-out);
}
.tip:nth-child(2) { background: #e3eff0; }
.tip:nth-child(3) { background: #fbe3e4; }
.tip:nth-child(4) { background: #f4ecdc; }
.tip:hover { translate: 6px 0; }
.tip__n {
  position: absolute; left: 22px; top: 20px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; font-weight: 800; color: var(--teal);
}
.tip h3 { margin: 0 0 4px; font-size: 20px; font-variation-settings: "BNCE" 60, "INFM" 10; }
.tip p { margin: 0; color: var(--ink-soft); font-size: 16.5px; }

/* Ideas para hacer familia */
.adults__head { max-width: 900px; margin: 0 auto; text-align: center; }
.adults__head .lead { margin-inline: auto; }
.ideas {
  list-style: none; max-width: 1200px; margin: clamp(40px, 6vw, 64px) auto 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 18px);
}
.idea {
  padding: 26px 22px 24px; border-radius: 26px; background: var(--card, var(--peach-soft));
  transition: translate .4s var(--ease-out);
}
.idea:hover { translate: 0 -5px; }
.idea:nth-child(8n+2) { --card: #e3eff0; } .idea:nth-child(8n+3) { --card: #fbe3e4; } .idea:nth-child(8n+4) { --card: #e3f1e8; }
.idea:nth-child(8n+5) { --card: #fdf0c8; } .idea:nth-child(8n+6) { --card: #fbe3e4; } .idea:nth-child(8n+7) { --card: #e3eff0; } .idea:nth-child(8n+8) { --card: #f4ecdc; }
.idea__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 50%; background: #fff; }
.idea__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--teal); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.idea h3 { margin: 0 0 8px; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.2; font-variation-settings: "BNCE" 60, "INFM" 20; }
.idea p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
@media (max-width: 1080px) { .ideas { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ideas { grid-template-columns: minmax(0, 1fr); } }

.guide {
  max-width: 1200px; margin: clamp(70px, 9vw, 120px) auto 0;
  display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 70px); align-items: center;
  padding: clamp(28px, 4vw, 52px); border-radius: 36px;
  background: var(--teal); color: #fff;
}
.guide h3 { margin: 0 0 10px; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.1; font-variation-settings: "BNCE" 60, "INFM" 20; }
.guide p { margin: 0 0 24px; max-width: 46ch; color: rgba(255, 255, 255, .88); }
.guide .btn { background: var(--sun); color: var(--ink); --shadow: #c99a3b; }
.guide__links { display: flex; flex-wrap: wrap; gap: 16px; }
.guide__doc { position: relative; width: clamp(170px, 18vw, 230px); aspect-ratio: .72; }
.guide__page {
  position: absolute; inset: 0; border-radius: 10px; background: #fff;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .4);
  transition: transform .6s var(--ease-spring);
}
.guide__page--3 { transform: rotate(9deg) translate(16px, 6px); background: var(--peach); }
.guide__page--2 { transform: rotate(4deg) translate(8px, 2px); background: #e3eff0; }
.guide__page--2 .gp__title, .guide__page--3 .gp__title {
  position: absolute; top: 12px; right: 14px; font-size: 15px; opacity: .55; transform: rotate(90deg) translateX(100%); transform-origin: right top;
}
.guide__page--1 {
  transform: rotate(-3deg); padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 7px;
  background: var(--sun);
  color: var(--ink);
}
.gp__kicker { font: 600 8.5px/1 var(--font-ui, "Fredoka"), sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); }
.gp__title { font-family: var(--font-logo); font-weight: 400; font-size: clamp(27px, 2.8vw, 34px); line-height: .95; color: var(--teal); }
.gp__doodle { width: 100%; height: auto; margin: 4px 0 6px; background: #fff; border-radius: 12px; padding: 8px 6px 4px; }
.gp__row { display: flex; align-items: center; gap: 7px; }
.gp__row em { flex: none; width: 10px; height: 10px; border: 2px solid var(--teal); border-radius: 3px; }
.gp__row i { display: block; height: 6px; width: 100%; border-radius: 4px; background: rgba(58, 42, 49, .14); }
.gp__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gp__foot i { display: block; height: 4px; width: 46%; border-radius: 3px; background: rgba(58, 42, 49, .12); }
.gp__foot b { font: 600 9px "Fredoka", sans-serif; color: var(--ink-soft); }
.guide:hover .guide__page--3 { transform: rotate(14deg) translate(30px, 10px); }
.guide:hover .guide__page--2 { transform: rotate(7deg) translate(16px, 4px); }
.guide:hover .guide__page--1 { transform: rotate(-5deg) translateY(-6px); }
@media (max-width: 860px) {
  .adults__grid, .guide { grid-template-columns: minmax(0, 1fr); }
  .guide__doc { margin: 0 auto 10px; }
}

/* ---------- Autora ---------- */
.author { padding: clamp(100px, 12vw, 160px) var(--gutter); background: var(--paper); }
.author__grid {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(30px, 6vw, 90px); align-items: center;
}
.author__media { position: relative; margin: 0 0 40px; }
.author__photo {
  overflow: hidden; background: #fff;
  border-radius: 46% 54% 38% 62% / 34% 36% 64% 66%;
  border: 10px solid #fff;
  box-shadow: 0 40px 70px -40px rgba(120, 60, 50, .55);
  transform: rotate(-2deg);
}
.author__photo img { width: 100%; height: auto; transform: scale(1.06); }
.author__sticker {
  position: absolute; left: -8%; bottom: -10%; width: 58%; height: auto;
  background: #fff; border-radius: 18px; padding: 10px 12px;
  box-shadow: 0 18px 30px -18px rgba(58, 42, 49, .45);
  transform: rotate(-6deg);
}
.author .lead + .lead { margin-top: 14px; }
.author .lead em { color: var(--teal); font-style: normal; font-weight: 700; }
.author__quote {
  margin: 28px 0 0; padding: 0 0 0 22px; border-left: 4px solid var(--coral);
  font-size: clamp(18px, 1.7vw, 22px); line-height: 1.55; font-style: italic;
}
@media (max-width: 860px) { .author__grid { grid-template-columns: minmax(0, 1fr); } .author__media { max-width: 440px; margin: 0 auto 50px; } .author__sticker { left: -2%; } }

/* ---------- Contacto ---------- */
.contact { padding: clamp(80px, 10vw, 130px) var(--gutter); background: #e3eff0; }
.contact__grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); }
.contact__card { padding: clamp(28px, 3.4vw, 44px); border-radius: 30px; background: #fff; }
.contact__card--alt { background: var(--paper); }
.contact__card h3 { margin: 0 0 10px; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; font-variation-settings: "BNCE" 60, "INFM" 20; }
.contact__card p { margin: 0 0 24px; color: var(--ink-soft); }
.news { display: flex; flex-wrap: wrap; gap: 10px; }
.news input { flex: 1 1 220px; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: minmax(0, 1fr); } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Escuchar ---------- */
@keyframes eq { from { height: 20%; } to { height: 100%; } }
@media (max-width: 720px) { .listen__label { display: none; } }
.is-speaking { background: linear-gradient(transparent 60%, rgba(247, 213, 138, .7) 60%); border-radius: 4px; }

/* ---------- Libro ---------- */
.book-cta {
  position: relative; overflow: hidden;
  padding: clamp(100px, 12vw, 170px) var(--gutter);
  background: var(--peach);
}
.book-cta__grid {
  position: relative; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center;
}
.stores { margin-top: 34px; display: grid; gap: 20px; max-width: 460px; }
.stores .btn--big { width: 100%; }
.stores__more { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn[data-pending] { position: relative; }
.btn[data-pending]::after {
  content: "Enlace próximamente"; position: absolute; left: 50%; bottom: calc(100% + 10px);
  transform: translate(-50%, 4px); white-space: nowrap;
  font-size: 13px; font-weight: 500; padding: 5px 10px; border-radius: 8px;
  background: var(--ink); color: #fff; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s var(--ease-out);
}
.btn[data-pending]:hover::after, .btn[data-pending].is-tip::after { opacity: 1; transform: translate(-50%, 0); }
.specs { margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 26px; }
.specs div { border-top: 1.5px solid rgba(58, 42, 49, .14); padding-top: 10px; }
.specs dt { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-variation-settings: "BNCE" 0, "INFM" 0; }
.specs dd { margin: 2px 0 0; font-weight: 600; }

.book3d { perspective: 1600px; display: grid; place-items: center; padding: 30px 0 60px; }
.book3d__body {
  --d: 30px;
  position: relative; width: min(520px, 84vw); aspect-ratio: 1094 / 809;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 10deg)) rotateY(var(--ry, -26deg));
  transition: transform .6s var(--ease-out);
}
.book3d__front, .book3d__back { position: absolute; inset: 0; border-radius: 3px 8px 8px 3px; }
.book3d__front {
  overflow: hidden;
  transform: translateZ(calc(var(--d) / 2));
  background: var(--peach);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
}
.book3d__front img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* bisagra de tapa dura junto al lomo */
.book3d__front::before {
  content: ""; position: absolute; z-index: 2; top: 0; bottom: 0; left: 3.2%; width: 1.4%;
  background: linear-gradient(to right, rgba(0, 0, 0, .14), rgba(255, 255, 255, .25) 55%, rgba(0, 0, 0, .06));
}
.book3d__front::after {
  content: ""; position: absolute; z-index: 3; inset: 0;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .3) 48%, rgba(255, 255, 255, 0) 60%);
  transform: translateX(var(--shine, -40%)); transition: transform .6s var(--ease-out);
}
.book3d__spine {
  position: absolute; top: 0; bottom: 0; left: 0; width: var(--d);
  transform-origin: left center;
  transform: translateZ(calc(var(--d) / 2)) rotateY(90deg);
  background: linear-gradient(to right, #d99a5c, #f3c48f 45%, #e2a96d);
  border-radius: 3px;
}
.book3d__pages {
  position: absolute; top: 2%; bottom: 2%; right: 0; width: var(--d);
  transform-origin: right center;
  transform: translateZ(calc(var(--d) / 2)) rotateY(90deg);
  background: repeating-linear-gradient(to right, #fffaf2 0 2px, #eadfd1 2px 3px);
}
.book3d__back {
  transform: rotateY(180deg) translateZ(calc(var(--d) / 2));
  background: var(--peach-2);
}
.book3d__shadow {
  width: 78%; height: 30px; margin-top: 34px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(120, 60, 30, .32), transparent);
  filter: blur(4px);
}

.book-cta .h2 { font-size: clamp(34px, 4.2vw, 58px); }
@media (max-width: 860px) { .book-cta__grid { grid-template-columns: minmax(0, 1fr); } .specs { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pie ---------- */
.footer {
  padding: 60px var(--gutter) max(60px, env(safe-area-inset-bottom));
  background: var(--plum); color: rgba(255, 255, 255, .78);
  text-align: center; font-size: 15px;
}
.footer p { margin: 4px 0; }
.footer__logo { font-family: var(--font-logo); font-weight: 700; font-size: 44px; line-height: 1; color: var(--peach); margin-bottom: 14px !important; }

/* ---------- Efectos (corazones al tocar) ---------- */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.fx .heart {
  position: absolute; left: 0; top: 0; width: var(--s, 22px); height: var(--s, 22px);
  margin: calc(var(--s, 22px) / -2) 0 0 calc(var(--s, 22px) / -2);
  will-change: transform, opacity;
}
.fx .heart svg { width: 100%; height: 100%; fill: var(--c, var(--coral)); display: block; }
.fx .spark { animation: none; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .chapter { height: auto; }
  .stage { position: relative; height: auto; min-height: 100svh; padding: 100px 0; }
  .forma__lines .beat { position: static; margin-bottom: .3em; }
  .track { flex-direction: column; height: auto; padding: 0 var(--gutter); }
  .qa__a, .qa__plus { transition: none; }
  .forma__svg .hse, .forma__svg .bridge { display: none; }
}


/* ---------- Lista de espera y formularios de correo ---------- */
.waitlist {
  margin-top: 34px; max-width: 520px; padding: clamp(22px, 3vw, 30px);
  background: rgba(255, 255, 255, .7); border-radius: 28px;
  box-shadow: 0 24px 40px -28px rgba(120, 60, 50, .5), inset 0 0 0 2px rgba(255, 255, 255, .6);
}
.waitlist__tag { margin: 0 0 6px; font: 600 12px/1 "Fredoka", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); }
.waitlist__title { margin: 0 0 6px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; font-variation-settings: "BNCE" 80, "INFM" 20; }
.waitlist__text { margin: 0 0 18px; color: var(--ink-soft); font-size: 17px; line-height: 1.5; }
.waitlist__row { display: flex; flex-wrap: wrap; gap: 10px; }
.waitlist__row input {
  flex: 1 1 200px; min-width: 0; font: inherit; font-size: 17px; padding: 13px 20px; border-radius: 99px;
  border: 2px solid rgba(58, 42, 49, .14); background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.waitlist__row input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0, 128, 141, .15); }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-soft); flex-basis: 100%; cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--teal); cursor: pointer; }
.consent a { color: var(--teal-deep); font-weight: 700; text-underline-offset: 3px; }
.form-msg { flex-basis: 100%; margin: 12px 0 0 !important; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--teal-deep) !important; }
.form-msg.is-error { color: #b3392f !important; }
form.is-sending button[type="submit"] { opacity: .65; pointer-events: none; }
.footer a { color: inherit; text-underline-offset: 3px; }
@media (max-width: 520px) {
  .waitlist__row .btn, .news .btn { flex: 1 1 100%; }
}

.book-cta__grid > *, .author__grid > *, .view__grid > *, .faq__grid > *, .contact__grid > * { min-width: 0; max-width: 100%; }
.book-cta .h2, .waitlist { overflow-wrap: anywhere; }
.book-cta__info, .waitlist { width: 100%; }
.waitlist__row input { width: 100%; }

/* Los campos de texto no deben ensanchar nunca su columna (en móviles Apple tienen un ancho propio) */
input[type="text"], input[type="email"], input:not([type]) { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.names__row, .news, .waitlist__row, .names { min-width: 0; max-width: 100%; }
.names__row input { flex: 1 1 0; width: auto; }
.news input, .waitlist__row input { flex: 1 1 200px; width: auto; }
.contact__card, .names, .nombre__text { min-width: 0; }

/* ---------- Transición entre secciones en móvil: cada sección con su color y un borde ondulado ---------- */
@media (max-width: 860px), (orientation: portrait) {
  .chapter:not(.ch-forma), [data-bg].families, [data-bg].draw, [data-bg].adults, [data-bg].support, [data-bg].book-cta,
  [data-bg].author, [data-bg].view, [data-bg].contact, [data-bg].faq { position: relative; }
  .chapter:not(.ch-forma)::before, .families::before, .draw::before, .adults::before, .support::before, .book-cta::before,
  .author::before, .view::before, .contact::before, .faq::before {
    content: ""; position: absolute; z-index: 4; left: 0; right: 0; top: 1px; height: 34px;
    transform: translateY(-100%); background-color: inherit; pointer-events: none;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 34' preserveAspectRatio='none'%3E%3Cpath d='M0 34V18C50 2 110 2 200 18S350 34 400 16V34Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 34' preserveAspectRatio='none'%3E%3Cpath d='M0 34V18C50 2 110 2 200 18S350 34 400 16V34Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  }
}

.contact__grid--single { grid-template-columns: minmax(0, 640px); justify-content: center; }

/* ---------- Una mirada / El niño en medio: más compactas en móvil, con cada punto plegado ---------- */
.point__more { display: none; }
@media (max-width: 860px) {
  .view { padding: 70px var(--gutter) 60px; }
  .view__grid { gap: 26px; }
  .view__head .h2 { font-size: clamp(27px, 8vw, 34px); line-height: 1.08; }
  .view__head .lead { font-size: 16.5px; line-height: 1.5; margin-top: 12px; }
  .point { padding: 18px 0; gap: 2px; }
  .point__n { font-size: 28px; }
  .point h3 { font-size: 20px; margin-bottom: 6px; }
  .point p { font-size: 16px; line-height: 1.55; }
  .point p + p { margin-top: 10px; }
  .point p.point__tip { padding: 13px 15px; font-size: 15.5px; }
  .point__list { gap: 6px; margin: 10px 0; }
  .point__list li { font-size: 15.5px; padding: 9px 12px 9px 36px; }
  .point__list li::before { left: 12px; top: 14px; }
  .view__plea { padding: 20px; font-size: 16px; line-height: 1.5; margin-bottom: 16px; }
  .view__plea strong { font-size: 23px; margin-bottom: 8px; }
  .view__help { padding: 18px 18px; }
  .view__help h4 { font-size: 19px; }
  .view__help p { font-size: 15.5px; line-height: 1.5; }
  .sources { font-size: 14.5px; }

  /* cada punto se ve resumido y se despliega con «Leer más» */
  .point--fold:not(.is-open) > div > :not(h3):not(p:first-of-type):not(.point__more) { display: none; }
  .point--fold:not(.is-open) > div > p:first-of-type {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden;
  }
  .point--fold .point__more {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 0; border: 0; background: none; cursor: pointer;
    font: 700 15.5px/1 var(--font-story); color: var(--teal-deep); font-variation-settings: "BNCE" 60, "INFM" 20;
  }
  .point__more::after {
    content: ""; width: 8px; height: 8px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px); transition: transform .3s var(--ease-out);
  }
  .point.is-open .point__more::after { transform: rotate(-135deg) translateY(-1px); }
}

/* Ondas animadas (las crea el script en móvil; sustituyen a las estáticas) */
html.has-waves [data-bg]::before { content: none !important; }
.wave { position: absolute; left: 0; right: 0; top: -45px; height: 46px; z-index: 4; pointer-events: none; overflow: hidden; }
.wave svg { position: absolute; left: 0; width: 100%; height: 100%; overflow: visible; display: block; fill: currentColor; }
.wave__back { opacity: .5; }
