/* Social Ice Heladería — estilos del sitio público
   Paleta y texturas tomadas de la portada aprobada: cartón crema, verde azulado, coral y tinta café. */
:root {
  --paper: #f3dfc1;
  --paper-2: #ead2ae;
  --card: #fbf1e1;
  --ink: #3a2a22;
  --ink-soft: #6b5546;
  --teal: #1d6a64;
  --teal-dark: #164f4b;
  --coral: #cf6a4e;
  --coral-dark: #b4533a;
  --coral-ink: #9f442e; /* coral para texto pequeño: contraste AA */
  --line: #d6bb94;
  --wa: #1d6a64;
  --radius: 18px;
  --shadow: 0 1px 0 rgba(58, 42, 34, .06), 0 12px 30px -14px rgba(58, 42, 34, .35);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink);
  background: var(--paper) url("../img/papel.webp") repeat; background-size: 384px;
  font: 400 18px/1.6 var(--body); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); font-weight: 700; color: var(--teal-dark); }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--teal); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.i { width: 1.15em; height: 1.15em; flex: none; }
.eyebrow { font: 700 .82rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--coral-ink); margin-bottom: 12px; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 46ch; }

/* ---------- botones ---------- */
.btn {
  --bg: var(--teal); --fg: #fff; --bd: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--bd);
  background: var(--bg); color: var(--fg); font: 500 1.06rem/1 var(--display); text-decoration: none; cursor: pointer;
  box-shadow: 0 2px 0 rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(58,42,34,.45); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn .i { transition: transform .2s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn--primary:hover { --bg: var(--teal-dark); }
.btn--coral { --bg: var(--coral-dark); }
.btn--coral:hover { --bg: #9a4430; }
.btn--wa { --bg: var(--teal); }
.btn--wa:hover { --bg: var(--teal-dark); }
.btn--light { --bg: var(--card); --fg: var(--teal-dark); --bd: var(--teal); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 1.15rem; }
.link { color: var(--teal); font-weight: 700; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .25s var(--ease); }
.link:hover { background-size: 100% 2px; }

/* ---------- barra compacta ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: rgba(243, 223, 193, .96) url("../img/papel.webp"); background-size: 384px; background-blend-mode: multiply;
  border-bottom: 1px solid var(--line); box-shadow: 0 6px 20px -16px rgba(58,42,34,.5);
  transform: translateY(-105%); transition: transform .35s var(--ease);
}
.top.is-visible { transform: none; }
.top__inner { display: flex; align-items: center; gap: 24px; padding-block: 6px; }
.brand { width: 70px; flex: none; }
.brand img { width: 100%; transition: transform .25s var(--ease); }
.brand:hover img { transform: rotate(-3deg) scale(1.04); }
.nav { display: flex; gap: clamp(12px, 2vw, 28px); margin-left: auto; }
.nav a, .poster__nav a { position: relative; text-decoration: none; font-family: var(--display); color: var(--ink); white-space: nowrap; }
.nav a { font-size: 1rem; padding: 6px 0; }
.nav a::after, .poster__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover::after, .nav a[aria-current="true"]::after, .poster__nav a:hover::after, .poster__nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav a[aria-current="true"], .poster__nav a[aria-current="true"] { font-weight: 700; }
.menu-toggle { display: none; }

.social { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; text-decoration: none; transition: transform .18s var(--ease), filter .18s; }
.social:hover { transform: translateY(-2px) scale(1.06); filter: brightness(1.08); }
.social:active { transform: scale(.95); }
.social .i { width: 55%; height: 55%; }
.social--fb { background: var(--teal); }
.social--ig { background: var(--coral); }
.social--tt { background: #2a2420; }
.top__social { display: flex; gap: 10px; }

/* =========================================================
   PORTADA — réplica del diseño aprobado.
   En escritorio todo se mide en cqw (1cqw = 1% del ancho de la portada),
   así se ve igual a la imagen a cualquier tamaño de pantalla.
   ========================================================= */
.poster {
  position: relative; container-type: inline-size;
  width: min(100%, calc((100svh - 4px) * 1600 / 901), 1680px); margin-inline: auto;
  aspect-ratio: 1600 / 901; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(150, 105, 60, .16) 100%),
    var(--paper) url("../img/papel.webp"); background-size: auto, 384px;
}
@container (min-width: 1px) { .poster > * { font-size: 1cqw; } }

/* marco con doble línea y adornos de esquina */
.poster__frame { position: absolute; inset: 1.1cqw; z-index: 3; pointer-events: none; border: .14cqw solid rgba(29, 106, 100, .55); border-radius: .6cqw; }
.poster__frame::after { content: ""; position: absolute; inset: .45cqw; border: .07cqw solid rgba(160, 110, 70, .35); border-radius: .4cqw; }
.corner { position: absolute; width: 6.4cqw; height: 4.8cqw; }
.corner--tl { top: -.55cqw; left: -.55cqw; }
.corner--tr { top: -.55cqw; right: -.55cqw; transform: scaleX(-1); }
.corner--bl { bottom: -.55cqw; left: -.55cqw; transform: scaleY(-1); }
.corner--br { bottom: -.55cqw; right: -.55cqw; transform: scale(-1); }

.poster__logo { position: absolute; z-index: 5; left: 3.9cqw; top: .75cqw; width: 19.8cqw; filter: drop-shadow(0 .3cqw .5cqw rgba(80, 50, 30, .18)); transition: transform .35s var(--ease); }
.poster__logo:hover { transform: rotate(-2deg) scale(1.02); }
.poster__logo img { width: 100%; }

.poster__city { position: absolute; z-index: 4; left: 24.2cqw; top: 2.65cqw; margin: 0; display: flex; align-items: center; gap: .5cqw; font: 400 1.18cqw/1 var(--display); color: var(--ink); }
.poster__city .i { width: 1.35cqw; height: 1.35cqw; color: var(--coral); }

.poster__social { position: absolute; z-index: 4; right: 6.2cqw; top: 1.9cqw; display: flex; align-items: center; gap: 2.2cqw; }
.poster__icons { display: flex; gap: 1.35cqw; }
.poster__icons .social { width: 2.35cqw; height: 2.35cqw; }
.poster__wa {
  display: inline-flex; align-items: center; gap: .6cqw; height: 2.75cqw; padding: 0 1.35cqw 0 1.05cqw; border-radius: 99cqw;
  background: var(--teal); color: #fff; text-decoration: none; font: 400 1.18cqw/1 var(--display);
  box-shadow: inset 0 0 0 .14cqw rgba(255,255,255,.25); position: relative; overflow: hidden;
  transition: transform .2s var(--ease), background-color .2s;
}
.poster__wa .i { width: 1.6cqw; height: 1.6cqw; }
.poster__wa::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-120%); animation: shine 4.5s 2s ease-in-out infinite; }
.poster__wa:hover { transform: translateY(-.15cqw); background: var(--teal-dark); }

