/* La Bulla · propuesta de diseño
   Idea: la web es una tarde en La Bulla. Entras bajo el toldo granate, pisas el damero,
   la caña se llena, la gilda se monta y la carta está impresa en su papel de barra. */

@font-face { font-family: "Squada One"; src: url(../fonts/squada-one.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Figtree"; src: url(../fonts/figtree.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Yellowtail"; src: url(../fonts/yellowtail.woff2) format("woff2"); font-display: swap; }

:root {
  --granate: #6a2c2d;
  --granate-osc: #4b1e20;
  --toldo: #7a2a31;
  --crema: #f3e8d8;
  --crema-2: #eadcc7;
  --papel: #dccab3;
  --rojo: #d4373f;
  --negro: #17120f;
  --blanco: #fffaf1;
  --ambar: #e3a23b;
  --madera: #b98a5e;
  --tinta: #3d302a;
  --f-marca: "Squada One", "Arial Narrow", Impact, sans-serif;
  --f-texto: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mano: "Yellowtail", "Brush Script MT", cursive;
  --aviso-h: 32px;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 48px; }
body {
  margin: 0; background: var(--crema); color: var(--negro);
  font-family: var(--f-texto); font-size: 17px; line-height: 1.55;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--rojo); outline-offset: 3px; }
.script { font-family: var(--f-mano); font-weight: 400; letter-spacing: 0; text-transform: none; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--negro); color: var(--blanco); padding: 10px 14px; }
.skip:focus { top: 40px; }

/* ---------- Aviso + sonido ---------- */
.aviso {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--aviso-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 8px 0 var(--gutter); background: var(--negro); color: var(--blanco);
  font-size: 13px; line-height: 1;
}
.aviso-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.aviso-txt b { color: #f2b9a8; font-weight: 700; }
.sonido-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  background: var(--blanco); color: var(--negro); border: 0; cursor: pointer;
  font-family: var(--f-marca); font-size: 15px; letter-spacing: .02em;
}
.sonido-btn:hover { background: #ffe3b0; }
.sb-ico { width: 18px; height: 18px; }
.sb-on { display: none; }
.snd-on .sonido-btn { background: var(--rojo); color: var(--blanco); }
.snd-on .sb-on { display: inline; }
.snd-on .sb-off { display: none; }

/* ---------- Palillo de progreso ---------- */
.palillo { position: fixed; top: var(--aviso-h); left: 0; right: 0; height: 10px; z-index: 59; pointer-events: none; }
.palillo-linea { position: absolute; left: 0; top: 4px; height: 3px; width: 100%; background: var(--madera); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.palillo-oliva { position: absolute; left: -9px; top: 0; width: 16px; height: 12px; border-radius: 50%; background: #7d9a3a; box-shadow: inset -3px -2px 0 rgba(0,0,0,.18); transform: translateX(0); }
.palillo-oliva::after { content: ""; position: absolute; right: 2px; top: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--rojo); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border: 3px solid var(--negro); cursor: pointer;
  font-family: var(--f-marca); font-size: 22px; line-height: 1; text-decoration: none; letter-spacing: .01em;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s;
}
.btn small { font-family: var(--f-texto); font-size: 13px; letter-spacing: 0; opacity: .8; }
.btn-negro { background: var(--negro); color: var(--blanco); box-shadow: 5px 5px 0 var(--rojo); }
.btn-linea { background: transparent; color: var(--negro); box-shadow: 5px 5px 0 var(--negro); }
.btn-crema { background: var(--blanco); color: var(--negro); border-color: var(--blanco); box-shadow: 5px 5px 0 var(--negro); }
.btn:not(:disabled):hover { transform: translate(-2px, -2px); }
.btn-negro:not(:disabled):hover { box-shadow: 8px 8px 0 var(--rojo); }
.btn-linea:not(:disabled):hover, .btn-crema:not(:disabled):hover { box-shadow: 8px 8px 0 var(--negro); }
.btn:not(:disabled):active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--negro); }
.btn:disabled { cursor: not-allowed; opacity: .72; }

/* ---------- Bandas de marca ---------- */
.damero-banda, .damero-borde {
  height: 24px; background: repeating-conic-gradient(var(--negro) 0 25%, var(--blanco) 0 50%) 0 0 / 24px 24px;
}
.rayas-banda { height: 20px; background: repeating-linear-gradient(90deg, var(--rojo) 0 12px, var(--crema) 12px 26px); }

/* ---------- Letras partidas ---------- */
.ch { display: inline-block; white-space: pre; }

