/* ==========================================================================
   La Tavola di Ardito — estilos
   Colores y tipografías tomados del manual de marca.
   ========================================================================== */

:root {
  --azul: #0D288E;
  --azul-hondo: #081a5e;
  --dorado: #FCB04C;
  --naranja: #F66D01;
  --crema: #FDF3EA;
  --crema-sombra: #F3E3D2;
  --negro: #0C0C0C;
  --tostado: #3A2418;
  --tostado-suave: #6B4A38;
  --blanco: #FFFFFF;

  --f-titular: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-relato: "Fraunces", Georgia, "Times New Roman", serif;
  --f-ui: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ancho: 1240px;
  --margen: clamp(20px, 5vw, 64px);
  --cabecera: 76px;

  /* banda de triángulos (horizontal y vertical) */
  --tri-h: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='24' viewBox='0 0 36 24'%3E%3Crect width='36' height='24' fill='%23F66D01'/%3E%3Cpath d='M0 24 18 0 36 24Z' fill='%23FCB04C' stroke='%230C0C0C' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M0 .8H36M0 23.2H36' stroke='%230C0C0C' stroke-width='1.6'/%3E%3C/svg%3E");
  --tri-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='36' viewBox='0 0 24 36'%3E%3Crect width='24' height='36' fill='%23F66D01'/%3E%3Cpath d='M24 0 0 18 24 36Z' fill='%23FCB04C' stroke='%230C0C0C' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M.8 0V36M23.2 0V36' stroke='%230C0C0C' stroke-width='1.6'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--cabecera); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--azul);
  color: var(--crema);
  font-family: var(--f-relato);
  font-size: clamp(17px, 1.05vw + 12px, 20px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--dorado); outline-offset: 3px; border-radius: 2px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.saltar {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--dorado); color: var(--negro);
  padding: 10px 16px; font-family: var(--f-ui); font-weight: 600; text-decoration: none; border-radius: 4px;
}
.saltar:focus { top: 16px; }

/* grano de papel sobre toda la página, como las piezas impresas del manual */
.grano-fijo {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .09; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- piezas comunes ---------- */
.etiqueta {
  font-family: var(--f-ui); font-size: .76rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--naranja);
}
.etiqueta--clara { color: var(--dorado); }
.etiqueta--dorada { color: var(--dorado); }

.titulo-grande {
  font-family: var(--f-titular); font-weight: 500;
  font-size: clamp(2.6rem, 6.2vw, 5.6rem); line-height: 1.02; letter-spacing: -.01em;
}

.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--f-ui); font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  padding: .85em 1.5em; border-radius: 999px; text-decoration: none; cursor: pointer;
  transition: transform .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}
.boton:hover { transform: translateY(-2px); }
.boton--dorado { background: var(--dorado); color: var(--negro); }
.boton--dorado:hover { background: var(--naranja); color: var(--blanco); }
.boton--linea { border: 1.5px solid rgba(253, 243, 234, .55); color: var(--crema); }
.boton--linea:hover { border-color: var(--dorado); color: var(--dorado); }

/* ---------- banda de triángulos ---------- */
.banda {
  position: relative; z-index: 3; height: 24px; overflow: hidden;
  border-top: 2px solid var(--negro); border-bottom: 2px solid var(--negro);
  background: var(--naranja);
}
.banda__pista {
  position: absolute; inset: 0 auto 0 0; width: calc(200% + 72px);
  background: var(--tri-h) repeat-x left center / 36px 24px;
  will-change: transform;
}
.banda--invertida .banda__pista { transform: scaleX(-1); }

/* ==========================================================================
   Encabezado
   ========================================================================== */