.poster__nav { position: absolute; z-index: 4; left: 28.9cqw; right: 6.2cqw; top: 5.9cqw; display: flex; justify-content: space-between; padding-bottom: 1.15cqw; border-bottom: .07cqw solid rgba(58, 42, 34, .28); }
.poster__nav a { font-size: 1.2cqw; padding: .3cqw 0 .45cqw; }
.poster__nav a::after { height: .16cqw; }

.poster__photo { position: absolute; z-index: 1; left: 43.6cqw; top: 8.75cqw; width: 54.9cqw; margin: 0; overflow: hidden; }
/* carrusel: 5 s quieta, luego se desliza de derecha a izquierda y entra la siguiente (en bucle) */
.slides { display: flex; will-change: transform; }
.slides.is-moving { transition: transform 1.1s cubic-bezier(.65, 0, .35, 1); }
.slides img { flex: 0 0 100%; width: 100%; display: block; }

.poster__headline { position: absolute; z-index: 2; left: 10.6cqw; top: 19.9cqw; width: 37cqw; }
.poster__title { position: relative; font: italic 600 4.3cqw/.96 var(--display); color: var(--teal); transform: rotate(-8.5deg); transform-origin: 0 100%; letter-spacing: -.01em; font-variation-settings: "opsz" 96, "SOFT" 60; }
.poster__title span { display: block; opacity: 0; animation: rise .8s var(--ease) forwards; }
.poster__title .l1 { padding-left: 3.9cqw; animation-delay: .15s; }
.poster__title .l2 { padding-left: 5.6cqw; color: var(--coral-dark); animation-delay: .3s; }
.poster__title .l3 { animation-delay: .45s; }
.splash { position: absolute; fill: none; stroke: var(--coral); stroke-linecap: round; stroke-width: 7; opacity: 0; animation: pop .5s .85s var(--ease) forwards; }
.splash--a { left: 26.4cqw; top: -2.6cqw; width: 4.4cqw; }
.splash--b { left: .3cqw; top: 3.4cqw; width: 2.8cqw; animation-delay: 1s; }
.swash { position: absolute; left: 12.6cqw; top: 9.3cqw; width: 22.8cqw; transform: rotate(-1deg); overflow: visible; }
.swash path { fill: none; stroke: var(--coral); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 1.1s 1s var(--ease) forwards; }
.swash .heart { fill: var(--coral); stroke-width: 1.5; stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0; transform-box: fill-box; transform-origin: center; animation: heart 2.4s 1.9s ease-in-out infinite; }

