/* Fuentes alojadas en la página (media/fuentes/): los mismos .woff2 que servía Google Fonts. Licencia SIL OFL 1.1 (ver media/fuentes/). */
/* latin */
@font-face {
  font-family: 'Titillium Web';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("media/fuentes/titillium-web-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;
}
/* latin */
@font-face {
  font-family: 'Titillium Web';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("media/fuentes/titillium-web-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;
}
/* Capa — la forma de lunecroissanterie.com (MEDIDAS.md, ±10 %) con la identidad de Capa (LANDING.md, secciones 2 y 3).
   Escritorio: medidas de 1440 escaladas con el ancho (--u = 1 px de 1440). Celular (≤ 960): medidas de 390 (--u = 1 px de 390).
   Textos en px fijos, como Lune; solo las dos palabras de la portada escalan (8 % del ancho, como su clamp). */

:root {
  --negro: #080808;
  --blanco: #ffffff;
  --acero: #878a8e;      /* 5,8:1 sobre el negro: texto secundario y "A completar" */
  --borde: #5f6368;      /* borde de los botones, sin texto encima */
  --f: 'Titillium Web', 'Segoe UI', system-ui, sans-serif;
  --curva: cubic-bezier(0.215, 0.61, 0.355, 1); /* la de Lune, para menú, cortina y entradas */
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--negro); scrollbar-color: #3a3c3e var(--negro); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--negro); color: var(--blanco); font: 400 14px/27px var(--f); letter-spacing: 0.003em; container-type: inline-size; overflow-x: clip; }
body { --u: calc(100cqw / 1440); }
::selection { background: var(--blanco); color: var(--negro); }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, figure, fieldset { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1px solid var(--blanco); outline-offset: 4px; }
input, button, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html.js .sin-js, html:not(.js) .solo-js { display: none !important; }
.sprite { position: absolute; }
.saltar { position: absolute; left: 16px; top: -60px; z-index: 30; background: var(--blanco); color: var(--negro); padding: 8px 14px; }
.saltar:focus { top: 16px; }

/* ---------- 0. Barra: sin fondo, todo flota ---------- */
.barra { position: fixed; inset: 0 0 auto 0; z-index: 10; pointer-events: none; }
.barra > * { pointer-events: auto; }
.logo { position: fixed; left: 64px; top: 58px; font: 700 17px/1 var(--f); letter-spacing: 0.16em; padding: 6px 0; z-index: 11; }
.enlaces { position: fixed; right: 64px; top: 60px; display: flex; gap: 46px; font-size: 14px; line-height: 24px; }
.enlaces a { display: inline-flex; align-items: center; gap: 9px; }
.enlaces a::before { content: ""; width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; transition: background-color 0.25s; }
.enlaces a:hover::before, .enlaces a:focus-visible::before { background: currentColor; }
.menu-boton { position: fixed; left: 46px; top: calc(50vh - 40px); width: 80px; display: grid; justify-items: center; gap: 12px; font-size: 14px; line-height: 23px; padding: 4px 0; }
.menu-boton svg { width: 34px; height: 34px; transition: transform 0.4s var(--curva); }
.menu-boton span { writing-mode: vertical-rl; transform: rotate(180deg); }
.menu-boton:hover svg, .menu-boton:focus-visible svg { transform: scaleY(0.82); }

/* ---------- 1. Portada: mitad negra con las palabras, mitad foto ---------- */
.portada { position: relative; height: 100vh; min-height: 560px; overflow: hidden; }
.palabras { position: absolute; left: calc(145 * var(--u)); top: calc(50% - 0.88em); z-index: 2; display: grid; gap: 0.5em; font: 700 clamp(64px, 8cqw, 128px)/0.65 var(--f); letter-spacing: -0.05em; white-space: nowrap; padding: 0.2em 0; }
.palabras .palabra:last-child { margin-left: 1.73em; }
.palabras:focus-visible { outline-offset: 10px; }
.palabras .palabra { transition: color 0.25s; }
.palabras:hover .palabra:last-child { color: var(--acero); }
.portada-foto { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; overflow: hidden; }
.desliza { position: absolute; inset: -6% 0; will-change: transform; }
.desliza img { width: 100%; height: 100%; object-fit: cover; }
.portada-foto img { object-position: 50% 62%; }
.portada-foto::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, var(--negro) 0%, var(--negro) 10%, rgba(8, 8, 8, 0.6) 24%, rgba(8, 8, 8, 0) 40%), linear-gradient(90deg, var(--negro) 0%, rgba(8, 8, 8, 0) 14%); }
.cortina { position: absolute; inset: 0; background: var(--negro); transform: translateX(-101%); z-index: 3; }

