/* Pingüino: bodegón de barrio en Goes (ficticio). La forma es la del reel (RECORRIDO.md); la identidad, la de LANDING.md 3.
   Colores: loza, azul noche y mostaza; la mostaza pura solo sobre noche (sobre loza, la mostaza tinta). Libre Bodoni
   cursiva + Lato, alojadas en la página. html.vivo = con JS y sin movimiento reducido: los tramos con video y zoom son
   altos y la escena queda fija (sticky) mientras dura; el scroll nunca se bloquea. Sin .vivo, todo queda apilado y quieto. */
@font-face { font-family: "Libre Bodoni"; font-style: italic; font-weight: 400 500; font-display: swap;
  src: url("media/fuentes/libre-bodoni-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("media/fuentes/lato-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("media/fuentes/lato-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --loza: #F4F1EA;
  --noche: #1E2A3A;          /* sobre loza: 12,9 */
  --noche-honda: #131B26;
  --noche-2: #4A5566;        /* sobre loza: 6,7 */
  --mostaza: #C99A2E;        /* solo sobre noche: 5,6 */
  --mostaza-alta: #D9AE4A;
  --mostaza-tinta: #8A6417;  /* solo sobre loza: 4,8 */
  --madera: #5B3A22;         /* el marco de la pizarra (un objeto, no un color de la marca) */
  --disp: 'Libre Bodoni', Didot, 'Bodoni MT', Georgia, serif;
  --txt: 'Lato', system-ui, sans-serif;
  --borde: clamp(16px, 3.4vw, 56px);
  --sombra-hoja: 0 2px 4px rgba(12, 18, 27, .22), 0 28px 56px -8px rgba(12, 18, 27, .5);
  --loza-fondo: linear-gradient(172deg, var(--loza) 0%, var(--loza) 40%, color-mix(in srgb, var(--loza) 94%, #2a2015) 100%);
  --suave: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
  scrollbar-color: var(--mostaza) var(--noche-honda);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--noche-honda); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* Con la inercia de la rueda (mouse o trackpad), el desplazamiento lo hace el JS: el CSS no suaviza encima */
html.inercia { scroll-behavior: auto; }
body { font: 400 16px/1.55 var(--txt); color: var(--loza); background: var(--noche-honda); caret-color: var(--mostaza-tinta); }
::selection { background: var(--mostaza); color: var(--noche); }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
button, input, select { font: inherit; color: inherit; }
ul { list-style: none; }

/* Foco: loza con halo noche sobre la foto; mostaza tinta sobre el papel; mostaza sobre la noche */
:focus-visible { outline: 2px solid var(--loza); outline-offset: 3px; box-shadow: 0 0 0 5px rgba(19, 27, 38, .65); border-radius: 4px; }
.hoja :focus-visible { outline-color: var(--mostaza-tinta); box-shadow: none; }
.tarjeta :focus-visible, .pie :focus-visible { outline-color: var(--mostaza); box-shadow: none; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--loza); color: var(--noche); padding: 10px 14px; border-radius: 6px; font-weight: 700; }
.saltar:focus { top: 12px; }

/* Libre Bodoni cursiva en todos los titulares */
h1, h2, .logo span, .pie-logo, .epigrafe, .adelante, .adelante-quieto, .frase, .pizarra-titulo, .plato b, .tarjeta-dibujo figcaption, .tarjeta-ficha h3, .dias li > span:first-child {
  font-family: var(--disp); font-style: italic; font-weight: 400;
}

/* La jarra pingüino (logo): trazo fino, el asa en mostaza */
.jarra { width: 19px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.jarra circle { fill: currentColor; stroke: none; }
.jarra .jarra-asa { stroke: var(--mostaza); }

/* ===================== 0. Barra ===================== */
.barra {
  position: fixed; inset: 0 0 auto 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 20px var(--borde) 40px; color: var(--loza); font: 700 14px/1 var(--txt); letter-spacing: .01em;
  background: linear-gradient(rgba(14, 20, 30, .64), rgba(14, 20, 30, .3) 60%, transparent);
  text-shadow: 0 0 2px rgba(12, 18, 27, .55), 0 1px 10px rgba(12, 18, 27, .5);
  transition: background-color .3s;
}
.barra.sobre-papel { background: var(--noche-honda); padding-bottom: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; justify-self: start; }
.logo span { font-size: 27px; font-weight: 500; line-height: 1; letter-spacing: -.005em; transition: opacity .3s; }
/* En el cierre, el nombre lo lleva el cartel de la foto: la barra deja solo la jarra */
.barra.sin-nombre .logo span { opacity: 0; }
.barra-enlaces { display: flex; gap: 34px; }
.barra-enlaces a, .barra-hoy { text-decoration: none; padding: 6px 0; }
.barra-enlaces a:hover, .barra-hoy:hover { text-decoration: underline; }
.barra-der { justify-self: end; display: flex; align-items: center; gap: 22px; }
.barra-reservar { text-decoration: none; border: 1px solid currentColor; border-radius: 999px; padding: 10px 18px; transition: background-color .2s, color .2s; text-shadow: none; }
.barra-reservar:hover { background: var(--loza); color: var(--noche); }

/* ===================== Escenas con foto o video a sangre ===================== */
.escena { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--noche-honda); }
.foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video { opacity: 0; }
.video.listo { opacity: 1; }
.video.oculto { opacity: 0; }
.velo { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(14, 20, 30, .4), transparent 22%, transparent 62%, rgba(14, 20, 30, .42)); }
.ilustrativa { position: absolute; left: var(--borde); bottom: 52px; font: 700 12px/1 var(--txt); color: var(--loza); background: rgba(19, 27, 38, .72); padding: 5px 9px; border-radius: 999px; }

/* La tarjeta noche (portada y cierre) */
.tarjeta { position: absolute; z-index: 2; background: color-mix(in srgb, var(--noche) 93%, transparent); color: var(--loza); }
.rotulo { display: flex; align-items: center; gap: 12px; font: 700 11px/1.2 var(--txt); letter-spacing: .18em; text-transform: uppercase; color: var(--loza); }
.rotulo::before { content: ""; width: 28px; height: 1px; background: var(--mostaza); }

/* ===================== 1. Portada: la entrada ===================== */
html.vivo .entrada { height: 480svh; }
html.vivo .entrada .escena { position: sticky; top: 0; }
.portada-tarjeta { left: var(--borde); bottom: 13svh; width: 480px; padding: 32px 36px 34px; transition: opacity .5s var(--suave), transform .5s var(--suave); }
.portada-tarjeta h1 { font-size: 56px; font-weight: 400; line-height: 1.04; letter-spacing: -.01em; margin-top: 18px; }
.portada-tarjeta h1 span { display: block; white-space: nowrap; }
.portada-tarjeta h1 span + span { padding-left: 52px; }
.portada-tarjeta p:last-child { font-size: 15px; margin-top: 18px; max-width: 36ch; color: color-mix(in srgb, var(--loza) 90%, var(--noche)); }
html.vivo .portada-tarjeta { animation: entra .9s cubic-bezier(.16, 1, .3, 1) .1s both; }
@keyframes entra { from { opacity: 0; transform: translateY(14px); } }
.portada-tarjeta.fuera { opacity: 0; transform: translateY(-18px); pointer-events: none; }

/* El cartel de la puerta de noche: una caja vacía e invisible que el JS pone encima del cartel de la foto (el nombre ya
   viene escrito en la foto). Solo sirve para que la barra sepa dónde está. */
.cartel-noche { position: absolute; translate: -50% -50%; visibility: hidden; pointer-events: none; }
/* Lo mismo para el cartel de la fachada en la portada y en la vuelta: el JS la mueve con el cuadro del video */
.cartel-video { position: absolute; visibility: hidden; pointer-events: none; }

.epigrafe { position: absolute; right: var(--borde); bottom: 48px; font-size: 20px; color: var(--loza); text-shadow: 0 1px 12px rgba(12, 18, 27, .75); opacity: 0; transition: opacity .6s; }
.epigrafe.visible { opacity: 1; }

/* La pizarra de la vereda: una tarjeta hecha con código (la IA no escribe) */
.pizarra {
  position: absolute; z-index: 2; right: 12vw; top: 52%; width: 272px; padding: 20px 24px 24px;
  background: linear-gradient(160deg, #26344A, var(--noche) 60%); color: var(--loza);
  border: 9px solid var(--madera); border-radius: 3px; box-shadow: var(--sombra-hoja);
  rotate: -1.5deg; translate: 0 -50%;
}
.pizarra-hoy { font: 700 11px/1.2 var(--txt); letter-spacing: .16em; text-transform: uppercase; color: var(--mostaza); margin-bottom: 10px; }
.pizarra-titulo { font-size: 31px; line-height: 1.05; }
.pizarra-texto { margin-top: 14px; font: 700 12px/1 var(--txt); letter-spacing: .06em; text-transform: uppercase; display: inline-block; border: 1px dashed var(--mostaza); color: var(--mostaza); padding: 5px 8px; }
.pizarra-nota { margin-top: 12px; font-size: 14px; line-height: 1.45; color: color-mix(in srgb, var(--loza) 88%, var(--noche)); }
html.vivo .pizarra { opacity: 0; transform: translateY(60px); transition: opacity .55s var(--suave), transform .7s var(--suave); pointer-events: none; }
html.vivo .pizarra.visible { opacity: 1; transform: none; }
html.vivo .pizarra.pasada { opacity: 0; transform: translateX(-12vw) scale(1.18); }

.adelante { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(80px, 12vw, 184px); line-height: 1; color: rgba(244, 241, 234, .88); letter-spacing: -.02em; pointer-events: none; opacity: 0; transition: opacity .8s; text-shadow: 0 2px 40px rgba(12, 18, 27, .35); }
.adelante.visible { opacity: 1; }
html:not(.vivo) .adelante { display: none; }

.salon-quieto { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.adelante-quieto { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(72px, 12vw, 184px); color: rgba(244, 241, 234, .88); text-shadow: 0 2px 40px rgba(12, 18, 27, .5); }
/* Un velo solo detrás de la palabra (no oscurece la foto): la pared crema y la lámpara están detrás */
.adelante span, .adelante-quieto span { position: relative; isolation: isolate; }
.adelante span::before, .adelante-quieto span::before { content: ""; position: absolute; inset: -80% -34%; z-index: -1; background: radial-gradient(closest-side, rgba(14, 20, 30, .62), rgba(14, 20, 30, .42) 45%, rgba(14, 20, 30, .14) 75%, rgba(14, 20, 30, 0)); }
html.vivo .salon-quieto { display: none; }

/* ===================== El papel ===================== */
.hoja { background: var(--loza-fondo); color: var(--noche); box-shadow: var(--sombra-hoja); border-radius: 2px; }
.reservado { display: inline-block; font: 700 11px/1.2 var(--txt); letter-spacing: .06em; text-transform: uppercase; border: 1px dashed currentColor; padding: 4px 7px; }
.hoja .reservado { color: var(--noche-2); }
.nota { font: 400 13px/1.4 var(--txt); color: var(--noche-2); }

/* Fondo fijo (sticky) detrás de las hojas: la escena se queda quieta y el papel pasa encima */
.fondo { position: sticky; top: 0; height: 100svh; margin-bottom: -100svh; overflow: hidden; z-index: 0; }
.fondo img { width: 100%; height: 100%; object-fit: cover; scale: 1.06; }
.fondo::after { content: ""; position: absolute; inset: 0; background: rgba(14, 20, 30, .38); }

/* ===================== 2. La carta ===================== */
.carta { position: relative; background: #3b2d20; }
.carta-escena { position: relative; z-index: 1; max-width: calc(1280px + 2 * var(--borde)); min-height: 100svh; margin: 0 auto; padding: 104px var(--borde) 140px; display: grid; place-items: center; perspective: 1700px; }
.hoja-carta {
  width: min(780px, 100%); padding: 38px 48px 32px; transform-origin: 50% 70%;
  transform: rotateX(var(--rx, 10deg)) rotateZ(-1.2deg);
  transition: translate .7s var(--suave), rotate .7s var(--suave);
}
.hoja-cabeza { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid color-mix(in srgb, var(--noche) 16%, transparent); }
.hoja-cabeza h2 { font-size: 34px; line-height: 1; }
/* El menú del día, arriba de la carta: lo que promete la pizarra */
.carta-menu { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0 12px; border-bottom: 1px solid color-mix(in srgb, var(--noche) 16%, transparent); }
.carta-menu b { font: italic 400 22px/1.2 var(--disp); }
.carta-menu span { font-size: 14px; color: var(--noche-2); }
.carta-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; margin-top: 6px; }
.carta-cols h3 { font: 700 11px/1 var(--txt); letter-spacing: .2em; text-transform: uppercase; color: var(--noche-2); margin: 22px 0 6px; }
.plato button {
  width: calc(100% + 20px); margin: 0 -10px; padding: 7px 10px; display: grid; grid-template-columns: 1fr auto; column-gap: 14px;
  text-align: left; background: transparent; border: 0; border-radius: 6px; cursor: pointer; transition: background-color .2s;
}
.plato b { font-size: 20px; line-height: 1.2; display: flex; align-items: center; gap: 9px; }
.plato small { grid-column: 1; font-size: 13px; line-height: 1.4; color: var(--noche-2); }
.plato i { grid-row: 1 / 3; grid-column: 2; align-self: center; width: 18px; height: 1.5px; background: var(--noche-2); }
.plato button:hover { background: color-mix(in srgb, var(--mostaza-tinta) 7%, transparent); }
.plato button[aria-pressed="true"] { background: color-mix(in srgb, var(--mostaza-tinta) 11%, transparent); }
.plato button[aria-pressed="true"] b { font-weight: 500; }
.plato button[aria-pressed="true"] b::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--mostaza-tinta); flex: none; }
.plato .detalle { display: none; }
html:not(.js) .plato .detalle { display: block; font-size: 14px; color: var(--noche-2); padding: 0 0 10px; }
html:not(.js) .hoja-carta .nota { display: none; }
.hoja-carta .nota { text-align: center; margin-top: 22px; }

/* Las dos tarjetas del plato elegido */
.tarjetas { position: absolute; right: var(--borde); top: 50%; translate: 0 -50%; width: min(440px, 36vw); display: grid; justify-items: start; z-index: 2; }
.tarjetas[hidden] { display: none; }
.tarjeta-dibujo { width: 250px; padding: 22px 22px 18px; rotate: -3deg; display: grid; justify-items: center; gap: 14px; }
.circulo { width: 200px; aspect-ratio: 1; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--noche) 22%, transparent); display: grid; place-items: center; overflow: hidden; background: var(--loza); }
/* Todos los dibujos tienen su lado mayor igual (recortados al contorno): con contain quedan del mismo tamaño */
.circulo img { width: 70%; height: 70%; object-fit: contain; }
.tarjeta-dibujo figcaption { font-size: 21px; text-align: center; }
.tarjeta-ficha { width: min(370px, 100%); padding: 28px 30px 26px; rotate: 1.8deg; margin: 10px 0 0 auto; position: relative; }
.tarjeta-ficha h3 { font-size: 31px; line-height: 1.1; outline: none; }
.tarjeta-ficha > p { margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--noche-2); }
.tarjeta-ficha dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--noche) 16%, transparent); }
.tarjeta-ficha dt { font: 700 11px/1 var(--txt); letter-spacing: .16em; text-transform: uppercase; color: var(--noche-2); }
.tarjeta-ficha dd { margin-top: 6px; font-size: 15px; font-weight: 700; }
.ficha-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 20px; }
.volver { background: none; border: 0; padding: 6px 0; font-size: 14px; font-weight: 700; color: var(--noche); text-decoration: underline; text-underline-offset: .22em; cursor: pointer; }
.volver:hover { color: var(--mostaza-tinta); }
html.vivo .tarjetas.visible > * { animation: tarjeta .55s cubic-bezier(.16, 1, .3, 1) both; }
html.vivo .tarjetas.visible > :nth-child(2) { animation-delay: .08s; }
@keyframes tarjeta { from { opacity: 0; transform: translateY(22px) rotate(-2deg); } }
.carta-escena.abierta .hoja-carta { translate: -26% 0; rotate: y 6deg; }
.carta-escena.abierta .hoja-carta .nota { visibility: hidden; }
/* El reel es una sola toma: el final de las escenas desenfocadas se funde a la noche antes del corte a la foto siguiente */
.carta::after, .llegar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(transparent, var(--noche-honda)); pointer-events: none; z-index: 0; }
.cierre::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 140px; background: linear-gradient(var(--noche-honda), transparent); z-index: 1; pointer-events: none; }

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px;
  font: 700 15px/1 var(--txt); letter-spacing: .01em; text-decoration: none; cursor: pointer; background: var(--noche); color: var(--loza);
  transition: background-color .2s, transform .2s var(--suave);
}
.boton:hover { background: #2B3B50; }
.boton:active { transform: translateY(1px); }

/* ===================== 3. La mesa: zoom por código sobre el salón ===================== */
/* La foto del salón, a sangre. Con movimiento, el JS la escala y la corre (transform) para que el encuadre vaya del salón
   entero a la mesa del frente. Sin movimiento, el CSS deja el encuadre final (la mesa, como F04). */
.zoom { position: absolute; inset: 0; overflow: hidden; }
.zoom img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zoom.js img { inset: 0 auto auto 0; width: auto; height: auto; max-width: none; object-fit: fill; transform-origin: 0 0; will-change: transform; }
html:not(.vivo) .mesa .zoom img { transform-origin: 50% 75.1%; scale: 2.03; }
.velo-mesa { background: linear-gradient(rgba(14, 20, 30, .4), transparent 22%); }
.frase { isolation: isolate; }
.frase::before { content: ""; position: absolute; inset: -70% -24%; z-index: -1; background: radial-gradient(closest-side, rgba(14, 20, 30, .6), rgba(14, 20, 30, .42) 45%, rgba(14, 20, 30, .14) 75%, rgba(14, 20, 30, 0)); }
.frase { position: absolute; z-index: 2; left: var(--borde); top: 34%; translate: 0 -50%; font-size: clamp(44px, 5vw, 76px); line-height: 1.05; letter-spacing: -.01em; color: var(--loza); text-shadow: 0 0 1px rgba(12, 18, 27, .5), 0 2px 28px rgba(12, 18, 27, .6); }
.frase span { display: block; padding-left: 1.1em; white-space: nowrap; }
html.vivo .frase { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--suave), transform .7s var(--suave); }
html.vivo .frase.visible { opacity: 1; transform: none; }
.mesa { position: relative; }
.mesa::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 160px; background: linear-gradient(var(--noche-honda), transparent); z-index: 3; pointer-events: none; }
html.vivo .mesa { height: 300svh; }
html.vivo .mesa .escena { position: sticky; top: 0; }

