/* =========================================================
   LECHE & MIEL — MENÚ DIGITAL
   ========================================================= */
:root {
  --pink-50:  #FFF5F8;
  --pink-100: #FDE6EE;
  --pink-200: #F9CADB;
  --pink-300: #F4A3C0;   /* rosa fachada */
  --pink-400: #EE86AC;
  --pink-500: #E2628F;
  --berry:    #B3245C;
  --ink:      #1C1416;   /* negro logo */
  --ink-2:    #3A2C30;
  --cream:    #FFF8F1;
  --gold:     #D8B27A;

  --font-script: "Damion", "Brush Script MT", cursive;
  --font-sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 22px;
  --shadow-photo: 0 10px 24px -10px rgba(90, 20, 50, .55), 0 2px 6px rgba(90, 20, 50, .18);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --maxw: 480px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 999px; }

/* Contenedor tipo teléfono (en desktop queda centrado) */
.app {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--pink-300);
  overflow-x: clip;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 30px 80px rgba(0,0,0,.45);
}
@media (min-width: 560px) {
  body {
    background:
      radial-gradient(1200px 600px at 50% -10%, #3a2228 0%, transparent 60%),
      var(--ink);
  }
}

/* ---------- Vistas ---------- */
.view { min-height: 100dvh; }
.view[hidden] { display: none; }
.view.is-entering { animation: view-in .5s var(--ease-out) both; }
.view.is-entering[data-dir="next"] { animation-name: view-in-next; }
.view.is-entering[data-dir="prev"] { animation-name: view-in-prev; }
@keyframes view-in      { from { opacity: 0; transform: translateY(14px); } }
@keyframes view-in-next { from { opacity: 0; transform: translateX(36px); } }
@keyframes view-in-prev { from { opacity: 0; transform: translateX(-36px); } }

/* =========================================================
   LOGO (recreado del logo de Instagram)
   ========================================================= */
.logo {
  position: relative;
  display: inline-grid;
  justify-items: center;
  line-height: 1;
  color: #fff;
}
.logo__word {
  font-family: var(--font-script);
  font-size: clamp(40px, 12.4vw, 56px);
  letter-spacing: .5px;
  white-space: nowrap;
  color: #fff;
}
.logo__word em { font-style: normal; color: var(--pink-300); padding: 0 .04em; }
.logo__sweet, .logo__waffles {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--pink-300);
  display: flex; align-items: center; gap: 8px;
}
.logo__sweet  { justify-self: start; margin-left: 4%; margin-bottom: 4px; }
.logo__waffles{ justify-self: end;   margin-right: 4%; margin-top: 2px; }
.logo__sweet::after, .logo__waffles::before {
  content: ""; width: 40px; height: 2px; border-radius: 2px; background: var(--pink-300);
}

/* =========================================================
   INICIO
   ========================================================= */
.view--home {
  position: relative;
  overflow: hidden;
  background: var(--pink-300);
  isolation: isolate;
}
/* Rayas que se deslizan lento (motion de fondo) */
.view--home::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -52px; right: 0;
  background: repeating-linear-gradient(90deg, var(--pink-300) 0 26px, var(--pink-200) 26px 52px);
  animation: stripes 7s linear infinite;
  z-index: -1;
  will-change: transform;
}
@keyframes stripes { to { transform: translateX(52px); } }

.home__screen {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto auto;
  justify-items: center;
  padding: max(28px, env(safe-area-inset-top)) 0 14px;
}

/* La “cápsula” negra central */
.stadium {
  position: relative;
  align-self: center;
  width: min(80%, 360px);
  min-height: min(620px, 80dvh);
  padding: 46px 18px 34px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow:
    inset 0 0 0 2px rgba(244,163,192,.35),
    inset 0 0 0 9px var(--ink),
    inset 0 0 0 10px rgba(244,163,192,.25),
    0 30px 60px -20px rgba(80, 10, 40, .55);
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  isolation: isolate;
  animation: stadium-in 1s var(--ease-out) both;
}
@keyframes stadium-in {
  from { opacity: 0; transform: translateY(40px) scale(.9); }
}
/* patrón de íconos que deriva dentro de la cápsula */
.stadium::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: url("img/pattern.svg") 0 0 / 190px auto;
  opacity: .13; z-index: -1;
  animation: drift 40s linear infinite;
}
@keyframes drift { to { background-position: 190px 380px; } }