.cabecera {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--cabecera);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--margen);
  transition: background-color .4s ease, box-shadow .4s ease, height .4s ease;
}
/* sobre la portada, el menú queda dentro del marco de triángulos */
.cabecera:not(.solida) { top: 40px; padding: 0 calc(var(--margen) + 20px); }
.cabecera { transition: background-color .4s ease, box-shadow .4s ease, height .4s ease, top .4s ease, padding .4s ease; }
.cabecera.solida {
  background: rgba(13, 40, 142, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(252, 176, 76, .25), 0 12px 30px rgba(8, 26, 94, .35);
  height: 64px;
}
.cabecera__marca {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  font-family: var(--f-titular); font-size: 1.15rem; font-weight: 500; color: var(--dorado);
}
.cabecera__marca img { width: 44px; height: 44px; }
.cabecera__marca span { opacity: 0; transform: translateX(-8px); transition: opacity .4s ease, transform .4s ease; }
.cabecera.solida .cabecera__marca span { opacity: 1; transform: none; }

.cabecera__nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.cabecera__nav a {
  font-family: var(--f-ui); font-size: .92rem; font-weight: 500; text-decoration: none; color: var(--crema);
  position: relative; padding: 6px 0;
}
.cabecera__nav a:not(.cabecera__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--dorado);
  transform: scaleX(0); transform-origin: right; transition: transform .35s ease;
}
.cabecera__nav a:not(.cabecera__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.cabecera__cta {
  padding: 8px 18px !important; border-radius: 999px; background: var(--dorado); color: var(--negro) !important; font-weight: 600 !important;
  transition: background-color .25s ease, color .25s ease;
}
.cabecera__cta:hover { background: var(--naranja); color: var(--blanco) !important; }

.cabecera__menu {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative;
}
.cabecera__menu span:not(.sr) {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--dorado); transition: transform .3s ease;
}
.cabecera__menu span:nth-child(1) { top: 17px; }
.cabecera__menu span:nth-child(2) { top: 25px; }
.cabecera__menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.cabecera__menu[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.menu-movil {
  position: fixed; inset: 0; z-index: 45; background: var(--azul);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
}
.menu-movil a { font-family: var(--f-titular); font-size: 2.2rem; color: var(--dorado); text-decoration: none; }

/* ==========================================================================
   Portada
   ========================================================================== */
.portada {
  position: relative; min-height: 100svh; min-height: max(100svh, 640px);
  display: grid; place-items: center; overflow: hidden; isolation: isolate;
  background: var(--azul) url("../assets/img/textura-azul.webp") repeat;
  background-size: 512px;
}
.portada__marco {
  position: absolute; inset: 14px; z-index: 0; pointer-events: none;
  border: 2px solid var(--negro);
  background:
    var(--tri-h) repeat-x left top / 36px 24px,
    var(--tri-h) repeat-x left bottom / 36px 24px,
    var(--tri-v) repeat-y left top / 24px 36px,
    var(--tri-v) repeat-y right top / 24px 36px;
}
.portada__marco::after {
  content: ""; position: absolute; inset: 24px; border: 2px solid var(--negro);
  background: var(--azul) url("../assets/img/textura-azul.webp") repeat; background-size: 512px;
}

.portada__granos { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.grano {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: auto;
  rotate: var(--r); filter: drop-shadow(0 24px 30px rgba(3, 10, 40, .45));
  will-change: transform;
}

.portada__centro {
  position: relative; z-index: 2; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--cabecera) + 20px) 24px 120px;
}
.portada__logo { width: clamp(220px, 30vw, 420px); }
.portada__logo img { width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(3, 10, 40, .45)); }
.portada__lema {
  margin-top: clamp(14px, 2vw, 26px);
  font-family: var(--f-titular); font-style: italic; font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.7rem); color: var(--crema); letter-spacing: .01em;
}
.portada__sub {
  margin-top: 12px; font-family: var(--f-ui); font-size: clamp(.72rem, .9vw, .82rem);
  letter-spacing: .24em; text-transform: uppercase; color: var(--dorado);
}
.portada__sub i { font-style: normal; margin: 0 .6em; opacity: .7; }

