/* =========================================================
   La Donalería — estilos
   Dirección: capítulos de color. Cada sección es un glaseado.
   ========================================================= */

:root {
  /* Marca (extraídos del logo y del Instagram) */
  --peach: #FDDBB8;      /* fondo del logo */
  --peach-2: #FFE9D3;    /* superficie un paso más clara */
  --peach-3: #F6CBA0;    /* un paso más oscuro */
  --choco: #3E2418;      /* tinta del logo */
  --choco-2: #55321F;
  --choco-3: #6E4329;
  --caramel: #C98A4B;    /* glaseado de la O */
  --caramel-2: #D79A5B;
  --caramel-d: #9A5A24;
  /* Glaseados de los capítulos (de sus cajas temáticas) */
  --yellow: #F6C935;
  --orange: #F26B1F;
  --blue: #2B4DBE;
  --pink: #F6A9C3;

  --font: "Fredoka", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;

  /* Cinco tamaños */
  --t-hero: clamp(84px, 18.5vw, 300px);
  --t-xl: clamp(52px, 8.4vw, 136px);
  --t-l: clamp(40px, 5.4vw, 84px);
  --t-m: clamp(22px, 2.3vw, 34px);
  --t-body: clamp(17px, 1.25vw, 19px);
  --t-s: 15px;

  --m: clamp(16px, 2.8vw, 40px);
  --gap: clamp(12px, 1.8vw, 24px);
  --r: 18px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.5;
  color: var(--choco);
  background: var(--peach);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--choco); color: var(--peach); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 6px; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--choco); color: var(--peach); padding: 12px 18px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; padding-inline: var(--m); }

/* ---------- capa 3D ----------
   Los fondos de las secciones quedan debajo del canvas; su contenido, encima. */
.donut-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.field { position: relative; }
.field > *, .foot__grid > * { position: relative; z-index: 2; }
.donut-fallback { width: 100%; height: 100%; object-fit: contain; }
html.webgl .donut-fallback { opacity: 0; }

.field--peach  { background: var(--peach); color: var(--choco); }
.field--choco  { background: var(--choco); color: var(--peach); }
.field--yellow { background: var(--yellow); color: var(--choco); }
.field--orange { background: var(--orange); color: var(--choco); }
.field--blue   { background: var(--blue); color: var(--peach); }
.field--pink   { background: var(--pink); color: var(--choco); }
.field--caramel{ background: var(--caramel); color: var(--choco); }

/* ---------- tipo ---------- */
.h-xl { font-size: var(--t-xl); font-weight: 700; line-height: .92; letter-spacing: -0.035em; }
.h-l  { font-size: var(--t-l); font-weight: 700; line-height: .95; letter-spacing: -0.03em; }
.statement { font-size: var(--t-m); font-weight: 500; line-height: 1.22; letter-spacing: -0.01em; max-width: 34ch; }
.statement--sm { max-width: 28ch; }

/* ---------- botones ---------- */
.btn {
  --bg: var(--choco); --fg: var(--peach);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: var(--t-body); text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease-out), background-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--light { --bg: var(--peach); --fg: var(--choco); }
.btn--ghost { --bg: var(--peach-3); --fg: var(--choco); }
.btn--ghost-light { --bg: var(--choco-3); --fg: var(--peach); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: var(--t-s); }
.btn--block { width: 100%; }
.btn svg { width: 22px; height: 22px; fill: currentColor; }
.link { font-weight: 600; text-underline-offset: 6px; text-decoration-thickness: 2px; transition: text-underline-offset .25s; }
.link:hover { text-underline-offset: 9px; }