/* Etiqueta "Imagen ilustrativa": chica, opaca, en gris acero, sin caja que ensucie la foto */
.etiqueta-ejemplo { position: absolute; right: 0; bottom: 0; z-index: 2; padding: 3px 8px; background: var(--negro); color: var(--acero); font-size: 12px; line-height: 18px; pointer-events: none; }

.etiqueta-izq { right: auto; left: 0; }

/* ---------- 2. La casa: composición suelta ---------- */
.casa { position: relative; height: calc(1536 * var(--u)); overflow-x: clip; }
.letra { position: absolute; z-index: 3; font: 700 calc(286 * var(--u))/0.72 var(--f); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.55); pointer-events: none; user-select: none; }
.letra-c { left: calc(372 * var(--u)); top: calc(106 * var(--u)); }
.letra-a { left: calc(1074 * var(--u)); top: calc(1193 * var(--u)); }
/* Quietas (movimiento reducido o sin JS): sin el parallax, la A caería sobre la cita; va arriba, entre la foto chica y la cita */
html:not(.vivo) .letra-a { top: calc(700 * var(--u)); }
.casa-chica { position: absolute; left: calc(1249 * var(--u)); top: calc(188 * var(--u)); width: calc(248 * var(--u)); height: calc(288 * var(--u)); overflow: hidden; }
.casa-chica img { width: 100%; height: 100%; object-fit: cover; }
.casa-grande { position: absolute; left: calc(450 * var(--u)); top: calc(342 * var(--u)); width: calc(540 * var(--u)); height: calc(622 * var(--u)); overflow: hidden; }
.casa-grande img { object-position: 70% 50%; }
.cita { position: absolute; left: calc(817 * var(--u)); top: calc(1004 * var(--u)); width: calc(623 * var(--u)); z-index: 2; font: 700 50px/70px var(--f); letter-spacing: -0.005em; }
.cita .linea { display: block; white-space: nowrap; }
.casa-texto { position: absolute; left: calc(254 * var(--u)); top: calc(1121 * var(--u)); width: 280px; text-wrap: pretty; }
.casa-boton { position: absolute; left: calc(254 * var(--u)); top: calc(1357 * var(--u)); }
.boton { display: inline-grid; place-items: center; width: 220px; height: 72px; border: 1px solid var(--borde); font-size: 14px; line-height: 1.2; text-align: center; padding: 0 16px; transition: border-color 0.25s, background-color 0.25s, color 0.25s; }
.boton:hover, .boton:focus-visible { border-color: var(--blanco); }
.boton:active { background: var(--blanco); color: var(--negro); }

/* ---------- 3. El corte: macro a sangre y negro debajo ---------- */
.corte { position: relative; height: calc(1020 * var(--u)); }
.corte-foto { position: absolute; left: 0; top: 0; width: 100%; height: calc(676 * var(--u)); overflow: hidden; }
.corte-foto .desliza { inset: -7% 0; }