.poster__sub { position: absolute; z-index: 2; left: 10.75cqw; top: 32.15cqw; width: 30cqw; margin: 0; font: 400 1.44cqw/1.4 var(--display); color: var(--ink); }

.poster__actions { position: absolute; z-index: 3; left: 6.1cqw; top: 36.55cqw; display: flex; gap: 1.1cqw; }
.pbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 1.1cqw; height: 3.35cqw; padding: 0 2.3cqw;
  border-radius: 99cqw; text-decoration: none; color: #fff; font: 400 1.3cqw/1 var(--display); position: relative;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.pbtn .i { width: 1.6cqw; height: 1.6cqw; transition: transform .25s var(--ease); }
.pbtn--teal { background: var(--teal); min-width: 18.6cqw; box-shadow: 0 .25cqw .6cqw -.2cqw rgba(22,79,75,.45); }
.pbtn--coral { background: var(--coral-dark); min-width: 16.1cqw; box-shadow: inset 0 0 0 .14cqw var(--coral-dark), inset 0 0 0 .3cqw rgba(255,255,255,.55), 0 .25cqw .6cqw -.2cqw rgba(180,83,58,.45); }
.pbtn:hover { transform: translateY(-.2cqw); }
.pbtn--teal:hover { background: var(--teal-dark); }
.pbtn--coral:hover { background: #9a4430; }
.pbtn--teal:hover .i { transform: translateX(.35cqw); }
.pbtn--coral:hover .i { transform: rotate(-12deg) scale(1.1); }
.pbtn:active { transform: translateY(.06cqw) scale(.98); }

.poster__cats { position: absolute; z-index: 3; left: 2.6cqw; right: 2.6cqw; top: 42.4cqw; height: 8.6cqw; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 23.5fr 22fr 23.4fr 22.7fr; gap: 1.1cqw; }
.pcat {
  position: relative; display: block; height: 100%; text-decoration: none; border-radius: 1.7cqw;
  border: .13cqw solid rgba(29, 106, 100, .6); box-shadow: inset 0 0 0 .32cqw rgba(243,223,193,.6), inset 0 0 0 .4cqw rgba(29, 106, 100, .25);
  background: rgba(251, 241, 225, .35); transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
}
.pcat:hover { transform: translateY(-.25cqw); background: rgba(251, 241, 225, .7); box-shadow: inset 0 0 0 .32cqw rgba(243,223,193,.6), inset 0 0 0 .4cqw rgba(29, 106, 100, .25), 0 1cqw 1.8cqw -1cqw rgba(58,42,34,.45); }
.pcat__img { position: absolute; left: .4cqw; bottom: .25cqw; height: 112%; width: auto; max-width: 56%; object-fit: contain; object-position: left bottom; transition: transform .45s var(--ease); transform-origin: 50% 100%; }
.pcat:hover .pcat__img { transform: translateY(-.35cqw) rotate(-2deg) scale(1.03); }
.pcat__name { position: absolute; right: 1.2cqw; top: 50%; transform: translateY(-58%); width: 40%; text-align: center; font: 600 1.95cqw/1.02 var(--display); color: var(--teal-dark); }
.pcat__name::after { content: ""; display: block; width: 5.4cqw; height: .7cqw; margin: .9cqw auto 0; background: radial-gradient(circle, var(--coral) .2cqw, transparent .24cqw) center / .7cqw .7cqw no-repeat, linear-gradient(var(--coral), var(--coral)) center / 100% .09cqw no-repeat; }

.poster__feats { position: absolute; z-index: 3; left: 12cqw; right: 12cqw; top: 51.6cqw; height: 3.4cqw; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; align-items: center; }
.poster__feats li { display: flex; align-items: center; gap: 1.6cqw; font: 400 1.16cqw/1 var(--display); color: var(--ink); padding-inline: 1.4cqw; }
.poster__feats li + li { border-left: .08cqw solid rgba(58,42,34,.35); padding-left: 3.4cqw; }
.poster__feats .i { width: 2.4cqw; height: 2.4cqw; color: var(--teal); transition: transform .3s var(--ease); }
.poster__feats li:hover .i { transform: rotate(-10deg) scale(1.1); }

@keyframes rise { from { opacity: 0; transform: translateY(.8cqw); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.4); } 70% { opacity: 1; transform: scale(1.12); } 100% { opacity: 1; transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes heart { 0%, 100% { opacity: 1; transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(1); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.55cqw); } }
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* franja de sabores */
.ribbon { background: var(--teal-dark); color: #f6e7cf; overflow: hidden; border-block: 3px solid var(--coral); }
.ribbon__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ribbon:hover .ribbon__track { animation-play-state: paused; }
.ribbon__track span { display: inline-flex; align-items: center; gap: 22px; padding: 14px 11px; font: italic 600 1.35rem/1 var(--display); white-space: nowrap; }
.ribbon__track span::after { content: "✦"; font-style: normal; color: var(--coral); font-size: .9rem; }

/* ---------- secciones ---------- */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec--paper { background: rgba(214, 180, 135, .22); }
.sec--teal { background: var(--teal-dark); color: #f7efe2; }
.sec--teal h2 { color: #fff; }
.sec__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec__head .eyebrow { flex-basis: 100%; margin: 0; }
.ornament { display: flex; align-items: center; gap: 10px; color: var(--coral); margin: 14px 0 22px; }
.ornament span { width: 46px; height: 1.5px; background: currentColor; }
.frame { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--paper-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.frame:hover img { transform: scale(1.025); }

/* menú */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 10px 18px; border-radius: 999px; border: 2px solid var(--teal); color: var(--teal-dark); text-decoration: none; font: 600 1rem/1 var(--display); transition: background-color .18s, color .18s, transform .18s var(--ease); }
.chip:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.chip:active { transform: translateY(1px); }
.menu { display: grid; gap: clamp(36px, 5vw, 64px); }
.mcat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; scroll-margin-top: 100px; }
.mcat:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.mcat:nth-child(even) .mcat__img { order: 2; }
.mcat__img { aspect-ratio: 4 / 5; position: sticky; top: 110px; }
.mcat__body h3 { font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.5rem); color: var(--coral-dark); margin-bottom: 8px; }
.mcat__intro { color: var(--ink-soft); max-width: 52ch; }
.items { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.item { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.item__thumb { width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: var(--paper-2); }
.item__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.item:hover .item__thumb img { transform: scale(1.08); }
.item--nothumb { grid-template-columns: 1fr; }
.item__row { display: flex; align-items: baseline; gap: 10px; }
.item__name { font: 600 1.2rem/1.25 var(--display); margin: 0; }
.item__dots { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-5px); min-width: 20px; }
.item__price { font: 700 1.12rem/1 var(--display); color: var(--teal); white-space: nowrap; }
.item__desc { margin: 4px 0 0; color: var(--ink-soft); font-size: 1rem; }

/* sabores con las copas de vidrio */
.flavors { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; border: 2px solid rgba(29,106,100,.35); box-shadow: inset 0 0 0 6px rgba(243,223,193,.7), inset 0 0 0 7px rgba(29,106,100,.2); border-radius: 26px; padding: clamp(20px, 3vw, 40px); }
.flavors h3 { font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.5rem); color: var(--teal-dark); margin-bottom: 14px; }
.flavors__img { margin: 0; }
.flavors__img img { width: 100%; filter: drop-shadow(0 18px 18px rgba(80, 50, 30, .25)); transition: transform .5s var(--ease); }
.flavors__img:hover img { transform: translateY(-4px) scale(1.02); }

/* promociones */
.promos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 24px; }
.promo { display: grid; grid-template-columns: 42% 1fr; background: var(--card); color: var(--ink); border-radius: 24px; overflow: hidden; min-height: 300px; transition: transform .2s var(--ease), box-shadow .2s; }
.promo:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -20px rgba(0,0,0,.6); }
.promo__img { overflow: hidden; }
.promo__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.promo:hover .promo__img img { transform: scale(1.03); }
.promo__body { padding: clamp(20px, 3vw, 34px); display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.promo__body h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); color: var(--coral-dark); margin-bottom: 8px; }
.promo__body .btn { align-self: flex-start; margin-top: 10px; }