/* ---------- loader ---------- */
.loader { display: none; }
html.js .loader {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 300;
  background: var(--peach); color: var(--choco);
  transition: transform 1s var(--ease-out) .05s;
}
html.is-loaded .loader { transform: translateY(-100%); pointer-events: none; }
.loader__inner { display: grid; justify-items: center; gap: 18px; }
.loader__donut { width: 120px; height: 120px; animation: spin 1.4s linear infinite; }
.loader__count { font-size: var(--t-m); font-weight: 600; font-variant-numeric: tabular-nums; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--m);
  color: var(--nav-ink, var(--choco)); background: var(--nav-bg, transparent);
  transition: transform .5s var(--ease-out), background-color .4s, color .4s;
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { display: inline-flex; align-items: center; font-weight: 700; font-size: 23px; letter-spacing: -0.02em; text-decoration: none; }
.nav__o { width: .92em; height: .92em; margin: 0 1px; transition: transform .6s var(--ease-out); }
.nav__brand:hover .nav__o { transform: rotate(180deg); }
.nav__links { display: flex; gap: clamp(16px, 2vw, 32px); }
.nav__links a { text-decoration: none; font-weight: 500; font-size: var(--t-s); position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__right { display: flex; align-items: center; gap: 8px; }
.nav__cart {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px 0 18px; border: 0; border-radius: 999px;
  background: var(--nav-ink, var(--choco)); color: var(--nav-bg-solid, var(--peach)); font-weight: 600; font-size: var(--t-s);
  transition: transform .3s var(--ease-out);
}
.nav__cart:hover { transform: scale(1.04); }
.nav__count { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 999px; background: var(--caramel); color: var(--choco); font-size: var(--t-s); }
.nav__count.bump { animation: bump .5s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.4); } }
.nav__menu { display: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; position: relative; }
.nav__menu span { position: absolute; left: 11px; right: 11px; height: 3px; border-radius: 3px; background: currentColor; transition: transform .35s var(--ease-out); }
.nav__menu span:first-child { top: 16px; }
.nav__menu span:last-child { top: 25px; }
.nav.is-open .nav__menu span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav.is-open .nav__menu span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { min-height: 100svh; }
.hero__inner {
  min-height: 100svh; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto;
  padding-top: max(13vh, calc(var(--nav-h) + 32px)); padding-bottom: 40px; column-gap: 40px;
}
.hero__title {
  grid-column: 1 / -1; align-self: start;
  font-size: var(--t-hero); font-weight: 700; line-height: .84; letter-spacing: -0.045em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line__in { display: inline-block; }
.hero__title .line--2 { color: var(--caramel-d); padding-left: .62em; }
.o-slot { display: inline-block; width: .74em; height: .74em; vertical-align: -0.035em; margin: 0 .02em; }
.hero__facts { align-self: end; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: var(--t-s); }
.hero__facts li { display: grid; font-size: var(--t-body); line-height: 1.3; }
.hero__facts strong { font-size: var(--t-m); font-weight: 600; letter-spacing: -0.01em; }
.hero__side { align-self: end; justify-self: end; max-width: 30ch; text-align: right; display: grid; gap: 22px; justify-items: end; }
.hero__lead { font-size: var(--t-body); line-height: 1.45; }
.hero__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- MANIFIESTO ---------- */
.manifesto { min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding-top: 140px; }
.manifesto__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center; }
.manifesto__text { grid-column: 1 / 8; display: grid; gap: 36px; }
.manifesto__hint { font-size: var(--t-body); color: var(--peach-3); }
.manifesto__donut { grid-column: 8 / 13; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
.marquee { overflow: hidden; padding-block: 64px 72px; color: var(--caramel); }
.marquee__track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { font-size: clamp(44px, 6vw, 96px); font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; }
.marquee__track img { width: clamp(40px, 4.4vw, 70px); height: auto; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- CAPÍTULOS ---------- */
.theme { min-height: 100svh; display: grid; align-items: center; padding-block: 140px; }
.theme__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 48px; align-items: center; }
.theme__title { grid-column: 1 / -1; grid-row: 1; }
.theme__text { display: grid; gap: 26px; justify-items: start; align-self: end; }
.theme__p { font-size: var(--t-body); line-height: 1.45; max-width: 34ch; }
.theme__price { display: flex; align-items: baseline; gap: 14px; font-size: var(--t-m); font-weight: 600; letter-spacing: -0.01em; }
.theme__price strong { font-weight: 600; }
.theme__price span { opacity: 1; font-weight: 500; }
.theme__photo { display: grid; gap: 12px; }
.theme__photo figcaption { font-size: var(--t-s); }
.ph { overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--r); background: rgba(0,0,0,.08); }
.ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.theme__donut { aspect-ratio: 1; width: 100%; }

.theme--a .theme__text, .theme--c .theme__text { grid-column: 1 / 5; grid-row: 2; }
.theme--a .theme__photo { grid-column: 5 / 9; grid-row: 2; }
.theme--a .theme__donut { grid-column: 9 / 13; grid-row: 2; }
.theme--b .theme__donut, .theme--d .theme__donut { grid-column: 1 / 5; grid-row: 2; }
.theme--b .theme__photo, .theme--d .theme__photo { grid-column: 5 / 9; grid-row: 2; }
.theme--b .theme__text, .theme--d .theme__text { grid-column: 9 / 13; grid-row: 2; }
.theme--c .theme__donut--big { grid-column: 5 / 10; grid-row: 2; }
.theme__swatches { grid-column: 10 / 13; grid-row: 2; align-self: end; display: grid; gap: 14px; font-size: var(--t-body); font-weight: 500; }
.theme__swatches li { display: flex; align-items: center; gap: 14px; }
.theme__swatches span { width: 34px; height: 34px; border-radius: 50%; flex: none; }