/* ---------- 4. El oficio: tres fotos, la del medio más baja; dos tandas con fundido ---------- */
.oficio { position: relative; height: calc(861 * var(--u)); }
.galeria { position: absolute; left: calc(191 * var(--u)); top: 0; width: calc(1058 * var(--u)); height: calc(741 * var(--u)); touch-action: pan-y; }
.galeria:focus-visible { outline-offset: 12px; }
.foto-oficio { position: absolute; top: 0; width: calc(337 * var(--u)); height: calc(463 * var(--u)); overflow: hidden; }
.foto-oficio img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.foto-oficio:nth-child(3n + 1) { left: 0; }
.foto-oficio:nth-child(3n + 2) { left: calc(359 * var(--u)); top: calc(278 * var(--u)); }
.foto-oficio:nth-child(3n + 3) { left: calc(721 * var(--u)); }
html.js .foto-oficio { opacity: 0; visibility: hidden; transition: opacity 0.8s ease, visibility 0s linear 0.8s; }
html.js .foto-oficio.activa { opacity: 1; visibility: visible; transition: opacity 0.8s ease, visibility 0s; }
/* Sin JS: las dos tandas, una debajo de la otra */
html:not(.js) .oficio { height: auto; padding-bottom: calc(160 * var(--u)); }
html:not(.js) .galeria { position: relative; height: auto; display: block; }
html:not(.js) .galeria-fotos { display: grid; grid-template-columns: repeat(3, calc(337 * var(--u))); column-gap: calc(24 * var(--u)); row-gap: calc(120 * var(--u)); }
html:not(.js) .foto-oficio { position: relative; left: auto !important; top: auto !important; }
html:not(.js) .foto-oficio:nth-child(3n + 2) { transform: translateY(calc(278 * var(--u))); }
.puntos { position: absolute; left: calc(140 * var(--u)); top: calc(511 * var(--u)); display: flex; gap: 0; }
.punto { width: 24px; height: 24px; display: grid; place-items: center; }
.punto::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--blanco); transition: width 0.3s, height 0.3s, background-color 0.3s; }
.punto:hover::before { width: 6px; height: 6px; }
.punto[aria-current="true"]::before { width: 12px; height: 12px; background: transparent; border: 1px solid var(--blanco); }

/* ---------- 5. Dónde estamos y encargos ---------- */
.donde { position: relative; padding: 0 0 calc(70 * var(--u)) calc(752 * var(--u)); }
.datos { width: 504px; max-width: calc(100% - 64px); position: relative; z-index: 1; }
.datos li { margin-bottom: 16px; }
.dato-rotulo { display: flex; align-items: center; gap: 6px; font: 400 14px/27px var(--f); }
.dato-rotulo::before { content: ""; width: 24px; border-top: 1px solid var(--blanco); }
.dato-valor { font-size: 14px; line-height: 27px; }
.pendiente { color: var(--acero); border-bottom: 1px dashed var(--acero); }
.cierre { margin-top: 36px; position: relative; z-index: 1; }
/* P y A final de C-A-P-A, en orden de lectura. La P, en la mitad izquierda vacía y en la columna de la C, anclada desde abajo:
   con el parallax de las letras (0,124 por px de scroll), al llegar al pie queda a la altura de la lista y del botón, en
   cualquier ancho. La A final, a la derecha y más arriba (sube hasta el oficio: 312 − 861 del alto del oficio),
   montada sobre la tercera foto al pasar */
.letra-p { left: calc(372 * var(--u)); bottom: calc(641 * var(--u)); }
.letra-a-final { left: calc(1033 * var(--u)); top: calc(-549 * var(--u)); }
/* Quietas (movimiento reducido o sin JS): la P, directo en el lugar donde termina con el parallax; la A, a la derecha de
   las fotos (con JS, la tercera; sin JS, la grilla de seis) */
html:not(.vivo) .letra-p { bottom: calc(152 * var(--u)); }
html:not(.vivo) .letra-a-final { left: calc(1262 * var(--u)); top: calc(-301 * var(--u)); }

/* ---------- 6. Pie ---------- */
.pie { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 64px 46px; font-size: 14px; line-height: 18px; }
.pie .aviso { color: var(--acero); font-size: 12px; }
.pie-enlace:hover, .pie-enlace:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.pie-ig { display: grid; place-items: center; width: 36px; height: 36px; margin-right: -9px; }
.pie-ig svg { width: 18px; height: 18px; }
.nota-sinjs { display: none; position: absolute; left: 64px; right: 64px; bottom: 100%; padding: 16px; border: 1px solid var(--borde); background: var(--negro); }
.nota-sinjs:target { display: block; }