/* nosotros (pestañas) */
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.about__img { aspect-ratio: 4 / 5; position: sticky; top: 110px; }
.tabs { background: rgba(251, 241, 225, .75); border-radius: var(--radius); padding: clamp(18px, 3vw, 32px); border: 1px solid var(--line); }
.tabs__list { display: flex; flex-wrap: wrap; gap: 4px 22px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tab { position: relative; background: none; border: 0; padding: 10px 0 12px; cursor: pointer; font: 700 1.05rem/1.2 var(--display); color: var(--ink-soft); transition: color .18s; }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--coral); border-radius: 3px; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.tab:hover { color: var(--ink); }
.tab:hover::after { transform: scaleX(.4); }
.tab[aria-selected="true"] { color: var(--teal-dark); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.panel { color: var(--ink-soft); font-size: 1.07rem; animation: fadein .35s var(--ease); }
.panel[hidden] { display: none; }
.panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.panel li { position: relative; padding-left: 26px; }
.panel li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 3px rgba(207,106,78,.18); }
.panel li strong { color: var(--ink); }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* galería */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 17vw, 240px); gap: 14px; }
.gallery li:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
.gallery li:nth-child(6n + 4), .gallery li:nth-child(6n + 5), .gallery li:nth-child(6n) { grid-column: span 2; }
.gallery button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery button:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery button:hover img { transform: scale(1.03); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 90vh; }
.lightbox::backdrop { background: rgba(30, 20, 15, .82); }
.lightbox img { max-height: 86vh; width: auto; border-radius: 16px; }
.lightbox__close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); font-size: 1.6rem; cursor: pointer; }