/* ---------- CONFIGURADOR ---------- */
.build { padding-block: 140px; min-height: 100svh; }
.build__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 32px; }
.build__head { grid-column: 1 / 7; display: grid; gap: 20px; align-content: start; }
.build__head p { max-width: 36ch; font-size: var(--t-body); }
.build__stage { grid-column: 1 / 7; grid-row: 2; display: grid; justify-items: center; align-content: center; gap: 12px; }
.build__donut { width: min(100%, 560px); aspect-ratio: 1; }
.build__name { font-size: var(--t-m); font-weight: 600; text-align: center; min-height: 1.3em; }
.build__panel { grid-column: 8 / 13; grid-row: 1 / 3; display: grid; gap: 28px; align-content: start; background: var(--choco-2); border-radius: var(--r); padding: clamp(22px, 2.4vw, 36px); }
.opt { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.opt legend { padding: 0; margin-bottom: 12px; font-size: var(--t-s); font-weight: 600; display: flex; gap: 8px; }
.opt legend span { font-weight: 400; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px;
  background: var(--choco-3); color: var(--peach); font-weight: 500; font-size: var(--t-s); transition: background-color .2s, color .2s, transform .3s var(--ease-out);
}
.pill span b { font-weight: 600; }
.pill:hover span { transform: translateY(-1px); }
.pill input:checked + span { background: var(--peach); color: var(--choco); }
.pill input:focus-visible + span { outline: 3px solid var(--peach); outline-offset: 3px; }
.pills--sm .pill span { min-height: 42px; padding: 0 14px; font-size: var(--t-s); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; width: 44px; height: 44px; }
.swatch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--c); transition: transform .3s var(--ease-out); }
.swatch:hover span { transform: scale(1.1); }
.swatch input:checked + span { outline: 3px solid var(--peach); outline-offset: 3px; transform: scale(.86); }
.swatch input:focus-visible + span { outline: 3px dashed var(--peach); outline-offset: 4px; }
.field-in { display: grid; gap: 8px; font-size: var(--t-s); font-weight: 500; }
.field-in input, .field-in select, .field-in textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 2px solid transparent; border-radius: 14px;
  background: var(--choco-3); color: var(--peach); font-size: var(--t-body); transition: border-color .2s, background-color .2s;
}
.field-in textarea { resize: vertical; min-height: 96px; }
.field-in input::placeholder, .field-in textarea::placeholder { color: rgba(253, 219, 184, .62); }
.field-in input:focus, .field-in select:focus, .field-in textarea:focus { outline: none; border-color: var(--peach); }
.field-in .is-bad, .field-in [aria-invalid="true"] { border-color: #FF9A7A; }
.build__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; gap: 4px; background: var(--choco-3); border-radius: 999px; padding: 4px; }
.qty button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; font-size: var(--t-m); transition: background-color .2s; }
.qty button:hover { background: var(--choco-2); }
.qty output { min-width: 32px; text-align: center; font-weight: 600; font-size: var(--t-body); }
.build__total { display: flex; align-items: baseline; gap: 10px; line-height: 1.1; font-size: var(--t-body); }
.build__total strong { font-size: var(--t-m); font-weight: 600; }

