/* Paleta y tipografías del manual de marca de Las Tranqueras */

@font-face { font-family: "Bitter"; src: url("assets/fuentes/Bitter800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fuentes/BarlowCond600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fuentes/BarlowCond700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fuentes/Barlow400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fuentes/Barlow600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --tronco: #2b1e16;
  --nieve: #f2ede3;
  --alamo: #c9962b;
  --alamo-claro: #e5bb5e;
  --cipres: #2f4a3a;
  --cipres-oscuro: #243a2d;
  --titulo: "Bitter", Georgia, serif;
  --dato: "Barlow Condensed", "Arial Narrow", sans-serif;
  --texto: "Barlow", system-ui, sans-serif;
  --borde: clamp(16px, 2.6vw, 40px);
  --barra: 64px;
}

* { box-sizing: border-box; }

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--tronco);
  color: var(--nieve);
  font-family: var(--texto);
  font-size: 18px;
  line-height: 1.45;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { touch-action: manipulation; color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--alamo-claro); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--titulo); font-weight: 800; letter-spacing: -0.015em; }
.sello { aspect-ratio: 1; }


/* Barra fija: mínima, para que manden las imágenes */

.barra-sup {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  height: calc(var(--barra) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--borde) 0;
  background: linear-gradient(rgb(43 30 22 / 0.72), rgb(43 30 22 / 0));
}
.barra-enlaces { display: flex; gap: 18px; }
.barra-enlaces a {
  display: block;
  padding: 10px 0;
  font-family: var(--dato);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
}
.barra-enlaces a:active { color: var(--alamo-claro); }

.abrir-menu, .cerrar-menu {
  position: relative;
  justify-self: end;
  width: 44px;
  height: 44px;
  margin-right: -6px;
  padding: 0;
  background: none;
  border: 0;
}
.abrir-menu span, .cerrar-menu span {
  position: absolute;
  left: 6px;
  right: 6px;
  height: 2px;
  background: currentColor;
  transition: transform 160ms ease-out;
}
.abrir-menu span:first-child { top: 18px; }
.abrir-menu span:last-child { top: 25px; }
.abrir-menu:active span:first-child { transform: translateY(2px); }
.abrir-menu:active span:last-child { transform: translateY(-2px); }

/* Menú a pantalla completa */

.menu {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  background: var(--tronco);
  color: var(--nieve);
  border: 0;
}
.menu::backdrop { background: var(--tronco); }
.menu[open] { animation: menu-entra 220ms cubic-bezier(0.23, 1, 0.32, 1); }
.menu[open] nav a { animation: enlace-entra 320ms cubic-bezier(0.23, 1, 0.32, 1) both; }
.menu[open] nav a:nth-child(2) { animation-delay: 30ms; }
.menu[open] nav a:nth-child(3) { animation-delay: 60ms; }
.menu[open] nav a:nth-child(4) { animation-delay: 90ms; }
.menu[open] nav a:nth-child(5) { animation-delay: 120ms; }
@keyframes menu-entra { from { opacity: 0; } to { opacity: 1; } }
@keyframes enlace-entra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.cerrar-menu {
  position: absolute;
  z-index: 1;
  top: calc(10px + env(safe-area-inset-top, 0px));
  right: var(--borde);
}
.cerrar-menu span { top: 21px; }
.cerrar-menu span:first-child { transform: rotate(45deg); }
.cerrar-menu span:last-child { transform: rotate(-45deg); }

.menu-interior {
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  gap: 24px;
  min-height: 100%;
  padding: calc(var(--barra) + 8px + env(safe-area-inset-top, 0px)) var(--borde) calc(24px + env(safe-area-inset-bottom, 0px));
}
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  font-family: var(--titulo);
  font-weight: 800;
  font-size: clamp(38px, min(8.4vh, 14vw), 96px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-decoration: none;
  transition: color 120ms;
}
.menu nav a:active { color: var(--alamo-claro); }
.menu-lugar { display: flex; align-items: center; gap: 20px; }
.menu-lugar .sello { flex: none; width: 120px; }
.menu-lugar p { font-size: 17px; }
.menu-lugar em { font-style: normal; color: var(--alamo-claro); }

/* Logo fijo: grande arriba al llegar; al primer scroll se retrae a la barra, como en la referencia */

