/* =========================================================
   PÁGINA · LÚCENT BEACH CLUB  ·  «De la Explanada a la mesa»
   Escritorio y móvil se diseñan a la vez. Reglas (aprendidas en Santo Remedio y Cada bocado):
   · las imágenes mantienen su proporción; ninguna supera la altura de pantalla
     (ancho ≤ (alto útil − aire) × proporción) y no se recortan (salvo el plato, cuadrado
     sobre su propio margen vacío)
   · los huecos entre mockups usan SIEMPRE el mismo valor (--gap)
   · textos Newsreader ≥ 16 px, etiquetas Josefin ≥ 12 px, objetivos táctiles ≥ 44 px
   · las ondas son un hilo sutil: bandas finas entre bloques, con un desplazamiento lentísimo
   Tipografías: Stack Sans Notch y Montserrat (licencia OFL) solo en los elementos de la marca
   Lúcent; Josefin Sans y Newsreader para el resto del portfolio.
   ========================================================= */

@font-face { font-family: "Stack Sans Notch"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../assets/fonts/stack-sans-notch-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 300 400; font-style: normal; font-display: swap;
  src: url("../assets/fonts/montserrat-latin-variable.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 300 400; font-style: normal; font-display: swap;
  src: url("../assets/fonts/montserrat-cyrillic-variable.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

.lu {
  --avail: calc(100svh - var(--header-h));
  --pad-y: clamp(3.5rem, 9vh, 6.5rem);
  --gap: clamp(1rem, 1.8vw, 1.75rem);
  --pad-x: max(var(--margin), calc((100vw - 100rem) / 2));   /* contenido máx. 100 rem en pantallas muy anchas */
  --f-stack: "Stack Sans Notch", var(--font);
  --f-mont: "Montserrat", var(--font);
  font-family: var(--font); overflow-x: clip;
}
.lu * { box-sizing: border-box; }
:where(.lu) figure { margin: 0; }
.lu img { display: block; }
.lu-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Colores propios de cada sección (el fondo no depende de la transición de atmósfera) */
.lu [data-atm="crema"] { --bg: #F5E9D4; --fg: #131B48; --accent: #A64724; background: var(--bg); color: var(--fg); }
.lu [data-atm="azul"]  { --bg: #131B48; --fg: #F5E9D4; --accent: #E08F68; background: var(--bg); color: var(--fg); }

/* ---------- Tipografía ---------- */
.lu-kicker { margin: 0; font: 600 .78rem/1.4 var(--font); letter-spacing: .16em; text-transform: uppercase; }
.lu-h2 { margin: 0; font: 500 clamp(1.9rem, min(3.3vw, 6vh), 3.3rem)/1.05 var(--f-stack); letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.lu-serif { font-family: var(--font-serif); font-weight: 400; line-height: 1.5; font-size: clamp(1rem, min(1.1vw, 2.2vh), 1.15rem); margin: 0; }
.lu-lead { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.2rem, min(1.6vw, 3.1vh), 1.6rem); line-height: 1.32; letter-spacing: -.005em; max-width: 30rem; }
.lu-meta { margin: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; font: 600 .78rem/1.5 var(--font); letter-spacing: .14em; text-transform: uppercase; }
.lu-meta span:last-child { font-weight: 400; opacity: .7; }
.lu-sec { padding: var(--pad-y) var(--pad-x); }

/* Aparición discreta */
.lu-rv { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform 1s var(--ease-out); transition-delay: var(--d, 0ms); }
.lu-rv.is-seen { opacity: 1; transform: none; }

/* Etiqueta «Visualización digital» */
.lu-viz {
  position: absolute; left: .8rem; bottom: .8rem; z-index: 3; pointer-events: none;
  font: 600 .75rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase;
  padding: .5rem .75rem; color: #fff; background: rgb(0 0 0 / .55); backdrop-filter: blur(4px);
}

/* Figuras: ancho limitado por la altura de pantalla; sin recortes */
.lu-fig { width: min(100%, calc((var(--avail) - 6rem) * var(--ar))); }
.lu-fig__img { position: relative; display: block; }
.lu-fig__img img { width: 100%; height: auto; aspect-ratio: var(--ar, auto); }
.lu-fig figcaption, .lu-view figcaption { margin-top: .8rem; font-family: var(--font-serif); font-size: 1rem; line-height: 1.4; opacity: .85; max-width: 34ch; }

/* ---------- Ondas: bandas finas con un desplazamiento lentísimo ---------- */
.lu-wave {
  --wh: 28px;
  --tile: calc(var(--wh) * 120 / 56);
  height: var(--wh); width: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 56'%3E%3Cg fill='none' stroke-width='4.5'%3E%3Cpath stroke='%23A64724' transform='translate(0,-9)' d='M-60 28C-40 44 -20 44 0 28C20 12 40 12 60 28C80 44 100 44 120 28C140 12 160 12 180 28'/%3E%3Cpath stroke='%23131B48' d='M-60 28C-40 44 -20 44 0 28C20 12 40 12 60 28C80 44 100 44 120 28C140 12 160 12 180 28'/%3E%3Cpath stroke='%23A64724' transform='translate(0,9)' d='M-60 28C-40 44 -20 44 0 28C20 12 40 12 60 28C80 44 100 44 120 28C140 12 160 12 180 28'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 50% / var(--tile) var(--wh);
  animation: lu-drift 36s linear infinite;
}
.lu-wave--on-navy {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 56'%3E%3Cg fill='none' stroke-width='4.5'%3E%3Cpath stroke='%23A64724' transform='translate(0,-9)' d='M-60 28C-40 44 -20 44 0 28C20 12 40 12 60 28C80 44 100 44 120 28C140 12 160 12 180 28'/%3E%3Cpath stroke='%23F5E9D4' d='M-60 28C-40 44 -20 44 0 28C20 12 40 12 60 28C80 44 100 44 120 28C140 12 160 12 180 28'/%3E%3Cpath stroke='%23A64724' transform='translate(0,9)' d='M-60 28C-40 44 -20 44 0 28C20 12 40 12 60 28C80 44 100 44 120 28C140 12 160 12 180 28'/%3E%3C/g%3E%3C/svg%3E");
}
.lu-wave--top { margin: 0 calc(var(--pad-x) * -1) var(--pad-y); width: auto; }
.lu-wave--bottom { margin: var(--pad-y) calc(var(--pad-x) * -1) 0; width: auto; }
@keyframes lu-drift { to { background-position-x: var(--tile); } }
.lu > .lu-wave { background-color: #F5E9D4; }

/* ---------- 01 · IDENTIDAD ---------- */
.lu-hero {
  position: relative; min-height: min(100svh, 56rem); margin-top: calc(var(--header-h) * -1);
  /* conjunto centrado en la ventana: dos columnas de ancho acotado con aire a ambos lados */
  display: grid; grid-template-columns: minmax(0, 26rem) minmax(0, 52rem); justify-content: center; align-items: center;
  column-gap: clamp(2.5rem, 6vw, 7rem);
  padding: calc(var(--header-h) + 1.5rem) max(var(--margin), 2vw) clamp(1.5rem, 4vh, 3rem);
}
.lu-hero__text { display: grid; gap: clamp(1.4rem, 4vh, 2.6rem); align-content: center; justify-items: start; }
.lu-hero__mid { display: grid; gap: clamp(.8rem, 2vh, 1.4rem); justify-items: start; width: 100%; }
.lu-logo { display: block; width: min(100%, 20rem, calc(var(--avail) * .4)); height: auto; overflow: visible; }

/* Entrada del logotipo (una sola vez, ~3 s): el escudo aparece, el nombre se revela de izquierda a derecha
   (como el logotipo de Cada bocado) y el sol asciende desde el horizonte de las ondas. Después, todo queda quieto. */
.lu-shield { opacity: 0; }
.lu-sun { transform: translateY(112px); }
.lu-wipe { width: 0; }
.chapter.is-in .lu-shield { animation: lu-shield-in .9s ease .15s both; }
.chapter.is-in .lu-wipe { animation: lu-wipe 1.7s var(--ease-in-out) .55s both; }
.chapter.is-in .lu-sun { animation: lu-rise 2.4s cubic-bezier(.22, .8, .22, 1) .9s both; }
@keyframes lu-shield-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes lu-wipe { from { width: 0; } to { width: 950px; } }
@keyframes lu-rise { from { transform: translateY(112px); } to { transform: translateY(0); } }

.lu-hero__tag { margin: 0; font: 300 clamp(1.3rem, min(2vw, 3.8vh), 1.9rem)/1.2 var(--f-mont); letter-spacing: .01em; color: var(--accent); opacity: 0; transition: opacity 1.2s ease 2.2s; }
.chapter.is-in .lu-hero__tag { opacity: 1; }
.lu-hero__k, .lu-hero__foot { opacity: 0; transition: opacity 1s ease 1.1s; }
.chapter.is-in .lu-hero__k, .chapter.is-in .lu-hero__foot { opacity: 1; }
.lu-hero__foot { display: grid; gap: .9rem; max-width: 30rem; }
.lu-hero__intro { font-size: clamp(1.05rem, min(1.35vw, 2.6vh), 1.3rem); }
.lu-hero__name { opacity: .8; }
.lu-hero__img { width: min(100%, calc((var(--avail) - 6rem) * 1.7778)); justify-self: start; opacity: 0; scale: 1.03; transition: opacity 1.4s ease .5s, scale 2s var(--ease-out) .5s; }
.chapter.is-in .lu-hero__img { opacity: 1; scale: 1; }
.lu-hero__img img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.lu-hero__img .lu-viz { left: .6rem; bottom: .6rem; font-size: .68rem; padding: .4rem .6rem; opacity: .85; }

/* ---------- 02 · DEL SUELO AL PLATO ---------- */
.lu-med { display: grid; gap: clamp(2.5rem, 7vh, 4.5rem); }
.lu-med__row1, .lu-med__row2 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.lu-fig--fach { grid-column: 1 / 9; }
.lu-med__head { grid-column: 9 / 13; display: grid; gap: 1rem; align-self: end; }
.lu-med__row2 { align-items: center; }
.lu-fig--plato { grid-column: 1 / 6; --ar: 1; }
.lu-fig--plato .lu-fig__img { aspect-ratio: 1; overflow: hidden; }
.lu-fig--plato .lu-fig__img img { height: 100%; object-fit: cover; aspect-ratio: 1; }
.lu-med__sys { grid-column: 7 / 13; display: grid; gap: clamp(2rem, 5vh, 3rem); }
.lu-sys__b { display: grid; gap: 1rem; }
.lu-swatches, .lu-types { list-style: none; margin: 0; padding: 0; }
.lu-swatches { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; }
.lu-sw { display: grid; grid-template-columns: auto; gap: .35rem; justify-items: start; }
.lu-sw i { display: block; width: clamp(3rem, 4.4vw, 4rem); aspect-ratio: 1; border-radius: 0 0 999px 999px; box-shadow: inset 0 0 0 1px rgb(19 27 72 / .18); }
.lu-sw--0 i { background: #131B48; }
.lu-sw--1 i { background: #A64724; }
.lu-sw--2 i { background: #F5E9D4; box-shadow: inset 0 0 0 1px rgb(19 27 72 / .45); }
.lu-sw b { margin-top: .2rem; font: 600 .72rem/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; }
.lu-sw span { font: 400 .78rem/1.2 var(--font); letter-spacing: .08em; opacity: .7; }
.lu-types { display: grid; gap: 0; border-top: 1px solid color-mix(in srgb, var(--fg) 25%, transparent); }
.lu-ty { display: grid; grid-template-columns: 3.4rem 1fr; align-items: center; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid color-mix(in srgb, var(--fg) 25%, transparent); }
.lu-ty__s { font-size: 1.9rem; line-height: 1; color: var(--accent); }
.lu-ty--sn .lu-ty__s { font-family: var(--f-stack); font-weight: 500; }
.lu-ty--mr .lu-ty__s { font-family: var(--f-mont); font-weight: 400; }
.lu-ty--ml .lu-ty__s { font-family: var(--f-mont); font-weight: 300; }
.lu-ty__t { display: grid; gap: .15rem; }
.lu-ty__t b { font: 600 .74rem/1.3 var(--font); letter-spacing: .1em; text-transform: uppercase; }
.lu-ty__t small { font: 400 .95rem/1.3 var(--font-serif); opacity: .8; }

/* ---------- 03 · LA CARTA (azul profundo) ---------- */
.lu-carta { padding-top: 0; padding-bottom: 0; }
.lu-carta__head { display: grid; gap: 1rem; max-width: 34rem; }
.lu-carta__stage { margin-top: clamp(2rem, 5vh, 3.5rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
.lu-carta__view { grid-column: 1 / 9; display: grid; align-items: center; justify-items: center; }
/* la vista inactiva se colapsa (tras su fundido) para que la altura sea la de la activa */
.lu-view { grid-area: 1 / 1; width: 100%; display: grid; justify-items: center; max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility 0s linear .55s, max-height 0s linear .55s; }
.lu-view.is-on { max-height: 100rem; opacity: 1; visibility: visible; transition-delay: .15s, 0s, 0s; }
.lu-view--closed .lu-fig__img { width: min(100%, calc((var(--avail) - 8rem) * 1.7918)); }
.lu-view--closed .lu-fig__img img { width: 100%; height: auto; aspect-ratio: 1600 / 893; }
.lu-view figcaption { width: 100%; text-align: center; max-width: none; }
.lu-pages__btn { display: block; width: min(100%, calc((var(--avail) - 8rem) * .7066), 26rem); padding: 0; border: 0; background: none; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.lu-pages__stack { position: relative; display: block; width: 100%; aspect-ratio: 1500 / 2123; }
.lu-pg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .5s ease; }
.lu-pg.is-on { opacity: 1; }
.lu-pages__btn:focus-visible, .lu-zoom:focus-visible, .lu-pl:focus-visible, .lu-seg__b:focus-visible, .lu-lb__b:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.lu-carta__ctl { grid-column: 9 / 13; display: grid; gap: 1.6rem; align-content: center; justify-items: start; }
.lu-seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; height: 3rem; min-width: 15rem; border: 1px solid color-mix(in srgb, var(--fg) 45%, transparent); border-radius: 999px; }
.lu-seg__thumb { position: absolute; left: 3px; top: 3px; bottom: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--fg); transition: transform .5s var(--ease-in-out); }
.lu-carta__stage[data-mode="open"] .lu-seg__thumb { transform: translateX(100%); }
.lu-seg__b { position: relative; z-index: 1; padding: 0 1.1rem; border: 0; background: none; color: var(--fg); font: 600 .8rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; border-radius: 999px; transition: color .4s ease; -webkit-tap-highlight-color: transparent; }
.lu-seg__b[aria-pressed="true"] { color: var(--bg); }
.lu-pagelist { list-style: none; margin: 0; padding: 0; width: 100%; border-top: 1px solid color-mix(in srgb, var(--fg) 25%, transparent); }
.lu-pagelist li { border-bottom: 1px solid color-mix(in srgb, var(--fg) 25%, transparent); }
.lu-pl { display: flex; align-items: baseline; gap: 1rem; width: 100%; min-height: 3.2rem; padding: .7rem 0; border: 0; background: none; color: var(--fg); text-align: left; cursor: pointer; font: 300 clamp(1.15rem, 1.6vw, 1.5rem)/1.2 var(--font); opacity: .6; transition: opacity .3s ease, padding .3s ease, color .3s ease; -webkit-tap-highlight-color: transparent; }
.lu-pl span { font: 600 .78rem/1 var(--font); letter-spacing: .14em; }
.lu-pl:hover { opacity: .9; }
.lu-pl.is-on { opacity: 1; color: var(--accent); padding-left: .5rem; }
.lu-zoom { min-height: 2.75rem; padding: 0; border: 0; background: none; color: var(--fg); font: 600 .8rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; text-decoration: underline; text-underline-offset: .45em; cursor: pointer; }
.lu-zoom:disabled { visibility: hidden; }

.lu-coct { margin-top: var(--pad-y); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
.lu-fig--coctm { grid-column: 1 / 8; }
.lu-coct__pair { grid-column: 8 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.lu-fig--coct { --ar: .5034; width: min(100%, calc((var(--avail) - 8rem) * var(--ar))); }

/* ---------- CIERRE ---------- */
.lu-close { display: grid; justify-items: center; text-align: center; gap: clamp(1rem, 2.6vh, 1.6rem); padding-top: clamp(3rem, 9vh, 6rem); padding-bottom: clamp(2rem, 6vh, 4rem); }
.lu-close__mark { width: clamp(4.5rem, 8vw, 6.5rem); height: auto; }
.lu-close__tag { margin: 0; font: 300 clamp(1.2rem, min(2vw, 3.6vh), 1.8rem)/1.2 var(--f-mont); letter-spacing: .02em; color: var(--accent); }
.lu-close__note { margin: 0; max-width: 46em; font: 400 .82rem/1.5 var(--font); opacity: .65; }
.lu-foot { width: 100%; margin-top: clamp(2rem, 6vh, 4rem); text-align: left; }

/* ---------- Vista ampliada de una página (fuera de .lu: se añade al body) ---------- */
html.lu-lb-open { overflow: hidden; }
.lu-lb { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; background: #131B48; color: #F5E9D4; font-family: var(--font); }
.lu-lb[hidden] { display: none; }
.lu-lb__bar { display: flex; align-items: center; gap: .5rem; padding: .6rem max(.8rem, env(safe-area-inset-left, 0px)) .6rem; }
.lu-lb__t { flex: 1; margin: 0; text-align: center; font: 600 .8rem/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; }
.lu-lb__b { min-width: 2.75rem; min-height: 2.75rem; padding: 0 .9rem; border: 1px solid rgb(245 233 212 / .45); border-radius: 999px; background: none; color: #F5E9D4; font: 600 1rem/1 var(--font); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lu-lb__b--txt { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.lu-lb__b[aria-pressed="true"] { background: #F5E9D4; color: #131B48; }
.lu-lb__scroll { flex: 1; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 .8rem 1rem; }
.lu-lb__scroll img { display: block; margin: 0 auto; width: auto; height: auto; max-width: 100%; max-height: calc(100svh - 5rem); aspect-ratio: 1500 / 2123; }
.lu-lb.is-zoom .lu-lb__scroll img { max-width: none; max-height: none; width: min(230vw, 2100px); margin: 0; }
.lu-lb.is-zoom .lu-lb__scroll { cursor: grab; }

/* Visor en móvil: título arriba y botones cómodos, sin pegarse a los bordes */
@media (max-width: 760px) {
  .lu-lb__bar { flex-wrap: wrap; gap: .5rem; padding: max(.7rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) .6rem max(1rem, env(safe-area-inset-left, 0px)); }
  .lu-lb__t { order: -1; flex-basis: 100%; text-align: left; }
  .lu-lb__b[data-lb="zoom"] { margin-left: auto; }
  .lu-lb__scroll { padding: 0 max(1rem, env(safe-area-inset-left, 0px)) max(1.2rem, env(safe-area-inset-bottom, 0px)); }
}

/* =========================================================
   ≤ 1000 px · composiciones más compactas
   ========================================================= */
@media (max-width: 1000px) {
  .lu-fig--fach { grid-column: 1 / 8; }
  .lu-med__head { grid-column: 8 / 13; }
  .lu-carta__view { grid-column: 1 / 8; }
  .lu-carta__ctl { grid-column: 8 / 13; }
  .lu-seg { min-width: 0; width: 100%; }
}

/* =========================================================
   ≤ 900 px · tablet vertical y móvil: una columna
   ========================================================= */
@media (max-width: 900px) {
  .lu { --pad-y: clamp(3.2rem, 8vh, 4.8rem); --gap: 1rem; }
  .lu-h2 { font-size: clamp(1.9rem, 8.6vw, 3rem); }
  .lu-lead { font-size: clamp(1.25rem, 5.2vw, 1.7rem); max-width: 34rem; }
  .lu-serif { font-size: 1.02rem; }

  /* 01 */
  .lu-hero { grid-template-columns: 1fr; justify-content: stretch; padding-inline: var(--margin); min-height: 0; row-gap: 2rem; align-items: start; padding-bottom: 0; }
  .lu-hero__text { gap: 1.5rem; }
  .lu-logo { width: min(100%, 18rem); }
  .lu-hero__foot { max-width: 34rem; }
  .lu-hero__img { justify-self: stretch; width: auto; margin: 0 calc(var(--margin) * -1); }

  /* 02 */
  .lu-med { gap: 2.4rem; }
  .lu-med__row1, .lu-med__row2 { display: grid; grid-template-columns: 1fr; row-gap: 1.8rem; }
  .lu-med__head { order: -1; grid-column: 1; }
  .lu-fig--fach, .lu-fig--plato, .lu-med__sys { grid-column: 1; }
  .lu-fig--fach { width: 100%; max-width: none; }
  .lu-fig--plato { width: min(100%, 26rem); justify-self: center; }
  .lu-med__sys { gap: 2rem; }
  .lu-swatches { gap: 1rem 1.4rem; }

  /* 03 */
  .lu-carta__stage { display: flex; flex-direction: column; align-items: stretch; gap: 1.2rem; }
  .lu-carta__ctl { display: contents; }
  .lu-seg { order: 1; }
  .lu-carta__view { order: 2; }
  .lu-pagelist { order: 3; display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; border-top: 0; }
  .lu-pagelist li { border-bottom: 0; }
  .lu-pl { flex-direction: column; align-items: flex-start; gap: .3rem; min-height: 3.6rem; padding: .7rem 0 0; font-size: .95rem; border-top: 2px solid color-mix(in srgb, var(--fg) 25%, transparent); }
  .lu-pl.is-on { padding-left: 0; border-top-color: var(--accent); }
  .lu-zoom { order: 4; min-height: 3rem; justify-self: start; }
  .lu-zoom:disabled { display: none; }
  .lu-view--closed .lu-fig__img { width: 100%; }
  .lu-pages__btn { width: min(100%, calc((var(--avail) - 11rem) * .7066), 26rem); }

  .lu-coct { grid-template-columns: 1fr; row-gap: 1.8rem; }
  .lu-fig--coctm { grid-column: 1; width: 100%; max-width: none; }
  .lu-coct__pair { grid-column: 1; }
  .lu-fig--coct { width: 100%; }

  .lu-close__mark { width: 5rem; }
}

/* ---------- Pantallas bajas en escritorio ---------- */
@media (min-width: 901px) and (max-height: 760px) {
  .lu { --pad-y: clamp(3rem, 7vh, 4.5rem); }
  .lu-hero { min-height: 0; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .lu-wave { animation: none; }
  .lu-shield, .lu-sun, .chapter.is-in .lu-shield, .chapter.is-in .lu-sun { opacity: 1; transform: none; animation: none; }
  .lu-wipe, .chapter.is-in .lu-wipe { width: 950px; animation: none; }
  .lu-hero__img { scale: 1; transition: opacity .01ms; }
  .lu-hero__tag, .lu-hero__k, .lu-hero__foot { transition: opacity .01ms; }
  .lu-view, .lu-pg, .lu-seg__thumb, .lu-seg__b, .lu-pl { transition: none; }
}

/* Búlgaro: palabras largas en mayúsculas dentro de la columna estrecha de los títulos */
html:lang(bg) .lu-h2 { font-size: clamp(1.45rem, min(2.4vw, 4.6vh), 2.6rem); letter-spacing: .02em; overflow-wrap: anywhere; }