.stadium .logo { margin-top: 18px; }
.stadium__kicker {
  margin: 14px 0 0;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  padding-left: .42em;
  animation: kicker-in 1.1s var(--ease-out) .9s both;
}
@keyframes kicker-in { from { opacity: 0; letter-spacing: 1.2em; } }

/* Letras del logo (las separa app.js) */
.ch {
  display: inline-block;
  animation: ch-in .8s var(--ease-spring) both;
  animation-delay: calc(var(--i) * 42ms + var(--ch-base, .25s));
}
@keyframes ch-in {
  from { opacity: 0; transform: translateY(55%) rotate(10deg) scale(.7); filter: blur(6px); }
}
.logo__sweet::after, .logo__waffles::before {
  transform-origin: left center;
  animation: line-in .8s var(--ease-out) both;
  animation-delay: calc(var(--ch-base, .25s) + .55s);
}
.logo__waffles::before { transform-origin: right center; }
@keyframes line-in { from { transform: scaleX(0); } }
.logo__sweet, .logo__waffles { animation: fade-in .6s ease both; animation-delay: calc(var(--ch-base, .25s) + .4s); }
@keyframes fade-in { from { opacity: 0; } }

/* Héroe: foto + anillo de texto girando + destellos */
.hero {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex; align-items: center; justify-content: flex-end;
  margin: 22px 0 18px;
  min-height: 230px;
}
.hero__media {
  position: absolute;
  left: -30%;
  top: 50%;
  width: 66%;
  aspect-ratio: 1;
  transform: translateY(-50%);
}
.hero__ring {
  position: absolute; inset: -11%;
  width: 122%; height: 122%;
  overflow: visible;
  animation: spin 22s linear infinite, fade-in 1s ease 1s both;
}
.hero__ring text {
  font-family: var(--font-sans);
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px;
  fill: var(--pink-300);
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero__photo {
  position: absolute; inset: 0;
  margin: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--pink-300);
  box-shadow: 0 22px 40px -14px rgba(0,0,0,.7);
  background: var(--pink-200);
  animation:
    photo-in 1.2s var(--ease-spring) .45s both,
    float 6s ease-in-out 1.7s infinite;
}
@keyframes photo-in {
  from { opacity: 0; transform: rotate(-140deg) scale(.3); }
  to   { opacity: 1; transform: rotate(-6deg) scale(1); }
}
@keyframes float {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50%      { transform: rotate(-3deg) translateY(-9px); }
}
.hero__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  visibility: hidden;
}
.hero__photo img.was-on { visibility: visible; z-index: 1; }
.hero__photo img.is-on { visibility: visible; z-index: 2; }
.hero__photo img.is-on.swapped { animation: wipe-in 1.1s var(--ease-out) both; }
@keyframes wipe-in {
  from { clip-path: circle(0% at 30% 70%); transform: scale(1.25); }
  to   { clip-path: circle(80% at 30% 70%); transform: scale(1); }
}

.spark {
  position: absolute;
  fill: var(--gold);
  width: 18px; height: 18px;
  opacity: 0;
  animation: twinkle 2.6s ease-in-out infinite;
}
.spark--1 { top: -4%;  right: 6%;  animation-delay: 1.6s; }
.spark--2 { bottom: 2%; right: -6%; width: 12px; height: 12px; animation-delay: 2.4s; fill: #fff; }
.spark--3 { top: 18%; left: 4%;  width: 10px; height: 10px; animation-delay: 3.1s; fill: var(--pink-300); }
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); }
  45%      { opacity: 1; transform: scale(1) rotate(90deg); }
  70%      { opacity: 0; transform: scale(.4) rotate(140deg); }
}