.logo-fijo {
  --curva-logo: linear(0, 0.17 15%, 0.51 28%, 0.77 42%, 0.9 55%, 0.96 68%, 0.99 82%, 1);
  position: fixed;
  z-index: 31;
  top: calc(var(--barra) + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  width: min(calc(100vw - 2 * var(--borde)), 130svh);
  margin: 0 auto;
  aspect-ratio: 640 / 150;
  color: var(--nieve);
  transform-origin: 0 0;
  pointer-events: none;
  transition: transform 800ms cubic-bezier(0.3, 0.6, 0.2, 1);
  /* Curva medida en la referencia: tiempo y avance reales del logo al achicarse */
  transition-timing-function: var(--curva-logo);
}
.minimizado .logo-fijo {
  transform: translate(var(--logo-x, 0), var(--logo-y, 0)) scale(var(--logo-s, 1));
  pointer-events: auto;
}
.logo-cuerpo { position: relative; display: block; width: 100%; height: 100%; transform-origin: 50% 0; }
.logo-marca { position: relative; display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 2px 14px rgb(20 12 8 / 0.4)); }
.logo-nombre { font-family: var(--titulo); font-weight: 800; font-size: 67.5px; letter-spacing: -0.2px; fill: currentColor; }
.logo-lugar {
  font-family: var(--dato);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 11px;
  fill: currentColor;
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transition: transform 800ms cubic-bezier(0.3, 0.6, 0.2, 1);
  transition-timing-function: var(--curva-logo);
}

/* Al retraerse, los colores de la línea se disipan de punta a punta y Epuyén sube a ocupar su lugar */
.tramo { transition: opacity 380ms ease-out; }
.tramo:nth-child(1), .tramo:nth-child(6) { transition-delay: 0ms; }
.tramo:nth-child(2), .tramo:nth-child(5) { transition-delay: 70ms; }
.tramo:nth-child(3), .tramo:nth-child(4) { transition-delay: 140ms; }
.minimizado .tramo { opacity: 0; }
.minimizado .logo-lugar { transform: translateY(-38px) scale(1.5); }

/* La luz del atardecer sobre la marca: un halo que respira y un destello que cruza el nombre */
.logo-halo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: #ffc98a;
  filter: blur(26px);
  opacity: 0.3;
  transition: opacity 240ms ease-out;
}
.logo-destello { opacity: 0.8; transition: opacity 240ms ease-out; }
.minimizado .logo-halo, .minimizado .logo-destello { opacity: 0; }

/* Portada */

.portada {
  position: relative;
  height: 100svh;
  overflow: hidden;
  background: var(--tronco);
}
picture { display: contents; }
.escena { position: absolute; inset: 0; overflow: hidden; transform-origin: 50% 50%; will-change: transform; }
.escena-foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 50%;
  filter: saturate(1.08) contrast(1.03);
}
.escena::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgb(43 30 22 / 0.46), rgb(43 30 22 / 0.12) 34%, rgb(43 30 22 / 0) 50%, rgb(43 30 22 / 0.66));
  pointer-events: none;
}
#rayos { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; pointer-events: none; }

.portada-contenido {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 var(--borde) calc(28px + env(safe-area-inset-bottom, 0px));
}
h1 { font-size: clamp(40px, 11vw, 72px); line-height: 1.02; text-shadow: 0 2px 24px rgb(20 12 8 / 0.45); }
.portada-contenido p { margin-top: 12px; max-width: 24em; font-size: clamp(18px, 1.5vw, 21px); font-weight: 600; line-height: 1.3; text-shadow: 0 1px 14px rgb(20 12 8 / 0.6); }
.portada-contenido .aviso { font-family: var(--dato); font-weight: 600; font-size: 14px; letter-spacing: 0.03em; }
.portada-pedido {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  margin-top: 16px;
  padding: 0 20px;
  background: var(--cipres);
  color: var(--nieve);
  border: 1.5px solid var(--nieve);
  border-radius: 28px;
  font-weight: 600;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 100ms ease-out, background 100ms;
}
.portada-pedido:active { transform: scale(0.97); background: var(--cipres-oscuro); }