/* ===================== 4. La vuelta a la calle ===================== */
/* La vuelta arranca en el mismo cuadro donde termina la mesa (el zoom al revés): se monta encima de la escena de la
   mesa, invisible hasta quedar fija exactamente sobre ella, y ahí se enciende. Es el mismo cuadro: no se nota. */
html:not(.vivo) .vuelta { display: none; }
html.vivo .vuelta { height: 260svh; margin-top: -100svh; position: relative; z-index: 1; }
html.vivo .vuelta .escena { position: sticky; top: 0; visibility: hidden; }
html.vivo .vuelta.encendida .escena { visibility: visible; }

/* ===================== 5. Cómo llegar ===================== */
.llegar { position: relative; background: #262d38; }
.llegar-dentro { position: relative; z-index: 1; padding: 140px var(--borde) 160px; min-height: 100svh; }
.llegar .fondo::after { background: rgba(14, 20, 30, .52); }
.llegar-cabeza { position: relative; z-index: 1; max-width: 1060px; margin: 0 auto; }
.llegar-cabeza h2 { font-size: clamp(50px, 5.6vw, 80px); line-height: 1; letter-spacing: -.01em; }
.llegar-cabeza h2 span { color: var(--mostaza); }
.llegar-cabeza p { margin-top: 14px; font-size: 16px; }
.llegar-cabeza .reservado { color: var(--mostaza); vertical-align: 1px; }
.llegar-hojas { position: relative; z-index: 1; display: flex; justify-content: center; align-items: flex-start; gap: 48px; margin-top: 56px; perspective: 1600px; }
.hoja-horario, .hoja-plano { transform-origin: 50% 80%; transform: rotateX(var(--rx, 8deg)) translateY(var(--ty, 0)); }
.hoja-horario { width: 400px; padding: 28px 30px 24px; rotate: 1.6deg; }
.hoja-plano { width: 350px; padding: 18px 18px 16px; rotate: -2deg; margin-top: 34px; }
.hoja-horario h3 { font: 700 11px/1 var(--txt); letter-spacing: .2em; text-transform: uppercase; color: var(--noche-2); margin-bottom: 10px; }
.dias li { display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 16px; padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--noche) 14%, transparent); }
.dias li > span:first-child { position: relative; font-size: 19px; line-height: 1.2; justify-self: start; }
.dias li > span:not(:first-child) { font-size: 12px; color: var(--noche-2); min-width: 76px; text-align: right; }
.dias .dias-cabeza { padding: 0 0 4px; }
.dias .dias-cabeza span:not(:first-child) { font: 700 10px/1 var(--txt); letter-spacing: .16em; text-transform: uppercase; }
.dias svg { max-width: none; position: absolute; left: -16px; top: -9px; width: calc(100% + 32px); height: calc(100% + 18px); overflow: visible; pointer-events: none; }
.dias svg path { fill: none; stroke: var(--mostaza-tinta); stroke-width: 2.25; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.dias svg path + path { stroke-width: 1.4; opacity: .55; translate: 1px 1px; }
html.vivo .dias svg path { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.vivo .dias.dibujar svg path { transition: stroke-dashoffset 1.1s cubic-bezier(.65, 0, .35, 1); stroke-dashoffset: 0; }
html.vivo .dias.dibujar svg path + path { transition-delay: .25s; }
.hoja-horario .nota { margin-top: 14px; }
.hoja-plano svg { width: 100%; height: auto; color: var(--noche); }
.hoja-plano .pin { fill: var(--mostaza-tinta); }
.hoja-plano figcaption { margin-top: 10px; }

/* ===================== 6. El cierre: la puerta de noche ===================== */
.cierre { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: var(--noche-honda); }
/* F05 salió con luz de hora azul: un oscurecimiento parejo en azul noche (multiplicado, para que las luces cálidas de las
   ventanas sigan vivas) la lleva a la noche, y un degradado a la izquierda le da fondo a la tarjeta */
.cierre .foto { filter: brightness(.62) saturate(.85); }
.velo-cierre { background: linear-gradient(rgba(14, 20, 30, .45), transparent 26%), linear-gradient(to right, rgba(14, 20, 30, .45), transparent 55%), rgba(22, 34, 56, .42); mix-blend-mode: multiply; }
.cierre-tarjeta { left: var(--borde); bottom: 8svh; width: 480px; padding: 36px 36px 32px; }
.cierre-tarjeta h2 { font-size: 48px; line-height: 1.05; letter-spacing: -.01em; }
.cierre-tarjeta h2 span { display: block; padding-left: 44px; white-space: nowrap; }
.boton-cierre { margin-top: 28px; background: var(--mostaza); color: var(--noche); }
.boton-cierre:hover { background: var(--mostaza-alta); }
.datos { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 28px; margin-top: 28px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--loza) 22%, transparent); }
.datos dt { font: 700 11px/1 var(--txt); letter-spacing: .16em; text-transform: uppercase; color: var(--mostaza); }
.datos dd { margin-top: 6px; font-size: 14px; }