/* ========== 1 · HERO ========== */
.hero { position: relative; height: 100svh; min-height: 620px; display: flex; flex-direction: column; padding-top: var(--aviso-h); background: var(--crema); overflow: clip; }
.toldo { position: relative; height: clamp(104px, 17vh, 168px); flex: none; z-index: 2; }
.toldo-lona {
  position: absolute; inset: 0 0 34% 0; transform-origin: 50% 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0) 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 2px, transparent 2px 46px),
    var(--toldo);
}
.toldo-faldon {
  position: absolute; left: 0; right: 0; bottom: 0; height: 36%; transform-origin: 50% 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #8a3039, var(--toldo) 40%, #64222a);
  border-top: 3px solid #f6e9ea; box-shadow: 0 10px 18px -8px rgba(40,10,10,.5);
}
.toldo-faldon::after { /* sombra que cae en la pared */
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 40px;
  background: linear-gradient(180deg, rgba(60,20,20,.22), transparent); pointer-events: none;
}
.toldo-marca { font-family: var(--f-marca); color: var(--blanco); font-size: clamp(26px, 6vw, 48px); line-height: 1; letter-spacing: .04em; }
.js .toldo .toldo-lona { transform: scaleY(0); }
.js .toldo .toldo-faldon { transform: translateY(-120%) rotateX(80deg); opacity: 0; }
.listo .toldo .toldo-lona { transform: none; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.listo .toldo .toldo-faldon { transform: none; opacity: 1; transition: transform 1s .55s cubic-bezier(.3,1.6,.4,1), opacity .2s .55s; }

.hero-pared { position: relative; z-index: 1; flex: 1 1 auto; min-height: 0; padding: clamp(28px, 6vh, 64px) var(--gutter) clamp(20px, 4vh, 40px); display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.hero-guino { font-size: clamp(30px, 6vw, 44px); color: var(--granate); line-height: 1; transform: rotate(-6deg); transform-origin: 0 100%; margin-bottom: -4px; }
.hero-tit { font-family: var(--f-marca); font-weight: 400; font-size: clamp(52px, min(13.5vw, 12vh), 150px); line-height: .86; letter-spacing: -.005em; color: var(--negro); }
.kl { display: block; }
.kl-bulla { position: relative; display: inline-block; }
.bulla-word { color: var(--granate); }
.ondas { position: absolute; right: -.62em; top: .02em; width: .52em; height: .52em; overflow: visible; }
.ondas path { fill: none; stroke: var(--rojo); stroke-width: 5; stroke-linecap: round; transform-origin: 0 50%; }
.hero-sub { max-width: 34ch; font-size: clamp(17px, 2.1vw, 21px); color: var(--tinta); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 6px; }

.js .hero-tit .ch { transform: translateY(.7em) rotate(var(--r, 6deg)); opacity: 0; }
.listo .hero-tit .ch { transform: none; opacity: 1; transition: transform .7s cubic-bezier(.2,1.4,.4,1), opacity .3s; transition-delay: calc(.5s + var(--i) * 32ms); }
.listo .bulla-word .ch { animation: bulla 2.6s calc(1.6s + var(--i) * 90ms) infinite ease-in-out; }
@keyframes bulla { 0%, 70%, 100% { translate: 0 0; rotate: 0deg; } 76% { translate: 0 -.06em; rotate: -4deg; } 84% { translate: 0 .02em; rotate: 3deg; } }
.snd-on .bulla-word .ch { animation-duration: 1.2s; }
.listo .ondas path { animation: onda 1.8s infinite ease-out; }
.ondas path:nth-child(2) { animation-delay: .2s !important; }
.ondas path:nth-child(3) { animation-delay: .4s !important; }
@keyframes onda { 0% { opacity: 0; transform: scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.15); } }

.suelo { position: relative; height: clamp(170px, 32vh, 320px); flex: none; border-top: 10px solid var(--crema-2); box-shadow: 0 -2px 0 var(--negro); }
.suelo-cv { width: 100%; height: 100%; }
.taburete { position: absolute; bottom: 18%; width: clamp(64px, 9vw, 120px); height: auto; }
.taburete.t1 { right: 22%; }
.taburete.t2 { right: 6%; bottom: 10%; width: clamp(72px, 10vw, 136px); }
.hero-baja {
  position: absolute; left: var(--gutter); bottom: 18px; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; background: var(--blanco); color: var(--negro); text-decoration: none; font-family: var(--f-marca); font-size: 18px; border: 2px solid var(--negro);
}
.hero-baja svg { width: 10px; height: 22px; }
.listo .hero-baja svg { animation: baja 1.6s infinite ease-in-out; }
@keyframes baja { 50% { transform: translateY(4px); } }

/* ========== Escenas con scroll ========== */
.escena { position: relative; }
.js .escena-cana { height: 330vh; }
.js .escena-gilda { height: 300vh; }
.pane { position: relative; min-height: 100svh; overflow: clip; }
.js .escena .pane { position: sticky; top: 0; height: 100svh; }

/* ========== 2 · LA CAÑA ========== */
.escena-cana { background: var(--crema); }
.escena-cana .pane { display: grid; grid-template-rows: auto 1fr; padding: calc(var(--aviso-h) + 20px) var(--gutter) 78px; }
.cana-lamina {
  position: absolute; z-index: 0; left: 50%; bottom: 4%; width: min(70vw, 300px); height: 88%; transform: translateX(-50%);
  background: repeating-linear-gradient(90deg, var(--rojo) 0 9px, transparent 9px 28px), var(--blanco);
  border: 9px solid var(--madera); box-shadow: 0 16px 30px -18px rgba(40,20,10,.6);
  opacity: .9;
}
.cana-escena { position: relative; z-index: 1; display: flex; justify-content: center; align-items: flex-end; min-height: 0; order: 2; }
.copas { position: relative; z-index: 1; }
.copa { height: min(44svh, 380px); width: auto; overflow: visible; transform-origin: 50% 92%; }
.copa-a { position: relative; z-index: 2; }
.copa-b { position: absolute; z-index: 1; left: 50%; bottom: 0; opacity: 0; transform: translateX(80%); }
.burbujas circle { animation: burbuja 2.4s infinite linear; }
.burbujas circle:nth-child(2) { animation-delay: -.5s; } .burbujas circle:nth-child(3) { animation-delay: -1s; }
.burbujas circle:nth-child(4) { animation-delay: -1.4s; } .burbujas circle:nth-child(5) { animation-delay: -1.9s; } .burbujas circle:nth-child(6) { animation-delay: -2.2s; }
@keyframes burbuja { from { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } to { transform: translateY(-150px); opacity: 0; } }
.fuera .burbujas circle, .fuera .grito { animation-play-state: paused; }
.chorro { opacity: 0; transition: opacity .25s; }
.chin {
  position: absolute; z-index: 3; left: 50%; top: 2%; transform: translate(-50%, 0) scale(0) rotate(-8deg);
  font-family: var(--f-marca); font-size: clamp(26px, 5vw, 44px); line-height: 1; color: var(--blanco); background: var(--negro);
  padding: 10px 16px 12px; transition: transform .45s cubic-bezier(.3,1.8,.4,1);
}
.chin::after { content: ""; position: absolute; left: 30%; top: 100%; border: 10px solid transparent; border-top-color: var(--negro); border-left-color: var(--negro); }
.brinda .chin { transform: translate(-50%, 0) scale(1) rotate(-6deg); }
.gritos { position: absolute; inset: 0; pointer-events: none; }
.grito {
  position: absolute; font-family: var(--f-mano); font-size: clamp(22px, 4.4vw, 34px); line-height: 1; color: var(--granate);
  background: var(--blanco); border: 2px solid var(--negro); border-radius: 20px; padding: 6px 12px 8px;
  opacity: 0; transform: scale(.4); transition: opacity .3s, transform .4s cubic-bezier(.3,1.7,.4,1);
}
.g1 { left: 0; top: 14%; } .g2 { right: 0; top: 34%; } .g3 { left: 0; top: 56%; } .g4 { right: 2%; top: 6%; }
.gritos.on .grito { opacity: 1; transform: scale(1) rotate(var(--rot, -4deg)); }
.gritos.on .g2 { --rot: 5deg; transition-delay: .15s; } .gritos.on .g3 { --rot: -2deg; transition-delay: .3s; } .gritos.on .g4 { --rot: 7deg; transition-delay: .45s; }

.cana-textos { position: relative; z-index: 2; min-height: 214px; order: 1; }
.paso { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(14px); transition: opacity .35s, transform .45s cubic-bezier(.2,.9,.3,1); }
.paso.on { opacity: 1; transform: none; }
.paso-n { font-family: var(--f-mano); font-size: 26px; color: var(--rojo); line-height: 1; }
.paso-tit { font-family: var(--f-marca); font-weight: 400; font-size: clamp(54px, 14vw, 136px); line-height: .88; margin: 2px 0 10px; }
.paso p:last-child { max-width: 32ch; font-size: clamp(17px, 1.8vw, 20px); color: var(--tinta); }
.js .paso .ch { transform: translateY(.5em) rotate(8deg); opacity: 0; transition: transform .5s cubic-bezier(.2,1.5,.4,1), opacity .2s; transition-delay: calc(var(--i) * 30ms); }
.js .paso.on .ch { transform: none; opacity: 1; }
.pasos-marca { position: absolute; z-index: 3; right: var(--gutter); bottom: 92px; display: flex; gap: 6px; }
.pasos-marca i { width: 4px; height: 26px; background: var(--negro); opacity: .18; transform: rotate(8deg); transition: opacity .3s; }
.pasos-marca i.on { opacity: 1; }

/* ========== 3 · CARTA ========== */
.carta { position: relative; background: var(--papel); }
.carta-papel { position: relative; padding: clamp(40px, 7vw, 96px) var(--gutter) 120px; overflow-x: clip; }
.carta-papel::before { /* el papel de barra con la marca */
  opacity: .8;
  content: "LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA LA BULLA";
  position: absolute; inset: -40px -60px; z-index: 0; pointer-events: none;
  font-family: var(--f-marca); font-size: 46px; line-height: 2.2; word-spacing: .9em; letter-spacing: .02em;
  color: rgba(23,18,15,.075); transform: rotate(180deg); overflow: hidden;
}
.carta-papel > * { position: relative; z-index: 1; }
.carta-cab { display: grid; gap: 14px; max-width: 1240px; margin: 0 auto 26px; }
.carta-tit { font-family: var(--f-marca); font-weight: 400; font-size: clamp(64px, 14vw, 170px); line-height: .85; }
.carta-intro { max-width: 44ch; font-size: 17px; color: var(--tinta); }
.carta-indice {
  position: sticky; top: calc(var(--aviso-h) + 10px); z-index: 5; max-width: 1240px; margin: 0 auto 34px;
  display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; background: var(--negro); color: var(--blanco);
  -webkit-overflow-scrolling: touch;
}
.carta-indice::-webkit-scrollbar { display: none; }
.carta-indice a { flex: none; padding: 12px 14px 11px; font-family: var(--f-marca); font-size: 19px; line-height: 1; text-decoration: none; border-right: 1px solid rgba(255,255,255,.18); transition: background-color .2s, color .2s; }
.carta-indice a:hover { background: #2c2420; }
.carta-indice a.on { background: var(--rojo); }
.carta-cuerpo { max-width: 1240px; margin: 0 auto; }
.carta-foto { margin: 0 auto 40px; width: min(100%, 380px); padding: 10px 10px 14px; background: var(--blanco); box-shadow: 0 18px 34px -20px rgba(40,20,10,.7); transform: rotate(-2.5deg); }
.carta-foto img { width: 100%; height: auto; }
.carta-foto figcaption { padding-top: 10px; font-size: 14px; color: var(--tinta); }
.carta-foto .script { font-size: 22px; color: var(--granate); margin-right: 4px; }

.c-sec { margin-bottom: 52px; break-inside: avoid; }
.c-head { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: end; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 3px solid var(--negro); }
.c-ico { grid-row: span 2; width: 54px; height: 54px; color: var(--granate); }
.c-ico path, .c-ico ellipse, .c-ico circle { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .c-sec:not(.in) .c-ico * { stroke-dashoffset: 1; }
.js .c-sec.in .c-ico * { transition: stroke-dashoffset 1s .1s ease; }
.c-head h3 { font-family: var(--f-marca); font-weight: 400; font-size: clamp(40px, 6vw, 58px); line-height: .9; }
.c-num { font-size: .45em; color: var(--rojo); vertical-align: .55em; margin-right: 2px; }
.c-head p { font-size: 15px; color: var(--tinta); }
.plato + .plato { border-top: 1px dashed rgba(23,18,15,.25); }
.p-row {
  width: 100%; display: flex; align-items: flex-end; gap: 8px; padding: 12px 6px 11px; margin: 0;
  background: transparent; border: 0; text-align: left; cursor: pointer; position: relative;
  transition: background-color .2s;
}
div.p-row { cursor: default; }
button.p-row:hover { background: rgba(255,250,241,.55); }
button.p-row:active .p-price { transform: scale(.92); }
.p-name { flex: 0 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
.p-name b { font-weight: 650; font-size: 18px; line-height: 1.25; }
.p-name i { flex-basis: 100%; font-style: normal; font-size: 15px; line-height: 1.35; color: #5a4a40; }
.p-uds { font-style: normal; font-family: var(--f-marca); font-size: 15px; color: var(--rojo); line-height: 1; }
.p-dots { flex: 1 1 18px; min-width: 18px; margin-bottom: 7px; border-bottom: 2px dotted rgba(23,18,15,.45); }
.p-price { flex: none; font-family: var(--f-marca); font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; transition: transform .15s; }
.p-tally { position: absolute; right: 2px; top: -4px; display: flex; gap: 6px; pointer-events: none; }
.p-tally svg { height: 22px; width: auto; }
.p-tally svg path { stroke: var(--rojo); stroke-width: 3; fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: palote .35s ease-out backwards; }
@keyframes palote { from { stroke-dashoffset: 1; } }
.plato.apuntado .p-name b { color: var(--granate); }
.carta-notas { break-inside: avoid; display: grid; gap: 14px; margin-top: 10px; }
.nota-sello {
  justify-self: start; max-width: 30ch; padding: 14px 18px; border: 3px solid var(--granate); color: var(--granate);
  font-family: var(--f-marca); font-size: 23px; line-height: 1.05; transform: rotate(-2deg); background: rgba(255,250,241,.35);
}
.nota-linea { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 16px; }
.nota-linea span { font-family: var(--f-marca); font-size: 20px; }
.nota-alerg { color: var(--tinta); font-size: 15px; }

/* ========== 4 · LA GILDA ========== */
.escena-gilda { background: var(--granate); color: var(--blanco); }
.escena-gilda .pane { display: flex; flex-direction: column; padding-top: var(--aviso-h); }
.damero-borde { flex: none; }
.gilda-cab { padding: 18px var(--gutter) 0; text-align: center; }
.gilda-tit { font-family: var(--f-marca); font-weight: 400; font-size: clamp(76px, 19vw, 200px); line-height: .82; letter-spacing: .02em; }
.i-palillo { display: inline-block; width: .2em; height: .74em; vertical-align: -.02em; margin: 0 .03em; }
.i-palillo svg { width: 100%; height: 100%; overflow: visible; }
.gilda-sub { margin-top: 8px; font-size: 17px; color: #f1dcd6; }
.gilda-sub .script { font-size: 26px; color: var(--blanco); }
.gilda-lienzo { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; }
.gilda-svg { width: 132%; max-width: none; height: auto; max-height: 100%; overflow: visible; }
.gilda-svg .palo { stroke-dasharray: 1; }
.gilda-svg .palo-punta { stroke-dasharray: 1; }
.pieza > g > * { stroke-dasharray: 1; }
.enjoy-in { transform: scale(0); transform-origin: -40px 40px; transition: transform .5s cubic-bezier(.3,1.8,.4,1); }
.enjoy.on .enjoy-in { transform: scale(1) rotate(-6deg); }
.enjoy-txt { font-family: var(--f-mano); font-size: 44px; fill: var(--granate); }
.etiquetas { position: absolute; inset: 0; pointer-events: none; }
.etiqueta { position: absolute; font-family: var(--f-mano); font-size: clamp(20px, 3vw, 30px); line-height: 1; color: #ffd9c9; white-space: nowrap; opacity: 0; transform: translate(-50%, 8px) rotate(-8deg); transition: opacity .3s, transform .4s; }
.etiqueta.on { opacity: 1; transform: translate(-50%, 0) rotate(-8deg); }
.gilda-precios { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 0 var(--gutter) 74px; }
.gp {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 10px; text-align: left; flex: 1 1 150px; max-width: 250px;
  background: var(--blanco); color: var(--negro); border: 0; padding: 10px 16px; cursor: pointer; box-shadow: 4px 4px 0 var(--negro);
  transition: transform .15s, box-shadow .15s;
}
.gp b { grid-column: 1 / -1; font-weight: 650; font-size: 16px; line-height: 1.2; }
.gp small { grid-row: 2; font-family: var(--f-marca); color: var(--rojo); font-size: 15px; }
.gp span { grid-row: 2; font-family: var(--f-marca); font-size: 28px; line-height: 1; }
.gp:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--negro); }
.gp:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--negro); }

/* ========== 5 · EL LOCAL ========== */
.local { position: relative; background: var(--crema); padding: clamp(56px, 9vw, 120px) 0 0; overflow-x: clip; }
.local-cab { padding: 0 var(--gutter); max-width: 1240px; margin: 0 auto 40px; display: grid; gap: 14px; }
.local-tit { font-family: var(--f-marca); font-weight: 400; font-size: clamp(64px, 13vw, 160px); line-height: .85; }
.local-cab p { max-width: 46ch; color: var(--tinta); font-size: 18px; }
.pared { position: relative; max-width: 1240px; margin: 0 auto; padding: 10px var(--gutter) 70px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 18px; align-items: start; }
.marco { position: relative; background: var(--blanco); padding: 8px; border: 8px solid var(--madera); box-shadow: 0 18px 28px -18px rgba(50,30,15,.55); transition: rotate .4s cubic-bezier(.3,1.6,.4,1); }
.marco::before { content: ""; position: absolute; left: 50%; top: -18px; width: 7px; height: 7px; border-radius: 50%; background: #8a7461; transform: translateX(-50%); }
.marco img { width: 100%; height: auto; }
.marco:hover { rotate: -1.5deg; }
.m-interior { grid-column: 1 / -1; rotate: -.6deg; }
.m-lamina { aspect-ratio: 3 / 4; display: grid; place-items: center; }
.m-rayas { background: repeating-linear-gradient(90deg, #c9b79f 0 6px, transparent 6px 20px), var(--blanco); rotate: 1deg; }
.martini { width: 62%; }
.martini * { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .pared:not(.in) .martini * { stroke-dashoffset: 1; }
.js .pared.in .martini * { transition: stroke-dashoffset 1.6s .3s ease; }
.m-fachada { rotate: -1deg; }
.m-frase { padding: 16px; } .m-frase p { font-family: var(--f-marca); font-size: clamp(18px, 1.7vw, 26px); line-height: 1.05; text-transform: uppercase; text-align: center; color: var(--negro); }
.m-cerve { rotate: 1.4deg; }
.m-nota { display: none; font-family: var(--f-mano); font-size: clamp(30px, 3vw, 44px); line-height: 1.1; color: var(--granate); rotate: -4deg; }
.m-rayas-roja { background: repeating-linear-gradient(90deg, var(--rojo) 0 14px, #f6d7d2 14px 30px); rotate: -1.2deg; }
.local-suelo { display: block; width: 100%; height: clamp(150px, 26vh, 260px); border-top: 10px solid var(--crema-2); box-shadow: 0 -2px 0 var(--negro); }

/* ========== 6 · VISITA ========== */
.visita { position: relative; background: var(--crema-2); padding-bottom: 72px; }
.toldo-mini { height: clamp(90px, 13vh, 130px); }
.visita-in { max-width: 1240px; margin: 0 auto; padding: 48px var(--gutter) 0; display: grid; gap: 40px; }
.visita-tit { font-family: var(--f-marca); font-weight: 400; font-size: clamp(52px, min(11vw, 7.4vw + 20px), 112px); line-height: .86; }
.visita-txt { margin: 16px 0 26px; max-width: 40ch; color: var(--tinta); }
.datos { display: grid; gap: 0; border-top: 3px solid var(--negro); }
.datos > div { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(23,18,15,.25); }
.datos dt { font-family: var(--f-marca); font-size: 22px; line-height: 1; }
.pc {
  display: inline-block; padding: 4px 10px 5px; background: rgba(255,250,241,.8); color: var(--rojo);
  border: 2px dashed var(--rojo); font-family: var(--f-mano); font-size: 22px; line-height: 1; transform: rotate(-1.5deg);
}
.visita-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.mapa-falso { position: relative; aspect-ratio: 4 / 3; border: 8px solid var(--negro); background: #efe3d1; overflow: hidden; }
.mapa-falso svg { width: 100%; height: 100%; }
.pin { animation: pin 2.2s infinite cubic-bezier(.4,0,.3,1); }
@keyframes pin { 0%, 60%, 100% { transform: translate(205px, 145px); } 75% { transform: translate(205px, 125px); } }
.mapa-nota { position: absolute; left: 14px; bottom: 14px; padding: 10px 12px; background: var(--blanco); font-family: var(--f-marca); font-size: 22px; line-height: 1.1; border: 2px solid var(--negro); }
.mapa-nota .pc { margin-top: 6px; font-size: 19px; }
.resenas { margin-top: 22px; padding: 18px 20px; border: 2px dashed rgba(23,18,15,.5); }
.resenas-tit { font-family: var(--f-marca); font-size: 26px; line-height: 1; }
.resenas-vacio { margin-top: 6px; color: var(--tinta); }

/* ========== PIE ========== */
.pie { background: var(--granate); color: var(--blanco); padding-bottom: 96px; }
.pie-in { max-width: 1240px; margin: 0 auto; padding: 40px var(--gutter) 0; display: grid; gap: 24px; }
.pie-marca { font-family: var(--f-marca); font-size: clamp(76px, 21vw, 280px); line-height: .8; letter-spacing: .02em; }
.brindis-btn { justify-self: start; }
.pie-creditos { display: grid; gap: 10px; max-width: 70ch; font-size: 14px; color: #f1dcd6; }
.pie-creditos b { color: var(--blanco); }

/* ---------- Dock de navegación ---------- */
.dock {
  position: fixed; z-index: 55; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; background: var(--negro); color: var(--blanco); box-shadow: 4px 4px 0 var(--rojo);
  max-width: calc(100vw - 24px);
}
.dock a { padding: 12px 12px 11px; font-family: var(--f-marca); font-size: 19px; line-height: 1; text-decoration: none; position: relative; }
.dock a + a::before { content: ""; position: absolute; left: 0; top: 30%; bottom: 30%; width: 1px; background: rgba(255,255,255,.22); }
.dock a:hover { color: #ffcfb8; }
.dock a.on { background: var(--blanco); color: var(--negro); }

/* ---------- La ronda ---------- */
.ronda { position: fixed; z-index: 56; right: 12px; bottom: calc(66px + env(safe-area-inset-bottom)); width: min(330px, calc(100vw - 24px)); display: flex; flex-direction: column-reverse; align-items: flex-end; }
.ronda[hidden] { display: none; }
.ronda-tab {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; border: 2px solid var(--negro);
  background: var(--blanco); box-shadow: 4px 4px 0 var(--negro); transform-origin: 100% 100%;
}
.ronda-tab.pop { animation: pop .4s cubic-bezier(.3,1.8,.4,1); }
@keyframes pop { 40% { transform: scale(1.08) rotate(-2deg); } }
.ronda-n { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; background: var(--rojo); color: var(--blanco); font-family: var(--f-marca); font-size: 19px; }
.ronda-l { font-family: var(--f-mano); font-size: 22px; line-height: 1; }
.ronda-t { font-family: var(--f-marca); font-size: 22px; font-variant-numeric: tabular-nums; }
.ronda-panel {
  width: 100%; margin-bottom: 10px; padding: 16px 16px 14px; background: var(--blanco); border: 2px solid var(--negro); box-shadow: 4px 4px 0 var(--negro);
  max-height: min(60vh, 460px); overflow: auto;
  -webkit-mask: linear-gradient(#000, #000); /* evita parpadeos en Safari con overflow */
}
.ronda-panel[hidden] { display: none; }
.ronda-cab { font-family: var(--f-marca); font-size: 26px; line-height: 1; margin-bottom: 10px; }
.ronda-cab .script { font-size: 20px; color: var(--granate); margin-left: 4px; }
.ronda-lista li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px dashed rgba(23,18,15,.25); font-size: 14px; line-height: 1.25; }
.ronda-lista .q { font-family: var(--f-marca); font-size: 18px; color: var(--rojo); }
.ronda-lista .e { font-family: var(--f-marca); font-size: 18px; font-variant-numeric: tabular-nums; }
.ronda-lista button, .stepper button { width: 30px; height: 30px; border: 2px solid var(--negro); background: var(--crema); cursor: pointer; font-weight: 700; line-height: 1; padding: 0; }
.ronda-pan { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; font-size: 14px; }
.ronda-pan small { display: block; color: var(--tinta); }
.stepper { display: inline-flex; align-items: center; gap: 8px; }
.stepper output { min-width: 18px; text-align: center; font-family: var(--f-marca); font-size: 20px; }
.ronda-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; border-top: 3px solid var(--negro); font-family: var(--f-marca); font-size: 22px; }
.ronda-total b { font-weight: 400; font-size: 30px; font-variant-numeric: tabular-nums; }
.ronda-aviso { margin-top: 6px; font-size: 12.5px; color: var(--tinta); }
.ronda-borrar { margin-top: 10px; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; font-size: 13px; }

/* ========== Escritorio ========== */
@media (min-width: 900px) {
  body { font-size: 18px; }
  .hero-pared { padding-right: 34vw; }
  .taburete.t1 { right: 26%; }
  .escena-cana .pane { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; align-items: center; column-gap: 4vw; padding-bottom: 40px; }
  .cana-textos { order: 0; margin: 0; min-height: 320px; align-self: center; }
  .cana-escena { order: 1; height: 100%; align-items: center; }
  .cana-lamina { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); width: min(30vw, 420px); height: 76svh; }
  .copa { height: min(62svh, 560px); }
  .copas { margin-bottom: 4svh; }
  .pasos-marca { bottom: 40px; }
  .carta-cuerpo { columns: 2; column-gap: 72px; }
  .carta-foto { width: 86%; margin-bottom: 48px; }
  .c-sec { display: inline-block; width: 100%; }
  .carta-indice a { flex: 1 1 auto; text-align: center; font-size: 21px; }
  .gilda-svg { width: min(92vw, 1060px); }
  .pared { grid-template-columns: repeat(12, 1fr); gap: 34px 30px; padding-bottom: 110px; }
  .m-interior { grid-column: 1 / span 5; grid-row: 1 / span 2; }
  .m-rayas { grid-column: 6 / span 3; grid-row: 1; margin-top: 40px; }
  .m-fachada { grid-column: 9 / span 3; grid-row: 1 / span 2; margin-top: 110px; }
  .m-frase { grid-column: 6 / span 2; grid-row: 2; }
  .m-cerve { grid-column: 7 / span 2; grid-row: 3; margin-top: 10px; }
  .m-rayas-roja { grid-column: 9 / span 4; grid-row: 3; margin-top: 40px; aspect-ratio: 4 / 3; }
  .m-nota { display: block; grid-column: 2 / span 4; grid-row: 3; align-self: center; text-align: right; }
  .local-cab { grid-template-columns: 1fr 1fr; align-items: end; }
  .visita-in { grid-template-columns: 1.05fr 1fr; gap: 64px; }
  .pie-in { grid-template-columns: 1fr auto; align-items: end; }
  .pie-creditos { grid-column: 1 / -1; }
  .ronda { right: 24px; bottom: 24px; }
  .dock { left: auto; right: auto; left: 50%; }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .ronda { bottom: 74px; }
}
@media (max-width: 420px) {
  .aviso { font-size: 12px; }
  .dock a { padding: 12px 9px 11px; font-size: 18px; }
  .datos > div { grid-template-columns: 96px 1fr; }
}

/* ========== Menos movimiento ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}
.rm .escena { height: auto !important; }
.rm .escena .pane { position: relative !important; height: auto !important; min-height: 0; }
.rm .escena-cana .pane { padding-bottom: 48px; }
.rm .cana-textos { min-height: 0; display: grid; gap: 28px; }
.rm .paso { position: relative; opacity: 1; transform: none; }
.rm .paso .ch, .rm .hero-tit .ch { transform: none !important; opacity: 1 !important; }
.rm .gritos .grito { opacity: 1; transform: none; }
.rm .chin { transform: translate(-50%, 0) scale(1) rotate(-6deg); }
.rm .pasos-marca { display: none; }
.rm .gilda-lienzo { padding: 24px 0; }
.rm .toldo .toldo-lona, .rm .toldo .toldo-faldon { transform: none !important; opacity: 1 !important; }

/* Datos reales de contacto */
.datos address { font-style: normal; line-height: 1.4; }
.dato-link { font-family: var(--f-marca); font-size: 24px; line-height: 1.1; text-decoration: none; border-bottom: 3px solid var(--rojo); }
.dato-link:hover { color: var(--granate); }
.dato-mail { font-family: var(--f-texto); font-weight: 650; font-size: 17px; overflow-wrap: anywhere; }
a.mapa-falso { display: block; color: var(--negro); text-decoration: none; }
a.mapa-falso:hover .mapa-ir { background: var(--rojo); color: var(--blanco); }
.mapa-ir { display: inline-block; margin-top: 6px; padding: 3px 8px; background: var(--negro); color: var(--blanco); font-size: 19px; transition: background-color .2s; }
.btn-pc { font-size: 17px; }

.js .pieza { opacity: 0; }
.brindis-btn { position: relative; }
.chispa {
  position: absolute; left: 50%; top: 0; pointer-events: none; white-space: nowrap;
  font-family: var(--f-mano); font-size: 22px; color: var(--blanco); background: var(--negro); padding: 4px 10px 6px; border-radius: 16px;
  animation: chispa 1.05s cubic-bezier(.2,.8,.3,1) forwards;
}
@keyframes chispa { from { transform: translate(-50%, 0) scale(.3); opacity: 1; } 70% { opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), var(--dy)) scale(1); opacity: 0; } }

/* Cuadros colgados en la pared del hero (solo escritorio) */
.hero-cuadros { display: none; }
@media (min-width: 900px) {
  .hero-cuadros { display: block; position: absolute; z-index: 1; right: 7vw; top: calc(var(--aviso-h) + clamp(104px, 17vh, 168px) + 6vh); width: 26vw; max-width: 400px; height: 40vh; pointer-events: none; }
  .hero-cuadros .marco { position: absolute; pointer-events: auto; }
  .hc-gilda { right: 0; top: 0; width: 56%; rotate: 1.5deg; }
  .hc-rayas { left: 0; top: 14%; width: 38%; rotate: -2deg; }
  .js .hero-cuadros .marco { opacity: 0; translate: 0 -14px; }
  .listo .hero-cuadros .marco { opacity: 1; translate: 0 0; transition: opacity .5s 1.2s, translate .8s 1.2s cubic-bezier(.3,1.6,.4,1); }
  .listo .hero-cuadros .hc-rayas { transition-delay: 1.4s; }
  .taburete.t1 { right: 30%; }
  .taburete.t2 { right: 12%; }
}
.rm .hero-cuadros .marco { opacity: 1 !important; translate: none !important; }

@media (min-width: 900px) {
  .hero-tit .kl:first-child, .hero-tit .kl:nth-child(2) { display: inline; }
  .hero-tit .kl:nth-child(2)::after { content: ""; display: block; }
  .hero-tit { font-size: clamp(64px, min(9.6vw, 13vh), 150px); }
  .suelo { height: clamp(150px, 25vh, 250px); }
  .hero-pared { gap: 16px; padding-top: 3vh; padding-bottom: 3vh; }
}