@media (prefers-reduced-motion: no-preference) {
  /* Entrada medida en la referencia: la foto baja de 1,5 a 1 y los textos suben 100 px */
  .escena-foto { animation: foto-entra 1700ms cubic-bezier(0.22, 1, 0.36, 1) both; }
  .logo-cuerpo { animation: logo-entra 1300ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  .aparece { animation: subir 1100ms cubic-bezier(0.22, 1, 0.36, 1) both; }
  .aparece-tarde { animation-delay: 650ms; }
  .logo-halo { animation: respirar 5s 1400ms ease-in-out infinite; }
  .logo-destello { animation: destello 7s 1500ms cubic-bezier(0.45, 0, 0.55, 1) infinite; }
  .minimizado .logo-halo, .minimizado .logo-destello { animation: none; }
}
@keyframes foto-entra { from { transform: scale(1.5); } to { transform: scale(1); } }
@keyframes logo-entra { from { opacity: 0; transform: scale(0.82); } 25% { opacity: 1; } to { opacity: 1; transform: scale(1); } }
@keyframes subir { from { opacity: 0; transform: translateY(100px); } to { opacity: 1; transform: none; } }
@keyframes respirar { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.42; } }
@keyframes destello { 0% { transform: translateX(0); } 32%, 100% { transform: translateX(1040px); } }

/* Todo lo que sigue tapa la portada al subir */

main, .pie { position: relative; z-index: 1; background: var(--tronco); }

/* La familia: la frase queda quieta y las imágenes le pasan por detrás */

.manifiesto { position: relative; height: 360svh; overflow: clip; }
.manifiesto-fijo {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100svh;
  padding: 0 var(--borde);
  text-align: center;
  pointer-events: none;
}
.manifiesto h2 { position: relative; }
.manifiesto h2 {
  margin-top: 12px;
  font-size: clamp(50px, 9vw, 150px);
  line-height: 1;
  text-shadow: 0 2px 28px rgb(43 30 22 / 0.55);
}

/* El video queda fijo detrás de las letras, con las medidas de la referencia */