/* ===================== La libreta ===================== */
.libreta { border: 0; padding: 0; background: transparent; color: var(--noche); width: min(560px, calc(100% - 32px)); max-height: calc(100svh - 32px); margin: auto; overflow: visible; }
/* Con la libreta abierta, la página de atrás queda quieta y solo scrollea la libreta */
html.libreta-abierta { overflow: hidden; scrollbar-gutter: stable; }
.hoja-libreta { overscroll-behavior: contain; }
.libreta::backdrop { background: rgba(14, 20, 30, .64); }
html.vivo .libreta[open] .hoja-libreta { animation: libreta .5s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes libreta { from { opacity: 0; transform: translateY(26px) rotate(-3deg); } }
.hoja-libreta { position: relative; padding: 36px 40px 30px; rotate: -1.2deg; max-height: calc(100svh - 32px); overflow-y: auto; background: var(--loza-fondo); }
.cerrar { position: absolute; right: 18px; top: 16px; font-size: 14px; font-weight: 700; padding: 6px; }
.cerrar:hover { color: var(--mostaza-tinta); }
.libreta h2 { font-size: 36px; line-height: 1.05; }
.libreta-sub { margin-top: 4px; font-size: 14px; color: var(--noche-2); }
.campo { display: block; border: 0; margin-top: 22px; }
.campo > span, .campo legend { display: block; font: 700 11px/1 var(--txt); letter-spacing: .16em; text-transform: uppercase; color: var(--noche-2); margin-bottom: 8px; }
.campo select, .campo input[type="text"] {
  width: 100%; min-height: 44px; padding: 6px 2px; background: transparent; border: 0; border-bottom: 1.5px solid var(--noche-2); border-radius: 0;
  font: 400 17px/1.3 var(--txt); color: var(--noche);
}
.campo select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%234A5566' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 4px center / 12px 8px no-repeat; padding-right: 24px; }
.campo select option { color: var(--noche); background: var(--loza); }
.campo select:focus-visible, .campo input:focus-visible { outline: 2px solid var(--mostaza-tinta); outline-offset: 2px; border-radius: 2px; }
.campo input[aria-invalid="true"] { border-bottom-color: var(--mostaza-tinta); }
.error { display: block; min-height: 1.4em; margin-top: 6px; font-size: 13px; font-weight: 700; color: #8A2E17; }
.dias-libreta, .turnos { display: flex; flex-wrap: wrap; gap: 6px 4px; }
.dias-libreta label, .turnos label { position: relative; cursor: pointer; }
.dias-libreta input, .turnos input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.dias-libreta span, .turnos span { display: block; padding: 8px 12px; font-size: 15px; line-height: 1.2; border-radius: 999px; transition: background-color .2s; white-space: nowrap; }
.dias-libreta label:hover span, .turnos label:hover span { background: color-mix(in srgb, var(--mostaza-tinta) 8%, transparent); }
/* Lo elegido, rodeado a mano (el mismo trazo que el día de hoy en el horario) */
.dias-libreta input:checked + span, .turnos input:checked + span {
  font-weight: 700; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40' preserveAspectRatio='none'%3E%3Cpath d='M9 22 C 6 8, 62 2, 91 10 C 104 15, 96 34, 50 35 C 17 36, 1 28, 13 13' fill='none' stroke='%238A6417' stroke-width='2.25' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.dias-libreta input:focus-visible + span, .turnos input:focus-visible + span { outline: 2px solid var(--mostaza-tinta); outline-offset: 2px; }
.libreta-form > .boton { margin-top: 26px; }
.libreta-nota { margin-top: 12px; font-size: 13px; color: var(--noche-2); }
.aviso h2 { outline: none; }
.aviso p { margin-top: 12px; font-size: 16px; color: var(--noche-2); max-width: 46ch; }
.aviso .boton { margin-top: 22px; }
/* Sin JS, la libreta se abre con :target */
html:not(.js) .libreta:target { display: block; position: fixed; inset: 0; z-index: 50; }

/* ===================== 7. Pie ===================== */
.pie { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; padding: 40px var(--borde) 64px; background: var(--noche); color: var(--loza); font-size: 14px; }
.pie-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 27px; font-weight: 500; margin-right: auto; }
.pie a { font-weight: 700; }

.demo-escena { display: none; }
.demo-fijo { position: fixed; left: 12px; bottom: 12px; z-index: 29; font: 700 12px/1 var(--txt); color: var(--loza); background: rgba(19, 27, 38, .88); padding: 6px 10px; border-radius: 999px; pointer-events: none; }

/* ===================== Hasta 1100 px: la carta abre las tarjetas debajo ===================== */
@media (max-width: 1100px) {
  .tarjetas { position: static; translate: none; width: min(560px, 100%); margin: 28px auto 0; grid-template-columns: auto 1fr; align-items: start; gap: 16px; }
  .tarjeta-ficha { margin: 18px 0 0; }
  .carta-escena { display: block; }
  .hoja-carta { margin: 0 auto; }
  .carta-escena.abierta .hoja-carta { translate: none; rotate: none; }
}

/* ===================== Celular ===================== */
@media (max-width: 760px) {
  .barra { padding: 14px 16px 30px; grid-template-columns: 1fr auto; }
  .barra.sobre-papel { padding-bottom: 14px; }
  .barra-enlaces, .barra-hoy { display: none; }
  .logo span { font-size: 25px; }
  .jarra { width: 17px; height: 24px; }
  .barra-reservar { padding: 9px 15px; font-size: 13px; }
  .ilustrativa { left: auto; right: 16px; bottom: 16px; }

  .portada-tarjeta { left: 16px; right: 16px; top: auto; bottom: 52px; translate: none; width: auto; padding: 22px 22px 24px; }
  .portada-tarjeta h1 { font-size: 40px; margin-top: 14px; }
  .portada-tarjeta h1 span + span { padding-left: 32px; }
  .portada-tarjeta p:last-child { font-size: 14px; }
  .epigrafe { display: none; }
  .pizarra { right: auto; left: 50%; top: 22%; translate: -50% 0; width: min(300px, calc(100vw - 48px)); }
  html:not(.vivo) .pizarra { position: relative; left: auto; top: auto; translate: none; margin: 0 auto; }

  .carta-escena { padding: 96px 12px 96px; }
  .hoja-carta { padding: 26px 20px 22px; transform: rotateX(var(--rx, 3deg)) rotateZ(-.6deg); }
  .hoja-cabeza { flex-wrap: wrap; }
  .carta-cols { grid-template-columns: 1fr; }
  .tarjetas { grid-template-columns: 1fr; justify-items: center; }
  .tarjeta-dibujo { rotate: -1.5deg; }
  .tarjeta-ficha { rotate: .8deg; }

  .frase { left: 16px; top: 22%; font-size: 42px; }
  /* En celular la frase cae sobre los visillos claros de la puerta del fondo: la parte de arriba de la escena, más oscura */
  .velo-mesa { background: linear-gradient(rgba(14, 20, 30, .66), rgba(14, 20, 30, .42) 30%, rgba(14, 20, 30, 0) 50%); }
  html:not(.vivo) .mesa .zoom img { transform-origin: 58.3% 82%; scale: 1.6; }

  .llegar-dentro { padding: 104px 16px 112px; }
  .llegar-hojas { flex-direction: column; align-items: center; gap: 28px; margin-top: 36px; }
  .hoja-horario, .hoja-plano { width: min(400px, 100%); margin-top: 0; transform: rotateX(var(--rx, 3deg)); }
  .hoja-horario { rotate: .8deg; padding: 24px 20px 20px; }
  .hoja-plano { rotate: -.8deg; }
  .dias li { gap: 10px; }
  .dias li > span:not(:first-child) { min-width: 0; }

  .cierre-tarjeta { left: 16px; right: 16px; top: auto; bottom: 48px; translate: none; width: auto; padding: 26px 22px 24px; }
  .cierre-tarjeta h2 { font-size: 38px; }
  .cierre-tarjeta h2 span { padding-left: 30px; }
  .datos { grid-template-columns: repeat(3, auto); gap: 8px 18px; }

  .libreta { width: 100%; max-width: none; height: 100svh; max-height: none; margin: 0; }
  .hoja-libreta { rotate: none; min-height: 100svh; max-height: 100svh; padding: 28px 20px 28px; border-radius: 0; }
  .pie { flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 40px; }
  /* En celular el aviso fijo tapaba botones: queda en la portada (abajo a la izquierda) y en el pie */
  .demo-fijo { display: none; }
  .demo-escena { display: block; position: absolute; z-index: 3; left: 12px; bottom: 12px; font: 700 12px/1 var(--txt); color: var(--loza); background: rgba(19, 27, 38, .88); padding: 6px 10px; border-radius: 999px; }
}