.portada__bajar {
  position: absolute; z-index: 2; left: 50%; bottom: 52px; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--f-ui); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--crema);
}
.portada__bajar svg { width: 22px; height: 36px; fill: none; stroke: var(--dorado); stroke-width: 2; }
.portada__bajar .rueda { fill: var(--dorado); stroke: none; animation: rueda 1.8s ease-in-out infinite; }
@keyframes rueda { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ==========================================================================
   Historia — reproduce las páginas del manual: naranja con lomo azul
   ========================================================================== */
.historia { position: relative; background: var(--naranja); }
.historia__fijo {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: clamp(64px, 8vw, 128px) 1fr;
}
.historia__lomo {
  position: relative; background: var(--azul) url("../assets/img/textura-azul.webp") repeat; background-size: 512px;
  overflow: hidden;
}
.lomo__titulo {
  position: absolute; left: 50%; top: clamp(90px, 14vh, 150px);
  writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg);
  font-family: var(--f-titular); font-weight: 500; font-size: clamp(2rem, 3.6vw, 3.4rem);
  color: var(--blanco); white-space: nowrap; line-height: 1;
}
.historia__escena {
  position: relative;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center;
  gap: clamp(24px, 5vw, 90px);
  padding: calc(var(--cabecera) + 30px) var(--margen) 70px clamp(24px, 5vw, 80px);
  background-image: radial-gradient(ellipse at 70% 40%, rgba(252, 176, 76, .35), transparent 60%);
}
.historia__cuadros { position: relative; display: grid; place-items: center; min-height: 440px; }
.cuadro {
  margin: 0; width: clamp(200px, 24vw, 340px); position: relative;
  transform-origin: 50% -34px;
  filter: drop-shadow(0 26px 30px rgba(58, 36, 24, .38));
}
.cuadro img { width: 100%; height: auto; }
.cuadro__hilo {
  position: absolute; left: 50%; top: -34px; width: 34%; height: 40px; translate: -50% 0;
  border: 2px solid var(--negro); border-bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.cuadro__hilo::before {
  content: ""; position: absolute; left: 50%; top: -7px; width: 8px; height: 8px; translate: -50% 0;
  border-radius: 50%; background: var(--negro);
}

.capitulo { max-width: 34ch; color: var(--tostado); }
.capitulo__num {
  font-family: var(--f-ui); font-size: .76rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--azul);
}
.capitulo__titulo {
  margin: 16px 0 22px;
  font-family: var(--f-titular); font-weight: 500; font-size: clamp(2.1rem, 4.2vw, 3.8rem); line-height: 1.04;
  color: var(--negro);
}
.capitulo p:not(.capitulo__num) { font-size: clamp(1.08rem, 1.3vw, 1.3rem); line-height: 1.55; font-weight: 400; }
.capitulo strong { font-weight: 600; color: var(--azul); }

.historia__progreso {
  position: absolute; right: var(--margen); bottom: 40px; margin: 0; padding: 0; list-style: none;
  display: flex; gap: 10px;
}
.historia__progreso li { width: 34px; height: 3px; background: rgba(12, 12, 12, .2); border-radius: 2px; overflow: hidden; }
.historia__progreso li::after { content: ""; display: block; height: 100%; background: var(--azul); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* sin animación: capítulos uno debajo de otro, todos visibles */
html:not(.anim) .lomo__titulo:not(:first-child),
html:not(.anim) .cuadro:not(:first-child),
html:not(.anim) .historia__progreso { display: none; }
html:not(.anim) .historia__textos { display: grid; gap: 56px; }

/* con animación: capas superpuestas controladas por la línea de tiempo */
html.anim .historia__fijo { height: 100svh; }
html.anim .lomo__titulo { opacity: 0; }
html.anim .lomo__titulo[data-cap="0"] { opacity: 1; }
html.anim .historia__cuadros { min-height: 0; height: 100%; }
html.anim .cuadro { position: absolute; opacity: 0; }
html.anim .cuadro[data-cap="0"] { opacity: 1; }
html.anim .historia__textos { position: relative; height: 100%; display: grid; align-items: center; }
html.anim .capitulo { grid-area: 1 / 1; opacity: 0; }
html.anim .capitulo[data-cap="0"] { opacity: 1; }

/* ==========================================================================
   Frase
   ========================================================================== */
.frase {
  position: relative; overflow: hidden; text-align: center;
  background: var(--crema) url("../assets/img/textura-crema.webp") repeat; background-size: 512px;
  padding: clamp(120px, 18vw, 240px) var(--margen);
}
.frase__texto {
  max-width: 17ch; margin: 0 auto;
  font-family: var(--f-titular); font-style: italic; font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 6.4rem); line-height: 1.04; color: var(--azul);
}
.frase__texto .palabra { display: inline-block; }
.frase__firma {
  margin-top: 36px; font-family: var(--f-ui); font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--tostado-suave);
}
.frase__grano { position: absolute; width: clamp(80px, 10vw, 170px); filter: drop-shadow(0 20px 26px rgba(58, 36, 24, .25)); }
.frase__grano--a { left: 7%; top: 16%; rotate: -30deg; }
.frase__grano--b { right: 9%; bottom: 14%; rotate: 40deg; width: clamp(60px, 7vw, 120px); }