/* ---------- Entrada: círculo (0,8 s) y cortina (1,2 s); la página está debajo desde el primer cuadro ---------- */
.entrada { display: none; }
html.vivo .entrada { display: grid; place-items: center; position: fixed; inset: 0; z-index: 20; background: var(--negro); pointer-events: none; animation: entrada-sale 0.3s linear 0.7s both; }
.entrada svg { width: 56px; height: 56px; transform: rotate(-90deg); }
.entrada circle { fill: none; stroke: var(--blanco); stroke-width: 1.5; stroke-dasharray: 170; stroke-dashoffset: 170; }
html.vivo .entrada circle { animation: circulo 0.7s var(--curva) both; }
html.vivo .cortina { animation: cortina 1.2s var(--curva) 0.8s both; }
html.vivo .palabra { animation: palabra-a 1.1s var(--curva) 0.9s both; }
html.vivo .palabra:last-child { animation-name: palabra-b; }
@keyframes circulo { to { stroke-dashoffset: 0; } }
@keyframes entrada-sale { to { opacity: 0; visibility: hidden; } }
@keyframes cortina { from { transform: translateX(0); } to { transform: translateX(-101%); } }
@keyframes palabra-a { from { opacity: 0; transform: translateX(1.5em); } 15% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes palabra-b { from { opacity: 0; transform: translateX(-1em); } 15% { opacity: 1; } to { opacity: 1; transform: none; } }
.palabra { display: block; }

/* ---------- Diálogos ---------- */
dialog { color: var(--blanco); }
dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.aviso-demo { max-width: min(440px, calc(100% - 32px)); padding: 32px; background: var(--negro); border: 1px solid var(--borde); }
.aviso-demo h2 { font: 700 26px/1.2 var(--f); margin-bottom: 12px; }
.aviso-demo h2:focus { outline: none; }
.aviso-demo p { margin-bottom: 24px; }
.aviso-demo .boton { width: auto; min-width: 160px; height: 52px; }

/* Menú y hoja de encargo: negro a pantalla completa que crece de ancho desde la derecha (Lune: width 1,6 s) */
.capa-hoja { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; }
.capa-hoja::backdrop { background: transparent; }
.hoja-fondo { position: absolute; inset: 0; background: var(--negro); overflow-y: auto; overscroll-behavior: contain; }
html.vivo .capa-hoja .hoja-fondo { clip-path: inset(0 0 0 100%); transition: clip-path 1.6s var(--curva); }
html.vivo .capa-hoja.abierta .hoja-fondo { clip-path: inset(0); }
html.vivo .capa-hoja.cerrando .hoja-fondo { clip-path: inset(0 0 0 100%); transition-duration: 0.5s; }
.capa-hoja .logo { position: absolute; }
.capa-hoja .menu-boton { position: absolute; z-index: 2; }
.hoja-foto { position: absolute; left: calc(784 * var(--u)); top: 0; width: calc(483 * var(--u)); height: calc(727 * var(--u)); overflow: hidden; }
.hoja-foto img { width: 100%; height: 100%; object-fit: cover; }
.menu-lista { position: relative; z-index: 1; padding: calc(138 * var(--u)) 0 64px calc(221 * var(--u)); }
.menu-lista a { display: inline-block; font: 700 45px/78px var(--f); color: var(--acero); transition: color 0.25s; }
.menu-lista a:hover, .menu-lista a:focus-visible { color: var(--blanco); }
html.vivo .capa-hoja li, html.vivo .paso, html.vivo .encargo-titulo, html.vivo .encargo-nota, html.vivo .encargo-enviar { opacity: 0; transform: translateX(60px); transition: transform 1.6s var(--curva), opacity 0.8s linear; }
html.vivo .capa-hoja.abierta li, html.vivo .capa-hoja.abierta .paso, html.vivo .capa-hoja.abierta .encargo-titulo, html.vivo .capa-hoja.abierta .encargo-nota, html.vivo .capa-hoja.abierta .encargo-enviar { opacity: 1; transform: none; }
html.vivo .capa-hoja.abierta li:nth-child(2), html.vivo .capa-hoja.abierta .paso-que { transition-delay: 0.05s; }
html.vivo .capa-hoja.abierta li:nth-child(3), html.vivo .capa-hoja.abierta .paso-cuando { transition-delay: 0.1s; }
html.vivo .capa-hoja.abierta li:nth-child(4), html.vivo .capa-hoja.abierta .paso-quien { transition-delay: 0.15s; }
html.vivo .capa-hoja.abierta li:nth-child(5), html.vivo .capa-hoja.abierta .encargo-nota, html.vivo .capa-hoja.abierta .encargo-enviar { transition-delay: 0.2s; }

/* Hoja de encargo: los tres pasos con la tipografía del menú */
.encargo { position: relative; z-index: 1; padding: calc(120 * var(--u)) 64px 64px calc(221 * var(--u)); max-width: calc(760 * var(--u) + 64px); }
.encargo-titulo { font: 400 14px/27px var(--f); color: var(--acero); margin-bottom: 8px; }
.encargo-titulo:focus { outline: none; }
.paso { border: 0; margin: 0 0 28px; min-width: 0; }
.paso legend { display: flex; align-items: center; gap: 6px; padding: 0; font: 400 14px/27px var(--f); margin-bottom: 4px; }
.paso legend::before { content: ""; width: 24px; border-top: 1px solid var(--blanco); }
.paso-que label { display: block; width: fit-content; cursor: pointer; }
.paso-que span { display: inline-flex; align-items: center; gap: 16px; font: 700 45px/78px var(--f); color: var(--acero); transition: color 0.25s; }
.paso-que input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.paso-que input:checked + span { color: var(--blanco); }
.paso-que input:checked + span::before { content: ""; width: 24px; border-top: 2px solid var(--blanco); }
.paso-que label:hover span { color: var(--blanco); }
.paso-que input:focus-visible + span { outline: 1px solid var(--blanco); outline-offset: 4px; }
.campos { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-bottom: 12px; }
.campo { display: grid; gap: 2px; }
.campo span { color: var(--acero); }
.campo input { width: 220px; max-width: 100%; height: 44px; padding: 0 12px; background: transparent; border: 1px solid var(--borde); color-scheme: dark; }
.campo input:focus-visible { outline: none; border-color: var(--blanco); }
.campo input:user-invalid { border-style: dashed; border-color: var(--blanco); }
.campo input:user-invalid + .campo-error { display: block; }
.campo-error { display: none; color: var(--acero); font-size: 12px; line-height: 18px; }
.campo input::placeholder { color: var(--acero); }
.forma { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.forma label, .paso-quien label { cursor: pointer; }
.forma label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.forma input { appearance: none; width: 14px; height: 14px; margin: 0; border: 1px solid var(--blanco); border-radius: 50%; display: grid; place-items: center; }
.forma input::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blanco); transform: scale(0); transition: transform 0.2s; }
.forma input:checked::before { transform: scale(1); }
.encargo-nota { margin-bottom: 24px; }
input { caret-color: var(--blanco); accent-color: var(--blanco); }