.hero__nav {
  position: relative; z-index: 2;
  display: grid; gap: 10px;
  width: 54%;
  margin-right: -2px;
}
.hero__nav a {
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--pink-300);
  color: var(--ink);
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.1;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 6px 14px -8px rgba(244,163,192,.9), inset 0 -2px 0 rgba(0,0,0,.08);
  transition: transform .25s var(--ease-spring), background-color .2s;
  animation: pill-in .7s var(--ease-spring) both;
  animation-delay: calc(1s + var(--i, 0) * 90ms);
}
/* brillo que cruza cada botón, escalonado */
.hero__nav a::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent);
  transform: skewX(-20deg);
  animation: shine 5.5s ease-in-out infinite;
  animation-delay: calc(2.4s + var(--i, 0) * 160ms);
}
@keyframes shine { 0%, 18% { left: -60%; } 34%, 100% { left: 130%; } }
@keyframes pill-in { from { opacity: 0; transform: translateX(40px) scale(.8); } }
.hero__nav a:active { transform: scale(.94); background: var(--pink-400); }
@media (hover: hover) { .hero__nav a:hover { background: #fff; transform: translateX(-4px); } }

/* Instagram al pie de la cápsula */
.follow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--pink-300);
  font-weight: 700; font-size: 11.5px; letter-spacing: .08em;
  border: 1.5px solid rgba(244,163,192,.4);
  animation: fade-up .8s var(--ease-out) 1.6s both;
  transition: background-color .2s, color .2s;
}
.follow svg { width: 18px; height: 18px; }
.follow:active { background: var(--pink-300); color: var(--ink); }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }

/* Cinta con texto corriendo */
.ribbon {
  width: 120%;
  margin: 26px 0 0;
  padding: 10px 0;
  background: var(--ink);
  transform: rotate(-3deg);
  overflow: hidden;
  box-shadow: 0 10px 24px -12px rgba(80,10,40,.6);
  animation: ribbon-in 1s var(--ease-out) 1.3s both;
}
@keyframes ribbon-in { from { transform: rotate(-3deg) translateX(-100%); } }
.ribbon__track {
  display: flex; align-items: center; gap: 18px;
  width: max-content;
  animation: marquee 22s linear infinite;
  font-weight: 800; font-size: 14px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--pink-300);
  white-space: nowrap;
}
.ribbon__track i { font-style: normal; color: var(--gold); font-size: 12px; }
@keyframes marquee { to { transform: translateX(calc(-50% - 9px)); } }

.cat__handle {
  display: inline-block;
  margin: 0;
  padding: 6px 14px;
  background: var(--ink);
  color: var(--pink-300);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .12em;
  border-radius: 6px;
}
.scroll-cue {
  margin-top: 22px;
  display: grid; justify-items: center; gap: 0;
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink);
  animation: fade-in 1s ease 2s both;
}
.scroll-cue svg { width: 22px; height: 22px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* Las animaciones del inicio esperan a que termine la intro */
body.intro-on .view--home *,
body.intro-on .view--home *::before,
body.intro-on .view--home *::after { animation-play-state: paused !important; }

/* Elementos que aparecen al hacer scroll */
.reveal { opacity: 0; transform: translateY(40px) scale(.97); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* Sección “Nosotros / Horarios” */
.about {
  padding: 22px 0 34px;
  display: grid; justify-items: center;
}
.about__card {
  width: min(86%, 380px);
  padding: 54px 26px 34px;
  border-radius: 200px 200px 28px 28px;
  background: var(--ink);
  color: #fff;
  text-align: center;
  box-shadow: inset 0 0 0 2px rgba(244,163,192,.3), 0 30px 60px -24px rgba(80,10,40,.6);
}
.logo--sm .logo__word { font-size: 46px; }
.about__lead { margin: 18px auto 0; max-width: 30ch; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.82); }
.about__title {
  margin: 28px 0 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--pink-300);
}
.hours { list-style: none; padding: 0; margin: 0 auto; max-width: 260px; display: grid; gap: 8px; }
.hours li {
  display: flex; justify-content: space-between; gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(244,163,192,.3);
  font-size: 14.5px;
}
.hours li b { font-weight: 600; }
.hours li span { color: rgba(255,255,255,.78); font-variant-numeric: tabular-nums; }
.about__photo {
  width: 150px; aspect-ratio: 1; margin: 26px auto 0;
  border-radius: 50%; overflow: hidden;
  border: 5px solid var(--pink-300);
  transform: rotate(5deg);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.socials { display: flex; justify-content: center; gap: 14px; margin-top: 24px; }
.socials a {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 50%;
  background: var(--pink-300); color: var(--ink);
  transition: transform .2s var(--ease-out);
}
.socials a:active { transform: scale(.92); }
.socials svg { width: 22px; height: 22px; }
.about__follow { margin: 10px 0 0; font-size: 12px; color: rgba(255,255,255,.6); }
.credits-btn {
  margin-top: 18px;
  font-size: 11px; color: var(--ink); opacity: .6;
  text-decoration: underline; text-underline-offset: 3px;
}

/* =========================================================
   CATEGORÍA
   ========================================================= */
.view--cat {
  position: relative;
  display: flex; flex-direction: column;
  background:
    url("img/pattern.svg") 0 0 / 220px auto,
    var(--pink-300);
  padding-bottom: calc(86px + env(safe-area-inset-bottom));
}
.cat__head {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) 18px 12px;
  background: linear-gradient(var(--pink-300) 70%, rgba(244,163,192,0));
}
.cat__brand .logo__word { font-size: 36px; color: var(--ink); }
.cat__brand .logo__word em { color: #fff; }
.cat__pill {
  margin: 0;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--pink-300);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.15;
  max-width: 58%;
}