/* pedidos */
.orders { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.orders h2 { margin-bottom: 16px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 26px 0 30px; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 16px; font-size: 1.12rem; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--coral); color: #fff; font: 700 1.2rem/1 var(--display); }
.ticket { background: rgba(251, 241, 225, .8); border-radius: 24px; padding: clamp(22px, 3vw, 36px); border: 2px dashed rgba(29,106,100,.45); }
.ticket h3 { color: var(--teal-dark); font-size: 1.6rem; margin-bottom: 14px; }
.hours { margin: 0; display: grid; gap: 4px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; color: var(--teal-dark); font-weight: 700; text-align: right; }
.ticket__note { margin: 16px 0 0; font-size: .95rem; color: var(--ink-soft); }

/* contacto */
.contact { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.address { font: 600 clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem)/1.2 var(--display); color: var(--coral-dark); margin: 18px 0 20px; }
.contact__list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.contact__list li { display: flex; gap: 10px; align-items: center; }
.contact__list .i { color: var(--teal); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.map { position: relative; aspect-ratio: 1 / 1; max-height: 560px; width: 100%; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__btn { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); }
.map__btn:hover { transform: translate(-50%, -2px); }

/* pie */
.foot { background: var(--teal-dark); color: #eadfcd; padding: 56px 0 24px; }
.foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.foot h3 { font-size: 1.1rem; color: #fff; margin-bottom: 12px; }
.foot nav a { display: block; text-decoration: none; padding: 4px 0; width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s var(--ease); }
.foot nav a:hover { background-size: 100% 1px; }
.foot__logo { width: 140px; }
.foot__slogan { font: italic 600 1.2rem/1.3 var(--display); margin-top: 14px; color: #fff; }
.foot__base { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); font-size: .92rem; opacity: .85; }

/* WhatsApp flotante y aviso de cookies */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; align-items: center; gap: 8px; padding: 0 18px 0 14px; height: 56px; border-radius: 999px; background: #187a4c; color: #fff; text-decoration: none; font: 600 1.05rem/1 var(--display); box-shadow: 0 10px 24px -8px rgba(0,0,0,.45); transition: transform .18s var(--ease), opacity .3s; }
.wa-float .i { width: 28px; height: 28px; }
.wa-float:hover { transform: translateY(-2px); }
.wa-float:active { transform: scale(.97); }
.wa-float.is-hidden { opacity: 0; pointer-events: none; transform: translateY(10px); }
.cookie { position: fixed; left: 18px; bottom: 18px; z-index: 45; max-width: 420px; display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); font-size: .95rem; }
.cookie p { margin: 0; }
.cookie[hidden] { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 22px; background: var(--paper) url("../img/papel.webp"); background-size: 384px; margin: 0; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  .nav a { font-size: 1.6rem; }
  .nav.is-open { opacity: 1; visibility: visible; }
  .top__wa { margin-left: auto; }
  .menu-toggle { display: grid; place-content: center; gap: 6px; width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--teal); background: var(--card); cursor: pointer; }
  .menu-toggle span:not(.sr) { width: 22px; height: 2px; background: var(--teal-dark); transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}

/* Portada en tablet y celular: misma estética, reacomodada en una columna */
@media (max-width: 900px) {
  .top { transform: none; }
  body { padding-top: 64px; }
  .poster { width: 100%; aspect-ratio: auto; display: flex; flex-direction: column; padding: 26px 22px 30px; }
  .poster > * { font-size: 16px; }
  .poster > *:not(.poster__frame) { position: relative; inset: auto; left: auto; right: auto; top: auto; }
  .poster__frame { inset: 8px; border-width: 2px; border-radius: 10px; }
  .poster__frame::after { inset: 5px; border-width: 1px; }
  .corner { width: 64px; height: 48px; }
  .corner--tl, .corner--tr { top: -8px; } .corner--bl, .corner--br { bottom: -8px; }
  .corner--tl, .corner--bl { left: -8px; } .corner--tr, .corner--br { right: -8px; }
  .poster__logo, .poster__nav, .poster__social { display: none; }
  .poster__city { order: 0; font-size: 1rem; gap: 6px; justify-content: center; margin-top: 6px; }
  .poster__city .i { width: 18px; height: 18px; }
  .poster__headline { order: 1; width: 100%; margin: 26px 0 10px; }
  .poster__title { font-size: clamp(2.3rem, 10vw, 4rem); transform: rotate(-6deg); transform-origin: 0 50%; }
  .poster__title .l1 { padding-left: .9em; }
  .poster__title .l2 { padding-left: 1.3em; }
  .splash--a { left: auto; right: 4%; top: -14px; width: 46px; }
  .splash--b { left: -4px; top: 34%; width: 30px; }
  .swash { position: relative; left: 30%; top: 4px; width: 62%; }
  .poster__sub { order: 2; width: auto; font-size: 1.15rem; margin: 6px 0 18px; }
  .poster__actions { order: 3; flex-wrap: wrap; gap: 12px; }
  .pbtn { height: 54px; font-size: 1.08rem; gap: 10px; padding: 0 24px; min-width: 0; flex: 1 1 220px; }
  .pbtn .i { width: 22px; height: 22px; }
  .pbtn--coral { box-shadow: inset 0 0 0 2px var(--coral), inset 0 0 0 4px rgba(255,255,255,.55); }
  .poster__photo { order: 4; width: calc(100% + 44px); margin: 18px -22px 0; }
  .poster__cats { order: 5; height: auto; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
  .pcat { height: 128px; border-width: 2px; border-radius: 18px; box-shadow: inset 0 0 0 4px rgba(243,223,193,.6), inset 0 0 0 5px rgba(29,106,100,.25); }
  .pcat__img { height: 108%; max-width: 60%; left: 2px; bottom: 2px; }
  .pcat__name { font-size: 1.25rem; right: 10px; width: 46%; }
  .pcat__name::after { width: 54px; height: 8px; margin-top: 8px; background: radial-gradient(circle, var(--coral) 2.5px, transparent 3px) center / 8px 8px no-repeat, linear-gradient(var(--coral), var(--coral)) center / 100% 1px no-repeat; }
  .poster__feats { order: 6; height: auto; grid-template-columns: 1fr 1fr; gap: 12px 0; margin-top: 22px; }
  .poster__feats li { font-size: .98rem; gap: 10px; padding-inline: 10px; }
  .poster__feats li + li { padding-left: 10px; }
  .poster__feats li:nth-child(3) { border-left: 0; }
  .poster__feats .i { width: 28px; height: 28px; }
  .hero-anim-off {}
  .mcat, .mcat:nth-child(even), .about, .orders, .contact, .flavors { grid-template-columns: 1fr; }
  .mcat:nth-child(even) .mcat__img { order: 0; }
  .mcat__img, .about__img { position: static; aspect-ratio: 16 / 10; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery li:nth-child(6n + 1) { grid-column: span 2; grid-row: span 1; }
  .gallery li:nth-child(6n + 4), .gallery li:nth-child(6n + 5), .gallery li:nth-child(6n) { grid-column: span 1; }
  @keyframes floaty-m { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .top__wa { display: none; }
  .menu-toggle { margin-left: auto; }
  .pcat { height: 112px; }
  .pcat__img { max-width: 50%; }
  .pcat__name { font-size: 1.05rem; width: 46%; right: 6px; }
  .poster__feats li { font-size: .9rem; }
  .promo { grid-template-columns: 1fr; }
  .promo__img { aspect-ratio: 16 / 10; }
  .item { grid-template-columns: 56px 1fr; }
  .item__thumb { width: 56px; height: 56px; }
  .item__row { flex-wrap: wrap; }
  .item__dots { display: none; }
  .item__price { width: 100%; }
  .foot__grid { grid-template-columns: 1fr; }
  .contact__actions .btn { width: 100%; }
  .cookie { left: 10px; right: 10px; bottom: 84px; max-width: none; }
  .wa-float { left: 10px; right: 10px; justify-content: center; bottom: 10px; }
  .foot { padding-bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
}

/* páginas legales */
.legal-top { padding: 14px 0; border-bottom: 1px solid var(--line); }
.legal-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.legal-top img { width: 80px; height: auto; }
.legal { max-width: 820px; padding-block: 40px 70px; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); color: var(--teal-dark); margin-bottom: 6px; }
.legal h2 { font-size: 1.35rem; margin: 30px 0 10px; color: var(--coral-dark); }
.legal ul { padding-left: 22px; display: grid; gap: 8px; }
.legal .muted { color: var(--ink-soft); }
.legal-foot { background: var(--teal-dark); color: #eadfcd; padding: 22px 0; text-align: center; font-size: .95rem; }
.legal-foot a { color: #fff; }

/* pausa de animaciones (accesibilidad: todo lo que se mueve solo se puede detener) */
.motion-toggle {
  position: absolute; z-index: 3; right: 1.2cqw; bottom: 1.4cqw; width: 2.6cqw; height: 2.6cqw; min-width: 36px; min-height: 36px;
  display: grid; place-items: center; border-radius: 50%; border: 2px solid rgba(255,255,255,.85);
  background: rgba(22, 79, 75, .82); color: #fff; font-size: 12px; letter-spacing: -1px; cursor: pointer;
  opacity: .75; transition: opacity .2s, transform .2s var(--ease);
}
.motion-toggle:hover, .motion-toggle:focus-visible { opacity: 1; transform: scale(1.06); }
.is-paused .ribbon__track, .is-paused .poster__wa::after, .is-paused .swash .heart { animation-play-state: paused; }
@media (max-width: 900px) { .motion-toggle { right: 26px; bottom: 10px; } }
.consent { margin: 14px 0 0; max-width: 52ch; font-size: .92rem; color: var(--ink-soft); } .consent a { color: var(--teal-dark); }
.hours dd { white-space: nowrap; }
