/* ===================== Gabylu Pastelería ===================== */
:root {
  --celeste: #63D8E4;
  --celeste-hondo: #23A9BA;
  --celeste-suave: #E3F8FA;
  --morado: #6E2477;
  --morado-hondo: #4F1656;
  --rosa: #F6A9BE;
  --rosa-suave: #FDE6EC;
  --rojo: #C8234F;
  --choco: #3A1240;
  --crema: #EEFAFC;
  --papel: #FFFFFF;
  --tinta: #23162E;
  --tenue: #586878;
  --wsp: #15803D;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --radio: 16px;
  --sombra: 0 1px 2px rgba(35, 90, 110, .06), 0 10px 30px -12px rgba(35, 90, 110, .25);
  --ancho: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--tinta);
  background: var(--crema);
  line-height: 1.55;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
body.intro-activa { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: "Fredoka", "Nunito", sans-serif; line-height: 1.05; margin: 0; color: var(--morado); letter-spacing: -0.01em; }
h2 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h3 { font-size: 1.45rem; }
::selection { background: var(--rosa); color: var(--choco); }
/* controles: sin demora al tocar y sin seleccionar el texto al mantener presionado */
button, a, .chip, label {
  touch-action: manipulation;
}
button, .btn, .chip, .red, .barra-pedido, .opciones span {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
html { accent-color: var(--rojo); caret-color: var(--morado); scrollbar-color: var(--rosa) var(--crema); }
:focus-visible { outline: 3px solid var(--celeste-hondo); outline-offset: 3px; border-radius: 8px; }

.nota-mano {
  font-family: "Caveat", cursive;
  font-weight: 700;
  color: var(--rojo);
  font-size: 1.45rem;
  margin: 0 0 .2rem;
  line-height: 1.1;
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .8rem 1.4rem;
  border-radius: 999px; border: 2px solid transparent;
  font: 800 1rem/1 "Nunito", sans-serif; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease;
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--wsp { background: var(--wsp); color: #fff; box-shadow: 0 8px 20px -10px rgba(21, 128, 61, .8); }
.btn--linea { background: transparent; color: var(--morado); border-color: var(--morado); }
.btn--chico { min-height: 42px; padding: .55rem 1rem; font-size: .92rem; }
.btn--ancho { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn--wsp:hover { background: #116B33; }
  .btn--linea:hover { background: var(--morado); color: #fff; }
}

/* ===================== INTRO ===================== */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; align-content: center; gap: .5rem;
  background: var(--celeste);
  background-image: radial-gradient(circle at 50% 45%, #8BE6EE 0, var(--celeste) 55%, #4FCAD8 100%);
  padding: var(--gutter);
}
.intro.saliendo { background: transparent; transition: background-color 500ms ease; }
.intro.saliendo::before {
  content: ""; position: absolute; inset: 0; background: inherit;
  background-image: radial-gradient(circle at 50% 45%, #8BE6EE 0, var(--celeste) 55%, #4FCAD8 100%);
  animation: desvanecer 520ms var(--ease-out) forwards;
}
.intro .logo--intro { width: min(78vw, 62vh, 460px); height: auto; position: relative; overflow: visible; }
.intro-frase {
  font-family: "Caveat", cursive; font-weight: 700; font-size: clamp(1.6rem, 5vw, 2.2rem);
  color: var(--morado); margin: 0; opacity: 0; position: relative;
}
.intro-saltar {
  position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  background: rgba(255,255,255,.55); border: 0; border-radius: 999px; padding: .6rem 1rem;
  font: 700 .9rem "Nunito", sans-serif; color: var(--morado); cursor: pointer;
}
.intro.saliendo .intro-saltar, .intro.saliendo .intro-frase { opacity: 0 !important; transition: opacity 200ms ease; }

/* estado inicial (antes de reproducir) */
.logo .sello--fondo { fill: #fff; }
.logo .sello--borde { fill: none; stroke: #fff; stroke-width: 6; }
.logo .sello--interior { fill: none; stroke: var(--celeste); stroke-width: 3; }
.logo .marca { font: 700 86px "Fredoka", sans-serif; fill: var(--morado); stroke: var(--morado); stroke-width: 0; letter-spacing: 2px; }
.logo .sub { font: 500 31px "Nunito", sans-serif; fill: var(--morado); letter-spacing: 9px; }
.logo .plato { fill: #8E8E93; }
.logo .chispas path { fill: #FFE27A; }

.logo--intro .sello--fondo { opacity: 0; transform-box: fill-box; transform-origin: center; }
.logo--intro .sello--borde,
.logo--intro .sello--interior { stroke-dasharray: 1; stroke-dashoffset: 1; }
.logo--intro .marca { fill-opacity: 0; stroke-width: 1.6; stroke-dasharray: 380; stroke-dashoffset: 380; }
.logo--intro .sub tspan { opacity: 0; }
.logo--intro .plato { opacity: 0; transform-box: fill-box; transform-origin: center; }
.logo--intro .cuerpo { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
.logo--intro .cobertura { clip-path: inset(0 0 100% 0); }
.logo--intro .brillo { opacity: 0; }
.logo--intro .vela { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
.logo--intro .llama { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
.logo--intro .mono-lazo { opacity: 0; transform-box: fill-box; transform-origin: center; }
.logo--intro .cola { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); }
.logo--intro .chispas path { opacity: 0; transform-box: fill-box; transform-origin: center; }

/* ---- reproducción: línea de tiempo de ~4.4 s ---- */
.intro.play .sello--borde    { animation: trazar 900ms var(--ease-in-out) forwards; }
.intro.play .sello--interior { animation: trazar 900ms var(--ease-in-out) 250ms forwards; }
.intro.play .sello--fondo    { animation: aparecerSello 600ms var(--ease-out) 550ms forwards; }
.intro.play .marca           { animation: trazarTexto 1000ms var(--ease-in-out) 450ms forwards, rellenarTexto 400ms var(--ease-out) 1250ms forwards; }
.intro.play .sub tspan       { animation: letra 380ms var(--ease-out) forwards; }
.intro.play .sub tspan:nth-child(1)  { animation-delay: 1100ms; }
.intro.play .sub tspan:nth-child(2)  { animation-delay: 1140ms; }
.intro.play .sub tspan:nth-child(3)  { animation-delay: 1180ms; }
.intro.play .sub tspan:nth-child(4)  { animation-delay: 1220ms; }
.intro.play .sub tspan:nth-child(5)  { animation-delay: 1260ms; }
.intro.play .sub tspan:nth-child(6)  { animation-delay: 1300ms; }
.intro.play .sub tspan:nth-child(7)  { animation-delay: 1340ms; }
.intro.play .sub tspan:nth-child(8)  { animation-delay: 1380ms; }
.intro.play .sub tspan:nth-child(9)  { animation-delay: 1420ms; }
.intro.play .sub tspan:nth-child(10) { animation-delay: 1460ms; }

.intro.play .plato     { animation: plato 420ms var(--ease-out) 1350ms forwards; }
.intro.play .cuerpo    { animation: subirCapa 520ms var(--ease-out) 1500ms forwards; }
.intro.play .cobertura { animation: chorrear 650ms var(--ease-out) 1850ms forwards; }
.intro.play .brillo    { animation: desvanecerEntrada 300ms ease 2400ms forwards; }

/* la manga escribe GABYLU (450–1450 ms) y luego pone los puntitos de crema (2400–2950 ms) */
.logo .manga-intro, .logo .humo { opacity: 0; }
.logo .crema circle { fill: #fff; stroke: #F6A9BE; stroke-width: 1.5; }
.logo--intro .crema circle { opacity: 0; transform-box: fill-box; transform-origin: center; }
.intro.play .manga-intro--texto { animation: mangaTexto 1100ms var(--ease-in-out) 380ms both; }
.intro.play .manga-intro--crema { animation: mangaCrema 640ms var(--ease-in-out) 2360ms both; }
.intro.play .crema circle { animation: crema 260ms var(--ease-out) calc(2430ms + var(--i) * 90ms) forwards; }
@keyframes mangaTexto {
  0%   { opacity: 0; transform: translate(80px, 110px); }
  10%  { opacity: 1; transform: translate(92px, 150px); }
  26%  { transform: translate(150px, 118px); }
  42%  { transform: translate(205px, 152px); }
  58%  { transform: translate(262px, 116px); }
  74%  { transform: translate(320px, 152px); }
  90%  { opacity: 1; transform: translate(395px, 128px); }
  100% { opacity: 0; transform: translate(430px, 95px); }
}
@keyframes mangaCrema {
  0%   { opacity: 0; transform: translate(165px, 270px); }
  15%  { opacity: 1; transform: translate(182px, 306px); }
  85%  { opacity: 1; transform: translate(330px, 306px); }
  100% { opacity: 0; transform: translate(355px, 270px); }
}
@keyframes crema { 0% { opacity: 0; transform: scale(.2); } 60% { opacity: 1; transform: scale(1.3); } 100% { opacity: 1; transform: scale(1); } }

/* velitas que caen y se clavan */
.intro.play .vela { animation: caerVela 720ms linear calc(2950ms + var(--i) * 120ms) forwards; }
.intro.play .llama {
  animation:
    encender 360ms var(--ease-out) calc(3750ms + var(--i) * 70ms) forwards,
    titilar 1.4s ease-in-out calc(4110ms + var(--i) * 70ms) infinite;
}

/* moño que baja girando y se amarra */
.intro.play .mono-lazo { animation: caerMono 820ms linear 3850ms forwards; }
.intro.play .cola      { animation: desplegarCola 420ms var(--ease-out) 4550ms forwards; }
.intro.play .cola--der { animation-delay: 4620ms; }

/* ---- sopla las velitas ---- */
.intro-soplar {
  position: relative; border: 0; cursor: pointer; opacity: 0; pointer-events: none;
  min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px;
  background: var(--morado); color: #fff; font: 800 1rem "Nunito", sans-serif;
  box-shadow: 0 12px 26px -12px rgba(79, 22, 86, .8);
  transform: translateY(10px);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}
.intro.esperando .intro-soplar { opacity: 1; transform: none; pointer-events: auto; animation: invitar 1.6s ease-in-out 600ms infinite; }
.intro.esperando .logo--intro { cursor: pointer; }
.intro.esperando .velas { animation: invitarVelas 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes invitar { 50% { transform: scale(1.04); } }
@keyframes invitarVelas { 50% { transform: scale(1.03); } }
.intro.soplado .intro-soplar { opacity: 0; transform: translateY(-6px) scale(.96); animation: none; transition-duration: 200ms; }

.intro.soplado .llama { animation: apagar 280ms var(--ease-out) calc(var(--i) * 45ms) forwards !important; }
.intro.soplado .humo  { animation: humo 1100ms var(--ease-out) calc(120ms + var(--i) * 45ms) forwards; }
.logo .humo { fill: none; stroke: #B9B2B5; stroke-width: 3; stroke-linecap: round; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes apagar { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(.15, .3) translateY(6px); } }
@keyframes humo {
  0%   { opacity: 0; transform: translateY(4px) scaleY(.4); }
  30%  { opacity: .9; }
  100% { opacity: 0; transform: translateY(-34px) scaleY(1.15) translateX(6px); }
}
.vela .humo { opacity: 0; }

.confeti { position: fixed; left: 0; top: 0; z-index: 101; pointer-events: none; border-radius: 2px; }

.intro.play .chispas path { animation: none; }
.intro.soplado .chispas path { animation: chispa 700ms var(--ease-out) calc(150ms + var(--i) * 60ms) forwards; }
.intro.soplado .intro-frase { animation: subirFrase 500ms var(--ease-out) 250ms forwards; }

@keyframes trazar { to { stroke-dashoffset: 0; } }
@keyframes trazarTexto { to { stroke-dashoffset: 0; } }
@keyframes rellenarTexto { to { fill-opacity: 1; } }
@keyframes aparecerSello { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes letra { from { opacity: 0; } to { opacity: 1; } }
@keyframes plato { from { opacity: 0; transform: scaleX(.6); } to { opacity: 1; transform: scaleX(1); } }
@keyframes subirCapa { from { opacity: 0; transform: translateY(14px) scaleY(.7); } to { opacity: 1; transform: none; } }
@keyframes chorrear { to { clip-path: inset(0 0 0 0); } }
@keyframes desvanecerEntrada { to { opacity: 1; } }
@keyframes desvanecer { to { opacity: 0; } }

/* caída con gravedad: acelera al caer (ease-in), frena al rebotar (ease-out) */
@keyframes caerVela {
  0%   { opacity: 1; transform: translateY(-460px) rotate(-8deg); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  58%  { transform: translateY(0) rotate(0) scaleY(.86); animation-timing-function: cubic-bezier(.23, 1, .32, 1); }
  74%  { transform: translateY(-16px) scaleY(1.04); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  88%  { transform: translateY(0) scaleY(.96); animation-timing-function: cubic-bezier(.23, 1, .32, 1); }
  100% { opacity: 1; transform: translateY(0) scaleY(1); }
}
@keyframes encender {
  0%   { opacity: 0; transform: scale(.2); }
  60%  { opacity: 1; transform: scale(1.25); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes titilar {
  0%, 100% { transform: scale(1) rotate(0); }
  30% { transform: scale(1.06, .94) rotate(-4deg); }
  60% { transform: scale(.95, 1.07) rotate(3deg); }
}
@keyframes caerMono {
  0%   { opacity: 1; transform: translate(-60px, -420px) rotate(-200deg) scale(.6); animation-timing-function: cubic-bezier(.4, 0, .9, .5); }
  62%  { transform: translate(0, 0) rotate(12deg) scale(1.12); animation-timing-function: cubic-bezier(.23, 1, .32, 1); }
  80%  { transform: rotate(-6deg) scale(.96); animation-timing-function: cubic-bezier(.77, 0, .175, 1); }
  100% { opacity: 1; transform: rotate(0) scale(1); }
}
@keyframes desplegarCola {
  0% { transform: scaleY(0); }
  70% { transform: scaleY(1.08); }
  100% { transform: scaleY(1); }
}
@keyframes chispa {
  0% { opacity: 0; transform: scale(.3) rotate(0); }
  45% { opacity: 1; transform: scale(1.2) rotate(45deg); }
  100% { opacity: 0; transform: scale(.6) rotate(90deg); }
}
@keyframes subirFrase { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ===================== CABECERA ===================== */
.cabecera {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 1rem;
  padding: .55rem var(--gutter);
  padding-top: max(.55rem, env(safe-area-inset-top));
  background: rgba(238, 250, 252, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(110, 36, 119, .08);
}
.cabecera-logo { width: 64px; height: 64px; flex: none; display: block; margin-block: -4px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .cabecera-logo:hover { transform: rotate(-6deg) scale(1.04); } }
.cabecera-logo svg, .pie-logo svg { width: 100%; height: 100%; display: block; }
body.intro-activa .cabecera-logo { visibility: hidden; }
.cabecera-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.cabecera-nav a { text-decoration: none; font-weight: 800; color: var(--morado); font-size: .98rem; }
@media (hover: hover) and (pointer: fine) { .cabecera-nav a:hover { color: var(--rojo); } }
@media (max-width: 720px) {
  .cabecera-nav { display: none; }
  .cabecera .btn { margin-left: auto; }
}

/* ===================== PORTADA ===================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100svh - 76px);
  display: grid; align-items: center;
  background: var(--choco); color: #fff;
}
.hero-fondo { position: absolute; inset: 0; z-index: -1; }
.hero-fondo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; transform: scale(1.06); }
body.listo .hero-fondo img { transform: scale(1); transition: transform 1800ms var(--ease-out); }
.hero-fondo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 52, 66, .92) 0%, rgba(9, 52, 66, .78) 38%, rgba(9, 52, 66, .25) 72%, rgba(9, 52, 66, .1) 100%),
    linear-gradient(0deg, rgba(9, 52, 66, .55), transparent 40%);
}
.hero-contenido {
  width: 100%; max-width: var(--ancho); margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
  padding-top: calc(clamp(84px, 11vw, 132px) + clamp(2rem, 4vw, 3rem));
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero h1 { color: #fff; font-size: clamp(3rem, 7.6vw, 6rem); letter-spacing: -0.025em; line-height: .98; text-wrap: balance; }
.resalte { color: var(--rosa); position: relative; white-space: nowrap; display: inline-block; }
.resalte::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.04em; height: .14em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 22 2, 38 2, 58 7 S 98 12, 118 5' fill='none' stroke='%23F6A9BE' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255, 255, 255, .88); max-width: 40ch; margin: 1.25rem 0 1.9rem; }
.hero-acciones { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn--claro { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (hover: hover) and (pointer: fine) { .btn--claro:hover { background: #fff; color: var(--choco); } }
.hero-datos { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 1.8rem 0 0; padding: 0; color: rgba(255, 255, 255, .85); font-weight: 700; font-size: .95rem; }
.hero-datos li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-datos svg { width: 20px; height: 20px; fill: none; stroke: var(--rosa); stroke-width: 2; stroke-linejoin: round; }
.hero-datos li:first-child svg { fill: var(--rosa); stroke: none; }

/* tarjeta flotante: la favorita */
.hero-tarjeta {
  justify-self: end; width: min(100%, 320px);
  background: var(--papel); color: var(--tinta); border-radius: 20px; padding: .75rem .75rem 1.1rem;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6);
  transform: rotate(2.5deg);
}
.hero-tarjeta img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.hero-tarjeta-texto { padding: .8rem .35rem 0; }
.hero-tarjeta .nota-mano { font-size: 1.3rem; margin: 0; }
.hero-tarjeta h2 { font-size: 1.5rem; margin: .15rem 0 .7rem; }
@media (max-width: 860px) {
  .hero { min-height: auto; align-items: end; }
  .hero-contenido { grid-template-columns: 1fr; padding-top: 7rem; padding-bottom: 2.5rem; }
  .hero-fondo::after { background: linear-gradient(0deg, rgba(9, 52, 66, .95) 0%, rgba(9, 52, 66, .82) 45%, rgba(9, 52, 66, .35) 100%); }
  .hero-tarjeta { justify-self: stretch; width: 100%; display: grid; grid-template-columns: 96px 1fr; gap: .9rem; align-items: center; padding: .6rem; transform: none; }
  .hero-tarjeta-texto { padding: 0; }
  .hero-tarjeta h2 { font-size: 1.15rem; margin: 0 0 .35rem; }
  .hero-tarjeta .precio { font-size: 1.6rem; }
}

/* logo flotando en la esquina de la portada */
.hero-logo {
  position: absolute; z-index: 1; pointer-events: none;
  top: clamp(1rem, 3vw, 2rem);
  left: max(var(--gutter), calc((100% - var(--ancho)) / 2 + var(--gutter)));
  width: clamp(84px, 11vw, 132px); aspect-ratio: 1;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .35));
  opacity: 0; scale: .8;
}
.hero-logo svg { width: 100%; height: 100%; display: block; overflow: visible; }
body.listo .hero-logo {
  opacity: 1; scale: 1;
  transition: opacity 600ms var(--ease-out) 320ms, scale 600ms var(--ease-out) 320ms;
  animation: flotar 4.2s ease-in-out 900ms infinite;
}
@keyframes flotar {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) { body.listo .hero-logo { animation: none; } }

/* entrada de la portada tras la intro */
.hero-texto > *, .hero-tarjeta { opacity: 0; translate: 0 16px; }
body.listo .hero-texto > *, body.listo .hero-tarjeta {
  opacity: 1; translate: 0 0;
  transition: opacity 650ms var(--ease-out), translate 650ms var(--ease-out);
}
body.listo .hero-texto > :nth-child(2) { transition-delay: 70ms; }
body.listo .hero-texto > :nth-child(3) { transition-delay: 140ms; }
body.listo .hero-texto > :nth-child(4) { transition-delay: 210ms; }
body.listo .hero-tarjeta { transition-delay: 260ms; }

/* ===================== SECCIONES ===================== */
.seccion-cabeza { max-width: var(--ancho); margin: 0 auto 2.25rem; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; align-items: flex-end; gap: .25rem 1.25rem; }
.anotacion {
  display: inline-flex; align-items: center; gap: .35rem; margin: 0 0 .35rem;
  font: 700 1.5rem/1 "Caveat", cursive; color: var(--rojo); transform: rotate(-3deg);
}
.anotacion-flecha { width: 44px; height: 30px; flex: none; transform: scaleX(-1) rotate(10deg); }
.anotacion-flecha path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.anotacion-flecha.arriba { width: 34px; height: 24px; transform: rotate(-70deg); margin-right: .2rem; }

/* borde ondulado de sello, como el logo, en la parte superior de algunas secciones */
.ondas { position: relative; }
.ondas::before {
  content: ""; position: absolute; left: 0; right: 0; top: -17px; height: 18px; background: inherit;
  -webkit-mask: radial-gradient(circle at 50% 100%, #000 17px, transparent 18px) 0 0 / 34px 18px repeat-x;
          mask: radial-gradient(circle at 50% 100%, #000 17px, transparent 18px) 0 0 / 34px 18px repeat-x;
}

/* ===================== MÁS VENDIDOS ===================== */
.vendidos { padding: clamp(3.5rem, 8vw, 6rem) 0; background: #CDEFF4; }
.vendidos .postre-plato { box-shadow: 0 2px 4px rgba(35, 90, 110, .06), 0 24px 40px -22px rgba(200, 35, 79, .45); }
.vendidos-lienzo { position: relative; max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter); }
.linea-manga { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.linea-manga path {
  fill: none; stroke: var(--choco); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.vendidos-lista { position: relative; display: grid; gap: clamp(3rem, 9vw, 6rem); }

.postre {
  display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3rem); align-items: center;
  width: min(100%, 780px);
}
.postre:nth-child(even) { justify-self: end; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
.postre:nth-child(even) .postre-arte { order: 2; }
.postre-arte { position: relative; aspect-ratio: 1; width: 100%; }
.postre-plato {
  position: absolute; inset: 0; border-radius: 50%;
  background: #fff; box-shadow: var(--sombra);
}
.postre-foto {
  position: absolute; inset: 7%; border-radius: 50%; overflow: hidden;
  clip-path: circle(0% at 50% 60%);
}
.postre-foto img { width: 100%; height: 100%; object-fit: cover; }
.postre-boceto { position: absolute; inset: 8%; width: 84%; height: 84%; overflow: visible; }
.postre-boceto path {
  fill: none; stroke: var(--choco); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.manga {
  position: absolute; width: 44px; left: 0; top: 0; pointer-events: none; opacity: 0; z-index: 2;
  transition: opacity 200ms ease;
  filter: drop-shadow(0 4px 6px rgba(35, 90, 110, .25));
}
.postre-info .nota-mano { font-size: 1.35rem; }
.postre-info h3 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.postre-info p { color: var(--tenue); margin: .45rem 0 1rem; max-width: 32ch; }
.postre-fila { display: flex; align-items: center; gap: 1rem; }
.precio { font-family: "Caveat", cursive; font-weight: 700; font-size: 2rem; color: var(--choco); line-height: 1; }
.btn-agregar {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .5rem 1rem;
  border-radius: 999px; border: 0; background: var(--choco); color: #fff; cursor: pointer;
  font: 800 .95rem "Nunito", sans-serif;
  transition: transform 140ms var(--ease-out), background-color 200ms ease;
}
.btn-agregar:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .btn-agregar:hover { background: var(--morado); } }

/* tortitas a lápiz en el espacio libre junto a cada postre */
.postre { position: relative; }
.garabato {
  position: absolute; top: 50%; width: clamp(150px, 16vw, 210px); height: auto; overflow: visible;
  left: calc(100% + clamp(2rem, 6vw, 6rem)); translate: 0 -50%; rotate: var(--giro);
  pointer-events: none;
}
.postre:nth-child(even) .garabato { left: auto; right: calc(100% + clamp(2rem, 6vw, 6rem)); }
.garabato path, .garabato circle {
  fill: none; stroke: #3D4B5A; stroke-opacity: .7; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.garabato .garabato-sombra { stroke: var(--celeste-hondo); stroke-opacity: .5; stroke-width: 3; }
.postre.dibujando .garabato path, .postre.dibujando .garabato circle {
  stroke-dashoffset: 0; transition: stroke-dashoffset 1600ms var(--ease-in-out) 500ms;
}
@media (max-width: 1060px) { .garabato { display: none; } }

/* estados de la animación de dibujo */
.postre .postre-info { opacity: 0; transform: translateY(16px); }
.postre.dibujando .postre-boceto path { stroke-dashoffset: 0; transition: stroke-dashoffset 1100ms var(--ease-in-out); }
.postre.dibujando .postre-boceto path:nth-child(2) { transition-delay: 160ms; }
.postre.dibujando .postre-boceto path:nth-child(3) { transition-delay: 320ms; }
.postre.dibujando .postre-boceto path:nth-child(4) { transition-delay: 460ms; }
.postre.dibujando .postre-boceto path:nth-child(5) { transition-delay: 580ms; }
.postre.dibujando .postre-boceto path:nth-child(n+6) { transition-delay: 700ms; }
.postre.servido .postre-foto { clip-path: circle(75% at 50% 60%); transition: clip-path 900ms var(--ease-out); }
.postre.servido .postre-boceto { opacity: 0; transition: opacity 500ms ease 250ms; }
.postre.servido .postre-info { opacity: 1; transform: none; transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }

@media (max-width: 720px) {
  .postre, .postre:nth-child(even) { grid-template-columns: 1fr; justify-self: center; text-align: center; }
  .postre:nth-child(even) .postre-arte { order: 0; }
  .postre-arte { max-width: 280px; margin: 0 auto; }
  .postre-info p { margin-inline: auto; }
  .postre-fila { justify-content: center; }
}

/* ===================== ASÍ LO PREPARAMOS ===================== */
.preparacion { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 6.5rem); background: #0E5E6E; color: var(--crema); }
.preparacion h2 { color: #fff; }
.preparacion .anotacion { color: var(--rosa); }
.pasos {
  list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--ancho);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem);
  position: relative;
}
.paso-prep { position: relative; }
.paso-prep figure { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; background: #17798A; }
.paso-prep img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .paso-prep:hover img { transform: scale(1.03); } }
.paso-num {
  position: absolute; top: .75rem; left: .75rem; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--rosa); color: var(--choco);
  font: 700 1.6rem/1 "Caveat", cursive; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5);
}
.paso-prep h3 { color: #fff; font-size: 1.35rem; margin: 1rem 0 .35rem; }
.paso-prep p { margin: 0; color: rgba(255, 255, 255, .78); font-size: .98rem; }
@media (max-width: 900px) { .pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; } }
@media (max-width: 520px) {
  .pasos { grid-template-columns: 1fr; gap: 1.5rem; }
  .paso-prep { display: grid; grid-template-columns: 112px 1fr; gap: 0 1rem; align-items: start; }
  .paso-prep figure { grid-row: span 2; aspect-ratio: 1; }
  .paso-prep h3 { margin-top: .2rem; }
  .paso-num { width: 34px; height: 34px; font-size: 1.3rem; top: .4rem; left: .4rem; }
}

/* ===================== NUESTRO LOCAL ===================== */
.local { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.galeria {
  max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: .85rem;
}
.galeria figure { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 1; background: var(--celeste-suave); }
.galeria .g-grande { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.galeria .g-ancha { grid-column: span 2; aspect-ratio: auto; }
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .galeria figure:hover img { transform: scale(1.03); } }
.galeria-mas { display: flex; width: fit-content; margin: 1.75rem auto 0; }
@media (max-width: 640px) {
  .galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .galeria .g-grande { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
  .galeria .g-ancha { aspect-ratio: 2 / 1; }
}

/* ===================== CARTA ===================== */
.carta { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2rem, 6vw, 4rem); }
.carta-chips {
  position: sticky; top: 74px; z-index: 20;
  display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none;
  padding: .7rem var(--gutter); margin: 0 auto 1rem; max-width: calc(var(--ancho) + 2 * var(--gutter));
  background: linear-gradient(var(--crema) 78%, rgba(238, 250, 252, 0));
  overscroll-behavior-x: contain; scroll-padding-inline: var(--gutter);
}
.carta-chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: .45rem;
  min-height: 42px; padding: .45rem .55rem .45rem 1rem; border-radius: 999px; text-decoration: none;
  background: #fff; color: var(--morado); box-shadow: inset 0 0 0 1.5px rgba(110, 36, 119, .16);
  font-weight: 800; font-size: .95rem; white-space: nowrap;
  transition: background-color 220ms ease, color 220ms ease, box-shadow 220ms ease, transform 160ms var(--ease-out);
}
.chip small {
  min-width: 24px; height: 24px; padding: 0 .35rem; border-radius: 999px; display: grid; place-items: center;
  background: var(--rosa-suave); color: var(--rojo); font-size: .78rem; font-weight: 800;
  transition: background-color 220ms ease, color 220ms ease;
}
.chip.activo { background: var(--morado); color: #fff; box-shadow: 0 8px 18px -10px rgba(110, 36, 119, .9); }
.chip.activo small { background: rgba(255, 255, 255, .2); color: #fff; }
.chip:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chip:not(.activo):hover { box-shadow: inset 0 0 0 1.5px var(--morado); } }

.carta-categorias { max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: clamp(2.75rem, 7vw, 4.5rem); }
.cat { scroll-margin-top: 140px; }
.cat-cabeza { position: relative; display: flex; align-items: flex-end; flex-wrap: wrap; gap: .25rem 1rem; padding-bottom: 1.1rem; margin-bottom: 1.25rem; }
.cat-cabeza h3 { font-size: clamp(1.9rem, 5vw, 2.7rem); font-weight: 700; }
.cat-aviso {
  margin: -.4rem 0 1.25rem; padding: .7rem 1rem; border-radius: 14px; max-width: 60ch;
  background: #fff; border-left: 4px solid var(--celeste-hondo); color: var(--tinta); font-weight: 700;
}
.cat-nota {
  font: 700 1.35rem/1 "Caveat", cursive; color: var(--choco);
  background: var(--acento); padding: .3rem .8rem .35rem; border-radius: 999px; transform: rotate(-3deg) translateY(-6px);
}
.cat-onda { position: absolute; left: 0; bottom: 0; width: min(260px, 70%); height: 16px; overflow: visible; }
.cat-onda path { fill: none; stroke: var(--acento); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .cat-cabeza:not(.trazada) .cat-onda path { stroke-dashoffset: 1; }
.cat-cabeza.trazada .cat-onda path { transition: stroke-dashoffset 900ms var(--ease-out); }

.productos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.producto {
  position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: .9rem;
  padding: .6rem .7rem .6rem .6rem; border-radius: 16px; background: #fff;
  box-shadow: 0 1px 2px rgba(35, 90, 110, .06), 0 8px 22px -16px rgba(35, 90, 110, .35);
  transition: transform 200ms var(--ease-out);
}
/* sombra de hover en capa propia: se anima su opacidad, no el box-shadow (evita repintar) */
.producto::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 16px 30px -16px rgba(35, 90, 110, .5); opacity: 0; transition: opacity 200ms var(--ease-out);
}
.producto-foto { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--acento); }
.producto-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease-out); }
.producto-texto { display: grid; gap: .15rem; min-width: 0; }
.producto-nombre { font-weight: 800; font-size: 1rem; line-height: 1.25; overflow-wrap: anywhere; }
.producto-precio { font-weight: 800; color: var(--rojo); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .producto:hover { transform: translateY(-2px); }
  .producto:hover::after { opacity: 1; }
  .producto:hover .producto-foto img { transform: scale(1.03); }
}
.producto.en-pedido { box-shadow: inset 0 0 0 2px var(--rojo), 0 8px 22px -16px rgba(35, 90, 110, .35); }

/* selector de cantidad: solo "+" hasta que el producto está en el pedido */
.paso { display: flex; align-items: center; gap: .3rem; }
.paso button {
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; flex: none;
  transition: transform 140ms var(--ease-out), background-color 200ms ease, opacity 200ms ease;
}
.paso button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.paso button:active { transform: scale(0.9); }
.paso-mas { background: var(--choco); color: #fff; }
.paso-menos { background: var(--rosa-suave); color: var(--rojo); }
.paso-cant { min-width: 1.4rem; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--choco); }
.producto:not(.en-pedido) .paso-menos,
.producto:not(.en-pedido) .paso-cant { display: none; }
.producto.en-pedido .paso-mas { background: var(--rojo); }
@media (hover: hover) and (pointer: fine) { .paso-mas:hover { background: var(--morado); } }

@media (max-width: 1020px) { .productos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .productos { grid-template-columns: 1fr; gap: .65rem; }
  .producto { grid-template-columns: 68px minmax(0, 1fr) auto; }
  .producto-foto { width: 68px; height: 68px; }
  .carta-chips { top: 70px; }
}

/* ===================== PEDIDOSYA + TIKTOK ===================== */
.online { padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 9vw, 6rem); }
.online-grid {
  max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 1.75rem);
}
.online-tarjeta {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: flex-start; gap: .4rem;
  padding: clamp(1.5rem, 4vw, 2.25rem); border-radius: 24px; color: #fff; box-shadow: var(--sombra);
}
.online-tarjeta h3 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.2rem); }
.online-tarjeta p { margin: 0; max-width: 38ch; color: rgba(255, 255, 255, .9); }
.online-tarjeta .nota-mano { color: #fff; opacity: .95; font-size: 1.5rem; }
.online-tarjeta .btn { margin-top: 1.1rem; }
.online-ico {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; margin-bottom: .4rem;
  background: rgba(255, 255, 255, .16);
}
.online-ico svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.online-tarjeta::after {
  content: ""; position: absolute; z-index: -1; right: -60px; bottom: -70px; width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255, 255, 255, .1);
}
.online-tarjeta--pya { background: linear-gradient(140deg, #F2295E, #C8234F); }
.online-tarjeta--tt { background: linear-gradient(140deg, #23A9BA, #6E2477); }
.online-tarjeta--rappi { background: linear-gradient(140deg, #FF6A3D, #E8401C); }
.btn--pya { background: #fff; color: #C8234F; }
.btn--rappi { background: #fff; color: #E8401C; }
.btn--tt { background: #111; color: #fff; box-shadow: -3px 3px 0 #25F4EE, 3px -3px 0 #FE2C55; }
@media (hover: hover) and (pointer: fine) {
  .btn--pya:hover { background: var(--rosa-suave); }
  .btn--rappi:hover { background: #FFE9E1; }
  .btn--tt:hover { background: #000; }
}
@media (max-width: 1000px) { .online-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .online-tarjeta--tt { grid-column: 1 / -1; } }
@media (max-width: 760px) { .online-grid { grid-template-columns: 1fr; } }

/* ===================== UBÍCANOS ===================== */
.ubicanos { padding: clamp(3rem, 8vw, 5rem) 0 clamp(4rem, 10vw, 7rem); background: var(--celeste-suave); }
.ubicanos-grid {
  max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem; align-items: stretch;
}
.mapa { border-radius: var(--radio); overflow: hidden; min-height: 320px; box-shadow: var(--sombra); background: #dfeff1; }
.mapa iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.ubicanos-info { display: flex; flex-direction: column; gap: 1.1rem; justify-content: center; }
.direccion { margin: 0; font-size: 1.15rem; display: grid; }
.direccion strong { font-family: "Fredoka", sans-serif; font-size: 1.6rem; color: var(--morado); }
.redes { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.red {
  display: grid; justify-items: center; gap: .4rem; padding: 1rem .5rem; border-radius: 18px;
  background: #fff; text-decoration: none; font-weight: 800; font-size: .9rem; text-align: center;
  box-shadow: var(--sombra); transition: transform 160ms var(--ease-out);
}
.red svg { width: 30px; height: 30px; fill: currentColor; }
.red--mapa { color: var(--rojo); }
.red--fb { color: #0866FF; }
.red--ig { color: #C13584; }
.red--tt { color: #111; }
.red--pya { color: #EA004B; }
.red--rappi { color: #FF441F; }
.red--rappi svg { fill: none; }
.red:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .red:hover { transform: translateY(-3px); } }
@media (max-width: 760px) { .ubicanos-grid { grid-template-columns: 1fr; } .ubicanos-info { order: -1; } }

/* ===================== PIE ===================== */
.pie { text-align: center; padding: 2.5rem var(--gutter) 7rem; color: var(--tenue); font-size: .9rem; }
.pie-logo { width: 96px; height: 96px; margin: 0 auto .75rem; }
.creditos summary { cursor: pointer; font-weight: 700; }
.creditos p { margin: .75rem auto 0; max-width: 760px; font-size: .78rem; line-height: 1.7; }

/* ===================== CARRITO ===================== */
.barra-pedido {
  position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 50;
  display: flex; align-items: center; gap: .8rem;
  width: min(calc(100% - 32px), 460px); min-height: 58px; padding: .5rem .5rem .5rem 1.1rem;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--choco); color: #fff; box-shadow: 0 16px 34px -14px rgba(45, 26, 32, .7);
  font: 700 .98rem "Nunito", sans-serif;
  transform: translate(-50%, 160%);
  transition: transform 380ms var(--ease-drawer);
}
.barra-pedido.visible { transform: translate(-50%, 0); }
.barra-pedido.rebote { animation: rebote 320ms var(--ease-out); }
@keyframes rebote { 40% { transform: translate(-50%, 0) scale(1.04); } }
.barra-puntos { display: flex; gap: 4px; flex: none; }
.barra-puntos i { width: 9px; height: 9px; border-radius: 50%; background: var(--rosa); display: block; }
.barra-puntos i:nth-child(2) { background: var(--celeste); }
.barra-puntos i:nth-child(3) { background: #FFC23C; }
.barra-texto { flex: 1; min-width: 0; text-align: left; display: grid; line-height: 1.15; }
.barra-texto strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.barra-texto small { font-size: .8rem; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra-ver { flex: none; white-space: nowrap; background: #fff; color: var(--choco); padding: .6rem 1rem; border-radius: 999px; font-weight: 800; }
.punto-volador {
  position: fixed; z-index: 60; width: 44px; height: 44px; border-radius: 50%;
  background: var(--rojo) center / cover no-repeat; pointer-events: none; left: 0; top: 0;
  box-shadow: 0 0 0 3px #fff, 0 10px 20px -8px rgba(45, 26, 32, .6);
}

/* hoja de pedido */
.hoja {
  border: 0; padding: 0; margin: auto auto 0; width: min(100%, 520px); max-width: 100%; max-height: 92dvh;
  border-radius: 26px 26px 0 0; background: var(--papel); color: var(--tinta);
  box-shadow: 0 -20px 50px -20px rgba(45, 26, 32, .5);
}
.hoja::backdrop { background: rgba(45, 26, 32, .45); }
.hoja[open] { animation: subirHoja 420ms var(--ease-drawer); }
.hoja[open]::backdrop { animation: desvanecerEntradaFondo 300ms ease; }
@keyframes subirHoja { from { transform: translateY(100%); } to { transform: none; } }
@keyframes desvanecerEntradaFondo { from { opacity: 0; } }
@media (min-width: 640px) { .hoja { margin: auto; border-radius: 26px; } .hoja[open] { animation-name: aparecerHoja; animation-duration: 240ms; animation-timing-function: var(--ease-out); } }
@keyframes aparecerHoja { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.hoja-form { padding: 1.25rem 1.25rem max(1.25rem, env(safe-area-inset-bottom)); display: grid; gap: 1rem; overflow-y: auto; max-height: 92dvh; overscroll-behavior: contain; }
.hoja-cabeza { display: flex; align-items: center; justify-content: space-between; }
.hoja-cabeza h2 { font-size: 1.8rem; }
.hoja-cerrar { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--rosa-suave); color: var(--rojo); cursor: pointer; display: grid; place-items: center; }
.hoja-cerrar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.hoja-items { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.hoja-item { display: flex; align-items: center; gap: .6rem; background: #fff; border-radius: 14px; padding: .55rem .75rem; }
.hoja-item img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.hoja-nombre { flex: 1; font-weight: 700; font-size: .95rem; min-width: 0; }
.paso--hoja button { width: 32px; height: 32px; }
.paso--hoja .paso-mas { background: var(--choco); }
.hoja-item .sub-total { font-weight: 800; min-width: 4.5rem; text-align: right; }
.cant { display: flex; align-items: center; gap: .35rem; }
.cant button { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid rgba(35, 90, 110, .2); background: #fff; font: 800 1.05rem "Nunito"; cursor: pointer; color: var(--choco); }
.cant output { min-width: 1.3rem; text-align: center; font-weight: 800; }
.hoja-total { display: flex; justify-content: space-between; margin: 0; font-size: 1.1rem; padding: 0 .25rem; }
.campo { display: grid; gap: .35rem; border: 0; margin: 0; padding: 0; }
.campo > span, .campo legend { font-weight: 800; font-size: .92rem; padding: 0; margin-bottom: .35rem; }
.campo small { color: var(--tenue); font-weight: 600; }
.campo input[type="text"], .campo textarea {
  width: 100%; font: 600 16px "Nunito", sans-serif; padding: .8rem .9rem; border-radius: 14px;
  border: 1.5px solid rgba(35, 90, 110, .18); background: #fff; color: var(--tinta);
}
.campo textarea { resize: vertical; }
.opciones { display: flex; gap: .5rem; }
.opciones label { flex: 1; }
.opciones input { position: absolute; opacity: 0; pointer-events: none; }
.opciones span {
  display: block; text-align: center; padding: .7rem; border-radius: 14px; cursor: pointer;
  border: 1.5px solid rgba(35, 90, 110, .18); background: #fff; font-weight: 800; font-size: .92rem;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.opciones input:checked + span { background: var(--choco); color: #fff; border-color: var(--choco); }
.opciones input:focus-visible + span { outline: 3px solid var(--celeste-hondo); outline-offset: 2px; }

/* ===================== MOVIMIENTO REDUCIDO ===================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro.play * { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; }
  .intro.play .logo--intro { animation: desvanecerEntrada 300ms ease; }
  .postre-boceto { display: none; }
  .postre .postre-foto { clip-path: none; }
  .postre .postre-info { opacity: 1; transform: none; }
  .linea-manga path { stroke-dashoffset: 0 !important; }
  .hero-texto > *, .hero-tarjeta { translate: none !important; }
  .hero-fondo img { transform: none !important; }
  .barra-pedido { transition: none; }
  .hoja[open] { animation: desvanecerEntradaFondo 200ms ease; }
}

/* ===================== WHATSAPP FLOTANTE ===================== */
.wsp-flotante {
  position: fixed; z-index: 55;
  right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: .6rem; text-decoration: none;
  opacity: 0; scale: .6; pointer-events: none;
  transition: opacity 400ms var(--ease-out), scale 500ms cubic-bezier(.34, 1.56, .64, 1), translate 380ms var(--ease-drawer);
}
body.listo .wsp-flotante { opacity: 1; scale: 1; pointer-events: auto; }
/* con el carrito abierto, sube para no taparlo */
body.con-pedido .wsp-flotante { translate: 0 -76px; }

.wsp-boton {
  position: relative; width: 64px; height: 64px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff;
  background: #25D366;
  box-shadow: 0 10px 24px -8px rgba(18, 140, 60, .75), 0 2px 6px rgba(0, 0, 0, .15);
  animation: flotar 3.2s ease-in-out infinite, sacudir 7s ease-in-out 2s infinite;
}
.wsp-boton svg { width: 34px; height: 34px; }
/* ondas que salen del botón */
.wsp-boton::before, .wsp-boton::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366;
  animation: onda 2.4s var(--ease-out) infinite; pointer-events: none;
}
.wsp-boton::after { animation-delay: 1.2s; }
@keyframes onda { from { transform: scale(1); opacity: .7; } to { transform: scale(1.75); opacity: 0; } }
@keyframes flotar { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes sacudir {
  0%, 82%, 100% { rotate: 0deg; }
  85% { rotate: -14deg; } 88% { rotate: 12deg; } 91% { rotate: -9deg; } 94% { rotate: 6deg; } 97% { rotate: -2deg; }
}
.wsp-flotante:active .wsp-boton { scale: .94; }
@media (hover: hover) and (pointer: fine) {
  .wsp-flotante:hover .wsp-boton { animation-play-state: paused; scale: 1.06; }
  .wsp-boton { transition: scale 200ms var(--ease-out); }
}

/* burbuja de mensaje */
.wsp-burbuja {
  position: relative; display: grid; gap: .05rem;
  background: #fff; color: var(--tinta); border-radius: 16px 16px 4px 16px; padding: .6rem .9rem;
  font-size: .9rem; font-weight: 700; line-height: 1.25; white-space: nowrap;
  box-shadow: 0 12px 28px -12px rgba(45, 26, 32, .5);
  opacity: 0; translate: 12px 6px; scale: .9; transform-origin: 100% 100%; pointer-events: none;
  transition: opacity 280ms var(--ease-out), translate 380ms var(--ease-out), scale 380ms var(--ease-out);
}
.wsp-burbuja strong { color: var(--wsp); font-size: 1rem; }
.wsp-flotante.hablando .wsp-burbuja { opacity: 1; translate: 0 0; scale: 1; }
@media (hover: hover) and (pointer: fine) { .wsp-flotante:hover .wsp-burbuja { opacity: 1; translate: 0 0; scale: 1; } }
@media (max-width: 480px) {
  .wsp-boton { width: 58px; height: 58px; }
  .wsp-boton svg { width: 30px; height: 30px; }
  .wsp-burbuja { font-size: .82rem; }
}
/* el pie no queda tapado por el botón */
.pie { padding-bottom: 8rem; }

@media (prefers-reduced-motion: reduce) {
  .wsp-boton, .wsp-boton::before, .wsp-boton::after { animation: none; }
  .wsp-flotante { transition: opacity 200ms ease; scale: 1; }
}