/* ---------- PACKS ---------- */
.packs { padding-block: 140px; }
.packs__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; margin-bottom: 56px; }
.packs__head h2 { grid-column: 1 / 7; }
.packs__head p { grid-column: 8 / 13; font-size: var(--t-body); max-width: 42ch; }
.packs__list { display: grid; gap: 8px; }
.pack-row {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center;
  padding: 30px clamp(18px, 2vw, 32px); border-radius: var(--r); background: var(--peach-2);
  transition: background-color .3s, transform .45s var(--ease-out);
}
.pack-row:hover { background: var(--yellow); transform: translateX(8px); }
.pack-row__thumb { display: none; }
.pack-row__name { grid-column: 1 / 6; font-size: clamp(28px, 3vw, 46px); font-weight: 700; letter-spacing: -0.025em; line-height: 1; }
.pack-row__desc { grid-column: 6 / 10; font-size: var(--t-body); max-width: 40ch; }
.pack-row__price { grid-column: 10 / 12; font-size: var(--t-m); font-weight: 600; justify-self: end; white-space: nowrap; }
.pack-row .btn { grid-column: 12 / 13; justify-self: end; }
.packs__float {
  position: fixed; left: 0; top: 0; z-index: 40; width: 240px; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden;
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.7) rotate(-6deg); transition: opacity .3s, transform .45s var(--ease-out);
}
.packs__float.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-4deg); }
.packs__float img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- PROCESO ---------- */
.process { padding-block: 140px; min-height: 100svh; }
.process__intro { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; margin-bottom: 64px; }
.process__intro h2 { grid-column: 1 / 6; }
.process__intro p { grid-column: 7 / 12; font-size: var(--t-body); max-width: 46ch; }
.accordion { display: flex; height: 520px; border-radius: var(--r); overflow: hidden; }
.acc {
  flex: 1 1 0; min-width: 0; position: relative; border: 0; padding: 32px; text-align: left; overflow: hidden;
  background: var(--c); color: var(--ink); transition: flex-grow .6s var(--ease-out); cursor: pointer;
}
.acc__name button { all: unset; cursor: pointer; }
.acc__name button:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; border-radius: 6px; }
.acc:not(.is-open) .acc__body { visibility: hidden; }
.acc:nth-child(1) { --c: #3E2418; --ink: var(--peach); }
.acc:nth-child(2) { --c: #5C3622; --ink: var(--peach); }
.acc:nth-child(3) { --c: #7D4B2B; --ink: var(--peach); }
.acc:nth-child(4) { --c: #A86A33; --ink: var(--choco); }
.acc:nth-child(5) { --c: #D9A06A; --ink: var(--choco); }
.acc.is-open { flex-grow: 5.6; cursor: default; }
.acc__name {
  position: absolute; left: 26px; bottom: 30px; font-size: var(--t-m); font-weight: 600; white-space: nowrap;
  writing-mode: vertical-rl; transform: rotate(180deg); transition: opacity .3s;
}
.acc.is-open .acc__name { writing-mode: horizontal-tb; transform: none; top: 32px; bottom: auto; left: 32px; font-size: clamp(32px, 3vw, 46px); font-weight: 700; letter-spacing: -0.02em; }
.acc__body { position: absolute; left: 32px; bottom: 32px; width: min(38ch, calc(100% - 64px)); font-size: var(--t-body); line-height: 1.45; opacity: 0; transform: translateY(16px); transition: opacity .35s, transform .5s var(--ease-out); }
.acc.is-open .acc__body { opacity: 1; transform: none; transition-delay: .2s; }
.acc:not(.is-open):hover { filter: brightness(1.12); }

/* ---------- MUÑECO ---------- */
.mascot { padding-block: 140px; min-height: 100svh; display: grid; align-items: center; }
.mascot__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center; }
.mascot__photo { grid-column: 1 / 6; display: grid; gap: 12px; }
.mascot__photo figcaption { font-size: var(--t-s); }
.mascot__text { grid-column: 7 / 13; display: grid; gap: 32px; justify-items: start; }
.mascot__list { display: grid; gap: 8px; font-size: var(--t-body); font-weight: 500; }
.mascot__list li { display: flex; gap: 14px; align-items: center; }
.mascot__list li::before { content: ""; width: 26px; height: 26px; background: url(../assets/donut.svg) center / contain no-repeat; flex: none; }

/* ---------- GALERÍA ---------- */
.gallery { min-height: 112svh; overflow: hidden; }
.gallery__stage { position: relative; min-height: 112svh; display: grid; place-items: center; padding: 120px var(--m); }
.gallery__title { display: grid; justify-items: center; text-align: center; font-size: clamp(64px, 10.4vw, 176px); font-weight: 700; line-height: .86; letter-spacing: -0.045em; position: relative; z-index: 3; }
.gallery__title span { white-space: nowrap; }
.gallery__donut { position: absolute; width: 17vw; aspect-ratio: 1; right: 22%; top: 4%; z-index: 2; }
.print { position: absolute; padding: 10px; background: var(--peach); border-radius: 6px; transition: transform .45s var(--ease-out); z-index: 2; }
.print img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; }
.print:hover { z-index: 4; }
.print--1 { width: 17vw; left: 6%; top: 4%; transform: rotate(-8deg); }
.print--2 { width: 20vw; right: 7%; bottom: 4%; transform: rotate(6deg); }
.print--3 { width: 13vw; right: 26%; top: 4%; transform: rotate(-3deg); }
.print--1:hover, .print--2:hover, .print--3:hover { transform: rotate(0) scale(1.04); }
.gallery__note { position: absolute; left: var(--m); bottom: 28px; max-width: 34ch; font-size: var(--t-s); z-index: 3; }

/* ---------- CLIENTES ---------- */
.clients { padding-block: 140px; }
.clients__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 48px; }
.clients__head p { max-width: 38ch; font-size: var(--t-body); }
.clients__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile__ph { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); }
.tile__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.tile:hover .tile__ph img { transform: scale(1.06); }
.t-1 { background: var(--orange); } .t-2 { background: var(--pink); } .t-3 { background: var(--yellow); } .t-4 { background: var(--blue); }
.tile__name { margin-top: 12px; font-size: var(--t-body); font-weight: 600; }
.tile__role { font-size: var(--t-s); }

/* ---------- RESERVA ---------- */
.booking { padding-block: 140px; }
.booking__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 48px; align-items: start; }
.booking__intro { grid-column: 1 / 6; display: grid; gap: 28px; }
.booking__intro > p { font-size: var(--t-body); max-width: 40ch; }
.cal { background: var(--choco-2); border-radius: var(--r); padding: clamp(18px, 2vw, 28px); }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal__month { font-size: var(--t-m); font-weight: 600; text-transform: capitalize; }
.cal__nav { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--choco-3); font-size: var(--t-m); line-height: 1; transition: background-color .2s; }
.cal__nav:hover:not(:disabled) { background: var(--caramel-d); }
.cal__nav:disabled { opacity: .35; cursor: not-allowed; }
.cal__grid { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.cal__grid th { font-size: var(--t-s); font-weight: 500; padding-bottom: 4px; }
.cal__grid td { padding: 0; }
.cal__day {
  width: 100%; aspect-ratio: 1; max-height: 52px; border: 0; border-radius: 12px; background: transparent; font-size: var(--t-s); font-weight: 500;
  transition: background-color .2s, color .2s, transform .25s var(--ease-out);
}
.cal__day:hover:not(:disabled) { background: var(--choco-3); transform: scale(1.06); }
.cal__day:disabled { opacity: .3; cursor: not-allowed; }
.cal__day.is-today { color: var(--caramel); font-weight: 700; }
.cal__day[aria-pressed="true"] { background: var(--peach); color: var(--choco); }
.cal__picked { margin-top: 12px; font-size: var(--t-body); font-weight: 500; }
.booking__form { grid-column: 7 / 13; display: grid; gap: 20px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { position: relative; }
.check input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.check span { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--choco-3); font-size: var(--t-s); font-weight: 500; transition: background-color .2s, color .2s; }
.check span::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--choco-2); transition: background-color .2s; }
.check input:checked + span { background: var(--peach); color: var(--choco); }
.check input:checked + span::before { background: var(--caramel); }
.check input:focus-visible + span { outline: 3px solid var(--peach); outline-offset: 3px; }
.form-error { min-height: 1.4em; font-size: var(--t-s); font-weight: 500; color: #FFB199; }
.field--peach .form-error, .drawer .form-error { color: #B3261E; }
.booking__done { display: grid; gap: 14px; padding: 24px; border-radius: var(--r); background: var(--choco-2); }
.booking__code, .sent__code { font-size: var(--t-m); font-weight: 600; }
.booking__done-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn--wa svg { width: 22px; height: 22px; }

/* ---------- CONTACTO ---------- */
.contact { padding: 0; }
.contact__row { display: block; min-height: 150px; padding-block: 0 22px; display: flex; align-items: flex-end; font-size: clamp(44px, 6.2vw, 92px); font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.contact__row:nth-child(even) { background: var(--caramel-2); }
.contact__row > .wrap { display: flex; align-items: center; gap: 24px; text-decoration: none; }
.contact__row a.wrap:hover { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 10px; }
.contact__row--h { font-weight: 700; }
.contact__row--h .wrap { justify-content: space-between; }
.contact__face { width: 1.3em; height: 1.3em; border-radius: 50%; object-fit: cover; object-position: 50% 30%; flex: none; }
.contact__row--go a.wrap:hover { text-decoration: none; }
.round-go { display: inline-grid; place-items: center; width: .9em; height: .9em; border-radius: 50%; background: var(--choco); color: var(--peach); transition: transform .45s var(--ease-out); }
.round-go svg { width: 50%; height: 50%; }
.contact__row--go a:hover .round-go { transform: rotate(-45deg) scale(1.08); }

/* ---------- PREGUNTAS ---------- */
.faq { padding-block: 140px; }
.faq__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start; }
.faq__title { grid-column: 1 / 5; position: sticky; top: 100px; }
.faq__list { grid-column: 5 / 13; display: grid; gap: 8px; }
.faq details { border-radius: var(--r); background: var(--peach-2); transition: background-color .3s, color .3s; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 74px; padding: 18px 64px 18px 24px; font-size: var(--t-body); font-weight: 500; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 26px; top: 50%; width: 18px; height: 3px; margin-top: -1.5px; border-radius: 3px;
  background: currentColor; transition: transform .35s var(--ease-out);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] { background: var(--choco); color: var(--peach); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 24px 24px; font-size: var(--t-body); max-width: 54ch; }

/* ---------- FOOTER ---------- */
.foot { background: var(--peach); padding: 10px; position: relative; }
.foot__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; }
.ftile { border-radius: var(--r); padding: 26px; min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; text-decoration: none; }
.ftile--statement { grid-column: 1 / 5; background: var(--peach-2); }
.ftile__big { font-size: var(--t-m); font-weight: 500; line-height: 1.25; max-width: 24ch; }
.ftile__legal { font-size: var(--t-s); }
.ftile--nav { grid-column: 5 / 8; background: var(--pink); justify-content: flex-start; gap: 6px; }
.ftile--nav a { font-size: var(--t-body); font-weight: 500; text-decoration: none; padding: 2px 0; width: fit-content; }
.ftile--nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.ftile--time { grid-column: 8 / 10; background: var(--yellow); }
.ftile__time { font-size: var(--t-m); font-weight: 600; font-variant-numeric: tabular-nums; }
.ftile--ig { grid-column: 10 / 13; background: var(--blue); color: var(--peach); transition: transform .4s var(--ease-out); }
.ftile--ig strong { font-size: var(--t-m); font-weight: 600; }
.ftile--ig:hover { transform: translateY(-4px); }
/* el fondo de este bloque queda bajo el canvas para que la dona vuelva a la "O" */
.foot__grid > .ftile--mark { grid-column: 1 / 9; min-height: 330px; background: var(--choco); color: var(--peach); justify-content: center; align-items: center; position: static; z-index: auto; }
.foot__mark { font-size: clamp(56px, 8.6vw, 140px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; }
.o-slot--foot { width: .74em; height: .74em; }
.ftile--cta { grid-column: 9 / 13; min-height: 330px; background: var(--orange); color: var(--choco); transition: background-color .3s; }
.ftile--cta span { font-size: var(--t-m); font-weight: 700; letter-spacing: -0.02em; max-width: 12ch; line-height: 1.05; }
.ftile--cta svg { width: 64px; height: 64px; align-self: flex-end; transition: transform .45s var(--ease-out); }
.ftile--cta:hover { background: var(--yellow); }
.ftile--cta:hover svg { transform: translate(6px, -6px); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 55; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: #1FA855; color: #fff;
  transition: transform .4s var(--ease-out);
}
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }

/* ---------- Carrito ---------- */
.drawer { position: fixed; inset: 0; z-index: 120; }
.drawer[hidden] { display: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(62, 36, 24, .55); opacity: 0; transition: opacity .4s; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--peach); color: var(--choco);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .55s var(--ease-out);
  box-shadow: -20px 0 60px rgba(62, 36, 24, .25); /* taste-skill-ignore: panel flotante del carrito */
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }
.drawer__head h2 { font-size: var(--t-m); font-weight: 700; letter-spacing: -0.02em; }
.drawer__close { width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--peach-3); font-size: var(--t-m); line-height: 1; }
.drawer__body { flex: 1; overflow-y: auto; padding: 0 24px 32px; display: grid; gap: 22px; align-content: start; overscroll-behavior: contain; }
.cart { display: grid; gap: 8px; }
.cart__item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; background: var(--peach-2); }
.cart__dot { width: 64px; height: 64px; border-radius: 50%; background: var(--g, var(--caramel)); display: grid; place-items: center; }
.cart__dot::after { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--peach-2); }
.cart__name { font-weight: 600; font-size: var(--t-body); line-height: 1.25; }
.cart__meta { font-size: var(--t-s); line-height: 1.35; }
.cart__right { display: grid; justify-items: end; gap: 6px; }
.cart__price { font-weight: 600; }
.cart__qty { display: inline-flex; align-items: center; gap: 2px; background: var(--peach-3); border-radius: 999px; }
.cart__qty button { width: 32px; height: 32px; border: 0; background: transparent; border-radius: 50%; font-size: var(--t-body); }
.cart__qty span { min-width: 20px; text-align: center; font-weight: 600; font-size: var(--t-s); }
.cart-empty { display: grid; justify-items: center; gap: 14px; padding: 40px 0; text-align: center; }
.checkout { display: grid; gap: 16px; }
.checkout[hidden], .cart-empty[hidden] { display: none; }
.checkout__sub { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--t-body); }
.checkout__sub strong { font-size: var(--t-m); }
.checkout__note { font-size: var(--t-s); margin-top: -10px; }
.drawer .field-in input, .drawer .field-in select { background: var(--peach-2); color: var(--choco); }
.drawer .field-in input::placeholder { color: rgba(62, 36, 24, .55); }
.drawer .field-in input:focus, .drawer .field-in select:focus { border-color: var(--choco); }
.drawer .pill span { background: var(--peach-2); color: var(--choco); }
.drawer .pill input:checked + span { background: var(--choco); color: var(--peach); }
.drawer .pill input:focus-visible + span { outline-color: var(--choco); }
.sent { display: grid; gap: 14px; padding: 24px; border-radius: var(--r); background: var(--peach-2); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 150; transform: translate(-50%, 140%);
  background: var(--choco); color: var(--peach); padding: 14px 22px; border-radius: 999px; font-weight: 500; font-size: var(--t-s);
  transition: transform .5s var(--ease-out), visibility 0s .5s; max-width: calc(100% - 32px); text-align: center; visibility: hidden;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .5s var(--ease-out); }