.chips {
  display: flex; gap: 8px;
  overflow-x: auto;
  padding: 2px 18px 6px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.chips::-webkit-scrollbar { display: none; }
.chips button {
  flex: none;
  scroll-snap-align: start;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1.5px solid rgba(28,20,22,.85);
  font-size: 12px; font-weight: 600;
  color: var(--ink);
  background: rgba(255,255,255,.28);
  transition: background-color .2s, color .2s;
}
.chips button[aria-current="true"] { background: var(--ink); color: var(--pink-300); }

.cat__tagline {
  margin: 10px 18px 0;
  font-family: var(--font-script);
  font-size: 26px;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 1px 0 rgba(120,20,60,.25);
}

.grid {
  list-style: none;
  margin: 14px 0 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 14px;
}
.grid li { min-width: 0; }
.item {
  width: 100%;
  display: grid; justify-items: center; text-align: center;
  gap: 8px;
}
.item__photo {
  position: relative;
  width: 100%;
  max-width: 156px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: var(--shadow-photo);
  overflow: hidden;
  background: var(--pink-200);
  transition: transform .25s var(--ease-out);
}
.item:active .item__photo { transform: scale(.96); }
@media (hover: hover) { .item:hover .item__photo { transform: translateY(-3px) rotate(-2deg); } }
.item__photo img { width: 100%; height: 100%; object-fit: cover; color: transparent; }
.item__badge {
  position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%);
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--ink); color: var(--pink-300);
  font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap;
}
.item__name {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .01em;
  text-wrap: balance;
}
.item__desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ink-2);
  text-wrap: pretty;
}
.price {
  display: inline-flex; align-items: baseline; gap: 2px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.price small { font-size: .72em; color: var(--pink-300); margin-right: 3px; font-weight: 700; }
.price--multi { gap: 10px; }
.price--ask { background: rgba(255,255,255,.5); color: var(--ink); font-size: 12px; }

/* 3 columnas: tipografía más compacta (como cafetería del video) */
.grid[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid[data-cols="3"] { gap: 20px 10px; }
.grid[data-cols="3"] .item__name { font-size: 13.5px; }
.grid[data-cols="3"] .item__desc { font-size: 11.5px; }
.grid[data-cols="3"] .price { font-size: 13px; padding: 3px 9px; }
.grid[data-cols="3"] .item__badge { font-size: 8.5px; padding: 2px 6px; }

/* Barra inferior: @handle · flechas · INICIO */
.cat__foot {
  position: fixed; z-index: 10;
  left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: var(--maxw);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(rgba(244,163,192,0), var(--pink-300) 35%);
}
.cat__handle { margin: 0; justify-self: start; font-size: 10px; padding: 6px 10px; }
.arrows { display: flex; align-items: center; gap: 10px; }
.arrow {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%;
  background: #fff; color: var(--ink);
  box-shadow: 0 6px 14px -8px rgba(80,10,40,.6);
  transition: transform .2s var(--ease-out), opacity .2s;
}
.arrow svg { width: 20px; height: 20px; }
.arrow:active { transform: scale(.9); }
.arrow:disabled { opacity: .35; pointer-events: none; }
.dots { display: flex; gap: 5px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(28,20,22,.3); transition: width .3s var(--ease-out), background-color .3s; }
.dots i.on { width: 16px; background: var(--ink); }
.home-btn {
  justify-self: end;
  padding: 9px 16px;
  border-radius: 8px;
  background: var(--ink); color: var(--pink-300);
  font-size: 11.5px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
}
.home-btn:active { transform: scale(.95); }

/* =========================================================
   DETALLE (bottom sheet)
   ========================================================= */
.sheet {
  width: 100%; max-width: var(--maxw);
  max-height: 92dvh;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 28px 28px 0 0;
  background: var(--cream);
  color: var(--ink);
  overflow: hidden;
}
.sheet::backdrop { background: rgba(28,20,22,.55); backdrop-filter: blur(3px); }
.sheet[open] { animation: sheet-up .45s var(--ease-out); }
.sheet[open]::backdrop { animation: fade .3s ease; }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.sheet__inner { position: relative; max-height: 92dvh; overflow-y: auto; }
.sheet__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.sheet__close svg { width: 20px; height: 20px; }
.sheet__photo { margin: 0; aspect-ratio: 4 / 3; background: var(--pink-200); overflow: hidden; }
.sheet__photo img { width: 100%; height: 100%; object-fit: cover; }
.sheet__body { padding: 22px 22px calc(26px + env(safe-area-inset-bottom)); display: grid; gap: 10px; justify-items: start; }
.badge {
  padding: 4px 10px; border-radius: 999px;
  background: var(--pink-300); color: var(--ink);
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.sheet__name { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.sheet__desc { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.sheet__note {
  margin: 0; padding: 8px 12px; border-radius: 12px;
  background: var(--pink-100); color: var(--berry);
  font-size: 13.5px; font-weight: 600;
}
.sheet__price .price { font-size: 20px; padding: 7px 16px; }

.credits { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.credits a { text-decoration: underline; text-underline-offset: 2px; }


/* =========================================================
   MOTION — INTRO
   ========================================================= */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; align-content: center; gap: 22px;
  background: var(--ink);
  color: #fff;
  pointer-events: auto;
}
.intro[hidden] { display: none; }
.intro__waffle {
  width: 74px; height: 74px;
  fill: none; stroke: var(--pink-300); stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1s var(--ease-out) .1s forwards, waffle-pop .6s var(--ease-spring) 1s both;
}
.intro__waffle path { animation: draw .8s var(--ease-out) .5s forwards; stroke-dasharray: 1; stroke-dashoffset: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes waffle-pop { 50% { transform: scale(1.15) rotate(-8deg); } }
.intro__logo { --ch-base: .55s; }
.intro__logo .logo__word { font-size: clamp(48px, 15vw, 72px); }
.intro__wipe {
  position: absolute; left: 50%; top: 50%;
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border-radius: 50%;
  background: var(--pink-300);
  transform: scale(0);
}
.intro.out .intro__wipe { animation: wipe-grow .7s cubic-bezier(.7, 0, .3, 1) forwards; }
.intro.out { animation: intro-out .55s cubic-bezier(.7, 0, .3, 1) .6s forwards; }
@keyframes wipe-grow { to { transform: scale(60); } }
@keyframes intro-out { to { clip-path: circle(0% at 50% 50%); } }

/* =========================================================
   MOTION — CATEGORÍA
   ========================================================= */
.cat__pill.pop { animation: pill-pop .6s var(--ease-spring) both; }
@keyframes pill-pop { from { opacity: 0; transform: scale(.6) rotate(-4deg); } }
.cat__tagline.write { animation: write-on 1s var(--ease-out) .15s both; }
@keyframes write-on { from { clip-path: inset(0 100% 0 0); transform: translateX(-6px); } to { clip-path: inset(0 -10% 0 0); } }

/* Items: aparecen al entrar en pantalla */
.item .item__photo,
.item .item__name,
.item .price,
.item .item__desc { opacity: 0; }
.item.in .item__photo { animation: photo-pop .85s var(--ease-spring) both; animation-delay: calc(var(--d, 0) * 1ms); }
.item.in .item__name  { animation: text-up .6s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 1ms + 180ms); }
.item.in .price       { animation: price-pop .55s var(--ease-spring) both; animation-delay: calc(var(--d, 0) * 1ms + 260ms); }
.item.in .item__desc  { animation: text-up .6s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 1ms + 320ms); }
@keyframes photo-pop { from { opacity: 0; transform: scale(.5) rotate(-30deg); } to { opacity: 1; } }
@keyframes text-up   { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; } }
@keyframes price-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; } }
.item__photo img { transition: transform .6s var(--ease-out); }
@media (hover: hover) { .item:hover .item__photo img { transform: scale(1.08); } }
.item__badge { animation: badge-wiggle 4s ease-in-out infinite; animation-delay: calc(var(--d, 0) * 1ms + 1.2s); }
@keyframes badge-wiggle { 0%, 88%, 100% { transform: translateX(-50%) rotate(0); } 92% { transform: translateX(-50%) rotate(-6deg); } 96% { transform: translateX(-50%) rotate(5deg); } }

.dots i.on { animation: dot-grow .4s var(--ease-spring); }
@keyframes dot-grow { from { width: 6px; } }

/* =========================================================
   MOTION — DETALLE
   ========================================================= */
.sheet[open] .sheet__photo img { animation: ken-burns 1.6s var(--ease-out) both; }
@keyframes ken-burns { from { transform: scale(1.18); filter: saturate(.6); } }
.sheet[open] .sheet__body > * { animation: text-up .6s var(--ease-out) both; }
.sheet[open] .sheet__body > :nth-child(1) { animation-delay: .12s; }
.sheet[open] .sheet__body > :nth-child(2) { animation-delay: .18s; }
.sheet[open] .sheet__body > :nth-child(3) { animation-delay: .24s; }
.sheet[open] .sheet__body > :nth-child(4) { animation-delay: .30s; }
.sheet[open] .sheet__body > :nth-child(5) { animation-delay: .36s; }
.sheet[open] .sheet__body > :nth-child(6) { animation-delay: .42s; }
.sheet.closing { animation: sheet-down .3s cubic-bezier(.7, 0, .84, 0) forwards; }
.sheet.closing::backdrop { animation: fade .3s ease reverse forwards; }
@keyframes sheet-down { to { transform: translateY(100%); } }
.sheet__hint {
  margin: 4px 0 0;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--berry);
}
.sheet__hint::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }

/* Movimiento reducido: se frenan sólo los loops continuos; las entradas cortas quedan */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .view--home::before, .stadium::before, .ribbon__track, .hero__ring,
  .hero__nav a::after, .spark, .scroll-cue svg, .item__badge { animation: none !important; }
  .hero__photo { animation: photo-in 1.2s var(--ease-spring) .45s both !important; }
}

/* Teléfonos angostos: barra inferior más compacta */
@media (max-width: 420px) {
  .cat__foot { padding-left: 10px; padding-right: 10px; gap: 6px; }
  .cat__handle { font-size: 9px; padding: 5px 7px; letter-spacing: .06em; }
  .dots { display: none; }
  .arrows { gap: 8px; }
  .home-btn { padding: 9px 12px; letter-spacing: .16em; }
}

/* Netlify muestra un cartel fijo abajo a la derecha: subimos la barra para que no la tape */
body.has-badge .cat__foot { bottom: 56px; background: none; }
body.has-badge .cat__foot::before {
  content: ""; position: absolute; left: 0; right: 0; top: -20px; bottom: -56px; z-index: -1;
  background: linear-gradient(rgba(244,163,192,0), var(--pink-300) 30%);
}
body.has-badge .view--cat { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
body.has-badge .about { padding-bottom: 90px; }