/* ---------- Celular y tablet vertical (≤ 960): medidas de 390 ---------- */
@media (max-width: 960px) {
  body { --u: calc(100cqw / 390); font-size: 12px; line-height: 21px; }
  .logo { left: 20px; top: 14px; font-size: 15px; }
  .enlaces { display: none; }
  .menu-boton { left: auto; right: 12px; top: 10px; width: auto; display: flex; align-items: center; gap: 10px; font-size: 12px; padding: 4px 8px; }
  .menu-boton svg { width: 28px; height: 28px; }
  .menu-boton span { writing-mode: horizontal-tb; transform: none; }
  .portada { height: 100svh; min-height: 520px; }
  .palabras { left: calc(19 * var(--u)); font-size: clamp(56px, 16.4cqw, 104px); top: calc(50% - 0.75em); text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55); }
  .portada-foto { left: 40%; width: 60%; }
  .portada-foto img { object-position: 22% 62%; }
  .portada-foto::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(8, 8, 8, 0.9) 0%, rgba(8, 8, 8, 0.55) 45%, rgba(8, 8, 8, 0) 80%); }
  .casa { height: calc(1357 * var(--u)); }
  .letra { font-size: calc(180 * var(--u)); }
  .letra-c { left: calc(50 * var(--u)); top: calc(51 * var(--u)); }
  .letra-a { left: calc(262 * var(--u)); top: calc(1150 * var(--u)); }
  html:not(.vivo) .letra-a { left: calc(272 * var(--u)); top: calc(470 * var(--u)); }
  .casa-chica { left: calc(270 * var(--u)); top: calc(118 * var(--u)); width: calc(140 * var(--u)); height: calc(163 * var(--u)); }
  .casa-grande { left: calc(-13 * var(--u)); top: calc(306 * var(--u)); width: calc(278 * var(--u)); height: calc(324 * var(--u)); }
  .casa-grande img { object-position: 60% 50%; }
  .casa-grande .etiqueta-izq { left: auto; right: 0; }
  .cita { left: calc(85 * var(--u)); top: calc(719 * var(--u)); width: calc(305 * var(--u)); font-size: 25.6px; line-height: 35.8px; }
  .casa-texto { left: calc(85 * var(--u)); top: calc(944 * var(--u)); width: min(240px, calc(100% - 100px)); max-width: 420px; }
  .casa-boton { left: calc(85 * var(--u)); top: calc(1134 * var(--u)); }
  .corte { height: calc(607 * var(--u)); }
  .corte-foto { height: calc(206 * var(--u)); }
  .oficio { height: calc(501 * var(--u)); }
  .galeria { left: calc(20 * var(--u)); width: calc(350 * var(--u)); height: calc(452 * var(--u)); }
  .foto-oficio, .foto-oficio:nth-child(n) { left: 0; top: 0; width: 100%; height: calc(452 * var(--u)); }
  .puntos { left: 50%; transform: translateX(-50%); top: calc(466 * var(--u)); }
  /* Apiladas en la columna libre a la derecha de la lista: P arriba (sube hasta el oficio: 171 − 501 de su alto) y A abajo */
  .letra-p { left: calc(255 * var(--u)); top: calc(-330 * var(--u)); bottom: auto; }
  /* Quieta: justo debajo de la galería */
  html:not(.vivo) .letra-p { top: calc(12 * var(--u)); bottom: auto; }
  .donde { overflow-x: clip; }
  .letra-a-final { left: max(calc(262 * var(--u)), 256px); top: auto; bottom: calc(20px + 366 * var(--u)); }
  html:not(.vivo) .letra-a-final { left: max(calc(262 * var(--u)), 256px); top: auto; bottom: 20px; }
  html:not(.js) .galeria-fotos { grid-template-columns: 1fr; row-gap: 24px; }
  html:not(.js) .foto-oficio:nth-child(3n + 2) { transform: none; }
  html:not(.js) .oficio { padding-bottom: 60px; }
  .donde { padding: 0 20px 60px; }
  /* La lista termina antes de la columna de la P, así la P no pisa la fila más larga (Encargos) */
  .datos { width: 100%; max-width: calc(255 * var(--u) - 32px); }
  .datos li { margin-bottom: 16px; }
  .dato-rotulo, .dato-valor { font-size: 12px; line-height: 21px; }
  .pie { padding: 0 20px 24px; flex-wrap: wrap; font-size: 12px; }
  .pie .aviso { order: 3; width: 100%; }
  .nota-sinjs { left: 20px; right: 20px; }
  .hoja-foto { left: auto; right: 0; width: calc(260 * var(--u)); height: calc(422 * var(--u)); opacity: 0.45; }
  .menu-lista { padding: calc(182 * var(--u)) 20px 48px calc(68 * var(--u)); }
  .menu-lista a { font-size: 32px; line-height: 48px; }
  .encargo { padding: 96px 20px 48px; max-width: none; }
  .paso-que span { font-size: 32px; line-height: 48px; }
  .hoja-encargo .hoja-foto { display: none; }
}

@media (max-width: 960px) and (min-width: 600px) {
  .cita { font-size: 34px; line-height: 48px; }
}

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