/* ---------- Animación (solo con JS) ---------- */
html.anim .reveal, html.anim .reveal-group > * { opacity: 0; transform: translateY(28px); }
html.anim .hero__title .line__in { transform: translateY(105%); }
html.anim .hero-rise { transform: translateY(28px); }
html.anim.is-loaded .hero-rise { transform: none; transition: transform 1.1s var(--ease-out) .55s; }
html.anim.is-loaded .hero__side.hero-rise { transition-delay: .65s; }

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 1080px) {
  .nav__links a { font-size: var(--t-s); }
  .theme--c .theme__donut--big { grid-column: 5 / 13; }
  .theme__swatches { grid-column: 1 / -1; grid-row: 3; display: flex; flex-wrap: wrap; gap: 14px 28px; }
  .pack-row__name { grid-column: 1 / 7; }
  .pack-row__desc { grid-column: 1 / 9; grid-row: 2; margin-top: 8px; }
  .pack-row__price { grid-column: 7 / 10; }
  .pack-row .btn { grid-column: 10 / 13; grid-row: 1 / 3; }
  .ftile--nav { grid-column: 5 / 9; }
  .ftile--time { grid-column: 9 / 13; }
  .ftile--ig { grid-column: 1 / 5; min-height: 160px; }
  .ftile--statement { grid-row: 1; }
  .foot__grid > .ftile--mark { grid-column: 5 / 13; grid-row: 2; }
  .ftile--cta { grid-column: 1 / -1; min-height: 200px; }
  .ftile--ig { grid-row: 2; }
}