/* ==========================================================================
   Nuestro café
   ========================================================================== */
.cafe {
  background: var(--crema) url("../assets/img/textura-crema.webp") repeat; background-size: 512px;
  color: var(--tostado);
  padding: clamp(40px, 6vw, 80px) 0 clamp(100px, 12vw, 180px);
}
.cafe__intro { max-width: var(--ancho); margin: 0 auto; padding: 0 var(--margen); }
.cafe__intro .titulo-grande { color: var(--negro); margin: 14px 0 24px; max-width: 12ch; }
.cafe__lead { max-width: 52ch; font-size: clamp(1.08rem, 1.3vw, 1.28rem); }

.cafe__revelado { margin: clamp(56px, 7vw, 100px) 0; padding: 0 var(--margen); }
.cafe__mascara {
  max-width: 1480px; margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px;
  background: var(--tostado);
}
.cafe__mascara img { width: 100%; height: 100%; object-fit: cover; }

.cafe__oferta {
  max-width: var(--ancho); margin: 0 auto; padding: 0 var(--margen);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: start;
}
.oferta--desfase { margin-top: clamp(0px, 12vw, 180px); }
.oferta__foto { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 12px; margin-bottom: 26px; background: var(--crema-sombra); }
.oferta__foto img { width: 100%; height: 118%; object-fit: cover; margin-top: -9%; }
.oferta h3 { margin: 8px 0 12px; font-family: var(--f-titular); font-weight: 500; font-size: clamp(1.8rem, 2.8vw, 2.6rem); color: var(--negro); }
.oferta p:last-child { max-width: 40ch; }

/* ==========================================================================
   El lugar — de día a noche
   ========================================================================== */
.lugar { position: relative; background: var(--azul-hondo); }
.lugar__fijo { position: relative; height: 100svh; overflow: hidden; }
.lugar__fotos, .lugar__foto, .lugar__velo { position: absolute; inset: 0; }
.lugar__foto { width: 100%; height: 100%; object-fit: cover; }
.lugar__foto--noche { opacity: 0; }
.lugar__velo { background: linear-gradient(180deg, rgba(8, 26, 94, .15) 0%, rgba(8, 26, 94, .05) 40%, rgba(5, 12, 40, .78) 100%); }
.lugar__texto {
  position: absolute; left: var(--margen); right: var(--margen); bottom: clamp(48px, 8vh, 90px); z-index: 2;
  color: var(--crema);
}
.lugar__texto .titulo-grande { position: relative; margin-top: 12px; display: grid; }
.lugar__linea { grid-area: 1 / 1; text-shadow: 0 6px 30px rgba(0, 0, 0, .35); }
.lugar__linea--noche { opacity: 0; color: var(--dorado); }
.lugar__reloj {
  position: absolute; right: var(--margen); top: calc(var(--cabecera) + 24px); z-index: 2;
  font-family: var(--f-ui); font-weight: 600; font-size: .95rem; letter-spacing: .12em;
  color: var(--negro); background: var(--dorado); padding: 8px 16px; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
html:not(.anim) .lugar__reloj { display: none; }

/* ==========================================================================
   Interior
   ========================================================================== */
.interior {
  background: var(--azul) url("../assets/img/textura-azul.webp") repeat; background-size: 512px;
  padding: clamp(90px, 12vw, 170px) var(--margen);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: center;
  max-width: 100%;
}
.interior__foto { margin: 0; overflow: hidden; border-radius: 12px; background: var(--azul-hondo); }
.interior__foto img { width: 100%; height: 120%; object-fit: cover; margin-top: -10%; }
.interior__foto--grande { grid-column: 1 / span 7; aspect-ratio: 4 / 3; }
.interior__texto { grid-column: 8 / span 5; }
.interior__cita {
  margin-top: 18px; font-family: var(--f-titular); font-weight: 400; font-style: italic;
  font-size: clamp(1.7rem, 2.8vw, 2.6rem); line-height: 1.18; color: var(--crema);
}
.interior__foto--chica { grid-column: 6 / span 5; aspect-ratio: 3 / 2; margin-top: clamp(20px, 4vw, 60px); }

/* ==========================================================================
   Visítanos
   ========================================================================== */
.visita {
  background: var(--azul-hondo);
  padding: clamp(100px, 13vw, 180px) var(--margen) clamp(90px, 11vw, 150px);
  position: relative; overflow: hidden;
}
.visita__cabeza { max-width: var(--ancho); margin: 0 auto clamp(40px, 6vw, 70px); position: relative; }
.visita__cabeza .titulo-grande { color: var(--dorado); margin-top: 10px; }
.visita__sello {
  position: absolute; right: 0; top: 50%; translate: 0 -50%;
  width: clamp(120px, 16vw, 220px); height: auto; opacity: .95;
}
.visita__grilla {
  max-width: var(--ancho); margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px);
}
.tarjeta {
  border: 1.5px solid rgba(252, 176, 76, .35); border-radius: 16px;
  padding: clamp(24px, 3vw, 38px); background: rgba(13, 40, 142, .45);
}
.tarjeta__titulo { font-family: var(--f-ui); font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--dorado); }
.tarjeta__direccion { margin-top: 16px; font-style: normal; font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.45; }
.tarjeta__direccion strong { display: block; font-family: var(--f-titular); font-weight: 500; font-size: 1.3em; color: var(--blanco); }
.tarjeta__botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.horario { margin: 16px 0 0; display: grid; gap: 0; }
.horario div {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid rgba(253, 243, 234, .15);
}
.horario div:last-child { border-bottom: 0; }
.horario dt { font-family: var(--f-ui); font-size: .98rem; }
.horario dd { margin: 0; font-family: var(--f-ui); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--blanco); }
.horario div.hoy dt, .horario div.hoy dd { color: var(--dorado); }
.horario__estado { margin-top: 18px; font-family: var(--f-ui); font-size: .9rem; display: flex; align-items: center; gap: 10px; }
.horario__estado::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.horario__estado.abierto { color: #7fd99a; }
.horario__estado.cerrado { color: #ffb4a0; }

.visita__mapa {
  grid-column: 1 / -1; aspect-ratio: 21 / 8; min-height: 300px; border-radius: 16px; overflow: hidden;
  border: 1.5px solid rgba(252, 176, 76, .35); background: var(--azul);
}
.visita__mapa iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.85) contrast(1.02); }

