/* =========================================================
   SNAKISS · Estilos
   Paleta oficial: #fea804 · #592a0b · #e83122 · #000 · #fff
   ========================================================= */
:root {
  --amarillo: #fea804;
  --amarillo-suave: #ffe2a3;
  --cafe: #592a0b;
  --cafe-claro: #7a4421;
  --rojo: #e83122;
  --negro: #000;
  --blanco: #fff;
  --crema: #fff8ec;
  --crema-2: #fdeed3;
  --texto: #3a1a05;
  --texto-suave: #7a5a44;

  --f-titulo: "Bree Serif", Georgia, serif;
  --f-marca: "Shrikhand", "Bree Serif", cursive;
  --f-texto: "Nunito", system-ui, sans-serif;

  --radio: 22px;
  --sombra: 0 10px 30px rgba(89, 42, 11, .14);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --header-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-texto);
  background: var(--crema);
  color: var(--texto);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3 { font-family: var(--f-titulo); color: var(--cafe); line-height: 1.15; font-weight: 400; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--f-titulo); font-size: 1.05rem; text-decoration: none;
  background: var(--rojo); color: var(--blanco);
  box-shadow: 0 6px 0 #a91f13;
  transition: transform .16s var(--ease-out), box-shadow .16s var(--ease-out), background-color .2s;
}
.btn:hover { background: #f03a2b; }
.btn:active { transform: translateY(4px) scale(.98); box-shadow: 0 2px 0 #a91f13; }
.btn--cafe { background: var(--cafe); box-shadow: 0 6px 0 #331604; }
.btn--cafe:hover { background: var(--cafe-claro); }
.btn--cafe:active { box-shadow: 0 2px 0 #331604; }
.btn--claro { background: var(--blanco); color: var(--cafe); box-shadow: 0 6px 0 #e4c99c; }
.btn--claro:hover { background: var(--crema); }
.btn--claro:active { box-shadow: 0 2px 0 #e4c99c; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s, box-shadow .3s;
}
.header.is-scrolled { background: rgba(255, 248, 236, .92); backdrop-filter: blur(10px); box-shadow: 0 2px 18px rgba(89,42,11,.08); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.header__logo img { height: 42px; width: auto; }
.nav { display: flex; gap: 4px; }
.nav a {
  font-family: var(--f-titulo); text-decoration: none; color: var(--cafe);
  padding: 8px 14px; border-radius: 999px; transition: background-color .2s;
}
.nav a:hover { background: var(--crema-2); }
.nav a[aria-current="page"] { background: var(--amarillo); }
.cart-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  background: var(--cafe); color: var(--amarillo);
  display: grid; place-items: center;
  transition: transform .16s var(--ease-out);
}
.cart-btn:active { transform: scale(.94); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-btn__count {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--rojo); color: #fff; font-size: .78rem; font-weight: 800;
  display: grid; place-items: center; border: 2px solid var(--crema);
}
.cart-btn__count:empty { display: none; }
.cart-btn.bump { animation: bump .45s var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.18); } 100% { transform: scale(1); } }

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .header__logo img { height: 34px; }
  .nav a { padding: 6px 10px; font-size: .92rem; }
}
@media (max-width: 400px) {
  .nav a { padding: 6px 7px; font-size: .85rem; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; position: relative; overflow: hidden;
  display: grid; place-items: center; text-align: center;
  padding: calc(var(--header-h) + 20px) 16px 80px;
}
.hero__blob {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.hero__blob--1 { width: min(78vw, 600px); aspect-ratio: 1; background: #fff; box-shadow: 0 0 0 clamp(14px, 3vw, 26px) var(--amarillo), 0 0 0 clamp(28px, 6vw, 52px) var(--amarillo-suave); top: 50%; left: 50%; translate: -50% -55%; }
.hero__blob--2 { width: 120px; aspect-ratio: 1; background: var(--rojo); top: 16%; left: 8%; animation: flotar 7s ease-in-out infinite; }
.hero__blob--3 { width: 70px; aspect-ratio: 1; background: var(--cafe); bottom: 14%; right: 10%; animation: flotar 6s ease-in-out -2s infinite; }
.hero__blob--4 { width: 34px; aspect-ratio: 1; background: var(--rojo); bottom: 26%; left: 16%; animation: flotar 5s ease-in-out -1s infinite; }
.hero__inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: 18px; }

.logo3d {
  perspective: 1100px; width: min(82vw, 560px); aspect-ratio: 1000 / 563;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.logo3d:active { cursor: grabbing; }
.logo3d__spin { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; will-change: transform; }
.logo3d__face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  filter: drop-shadow(0 18px 18px rgba(89, 42, 11, .25));
}
.logo3d__face img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.logo3d__face--back { transform: rotateY(180deg); }
.logo3d__float { animation: flotar 5s ease-in-out infinite; }

.hero__slogan { font-family: var(--f-marca); color: var(--rojo); font-size: clamp(1.8rem, 6vw, 3.2rem); line-height: 1.1; }
.hero__tag { font-family: var(--f-titulo); color: var(--cafe); letter-spacing: .14em; text-transform: uppercase; font-size: .9rem; }
.hero__hint { font-size: .85rem; color: var(--texto-suave); }
.scroll-cue {
  position: absolute; bottom: 22px; left: 50%; translate: -50% 0; z-index: 2;
  display: grid; justify-items: center; gap: 4px; text-decoration: none; color: var(--cafe); font-size: .85rem; font-weight: 700;
}
.scroll-cue span { width: 26px; height: 42px; border: 2.5px solid var(--cafe); border-radius: 20px; position: relative; }
.scroll-cue span::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 5px; height: 9px; margin-left: -2.5px;
  border-radius: 4px; background: var(--rojo); animation: rueda 1.6s var(--ease-in-out) infinite;
}
@keyframes rueda { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Gotas de chocolate (separador de marca) ---------- */
.drip { display: block; width: 100%; height: 70px; margin-bottom: -1px; }
.drip--top { transform: scaleY(-1); margin: -1px 0 0; }

/* ---------- Secciones ---------- */
.section { padding: 90px 0; position: relative; }
.eyebrow {
  display: inline-block; font-family: var(--f-titulo); font-size: .85rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--rojo); margin-bottom: 10px;
}
.section h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 16px; }
.lead { font-size: 1.12rem; color: var(--texto-suave); max-width: 620px; }

/* Quiénes somos */
.about { background: var(--cafe); color: var(--crema); padding-top: 40px; }
.about h2, .about .eyebrow { color: var(--amarillo); }
.about__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.about__photo { position: relative; justify-self: center; }
.polaroid {
  background: #fff; padding: 12px 12px 48px; border-radius: 6px; rotate: -4deg; box-shadow: 0 20px 40px rgba(0,0,0,.35);
  max-width: 340px; position: relative; transition: rotate .4s var(--ease-out);
}
.polaroid:hover { rotate: 0deg; }
.polaroid img { border-radius: 3px; aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.polaroid figcaption { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-family: var(--f-marca); color: var(--cafe); font-size: 1.25rem; }
.about__toon { position: absolute; bottom: -20px; height: 230px; width: auto; filter: drop-shadow(0 8px 10px rgba(0,0,0,.3)); transition: transform .35s var(--ease-out); cursor: pointer; }
.about__toon:hover { transform: translateY(-8px) rotate(-3deg); }
.about__toon--b { left: -90px; }
.about__toon--d { right: -80px; }
.about__text p { margin-bottom: 16px; color: #f6e3cc; }
.about__text strong { color: var(--amarillo); font-weight: 800; }
.about__quote {
  font-family: var(--f-marca); color: var(--amarillo); font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.3;
  border-left: 4px solid var(--rojo); padding-left: 18px; margin: 22px 0;
}
.roles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.role { background: rgba(255,255,255,.08); border: 1px solid rgba(254,168,4,.35); border-radius: 14px; padding: 10px 14px; font-size: .95rem; }
.role b { color: var(--amarillo); font-family: var(--f-titulo); font-weight: 400; display: block; font-size: 1.05rem; }
.more-toggle { color: var(--amarillo); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; margin-bottom: 14px; }
.about__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.about__more > div { overflow: hidden; }
.about__more.open { grid-template-rows: 1fr; }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; gap: 70px; }
  .about__toon { height: 170px; }
  .about__toon--b { left: -54px; }
  .about__toon--d { right: -50px; }
}
@media (max-width: 480px) {
  .polaroid { max-width: 230px; }
  .about__toon { height: 140px; bottom: -14px; }
  .about__toon--b { left: -48px; }
  .about__toon--d { right: -42px; }
}

/* Menú flotante (home) */
.floaty { background: var(--amarillo); overflow: hidden; }
.floaty h2, .floaty .eyebrow { color: var(--cafe); }
.floaty .lead { color: var(--cafe); opacity: .85; }
.floaty__stage {
  position: relative; height: 560px; margin: 30px auto 10px; max-width: 1000px;
}
.floaty__item {
  position: absolute; width: var(--s, 190px); text-decoration: none; text-align: center;
  animation: flotar var(--d, 6s) ease-in-out var(--delay, 0s) infinite;
}
.floaty__item img {
  filter: drop-shadow(0 16px 14px rgba(89, 42, 11, .3));
  transition: transform .35s var(--ease-out);
  rotate: var(--r, 0deg);
}
.floaty__item:hover img { transform: scale(1.08) rotate(4deg); }
/* Etiqueta tipo sticker: nombre + qué es */
.floaty__tag {
  display: inline-grid; justify-items: center; margin-top: -10px; position: relative;
  opacity: 0; transform: translateY(14px) scale(.5) rotate(-6deg);
}
.floaty__stage.show .floaty__tag { animation: etiqueta .7s cubic-bezier(.34, 1.56, .64, 1) calc(var(--n) * 110ms) forwards; }
@keyframes etiqueta { to { opacity: 1; transform: rotate(calc((var(--n) - 4) * .8deg)); } }
.floaty__name {
  font-family: var(--f-marca); font-weight: 400; font-size: 1.15rem; line-height: 1.15;
  padding: 5px 14px 6px; border-radius: 14px; color: #fff; background: var(--rojo);
  box-shadow: 0 4px 0 var(--cafe); letter-spacing: .01em;
  animation: tada 5s ease-in-out calc(1.5s + var(--n) * .55s) infinite;
}
.floaty__item:nth-child(3n+2) .floaty__name { background: var(--cafe); color: var(--amarillo); box-shadow: 0 4px 0 var(--rojo); }
.floaty__item:nth-child(3n) .floaty__name { background: #fff; color: var(--rojo); box-shadow: 0 4px 0 var(--cafe); }
.floaty__type {
  margin-top: 6px; font-family: "Fredoka", var(--f-texto); font-weight: 600; font-size: .82rem; line-height: 1.2;
  color: var(--cafe); background: var(--crema); padding: 3px 10px; border-radius: 999px; border: 2px dashed var(--cafe);
  max-width: 190px;
}
@keyframes tada {
  0%, 86%, 100% { transform: none; }
  88% { transform: scale(1.12) rotate(-5deg); }
  91% { transform: scale(1.12) rotate(4deg); }
  94% { transform: scale(1.06) rotate(-2deg); }
}
.floaty__item:hover .floaty__name { animation: brinco .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes brinco { 0% { transform: none; } 40% { transform: translateY(-8px) scale(1.12) rotate(-4deg); } 100% { transform: none; } }
.floaty__cta { text-align: center; margin-top: 10px; }
@media (max-width: 760px) {
  .floaty__stage { height: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 10px; }
  .floaty__item { position: static; width: auto; }
  .floaty__item:nth-child(2n) { margin-top: 36px; }
  .floaty__item img { width: 74%; margin-inline: auto; }
}
@media (min-width: 521px) and (max-width: 760px) {
  .floaty__stage { grid-template-columns: repeat(3, 1fr); }
  .floaty__item:nth-child(2n) { margin-top: 0; }
  .floaty__item:nth-child(3n+2) { margin-top: 36px; }
}

/* Detalles (home teaser) */
.teaser { background: var(--rojo); color: #fff; overflow: hidden; }
.teaser h2, .teaser .eyebrow { color: #fff; }
.teaser .eyebrow { color: var(--amarillo); }
.teaser .lead { color: #ffe3df; }
.teaser__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.tray {
  position: relative; aspect-ratio: 1.3; max-width: 460px; justify-self: center; width: 100%;
}
.tray__base {
  position: absolute; inset: 22% 0 6% 0; background: var(--crema); border-radius: 50% / 38%;
  box-shadow: inset 0 -14px 0 var(--crema-2), 0 26px 40px rgba(0,0,0,.25);
}
.tray img { position: absolute; width: 34%; filter: drop-shadow(0 10px 10px rgba(0,0,0,.25)); }
.tray img:nth-of-type(1) { left: 8%; top: 4%; rotate: -8deg; }
.tray img:nth-of-type(2) { left: 34%; top: -6%; width: 36%; }
.tray img:nth-of-type(3) { right: 6%; top: 6%; rotate: 8deg; }
.badge {
  display: inline-block; background: var(--amarillo); color: var(--cafe); font-family: var(--f-titulo);
  padding: 6px 14px; border-radius: 999px; font-size: .9rem; margin-bottom: 14px;
}
@media (max-width: 760px) { .teaser__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--cafe); color: var(--crema); padding: 0 0 40px; text-align: center; }
.footer .drip { margin-bottom: 40px; }
.footer h2 { color: var(--amarillo); font-size: clamp(1.8rem, 5vw, 2.6rem); }
.footer__handle { font-family: var(--f-marca); font-size: 1.4rem; color: #fff; margin: 4px 0 22px; }
.socials { display: flex; justify-content: center; gap: 14px; margin-bottom: 34px; }
.socials a {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--amarillo); color: var(--cafe);
  transition: transform .2s var(--ease-out), background-color .2s;
}
.socials a:hover { transform: translateY(-4px) rotate(-6deg); background: #fff; }
.socials svg { width: 26px; height: 26px; }
.footer__info { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-size: .95rem; color: #f0d9bd; }
.footer__info a { color: var(--amarillo); }
.footer__copy { margin-top: 26px; font-size: .82rem; opacity: .65; }

/* ---------- Páginas internas ---------- */
.page-head { padding: calc(var(--header-h) + 50px) 0 30px; text-align: center; }
.page-head h1 { font-size: clamp(2.3rem, 7vw, 4rem); }
.page-head .hero__slogan { font-size: clamp(1.3rem, 4vw, 2rem); }
.page-head .lead { margin: 10px auto 0; }

/* ---------- Rueda de idioma ---------- */
.header__tools { display: flex; align-items: center; gap: 8px; }
.lang-wheel {
  width: 46px; height: 46px; border-radius: 50%; padding: 3px; background: var(--amarillo);
  box-shadow: 0 3px 0 #c98200; transition: transform .16s var(--ease-out);
}
.lang-wheel:active { transform: scale(.94); }
.lang-wheel__disc {
  position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  background: conic-gradient(var(--cafe) 0 50%, var(--rojo) 50% 100%);
  transition: rotate .45s var(--ease-out);
}
.lang-wheel__disc span {
  position: absolute; left: 0; right: 0; height: 50%; display: grid; place-items: center;
  font-family: var(--f-titulo); font-size: .72rem; line-height: 1; color: rgba(255,255,255,.55); transition: color .3s, rotate .45s var(--ease-out);
}
.lang-wheel__es { top: 0; background: var(--cafe); }
.lang-wheel__en { bottom: 0; background: var(--rojo); }
.lang-wheel[data-lang="es"] .lang-wheel__es, .lang-wheel[data-lang="en"] .lang-wheel__en { color: var(--amarillo); font-size: .82rem; }
.lang-wheel[data-lang="en"] .lang-wheel__disc { rotate: 180deg; }
.lang-wheel[data-lang="en"] .lang-wheel__disc span { rotate: 180deg; }
.lang-wheel.spinning .lang-wheel__disc { transition-duration: .4s; }
@media (max-width: 400px) { .lang-wheel, .cart-btn { width: 40px; height: 40px; } .header__tools { gap: 5px; } }

/* ---------- Menú: título que se arma ---------- */
.menu-head { padding-bottom: 10px; }
.build {
  position: relative; display: inline-block; cursor: pointer; user-select: none;
  font-family: var(--f-marca); font-size: clamp(2.6rem, 10vw, 5.2rem); line-height: 1.05; padding: 26px 10px 6px;
  -webkit-tap-highlight-color: transparent;
}
.build__w { display: inline-block; white-space: nowrap; }
.build__l {
  display: inline-block; position: relative;
  /* capas como un Snakiss: galleta, crema, fruta, cobertura */
  background: linear-gradient(to top, var(--cafe) 0 22%, #fff3dc 22% 34%, var(--rojo) 34% 56%, var(--amarillo) 56% 78%, var(--rojo) 78% 100%);
  background-size: 100% 260%; background-position: 50% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 rgba(89, 42, 11, .28));
  animation: caer .7s cubic-bezier(.34, 1.56, .64, 1) both, llenar 1.1s var(--ease-out) both, capas 6s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * 70ms), calc(var(--i) * 70ms + 250ms), calc(var(--i) * 70ms + 1.4s);
}
@keyframes caer {
  0% { transform: translateY(-90px) rotate(-18deg) scale(.6); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes llenar { from { background-position: 50% 0%; } to { background-position: 50% 100%; } }
@keyframes capas { 0% { background-position: 50% 100%; } 50% { background-position: 50% 40%; } 100% { background-position: 50% 0%; } }
.build__tops { position: absolute; inset: 0; pointer-events: none; }
.build__tops i {
  position: absolute; top: 18px; left: var(--x); width: var(--w); height: calc(var(--w) * 1.6); border-radius: 999px;
  background: var(--c); box-shadow: 0 0 0 1.5px rgba(89, 42, 11, .25); rotate: var(--r);
  animation: topping .9s cubic-bezier(.34, 1.4, .64, 1) var(--d) both;
}
@keyframes topping { 0% { transform: translateY(-80px); opacity: 0; } 70% { opacity: 1; } 100% { transform: translateY(0); opacity: 1; } }

.menu-sub { font-family: "Fredoka", var(--f-texto); max-width: 640px; margin: 14px auto 0; display: grid; justify-items: center; gap: 14px; }
.menu-sub__line { font-size: clamp(1.25rem, 4.2vw, 1.7rem); font-weight: 600; color: var(--cafe); line-height: 1.45; }
.mk { color: var(--cafe); padding: 0 .25em; border-radius: .35em; background-repeat: no-repeat; background-size: 0% 100%; }
.play .mk { animation: marcar .8s var(--ease-out) var(--md, 1.6s) forwards; }
.mk--1 { background-image: linear-gradient(var(--amarillo), var(--amarillo)); --md: 1.5s; }
.mk--2 { background-image: linear-gradient(#ffc7c1, #ffc7c1); --md: 1.8s; }
.mk--3 { background-image: linear-gradient(#ffd98a, #ffd98a); --md: 2.1s; }
@keyframes marcar { to { background-size: 100% 100%; } }
.menu-sub__sticker {
  display: inline-block; font-weight: 700; font-size: clamp(1rem, 3.4vw, 1.2rem); color: var(--amarillo); background: var(--cafe);
  padding: 8px 18px; border-radius: 999px; rotate: -2deg; box-shadow: 0 5px 0 var(--rojo); opacity: 0;
}
.play .menu-sub__sticker { animation: sticker .6s cubic-bezier(.34, 1.56, .64, 1) var(--sd, 2.4s) both; }

/* Versión para fondo amarillo (sección del menú en el inicio) */
.build--alt .build__l {
  background-image: linear-gradient(to top, var(--cafe) 0 24%, #fff 24% 38%, var(--rojo) 38% 60%, #fff 60% 74%, var(--cafe) 74% 100%);
  filter: drop-shadow(0 4px 0 rgba(89, 42, 11, .4));
}
.menu-sub--alt .mk--1 { background-image: linear-gradient(#fff, #fff); }
.menu-sub--alt .mk--2 { background-image: linear-gradient(#ffc7c1, #ffc7c1); }
.menu-sub--alt .mk--3 { background-image: linear-gradient(var(--crema), var(--crema)); }
.menu-sub--alt .menu-sub__sticker { box-shadow: 0 5px 0 #fff; }
.floaty__head .eyebrow { color: var(--rojo); }
.section h2.build { font-size: clamp(2.8rem, 11vw, 5.4rem); margin-bottom: 0; color: var(--cafe); }
.floaty__head .build:not(:has(.build__word)) { opacity: 0; } /* espera a armarse al aparecer */
@keyframes sticker { from { transform: scale(.4) rotate(8deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* Menú: tarjetas */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px; padding: 30px 0 90px; }
.card {
  background: #fff; border-radius: var(--radio); padding: 18px 22px 22px; box-shadow: var(--sombra);
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
/* bola beige: queda centrada detrás de la foto para que el producto resalte */
.card::before {
  content: ""; position: absolute; width: 200px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fff3d6 0%, var(--amarillo-suave) 70%);
  box-shadow: 0 0 0 10px rgba(254, 168, 4, .12);
  top: 48px; left: 50%; translate: -50% 0; z-index: 0;
  transition: scale .4s var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(89,42,11,.18); }
.card:hover::before { scale: 1.08; }
.card.is-target { outline: 3px solid var(--rojo); outline-offset: 4px; }
.card__img { position: relative; z-index: 1; height: 250px; margin-bottom: 12px; }
/* la foto siempre cabe completa en su espacio y nunca queda debajo del texto */
.card__img img {
  position: absolute; left: 0; right: 0; top: 4px; bottom: 0; width: 100%; height: calc(100% - 4px);
  object-fit: contain; filter: drop-shadow(0 14px 12px rgba(89,42,11,.3));
  animation: flotar 6s ease-in-out infinite; animation-delay: var(--delay, 0s);
}
.card__body {
  position: relative; z-index: 2; display: flex; flex-direction: column; flex: 1;
  background: #fff; border-radius: 18px; margin: 0 -8px -8px; padding: 12px 14px 12px;
  border-top: 2px dashed #f3e2c2;
}
.card__type {
  align-self: flex-start; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--rojo); padding: 3px 10px; border-radius: 999px;
}
.card h3 { font-size: 1.8rem; margin-top: 6px; }
.card p { font-size: .98rem; color: var(--texto); margin: 6px 0 16px; flex: 1; line-height: 1.55; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--f-titulo); color: var(--cafe); font-size: 1.35rem; }
.price small { font-family: var(--f-texto); font-size: .78rem; color: var(--texto-suave); display: block; line-height: 1; }
.card .btn { padding: 11px 20px; font-size: .98rem; }
.tag-out { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--rojo); color: #fff; font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.card.is-out .card__img img { filter: grayscale(.8) drop-shadow(0 14px 12px rgba(89,42,11,.15)); opacity: .7; animation: none; }
.aviso {
  position: fixed; z-index: 51; top: 0; left: 0; right: 0; height: 34px; display: grid; place-items: center; padding: 0 16px;
  background: var(--rojo); color: #fff; font-weight: 800; font-size: .88rem; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
body.has-aviso .header { top: 34px; }
body.has-aviso .hero, body.has-aviso .page-head { margin-top: 34px; }
.tag-18 { position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--negro); color: #fff; font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }

/* ---------- Modal / Constructor ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 80; background: rgba(40, 18, 4, .55); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  position: fixed; z-index: 90; left: 50%; top: 50%; width: min(760px, calc(100% - 24px)); max-height: calc(100svh - 32px);
  background: var(--crema); border-radius: 26px; overflow: hidden; display: flex; flex-direction: column;
  translate: -50% -46%; scale: .96; opacity: 0; pointer-events: none;
  transition: translate .3s var(--ease-out), scale .3s var(--ease-out), opacity .2s;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.modal.open { translate: -50% -50%; scale: 1; opacity: 1; pointer-events: auto; }
.modal__head { display: flex; gap: 16px; align-items: center; padding: 18px 20px; background: var(--amarillo); position: relative; }
.modal__head img { width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(89,42,11,.3)); }
.modal__head h3 { font-size: 1.8rem; }
.modal__head p { font-size: .9rem; color: var(--cafe); }
.close-x {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--cafe); color: var(--amarillo); font-size: 1.4rem; line-height: 1; display: grid; place-items: center;
  transition: transform .16s var(--ease-out);
}
.close-x:active { transform: scale(.92); }
.modal__body { overflow-y: auto; padding: 8px 20px 20px; overscroll-behavior: contain; }
.modal__foot {
  display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: #fff; border-top: 1px solid var(--crema-2);
}
.modal__foot .btn { flex: 1; }
.modal__err { color: var(--rojo); font-size: .88rem; font-weight: 700; padding: 0 20px 10px; background: #fff; min-height: 0; }
.modal__err:empty { display: none; }

.group { padding: 16px 0 6px; border-bottom: 1px dashed #ecd4ac; }
.group:last-child { border-bottom: 0; }
.group__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.group__head h4 { font-family: var(--f-titulo); font-weight: 400; color: var(--cafe); font-size: 1.15rem; }
.group__rule { font-size: .8rem; font-weight: 800; color: var(--texto-suave); background: var(--crema-2); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.group__rule.ok { background: #e3f4d8; color: #2f6b12; }
.group__note { font-size: .88rem; color: var(--texto-suave); background: #fff; border-radius: 12px; padding: 10px 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 15px; border-radius: 999px; background: #fff; border: 2px solid #f0dcb8; color: var(--cafe); font-weight: 700; font-size: .93rem;
  transition: background-color .15s, border-color .15s, transform .12s var(--ease-out);
}
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { background: var(--cafe); border-color: var(--cafe); color: var(--amarillo); }
.chip:disabled { opacity: .4; cursor: not-allowed; }
.chip--size { display: grid; text-align: center; padding: 10px 18px; line-height: 1.2; border-radius: 16px; }
.chip--size small { font-weight: 600; font-size: .8rem; opacity: .8; }
/* Emojis del constructor */
.g-emoji { display: inline-block; margin-right: 8px; font-size: 1.15em; animation: menear 3s ease-in-out infinite; }
@keyframes menear { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-14deg); } 90% { transform: rotate(10deg); } 95% { transform: rotate(-5deg); } }
.o-emoji { display: inline-block; margin-right: 6px; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.chip:hover .o-emoji { transform: scale(1.3) rotate(-8deg); }
.chip[aria-pressed="true"] .o-emoji { transform: scale(1.25); }
.size-cup { display: block; font-size: calc(1.3rem * var(--k, 1)); line-height: 1.2; margin-bottom: 2px; }
.chip--size[aria-pressed="true"] .size-cup { animation: saltito .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes saltito { 0% { transform: translateY(0) scale(1); } 40% { transform: translateY(-8px) scale(1.15); } 100% { transform: none; } }
.size-diff { display: block; margin-top: 2px; font-size: .76rem; font-weight: 800; color: var(--rojo); white-space: nowrap; }.chip--size[aria-pressed="true"] .size-diff { color: var(--amarillo); }
.incluye { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 12px; padding: 10px 12px; background: #fff; border: 2px dashed #f0dcb8; border-radius: 16px; font-size: .9rem; color: var(--cafe); }
.incluye.solo { margin: 14px 0 0; }
.incluye > b { flex-basis: 100%; font-family: var(--f-titulo); font-weight: 400; font-size: 1rem; }
.inc-item { background: var(--crema); border-radius: 999px; padding: 4px 10px; font-weight: 700; animation: aparecer .35s var(--ease-out) both; }
.inc-item b { color: var(--rojo); }
@keyframes aparecer { from { opacity: 0; transform: translateY(6px) scale(.9); } to { opacity: 1; transform: none; } }

/* Tu Snakiss: ingredientes apilados */
.cupline { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-height: 46px; padding: 8px 20px; background: var(--cafe); color: var(--amarillo); font-size: 1.35rem; }
.cupline__label { font-family: var(--f-titulo); font-size: .95rem; margin-right: 6px; }
.cupline__empty { font-size: .88rem; font-weight: 700; opacity: .8; }
.cup-e { display: inline-block; filter: drop-shadow(0 2px 0 rgba(0,0,0,.25)); }
.cup-e.new { animation: caerVaso .55s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes caerVaso { 0% { transform: translateY(-36px) scale(.4) rotate(-30deg); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* Estallido al elegir */
.pop-emoji, .pop-bit { position: fixed; z-index: 200; pointer-events: none; translate: -50% -50%; }
.pop-emoji { font-size: 2.6rem; animation: popBig .9s cubic-bezier(.34, 1.56, .64, 1) forwards; }
@keyframes popBig { 0% { transform: scale(.2); opacity: 0; } 30% { transform: scale(1.3) translateY(-20px); opacity: 1; } 100% { transform: scale(1) translateY(-70px); opacity: 0; } }
.pop-bit { font-size: 1rem; animation: popBit .8s var(--ease-out) forwards; }
@keyframes popBit { from { transform: none; opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(.4); opacity: 0; } }

.counter-row { display: flex; flex-wrap: wrap; gap: 10px; }
.counter { display: flex; align-items: center; gap: 8px; background: #fff; border: 2px solid #f0dcb8; border-radius: 999px; padding: 4px 6px 4px 14px; font-weight: 700; color: var(--cafe); }
.counter button { width: 30px; height: 30px; border-radius: 50%; background: var(--crema-2); font-weight: 800; color: var(--cafe); }
.counter button:disabled { opacity: .35; }
.counter output { min-width: 16px; text-align: center; }
.qty { display: flex; align-items: center; gap: 4px; background: var(--crema); border-radius: 999px; padding: 4px; }
.qty button { width: 36px; height: 36px; border-radius: 50%; background: #fff; font-weight: 800; font-size: 1.1rem; color: var(--cafe); }
.qty output { min-width: 24px; text-align: center; font-weight: 800; }
textarea, input, select {
  width: 100%; font: inherit; color: var(--texto); background: #fff; border: 2px solid #f0dcb8; border-radius: 14px; padding: 11px 14px;
  transition: border-color .15s;
}
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--amarillo); }
label.field { display: grid; gap: 6px; font-weight: 700; color: var(--cafe); font-size: .95rem; }

@media (max-width: 640px) {
  .modal { top: auto; bottom: 0; translate: -50% 8%; width: 100%; max-height: 92svh; border-radius: 26px 26px 0 0; }
  .modal.open { translate: -50% 0; }
  .modal__head img { width: 70px; height: 70px; }
  .modal__head h3 { font-size: 1.45rem; }
}

/* ---------- Carrito (drawer) ---------- */
.drawer {
  position: fixed; z-index: 90; top: 0; right: 0; height: 100svh; width: min(420px, 100%);
  background: var(--crema); display: flex; flex-direction: column;
  translate: 100% 0; visibility: hidden;
  transition: translate .35s var(--ease-out), visibility 0s .35s;
}
.drawer.open { translate: 0 0; visibility: visible; transition: translate .35s var(--ease-out); box-shadow: -20px 0 50px rgba(0,0,0,.2); }
.drawer__head { padding: 20px; background: var(--cafe); color: var(--amarillo); position: relative; }
.drawer__head h3 { color: var(--amarillo); font-size: 1.6rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 14px 16px; overscroll-behavior: contain; }
.drawer__foot { padding: 16px; background: #fff; border-top: 1px solid var(--crema-2); display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; background: #fff; border-radius: 18px; padding: 12px; margin-bottom: 10px; box-shadow: 0 4px 12px rgba(89,42,11,.06); }
.line img { width: 64px; height: 64px; object-fit: contain; }
.line h4 { font-family: var(--f-titulo); font-weight: 400; color: var(--cafe); font-size: 1.1rem; line-height: 1.2; }
.line ul { list-style: none; font-size: .82rem; color: var(--texto-suave); margin-top: 2px; }
.line__side { display: grid; justify-items: end; align-content: space-between; gap: 6px; }
.line__price { font-family: var(--f-titulo); color: var(--cafe); }
.line .qty { padding: 2px; }
.line .qty button { width: 28px; height: 28px; font-size: .95rem; }
.empty { text-align: center; padding: 40px 10px; color: var(--texto-suave); }
.empty img { width: 150px; margin: 0 auto 14px; opacity: .9; }
.total-row { display: flex; justify-content: space-between; font-family: var(--f-titulo); color: var(--cafe); font-size: 1.3rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 100; left: 50%; bottom: 26px; translate: -50% 140%; opacity: 0;
  background: var(--cafe); color: var(--amarillo); padding: 12px 20px; border-radius: 999px; font-weight: 800; box-shadow: var(--sombra);
  transition: translate .35s var(--ease-out), opacity .25s; white-space: nowrap;
}
.toast.show { translate: -50% 0; opacity: 1; }

/* ---------- Personajes que interactúan ---------- */
.mascots { position: fixed; z-index: 60; bottom: 0; left: 0; right: 0; pointer-events: none; height: 0; }
.mascot {
  position: absolute; bottom: 0; pointer-events: auto; cursor: pointer;
  translate: 0 38%; transition: translate .5s var(--ease-out);
}
.mascot img { height: 170px; width: auto; transform-origin: bottom center; filter: drop-shadow(0 6px 8px rgba(89,42,11,.25)); }
.mascot:hover, .mascot.talking { translate: 0 8%; }
.mascot.hidden { translate: 0 110%; }
.mascot--b { left: 6px; }
.mascot--d { right: 6px; }
.mascot.wave img { animation: saludo .8s var(--ease-out); }
@keyframes saludo { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 50% { transform: rotate(5deg); } 75% { transform: rotate(-3deg); } }
.bubble {
  position: absolute; bottom: calc(100% - 30px); width: max-content; max-width: 230px;
  background: #fff; color: var(--cafe); font-weight: 700; font-size: .9rem; line-height: 1.35;
  padding: 10px 14px; border-radius: 18px; box-shadow: var(--sombra); border: 2px solid var(--cafe);
  opacity: 0; scale: .85; transition: opacity .2s, scale .25s var(--ease-out); pointer-events: none;
}
.mascot--b .bubble { left: 60px; transform-origin: bottom left; border-bottom-left-radius: 4px; }
.mascot--d .bubble { right: 60px; transform-origin: bottom right; border-bottom-right-radius: 4px; }
.mascot.talking .bubble { opacity: 1; scale: 1; }
.mascot__name { position: absolute; top: -6px; left: 50%; translate: -50% 0; background: var(--rojo); color: #fff; font-size: .7rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; opacity: 0; transition: opacity .2s; }
.mascot:hover .mascot__name { opacity: 1; }
body.no-mascots .mascot { translate: 0 110%; }
@media (max-width: 640px) {
  .mascot img { height: 112px; }
  .mascot { translate: 0 48%; }
  .bubble { max-width: 190px; font-size: .82rem; }
  .mascot--b .bubble { left: 40px; }
  .mascot--d .bubble { right: 40px; }
}

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; padding: 10px 0 100px; align-items: start; }
.panel { background: #fff; border-radius: var(--radio); padding: 22px; box-shadow: var(--sombra); margin-bottom: 22px; }
.panel h2 { font-size: 1.5rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.panel h2 .num { width: 32px; height: 32px; border-radius: 50%; background: var(--amarillo); color: var(--cafe); display: grid; place-items: center; font-size: 1rem; flex: none; }
.fields { display: grid; gap: 14px; }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.options { display: grid; gap: 10px; }
.option {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 2px solid #f0dcb8; border-radius: 16px; cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.option:has(input:checked) { border-color: var(--cafe); background: var(--crema); }
.option input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--rojo); flex: none; }
.option b { font-family: var(--f-titulo); font-weight: 400; color: var(--cafe); font-size: 1.08rem; display: block; }
.option span { font-size: .88rem; color: var(--texto-suave); }
.option.disabled { opacity: .45; pointer-events: none; }
.info-box { background: var(--crema); border-radius: 14px; padding: 12px 14px; font-size: .92rem; margin-top: 12px; }
.info-box.warn { background: #fff0d6; border: 1px dashed var(--amarillo); }
.info-box dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.info-box dt { font-weight: 800; color: var(--cafe); }
.cuenta { background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.cuenta > b { font-family: var(--f-titulo); font-weight: 400; color: var(--cafe); font-size: 1.1rem; display: block; margin-bottom: 4px; }
.cuenta dd { word-break: break-word; }
.copy { margin-left: 6px; font-size: .78rem; font-weight: 800; color: var(--rojo); background: #ffe9e6; padding: 2px 10px; border-radius: 999px; }
.qr-pay { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: center; }
.qr-pay__qr { background: #fff; border-radius: 14px; padding: 6px; box-shadow: 0 4px 12px rgba(89,42,11,.1); }
.qr-pay__qr svg { width: 100%; height: auto; display: block; }
@media (max-width: 480px) { .qr-pay { grid-template-columns: 1fr; justify-items: center; text-align: center; } .qr-pay__qr { width: 220px; } }
.summary { position: sticky; top: calc(var(--header-h) + 16px); }
.sum-line { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #ecd4ac; font-size: .94rem; }
.sum-line small { display: block; color: var(--texto-suave); font-size: .8rem; }
.sum-total { display: flex; justify-content: space-between; padding: 10px 0 0; font-family: var(--f-titulo); color: var(--cafe); }
.sum-total.big { font-size: 1.5rem; }
.link-btn { color: var(--rojo); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { width: 20px; height: 20px; accent-color: var(--rojo); flex: none; margin-top: 2px; }
@media (max-width: 860px) {
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .fields-2 { grid-template-columns: 1fr; }
}

/* ---------- Seguimiento ---------- */
.track { max-width: 640px; margin: 0 auto; padding-bottom: 100px; }
.steps { list-style: none; position: relative; margin: 10px 0; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding-bottom: 26px; position: relative; }
.step::before { content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 3px; background: #ecd4ac; }
.step:last-child::before { display: none; }
.step__dot { width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 3px solid #ecd4ac; display: grid; place-items: center; font-size: 1.3rem; position: relative; z-index: 1; }
.step h3 { font-size: 1.25rem; color: var(--texto-suave); }
.step p { font-size: .92rem; color: var(--texto-suave); }
.step.done .step__dot { background: var(--amarillo); border-color: var(--amarillo); }
.step.done::before { background: var(--amarillo); }
.step.done h3 { color: var(--cafe); }
.step.current .step__dot { background: var(--rojo); border-color: var(--rojo); color: #fff; animation: pulso 1.8s ease-out infinite; }
.step.current h3 { color: var(--rojo); }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(232,49,34,.45); } 100% { box-shadow: 0 0 0 16px rgba(232,49,34,0); } }

/* ---------- Detalles ---------- */
.soon { text-align: center; padding: 20px 0 100px; }
.soon__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin: 34px 0; text-align: left; }
.soon__card { background: #fff; border-radius: var(--radio); padding: 24px; box-shadow: var(--sombra); position: relative; overflow: hidden; }
.soon__card .ico { font-size: 2.2rem; }
.soon__card h3 { font-size: 1.4rem; margin: 8px 0 6px; }
.soon__card p { color: var(--texto-suave); font-size: .95rem; }

/* ---------- Revelado al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