@media (max-width: 860px) {
  :root { --nav-h: 60px; }
  .nav__links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 6px; padding: 0 var(--m);
    background: var(--choco); color: var(--peach); transform: translateY(-100%); transition: transform .6s var(--ease-out);
  }
  .nav__links a { font-size: var(--t-l); font-weight: 700; letter-spacing: -0.03em; }
  .nav.is-open { color: var(--peach); --nav-ink: var(--peach); --nav-bg-solid: var(--choco); background: transparent; }
  .nav.is-open .nav__links { transform: none; }
  .nav__menu { display: block; }
  .nav__cart { padding-left: 14px; font-size: var(--t-s); }

  .hero__inner { grid-template-columns: 1fr; grid-template-rows: 1fr auto auto; row-gap: 28px; padding-top: max(16vh, 96px); padding-bottom: 28px; }
  .hero__title { font-size: 18.6vw; }
  .hero__side { justify-self: start; text-align: left; justify-items: start; grid-row: 2; max-width: none; }
  .hero__actions { justify-content: flex-start; }
  .hero__facts { grid-row: 3; gap: 6px 22px; }
  .hero__facts strong { font-size: var(--t-body); }
  .hero__lead { font-size: var(--t-body); }

  .manifesto { padding-top: 110px; }
  .manifesto__grid { grid-template-columns: 1fr; row-gap: 32px; }
  .manifesto__text, .manifesto__donut { grid-column: 1; }
  .manifesto__donut { width: 78vw; }
  .marquee { padding-block: 40px 48px; }

  .theme { padding-block: 100px; min-height: 0; }
  .theme__grid { grid-template-columns: 1fr 1fr; row-gap: 28px; column-gap: 12px; }
  .theme__title { grid-column: 1 / -1; }
  .theme--a .theme__photo, .theme--b .theme__photo, .theme--d .theme__photo { grid-column: 1; grid-row: 2; }
  .theme--a .theme__donut, .theme--b .theme__donut, .theme--d .theme__donut { grid-column: 2; grid-row: 2; }
  .theme--a .theme__text, .theme--b .theme__text, .theme--c .theme__text, .theme--d .theme__text { grid-column: 1 / -1; grid-row: 3; }
  .theme--c .theme__donut--big { grid-column: 1 / -1; grid-row: 2; width: 82vw; justify-self: center; }
  .theme__swatches { grid-row: 4; }
  .theme__p { font-size: var(--t-body); }

  .build { padding-block: 100px; }
  .build__grid { grid-template-columns: 1fr; }
  .build__head, .build__stage, .build__panel { grid-column: 1; grid-row: auto; }
  .build__donut { width: 78vw; }

  .packs { padding-block: 100px; }
  .packs__head { grid-template-columns: 1fr; row-gap: 18px; }
  .packs__head h2, .packs__head p { grid-column: 1; }
  .pack-row { grid-template-columns: 72px 1fr auto; column-gap: 14px; row-gap: 6px; padding: 14px; }
  .pack-row:hover { transform: none; }
  .pack-row__thumb { display: block; grid-column: 1; grid-row: 1 / 4; width: 72px; height: 90px; object-fit: cover; border-radius: 12px; align-self: start; }
  .pack-row__name { grid-column: 2 / 4; grid-row: 1; font-size: var(--t-m); }
  .pack-row__desc { grid-column: 2 / 4; grid-row: 2; font-size: var(--t-s); margin: 0; }
  .pack-row__price { grid-column: 2; grid-row: 3; justify-self: start; font-size: var(--t-body); align-self: center; }
  .pack-row .btn { grid-column: 3; grid-row: 3; }
  .packs__float { display: none; }

  .process { padding-block: 100px; min-height: 0; }
  .process__intro { grid-template-columns: 1fr; row-gap: 18px; margin-bottom: 36px; }
  .process__intro h2, .process__intro p { grid-column: 1; }
  .accordion { flex-direction: column; height: auto; }
  .acc { flex: none; min-height: 64px; padding: 20px; }
  .acc__name, .acc.is-open .acc__name { position: static; writing-mode: horizontal-tb; transform: none; font-size: var(--t-body); display: block; }
  .acc.is-open .acc__name { font-size: var(--t-m); }
  .acc__body { position: static; display: none; width: auto; margin-top: 10px; font-size: var(--t-body); }
  .acc.is-open .acc__body { display: block; }

  .mascot { padding-block: 100px; min-height: 0; }
  .mascot__grid { grid-template-columns: 1fr; row-gap: 32px; }
  .mascot__photo, .mascot__text { grid-column: 1; }

  .gallery, .gallery__stage { min-height: 0; }
  .gallery__stage { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; padding: 96px var(--m) 72px; place-items: start stretch; }
  .gallery__title { grid-column: 1 / -1; margin-bottom: 18px; }
  .print { position: relative; inset: auto; width: auto; padding: 7px; }
  .print--1 { transform: rotate(-4deg); }
  .print--2 { transform: rotate(4deg); margin-top: 28px; }
  .print--3 { display: none; }
  .gallery__title { font-size: 11.6vw; }
  .gallery__donut { position: relative; inset: auto; grid-column: 1 / -1; width: 56vw; justify-self: center; }
  .gallery__note { position: static; grid-column: 1 / -1; margin-top: 18px; }

  .clients { padding-block: 100px; }
  .clients__grid { grid-template-columns: 1fr 1fr; gap: 8px; }

  .booking { padding-block: 100px; }
  .booking__grid { grid-template-columns: 1fr; }
  .booking__intro, .booking__form { grid-column: 1; }

  .contact__row { min-height: 84px; font-size: 9.6vw; padding-bottom: 16px; }
  .contact__row--go { background: var(--orange) !important; }
  .contact__row--go .wrap { justify-content: space-between; }
  .round-go { width: 56px; height: 56px; }

  .faq { padding-block: 100px; }
  .faq__grid { grid-template-columns: 1fr; row-gap: 28px; }
  .faq__title { grid-column: 1; position: static; }
  .faq__list { grid-column: 1; }
  .faq summary { font-size: var(--t-body); min-height: 64px; padding: 16px 56px 16px 18px; }
  .faq summary::before, .faq summary::after { right: 20px; }
  .faq details p { padding: 0 18px 20px; font-size: var(--t-s); }

  .foot { padding: 6px; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .ftile { padding: 20px; min-height: 0; grid-row: auto !important; }
  .foot__grid > .ftile--mark { grid-column: 1 / -1; order: -1; min-height: 160px; }
  .ftile--cta { grid-column: 1 / -1; order: -2; min-height: 150px; }
  .ftile--nav { grid-column: 1; }
  .ftile--ig { grid-column: 2; }
  .ftile--time { grid-column: 1; }
  .ftile--statement { grid-column: 2; }
  .ftile--ig strong, .ftile__big { font-size: var(--t-body); }
  .ftile--nav a { font-size: var(--t-s); }
  .foot__mark { font-size: 15vw; }
  .ftile--cta span { font-size: var(--t-m); }

  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}