/* ==========================================================================
   Pie
   ========================================================================== */
.pie { background: var(--negro); }
.pie__cuerpo { padding: clamp(60px, 8vw, 100px) var(--margen) 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pie__logo { width: 150px; height: auto; }
.pie__lema { font-family: var(--f-titular); font-style: italic; font-size: 1.5rem; color: var(--crema); }
.pie__legal { margin-top: 26px; font-family: var(--f-ui); font-size: .8rem; color: rgba(253, 243, 234, .55); }

/* ==========================================================================
   Adaptación a pantallas pequeñas
   ========================================================================== */
@media (max-width: 900px) {
  .cabecera__nav { display: none; }
  .cabecera__menu { display: block; }
  .cabecera__marca span { opacity: 1; transform: none; font-size: 1rem; }

  .portada__marco { inset: 8px; }
  .portada__bajar { bottom: 36px; }

  .historia__fijo { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .historia__lomo { height: 64px; }
  .lomo__titulo { writing-mode: horizontal-tb; transform: translate(-50%, -50%); top: 50%; font-size: 1.7rem; }
  .historia__escena { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 12px; padding: 36px var(--margen) 64px; }
  .historia__cuadros { min-height: 250px; }
  html.anim .historia__cuadros { height: 250px; }
  .cuadro { width: clamp(150px, 42vw, 210px); }
  html.anim .historia__textos { align-items: start; }
  .historia__progreso { right: auto; left: var(--margen); bottom: 26px; }

  .cafe__oferta { grid-template-columns: 1fr; }
  .oferta--desfase { margin-top: 0; }

  .interior { grid-template-columns: 1fr; }
  .interior__foto--grande, .interior__texto, .interior__foto--chica { grid-column: 1; }

  .visita__grilla { grid-template-columns: 1fr; }
  .visita__sello { position: static; translate: none; margin-bottom: 18px; width: 110px; }
  .visita__mapa { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