.familia-marco {
  position: absolute;
  top: 50%;
  left: 50%;
  overflow: hidden;
  width: 77.8vw;
  height: 88.9svh;
  transform: translate(-50%, -50%);
  background: var(--tronco);
}
.familia-marco::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgb(43 30 22 / 0.3), rgb(43 30 22 / 0.42) 55%, rgb(43 30 22 / 0.72));
}
.familia-video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* El botón va en su propia capa fija, para que las tarjetas que pasan no lo tapen */
.familia-relato-capa {
  position: sticky;
  z-index: 4;
  top: 0;
  height: 100svh;
  margin-bottom: -100svh;
  pointer-events: none;
}
.ver-historia {
  position: absolute;
  bottom: calc(5.55svh + 28px);
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 26px 0 20px;
  transform: translateX(-50%);
  border: 0;
  border-radius: 999px;
  background: var(--nieve);
  color: var(--tronco);
  font-family: inherit;
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.14s ease-out, background 0.14s;
}
.ver-historia:active { transform: translateX(-50%) scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .ver-historia:hover { background: #fff; }
}
.ver-historia small { font-size: 0.8em; font-weight: 400; opacity: 0.72; }
.ver-icono {
  flex: none;
  width: 13px;
  height: 16px;
  background: #8e2f24;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* La película a pantalla completa, con sonido */

.historia {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #000;
}
.historia::backdrop { background: #000; }
.historia-video { display: block; width: 100%; height: 100%; object-fit: contain; }
.historia-cerrar {
  position: absolute;
  z-index: 1;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 12px;
  min-width: 48px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: rgb(43 30 22 / 0.72);
  color: var(--nieve);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}
.historia-cerrar:active { transform: scale(0.96); }

/* Tarjetas medidas en la referencia: 350 × 540 en 1440 de ancho, 180 × 277 en 390. El recorrido va en app.js */
.flota { position: absolute; z-index: 3; top: 0; left: 0; width: min(24.3vw, 38.9svh); aspect-ratio: 350 / 540; object-fit: cover; will-change: transform; }

.manifiesto + .pila { position: relative; z-index: 5; margin-top: -100svh; }

/* Paneles de pantalla completa que se apilan al bajar */

.panel {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 100svh;
  overflow: hidden;
  padding: calc(var(--barra) + 12px + env(safe-area-inset-top, 0px)) var(--borde) calc(28px + env(safe-area-inset-bottom, 0px));
  background: var(--tronco);
  isolation: isolate;
}
.panel-fondo {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* El título va abajo para no taparle la cara a Laura */
.panel-comienzos { justify-content: flex-end; }
.panel-comienzos .panel-fondo { object-position: 50% 30%; }
.panel-comienzos .panel-cabeza h3 { font-size: clamp(56px, 8.6vw, 132px); }
.panel.panel-comienzos { gap: 14px; padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgb(43 30 22 / 0.62), rgb(43 30 22 / 0.1) 38%, rgb(43 30 22 / 0.3) 58%, rgb(43 30 22 / 0.85));
}
.panel-cabeza { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.panel-cabeza h3, .panel-cabeza h2 {
  font-size: clamp(56px, 13.6vw, 208px);
  line-height: 1;
  width: 100%;
}
.panel-texto { max-width: 26em; font-size: clamp(19px, 1.8vw, 25px); line-height: 1.32; font-weight: 600; }

/* Títulos de sección enormes */

.titulo-gigante { padding: 96px var(--borde) 40px; }
.titulo-gigante h2 {
  margin-top: 8px;
  font-size: clamp(58px, 15.6vw, 240px);
  line-height: 0.98;
}

/* Elaboración */

.elaboracion { padding-bottom: 72px; }
.pasos { padding: 0 var(--borde); }
.paso { padding: 0 0 56px; }
.paso :is(img, video) { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 18px; }
.paso h3 { margin-top: 4px; font-size: clamp(40px, 5.6vw, 84px); line-height: 1.02; }
.paso p { margin-top: 12px; max-width: 22em; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.32; }
.pasos-visor { display: none; }

/* Líneas de producto */

.lineas { background: var(--tronco); }
/* El botón flotante no tapa nunca el último renglón ni el último "Pedir" */
.panel { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
.panel-pie { display: grid; gap: 24px; }
.linea-lista { background: rgb(43 30 22 / 0.84); padding: 4px 16px; border-top: 2px solid var(--alamo); }
.linea-fotos { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 12px 0 4px; }
.linea-fotos img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.variedades { display: flex; flex-wrap: wrap; gap: 2px 0; padding: 10px 0 14px; list-style: none; font-family: var(--dato); font-weight: 600; font-size: 19px; line-height: 1.3; }
.variedades li:not(:last-child)::after { content: "·"; margin: 0 8px; color: var(--alamo-claro); }
.detalles { display: grid; gap: 10px; padding: 12px 0 16px; }
.detalles dt { font-family: var(--dato); font-weight: 700; font-size: 20px; line-height: 1.2; }
.detalles dd { margin: 2px 0 0; font-size: 15px; line-height: 1.35; color: rgb(246 240 230 / 0.78); }
.lineas .panel-texto { text-shadow: 0 1px 14px rgb(43 30 22 / 0.95); }
/* Notas y "¿Qué hay hoy?": letra común, clara y grande, para que se lea con presbicia */
.linea-nota { max-width: 30em; margin-top: 14px; padding-left: 14px; border-left: 3px solid var(--alamo); font-size: 18px; line-height: 1.4; }
.linea-hoy { margin-top: 18px; max-width: 30em; }
.linea-hoy p { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.linea-hoy-botones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.linea-hoy-botones a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  touch-action: manipulation;
}
.hoy-instagram { border: 2px solid var(--nieve); color: var(--nieve); }
.hoy-whatsapp { background: var(--nieve); color: var(--cipres); }
.hoy-whatsapp svg { width: 20px; height: 20px; fill: currentColor; }
.linea-pedido {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  margin-bottom: 12px;
  background: var(--nieve);
  color: var(--cipres);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: transform 100ms ease-out, background 100ms;
}
.linea-pedido:active { transform: scale(0.98); background: #d8cfbf; }

/* Cómo pedir: Ciprés, el color de los pedidos */

.pedir { background: var(--cipres); }
.pedir-interior { display: grid; gap: 40px; padding: 88px var(--borde); }
.pedir h2 { margin-top: 8px; font-size: clamp(46px, 7.6vw, 116px); line-height: 1.02; text-wrap: balance; }
.vias { display: grid; gap: 22px; margin-top: 36px; }
.vias h3 { font-size: 22px; }
.vias p { margin-top: 2px; }
.vias .pago {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 10px;
  font-size: 15px;
}
.mercado-pago { padding: 4px 10px; background: #cde9f8; color: #0a3c63; border-radius: 6px; font-weight: 600; }
.pedir .sello { width: min(78vw, 480px); justify-self: center; }

/* Pie */

.pie { padding: 56px var(--borde) calc(96px + env(safe-area-inset-bottom, 0px)); }
.pie-datos { display: flex; flex-direction: column; gap: 22px; margin-top: 36px; }
.pie-titulo { font-family: var(--titulo); font-weight: 800; font-size: 26px; line-height: 1.15; margin-bottom: 8px; }
.pie a { text-underline-offset: 3px; }
.creditos { margin-top: 10px; font-size: 13px; opacity: 0.75; }

/* Pedido siempre a mano */

.pedir-flotante {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  z-index: 25;
  right: var(--borde);
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 56px;
  height: 56px;
  background: var(--cipres);
  color: var(--nieve);
  border: 1.5px solid var(--nieve);
  border-radius: 28px;
  font-weight: 600;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 100ms ease-out, background 100ms, opacity 200ms ease-out;
}
/* Mientras EPUYÉN ocupa la portada, el pedido está en el botón de arriba */
.minimizado .pedir-flotante { opacity: 1; pointer-events: auto; }
.pedir-flotante:active { transform: scale(0.96); background: var(--cipres-oscuro); }
.pedir-flotante span { display: none; }

/* Celular: la marca a la izquierda y el pedido a mano */

@media (max-width: 759px) {
  .barra-enlaces { display: none; }
  .manifiesto h2 { font-size: clamp(50px, 15vw, 96px); }
  .familia-marco { width: calc(100vw - 48px); height: min(800px, 98svh); }
  .ver-historia { bottom: calc(7svh + 22px); }
  .flota { width: 46.15vw; }

  /* Líneas: la foto o el video arriba, limpios; el título apoyado en su borde y todo el texto
     debajo, sobre el fondo liso de la marca (nada de texto encima de la imagen) */
  .lineas .panel {
    --media: 46svh;
    justify-content: flex-start;
    gap: 18px;
    padding-top: calc(var(--media) - 64px);
  }
  .lineas .panel-fondo { height: var(--media); }
  .lineas .panel::after {
    background: linear-gradient(rgb(43 30 22 / 0.55), transparent 90px, transparent calc(var(--media) - 130px), var(--tronco) var(--media));
  }
  .lineas .panel-cabeza h3 { font-size: clamp(48px, 14vw, 64px); text-shadow: 0 2px 16px rgb(43 30 22 / 0.7); }
  .lineas .panel-texto { font-size: 20px; line-height: 1.4; text-shadow: none; }
  .lineas .panel-pie { gap: 22px; }
  .linea-lista { background: none; padding: 0; border-top: 0; }
  .variedades { font-family: var(--texto); font-size: 18px; line-height: 1.5; }
  .detalles dt { font-family: var(--texto); font-size: 19px; }
  .detalles dd { font-size: 17px; color: var(--nieve); }
}

@media (min-width: 760px) {
  .pedir-flotante { width: auto; padding: 0 22px; }
  .pedir-flotante span { display: inline; }

  .portada-contenido { padding-left: 7%; padding-bottom: 44px; }

  .escena-foto { object-position: 50% 62%; }

  .menu-interior { flex-direction: row; align-items: flex-end; }
  .menu nav { text-align: right; }
  .menu-lugar { flex-direction: column; align-items: flex-start; max-width: 340px; }
  .menu-lugar .sello { width: 200px; }
  .menu-lugar p { font-size: 24px; line-height: 1.25; }

  .panel-pie { grid-template-columns: 1fr minmax(380px, 500px); align-items: end; gap: 48px; }
  /* Si la línea trae notas, el texto se apoya en un fondo liso en vez de ir sobre el video */
  .lineas .panel-pie > div:first-child:has(.linea-nota, .linea-hoy) { max-width: 640px; padding: 24px 26px; background: rgb(43 30 22 / 0.92); border-radius: 10px; }
  .lineas .panel-pie > div:first-child:has(.linea-nota, .linea-hoy) .panel-texto { text-shadow: none; }

  .pasos { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
  .paso { min-height: 86svh; display: flex; flex-direction: column; justify-content: center; padding: 0; opacity: 0.32; transition: opacity 240ms ease-out; }
  .paso.activo { opacity: 1; }
  .paso :is(img, video) { display: none; }
  .pasos-visor {
    display: block;
    position: sticky;
    top: calc(var(--barra) + 8px);
    height: calc(100svh - var(--barra) - 32px);
    overflow: hidden;
  }
  .pasos-visor > * {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 320ms ease-out;
  }
  .pasos-visor > .activo { opacity: 1; }

  .pedir-interior { grid-template-columns: 1fr minmax(320px, 36vw); gap: 64px; align-items: center; padding: 120px var(--borde); }
  .pedir .sello { width: 100%; }
  .vias { grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }

  .pie-datos { flex-direction: row; align-items: center; gap: 36px; }
}

@media (hover: hover) and (pointer: fine) {
  .barra-enlaces a:hover, .menu nav a:hover { color: var(--alamo-claro); }
  .linea-pedido:hover { background: #d8cfbf; }
  .pedir-flotante:hover, .portada-pedido:hover { background: var(--cipres-oscuro); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
}