@media (max-width: 420px) {
  .row2 { grid-template-columns: 1fr; }
  .hero__title { font-size: 18vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee__track { animation: none; }
  html.anim .reveal, html.anim .reveal-group > *, html.anim .hero__title .line__in { opacity: 1; transform: none; }
}


/* ---------- ajustes móvil: carrito y rendimiento (2026-11-04) ---------- */
.drawer__panel { height: 100%; }
@supports (height: 100dvh) { .drawer__panel { height: 100dvh; } }
.drawer__body { min-height: 0; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; padding-bottom: max(32px, env(safe-area-inset-bottom)); }
.drawer__scrim { touch-action: none; }


/* ---------- menú móvil cerrado: oculto del todo (2026-11-04) ----------
   .nav usa transform al esconderse; eso encoge el menú fijo a la barra y los enlaces se asomaban. */
@media (max-width: 860px) {
  .nav__links { visibility: hidden; opacity: 0; pointer-events: none; height: 100vh; height: 100dvh; transition: transform .6s var(--ease-out), opacity .3s, visibility 0s linear .6s; }
  .nav.is-open .nav__links { visibility: visible; opacity: 1; pointer-events: auto; transition: transform .6s var(--ease-out), opacity .3s; }
  .nav.is-open { transform: none !important; }
}
