@font-face { font-family: 'Bangers Recta'; src: url(fonts/bangers-recta.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url(fonts/bricolage-500.woff2) format('woff2'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url(fonts/bricolage-800.woff2) format('woff2'); font-weight: 700 900; font-display: swap; }

:root {
  --mostaza: #e6bd2c;
  --naranja: #dd9a22;
  --rojo: #e8413b;
  --rojo-sombra: #9c2427;
  --rojo-boton: #cc2d28;
  --tinta: #170a08;
  --plata: #dfe1e6;
  --salsa: #3f9a2f;
  --salsa-osc: #2a7a20;
  --salsa-clara: #8fd45e;
  --plato: #fbfaf2;
  --crema: #fff3d6;
  --limon: #82dc22;
  --turquesa: #17b2bc;
  --noche: #06343a;
  --cereza: #d8102a;
  --chamoy: #7d1a16;
  --comic: 'Bangers Recta', 'Impact', 'Arial Narrow', sans-serif;
  --texto: 'Bricolage', system-ui, sans-serif;
  --borde: 3px solid var(--tinta);
  --sombra: 0 5px 0 var(--tinta);
  --radio: 26px;
  --ancho: min(1200px, 100% - 32px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 500 17px/1.45 var(--texto);
  color: var(--tinta);
  background: var(--crema);
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; border-radius: 8px; }

.saltar { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--plato); padding: 10px 14px; border: var(--borde); border-radius: 12px; }
.saltar:focus { top: 12px; }

/* el lienzo de salsa vive entre los fondos de sección y el contenido */
.salsa-lienzo { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
:where(main > section > *:not(.rayos, .salsa-ancla), .pie > *:not(.rayos)) { position: relative; z-index: 2; }
.salsa-ancla { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; }

/*rayos*/
.rayos { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.rayos-giro {
  position: absolute; left: 50%; top: var(--rayos-y, 42%);
  width: 260vmax; height: 260vmax; margin: -130vmax 0 0 -130vmax;
  background: repeating-conic-gradient(from 0deg, var(--rayo-a) 0 11.25deg, var(--rayo-b) 11.25deg 22.5deg);
  animation: giro 90s linear infinite, latido 1.8s ease-in-out infinite;
}
@keyframes giro { to { rotate: 360deg; } }
@keyframes latido { 0%, 100% { scale: 1; } 12% { scale: 1.035; } 30% { scale: 1; } }
/*/rayos*/

/* barra */
.barra {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: max(10px, env(safe-area-inset-top)) 12px 10px;
  transition: background-color .3s, box-shadow .3s;
}
.barra--solida { background: var(--mostaza); box-shadow: 0 3px 0 var(--tinta); }
.barra-marca img { width: 40px; height: 40px; }
.barra-marca { display: grid; place-items: center; min-width: 44px; min-height: 44px; }
.estado {
  margin: 0 auto 0 0; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px; min-height: 40px;
  background: var(--plato); border: var(--borde); border-radius: 999px;
  font-weight: 800; font-size: 14px; line-height: 1.15; box-shadow: 0 3px 0 var(--tinta);
  white-space: nowrap;
}
@media (max-width: 400px) {
  .barra-marca { display: none; }
}
.estado-punto { width: 12px; height: 12px; border-radius: 50%; background: #b9b3a2; border: 2px solid var(--tinta); flex: none; }
.estado--abierto .estado-punto { background: #36c13a; animation: punto 2s ease-in-out infinite; }
@keyframes punto { 50% { box-shadow: 0 0 0 5px rgb(54 193 58 / .25); } }

/* hero */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh; display: grid; align-content: center;
  padding: 72px 0 40px;
  --rayo-a: #e4c12d; --rayo-b: #dc9b22; --rayos-y: 34%;
  background: var(--mostaza);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 34%, rgb(255 236 150 / .45), transparent 55%), radial-gradient(ellipse at 50% 120%, rgb(120 50 0 / .28), transparent 60%);
}
.hero-grid { position: relative; z-index: auto; width: var(--ancho); margin: 0 auto; display: grid; gap: 4px; }
.hero-logo { position: relative; z-index: 0; margin: 0 auto; width: min(100%, 560px); font-size: 0; line-height: 0; }
.hero-logo svg { width: 100%; height: auto; overflow: visible; }
.hero-texto { position: relative; z-index: 2; text-align: center; display: grid; gap: 14px; justify-items: center; }
.hero-invitacion {
  margin: 0; max-width: 24ch;
  font: 800 clamp(20px, 5.6vw, 30px)/1.15 var(--texto); letter-spacing: -.01em;
  text-wrap: balance;
}
.hero-datos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hero-datos li {
  padding: 6px 12px; border: 2.5px solid var(--tinta); border-radius: 999px;
  background: var(--plato); font-weight: 800; font-size: 14px;
}
.hero-datos .hero-dato-promo { background: var(--rojo-boton); color: #fff; }
.acciones { display: flex; gap: 10px; width: 100%; max-width: 520px; }
.hero-mesa { display: none; }

/* botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 12px 18px;
  border: var(--borde); border-radius: 18px; box-shadow: var(--sombra);
  font: 800 17px/1.1 var(--texto); text-decoration: none; text-align: center;
  cursor: pointer; transition: transform .12s, box-shadow .12s;
}
.boton:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--tinta); }
.boton svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.boton--wa { flex: 1.6; background: var(--salsa-osc); color: #fff; }
.boton--llamar { flex: 1; background: var(--plato); }

/* títulos */
.titulo-bloque > :not(.rayos) { position: relative; }
.titulo-bloque { position: relative; text-align: center; padding: 56px 16px 28px; overflow: hidden; }
.rayos--titulo {
  --rayo-a: rgb(230 189 44 / .55); --rayo-b: transparent; --rayos-y: 100%;
  mask-image: radial-gradient(circle at 50% 100%, #000 0, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 100%, #000 0, #000 30%, transparent 70%);
}
.promo-titulo, .pie-marca {
  margin: 0; font: 400 clamp(52px, 15vw, 104px)/.9 var(--comic); letter-spacing: .01em;
  color: var(--rojo);
  text-shadow:
    3px 0 0 var(--tinta), -3px 0 0 var(--tinta), 0 3px 0 var(--tinta), 0 -3px 0 var(--tinta),
    2px 2px 0 var(--tinta), -2px 2px 0 var(--tinta), 2px -2px 0 var(--tinta), -2px -2px 0 var(--tinta),
    5px 7px 0 var(--rojo-sombra), 7px 9px 0 var(--tinta);
}
.titulo-sub { margin: 14px auto 0; max-width: 34ch; padding-inline: 16px; font-weight: 600; text-wrap: balance; }

/* promo */
.promo {
  position: relative; overflow: hidden; color: #fff;
  --rayo-a: #0a4a52; --rayo-b: #073a40; --rayos-y: 62%;
  background: var(--noche);
  padding: 64px 0 72px;
  border-block: 4px solid var(--tinta);
}
.promo-grid { width: var(--ancho); margin: 0 auto; display: grid; gap: 8px; }
.promo-texto { text-align: center; }
.promo-etiqueta {
  display: inline-block; margin: 0 0 12px; padding: 5px 14px; border-radius: 999px;
  background: var(--turquesa); color: var(--tinta); border: 2.5px solid var(--tinta);
  font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
}
.promo-titulo { color: #fff; font-size: clamp(54px, 15vw, 112px); text-wrap: balance; }
.promo--hoy .promo-titulo { color: var(--salsa-clara); }
.promo--hoy .promo-etiqueta { background: var(--salsa-clara); }
.promo-pista { margin: 14px 0 0; font-weight: 700; color: #a8eef2; }
.promo-escena { position: relative; height: clamp(380px, 105vw, 560px); }
.sello {
  position: absolute; z-index: 3; left: 0; top: 6%;
  width: clamp(150px, 42vw, 220px); aspect-ratio: 1; padding: 0;
  display: grid; place-content: center; text-align: center;
  background: none; border: 0; cursor: pointer;
  rotate: -10deg; transition: scale .15s;
  animation: sello-respira 2.6s ease-in-out infinite;
}
.sello:active { scale: .92; }
@keyframes sello-respira { 50% { scale: 1.05; } }
.sello-estrella { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sello-estrella polygon { fill: var(--rojo); stroke: var(--tinta); stroke-width: 6; stroke-linejoin: round; filter: drop-shadow(5px 7px 0 var(--tinta)); }
.sello span { position: relative; color: #fff; text-shadow: 2px 2px 0 var(--tinta), -1px -1px 0 var(--tinta), 1px -1px 0 var(--tinta), -1px 1px 0 var(--tinta); }
.sello-arriba, .sello-abajo { font: 400 clamp(17px, 4.6vw, 24px)/1 var(--comic); letter-spacing: .06em; text-transform: uppercase; }
.sello-2x1 { font: 400 clamp(64px, 18vw, 96px)/.86 var(--comic); color: var(--mostaza) !important; }
.promo-vasos { position: absolute; right: 2%; bottom: 0; width: clamp(200px, 56vw, 330px); aspect-ratio: 480 / 764; }
.vaso { position: absolute; inset: 0; transform-origin: 50% 100%; }
.vaso img { width: 100%; height: 100%; filter: drop-shadow(0 18px 18px rgb(0 0 0 / .45)); }
.vaso--dos { opacity: 0; }

/* productos */
.productos {
  position: relative; padding-bottom: 72px;
  background-color: var(--crema);
  background-image: radial-gradient(rgb(221 154 34 / .22) 1.6px, transparent 1.8px);
  background-size: 14px 14px;
}
.tarjetas { width: var(--ancho); margin: 0 auto; display: grid; gap: 28px; }
.tarjeta {
  position: relative; display: grid;
  background: var(--plato); border: var(--borde); border-radius: var(--radio); box-shadow: 0 8px 0 var(--tinta);
  overflow: hidden;
}
.tarjeta-escena {
  position: relative; height: 340px; overflow: hidden;
  border-bottom: var(--borde);
  background: var(--tono);
  --rayos-y: 55%;
  perspective: 900px;
}
.tarjeta-escena .rayos-giro { animation-duration: 70s, 1.8s; }
.tarjeta-foto {
  position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center; z-index: 2;
  transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform .25s ease-out;
}
.tarjeta-foto picture { display: contents; }
.tarjeta-foto img { width: auto; max-width: 86%; max-height: 92%; filter: drop-shadow(0 14px 12px rgb(0 0 0 / .35)); }
.tarjeta--aguachile .tarjeta-foto { place-items: end start; }
.tarjeta--aguachile .tarjeta-foto img { max-width: 108%; max-height: 112%; translate: -6% 8%; }
.tarjeta--vaso-preparado .tarjeta-foto { place-items: start center; }
.tarjeta--vaso-preparado .tarjeta-foto img { max-height: 104%; translate: 0 -4%; }
.tarjeta-brillo {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .75) 48%, transparent 60%) no-repeat;
  background-size: 250% 100%; background-position: 120% 0;
  mix-blend-mode: soft-light;
}
.tarjeta-particulas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }
.tarjeta-cuerpo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 18px 20px; }
.tarjeta-nombre { margin: 0; font: 400 clamp(28px, 7.6vw, 36px)/.95 var(--comic); letter-spacing: .015em; text-wrap: balance; }
.tarjeta-grupo { display: block; margin-bottom: 4px; font: 800 12px/1 var(--texto); letter-spacing: .08em; text-transform: uppercase; color: #6d5a3d; }

/* pie */
.pie {
  position: relative; overflow: hidden; text-align: center; color: var(--plato);
  background: var(--tinta); padding: 64px 16px max(110px, calc(env(safe-area-inset-bottom) + 96px));
  --rayo-a: #24130f; --rayo-b: #170a08; --rayos-y: 0%;
}
.pie-marca { font-size: clamp(56px, 16vw, 110px); }
.pie-dato { margin: 18px auto 6px; max-width: 30ch; font-weight: 800; font-size: 18px; }
.pie-promo { margin: 0 0 22px; font: 400 30px/1 var(--comic); letter-spacing: .03em; color: var(--mostaza); }
.acciones--pie { margin: 0 auto; flex-direction: column; }
.acciones--pie .boton { white-space: nowrap; }
.acciones--pie .boton--llamar { color: var(--tinta); }
.pie-credito { margin: 34px 0 0; font-size: 13px; opacity: .75; }
.pie-credito a { display: inline-block; padding: 14px 6px; }


/* logo: piezas animables */
.logo .camaron-cuerpo, .logo .plato, .logo .chile-rojo, .logo .chile-verde, .logo .pepino, .logo .letra, .logo .deli { transform-box: fill-box; transform-origin: 50% 100%; }
.logo .pepino, .logo .chile-rojo, .logo .chile-verde { transform-origin: 50% 50%; }
.logo .deli-brillo { translate: -260px 0; }
.logo--liquida .gotas, .logo--liquida .gota-brillos { visibility: hidden; }
.anima .hero-logo:not(.logo-listo) .logo { visibility: hidden; animation: revela 0s 3s forwards; }
@keyframes revela { to { visibility: visible; } }
.anima [data-entrada] { animation: entra .7s cubic-bezier(.3, 1.4, .5, 1) backwards; }
.anima .hero-datos[data-entrada] { animation-delay: .15s; }
.anima .acciones[data-entrada] { animation-delay: .3s; }
@keyframes entra { from { opacity: 0; translate: 0 24px; } }

/* escritorio */
@media (min-width: 900px) {
  body { font-size: 18px; }
  .barra { padding: 16px 28px; }
  .hero { padding: 92px 0 0; align-content: start; --rayos-y: 40%; }
  .hero::before { background: radial-gradient(ellipse at 30% 38%, rgb(255 236 150 / .55), transparent 45%), radial-gradient(ellipse at 50% 120%, rgb(120 50 0 / .3), transparent 60%); }
  .hero .rayos-giro { left: 30%; }
  .hero-grid { width: min(1320px, 100% - 64px); grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: 56px; row-gap: 0; }
  .hero-logo { grid-row: 1; width: 100%; max-width: 600px; }
  .hero-texto { grid-row: 1; grid-column: 2; align-self: center; text-align: left; justify-items: start; gap: 26px; }
  .hero-invitacion { font-size: clamp(40px, 4vw, 60px); line-height: 1.02; max-width: 14ch; letter-spacing: -.025em; }
  .hero-datos { justify-self: stretch; justify-content: flex-start; gap: 12px; }
  .hero-datos li { font-size: 19px; padding: 9px 18px; border-width: 3px; box-shadow: 0 4px 0 var(--tinta); }
  .hero .acciones { justify-self: stretch; flex-wrap: wrap; max-width: none; gap: 16px; }
  .hero .boton { flex: none; min-height: 66px; padding: 14px 28px; font-size: 21px; white-space: nowrap; }
  .hero-mesa { display: block; position: relative; z-index: 2; grid-row: 2; grid-column: 2; aspect-ratio: 3 / 2; margin-top: -24px; }
  .hero-foto { position: absolute; filter: drop-shadow(0 20px 18px rgb(60 20 0 / .35)); transition: translate .3s ease-out; }
  .hero-foto--plato { z-index: 0; width: 70%; left: 20%; top: 8%; rotate: 4deg; }
  .hero-foto--vaso { z-index: 1; width: 39%; left: -10%; top: 17%; rotate: -8deg; }
  .hero-foto--azul { z-index: 1; width: 38%; left: 71%; top: 15%; rotate: 9deg; }
  .promo { padding: 96px 0; }
  .promo-grid { grid-template-columns: 1fr 1.1fr; align-items: center; }
  .promo-texto { text-align: left; }
  .promo-escena { height: 580px; }
  .sello { width: 240px; left: 4%; top: 14%; }
  .promo-vasos { width: 340px; right: 8%; }
  .tarjetas { grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }
  .tarjeta:nth-child(2) { margin-top: 56px; }
  .tarjeta-escena { height: 400px; }
  .acciones--pie { flex-direction: row; justify-content: center; max-width: none; }
  .acciones--pie .boton { flex: none; padding-inline: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rayos-giro, .sello, .estado--abierto .estado-punto { animation: none; }
}
