/* ============================================================
   site.css — solo lo COMPARTIDO entre páginas: base, utilidades
   tipográficas, botones, placeholders, lightbox, nav, drawer,
   selector de diseño y footer.
   Los estilos propios de cada página van en un <style> inline
   dentro de su <head>. No mezclar.
   ============================================================ */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Sin barra de scroll nativa: el progreso lo marcan la isla y la nav */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Red de seguridad: pegatinas giradas no abren scroll lateral en móvil.
     clip (no hidden) para no romper la nav sticky */
  overflow-x: clip;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; cursor: pointer; }

[hidden] { display: none !important; }

.wrap { max-width: var(--maxw); margin: 0 auto; }

/* --- Skip link ------------------------------------------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--butter); color: var(--wine); padding: 0.75rem 1rem;
  font-family: var(--mono); font-size: 13px; text-transform: uppercase;
}
.skip-link:focus { left: 0; }

/* --- Foco con teclado ------------------------------------
   El anillo contrasta con el fondo del bloque: burdeos sobre
   mantequilla y mantequilla sobre burdeos. Los bloques burdeos
   cambian --focus (los de cada página, en su <style>).
--------------------------------------------------------- */
:root { --focus: var(--wine); }
.nav, .drawer, .site-foot, dialog.lb { --focus: var(--butter); }
.dev-card { --focus: var(--wine); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
/* Destinos de foco por código (títulos, <main>): sin anillo, no son controles */
[tabindex="-1"]:focus { outline: none; }

/* --- Tipografía ------------------------------------------ */
.h-xl { font-size: clamp(44px, 8vw, 128px); font-weight: 800; line-height: .88; letter-spacing: -.045em; text-transform: uppercase; margin: 0; }
.h-l { font-size: clamp(32px, 5.5vw, 84px); font-weight: 800; line-height: .9; letter-spacing: -.04em; text-transform: uppercase; margin: 0; }
.h-sub { font-size: clamp(28px, 4.4vw, 60px); font-weight: 800; line-height: .92; letter-spacing: -.04em; text-transform: uppercase; margin: 18px 0 0; }
.it { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.02em; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.tag::before { content: ""; width: 8px; height: 8px; background: currentColor; }
.todo { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; line-height: 1.6; border: 2px dashed currentColor; padding: 14px 16px; text-transform: uppercase; }

/* --- Botones --------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px; min-height: 46px; padding: 0 22px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  background: var(--butter); color: var(--wine); border: 2px solid var(--wine); box-shadow: 5px 5px 0 var(--wine);
  transition: transform .25s var(--out), box-shadow .25s var(--out), background .25s;
}
.btn:hover { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--wine); }
.btn .ar { transition: transform .3s var(--out); }
.btn:hover .ar { transform: translateX(6px); }
.btn.on-wine { border-color: var(--butter); box-shadow: 5px 5px 0 var(--butter); }
.btn.on-wine:hover { box-shadow: 0 0 0 var(--butter); }

/* --- Animaciones ------------------------------------------
   .rv = reveal al hacer scroll, solo CSS (scroll-driven).
   Sin soporte, el contenido se ve sin animar.
--------------------------------------------------------- */
@keyframes rv { from { opacity: 0; translate: 0 56px; } to { opacity: 1; translate: 0 0; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes up { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes marq { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@supports (animation-timeline: view()) {
  .rv { animation: rv linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
}

/* --- Texto anotado (js/annotated-text.js) -----------------
   Marcas a mano sobre palabras clave. El color es el del texto
   (o --ann-color si la sección lo define); el subrayado
   fosforito usa ese mismo color con poca opacidad.
--------------------------------------------------------- */
.ann { position: relative; display: inline-block; white-space: nowrap; isolation: isolate; }
.ann-d { position: absolute; pointer-events: none; color: var(--ann-color, currentColor); overflow: visible; }
.ann-t { position: relative; z-index: 1; }
.ann[data-ann="wavy"] .ann-d { bottom: -.4em; left: -2%; height: .7em; width: 104%; }
.ann[data-ann="underline"] .ann-d { bottom: -.32em; left: -1%; height: .5em; width: 102%; }
.ann[data-ann="doubleUnderline"] .ann-d { bottom: -.5em; left: -1%; height: .7em; width: 102%; }
.ann[data-ann="dottedUnderline"] .ann-d { display: block; bottom: -.35em; left: -1%; height: .55em; width: 102%; background: radial-gradient(circle, currentColor 1.5px, transparent 1.5px) 0 100% / .5em 100% repeat-x; }
.ann[data-ann="line"] .ann-d { display: block; bottom: -.18em; left: -1%; height: 2px; width: 102%; border-radius: 999px; background: currentColor; }
.ann[data-ann="arrow"] .ann-d { bottom: -.45em; left: -1%; height: .8em; width: 106%; }
.ann[data-ann="highlight"] .ann-d { z-index: 0; left: -4%; bottom: -.08em; height: 1.15em; width: 108%; opacity: var(--ann-hl, .22); }
.ann[data-ann="circle"] { padding: 0 .25rem; }
/* Menos alto que el original (-.6em / +1.2em): en párrafos invadía la línea de arriba */
.ann[data-ann="circle"] .ann-d { top: -.3em; left: -.55em; height: calc(100% + .6em); width: calc(100% + 1.1em); }
.ann[data-ann="box"] { padding: 0 .4em; }
.ann[data-ann="box"] .ann-d { top: -.4em; left: -.4em; height: calc(100% + .8em); width: calc(100% + .8em); }
.ann[data-ann="bracket"] { padding: 0 .35em; }
.ann[data-ann="bracket"] .ann-d { top: -.25em; left: -.15em; height: calc(100% + .5em); width: calc(100% + .3em); }
.ann[data-ann="strikethrough"] .ann-d { top: 50%; left: -1%; height: .5em; width: 102%; transform: translateY(-50%); }
.ann[data-ann="crossOut"] .ann-d { top: 50%; left: -2%; height: 1.4em; width: 104%; transform: translateY(-50%); }

/* --- Letras que se apartan del cursor (js/text-scatter.js) --
   .ts-w = palabra (no se parte al saltar de línea), .ts-l = letra */
.ts-w { display: inline-block; white-space: nowrap; }
.ts-l { display: inline-block; transform-origin: 50% 60%; }

/* --- Carrusel 3D con degradado (js/gradient-carousel.js) ---
   .gcar > .gcar-stage > (.gcar-bg + .gcar-track > .gcar-card)
   y debajo .gcar-bar (pie, contador y botones .lb-b).
   Sin marcos: las tarjetas son fotos con esquinas redondeadas y
   un halo de su color (--gcar-glow), y el degradado se sale del
   escenario y se funde con la página por una máscara radial.
   El JS pone --gcar-w/--gcar-h (tarjeta), --gcar-c1..3 (colores
   del fondo), --gcar-blur, --gcar-size e --gcar-intensity.
   Las tarjetas no llevan transition: el JS las mueve cada frame */
.gcar { --gcar-w: 300px; --gcar-h: 375px; --gcar-radius: 18px; position: relative; }
.gcar:focus-visible { outline: none; }
.gcar:focus-visible .gcar-card.is-active { outline: 3px solid var(--focus, currentColor); outline-offset: 5px; }
.gcar-stage { position: relative; height: calc(var(--gcar-h) + 110px); isolation: isolate; }
.gcar-bg {
  position: absolute; inset: -32% -14%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse calc(var(--gcar-size, .65) * 46%) calc(var(--gcar-size, .65) * 62%) at 50% 50%, var(--gcar-c1, transparent), transparent),
    radial-gradient(ellipse calc(var(--gcar-size, .65) * 40%) calc(var(--gcar-size, .65) * 56%) at 27% 58%, var(--gcar-c2, transparent), transparent),
    radial-gradient(ellipse calc(var(--gcar-size, .65) * 40%) calc(var(--gcar-size, .65) * 56%) at 73% 42%, var(--gcar-c3, transparent), transparent);
  filter: blur(var(--gcar-blur, 24px));
  opacity: var(--gcar-intensity, .7);
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent);
  mask-image: radial-gradient(closest-side, #000 55%, transparent);
  animation: gcar-drift 16s ease-in-out infinite alternate;
  transition: opacity 1s var(--out, ease);
  will-change: transform;
}
@keyframes gcar-drift {
  from { transform: translate3d(-2%, 1%, 0) scale(1); }
  to { transform: translate3d(2%, -2%, 0) scale(1.08) rotate(2deg); }
}
/* La pista sobresale 120px por arriba y abajo para que la máscara
   de los lados no corte el halo de las tarjetas. Lo que sobresale
   no recibe el ratón: solo las tarjetas y ::before (el escenario) */
.gcar-track {
  position: absolute; inset: -120px 0; perspective: 1200px; touch-action: pan-y;
  pointer-events: none; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.gcar-track::before { content: ""; position: absolute; inset: 120px 0; }
.gcar-track::before, .gcar-card { pointer-events: auto; cursor: grab; }
.gcar-track.is-dragging::before, .gcar-track.is-dragging .gcar-card { cursor: grabbing; }
.gcar-card {
  position: absolute; left: 50%; top: 50%; margin: calc(var(--gcar-h) / -2) 0 0 calc(var(--gcar-w) / -2);
  width: var(--gcar-w); height: var(--gcar-h); overflow: hidden;
  border-radius: var(--gcar-radius); background: rgba(0, 0, 0, .25);
  box-shadow: 0 22px 44px -22px rgba(0, 0, 0, .7), 0 18px 60px -30px rgb(var(--gcar-glow, 0 0 0) / .5);
  backface-visibility: hidden; will-change: transform;
  transition: box-shadow .5s var(--out, ease);
}
.gcar-card.is-active { cursor: zoom-in; box-shadow: 0 28px 50px -24px rgba(0, 0, 0, .75), 0 24px 90px -24px rgb(var(--gcar-glow, 0 0 0) / .85); }
.gcar-card img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; pointer-events: none; -webkit-user-drag: none; }

/* Modo cine (data-gcar-cine): velo fijo que apaga la página y el
   carrusel por encima; el fondo brilla más a oscuras. El z-index
   del carrusel baja con retraso para no quedar tapado mientras el
   velo se desvanece. La nav se apaga con su propio velo y se
   enciende al pasar por encima o al enfocarla */
.gcar-cine {
  position: fixed; inset: 0; z-index: 4; pointer-events: none;
  background: #080100; opacity: 0;
  transition: opacity .7s var(--out, ease);
}
.gcar.has-cine { transition: z-index 0s .7s; }
.gcar-cine-on .gcar-cine { opacity: .86; transition-duration: 1.2s; }
.gcar-cine-on .gcar.has-cine { z-index: 5; transition-delay: 0s; }
.gcar-cine-on .gcar.has-cine .gcar-bg { opacity: calc(var(--gcar-intensity, .7) + .25); }
[data-nav]::after {
  content: ""; position: absolute; inset: 0; z-index: 10; pointer-events: none;
  background: #080100; opacity: 0; transition: opacity .7s var(--out, ease);
}
.gcar-cine-on [data-nav]:not(:hover, :focus-within)::after { opacity: .86; transition-duration: 1.2s; }
.gcar-bar { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-top: 18px; }
.gcar-cap { flex: 1 1 240px; margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.3; }
.gcar-count { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; }
.gcar-bar .lb-b:disabled { opacity: .4; cursor: default; transform: none; background: var(--butter); color: var(--wine); }

/* --- Marco de móvil (js/device.js) -------------------------
   .device > .device-body > .device-screen > (vídeo o imagen).
   Medidas en cqi: el marco escala con su columna. La pantalla
   es 9:16, como los vídeos, para no recortarlos. El giro y el
   desplazamiento van en --rx/--ry/--rz/--tx/--ty (los pone el JS
   con ratón); el brillo sigue al cursor con --gx/--gy */
.device { container-type: inline-size; padding: 0 5px; perspective: 900px; }
.device-body {
  --rx: 0deg; --ry: 0deg; --rz: 0deg; --tx: 0px; --ty: 0px;
  position: relative; padding: 3.2cqi; border-radius: 15cqi;
  background: #1c0100; border: 2px solid var(--c-fg, var(--ink));
  box-shadow: inset 0 0 0 1.2cqi #2e0301, 0 14px 30px -12px rgba(28,1,0,.55);
  transform: translate3d(var(--tx), var(--ty), 0) rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz));
  transition: transform .5s var(--out);
  will-change: transform;
}
.device.is-hover .device-body { transition-duration: .18s; }
/* Botones laterales: volumen a la izquierda, encendido a la derecha */
.device-body::before, .device-body::after { content: ''; position: absolute; width: 1.3cqi; background: #1c0100; border: 1px solid var(--c-fg, var(--ink)); }
.device-body::before { left: -2.3cqi; top: 22%; height: 16%; border-radius: 1cqi 0 0 1cqi; border-right: 0; }
.device-body::after { right: -2.3cqi; top: 28%; height: 11%; border-radius: 0 1cqi 1cqi 0; border-left: 0; }
.device-screen { position: relative; overflow: hidden; border-radius: 11.5cqi; background: var(--ink); isolation: isolate; }
.device-screen > video, .device-screen > .case-shot, .device-screen > .case-shot img { border-radius: inherit; }
/* La pantalla recorta lo que sobresale: el foco va por dentro */
.device-screen :focus-visible { outline-offset: -4px; }
/* Isla (arriba) y brillo (encima de todo, sin tapar clics) */
.device-screen::before { content: ''; position: absolute; z-index: 2; top: 3cqi; left: 50%; width: 30cqi; height: 8cqi; translate: -50% 0; border-radius: 99px; background: #0d0000; pointer-events: none; }
.device-screen::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 0%), rgba(255,255,255,.18), transparent 55%);
  opacity: 0; transition: opacity .4s var(--out);
}
.device.is-hover .device-screen::after { opacity: 1; }

/* --- Placeholders de imagen ------------------------------ */
.ph {
  position: relative; overflow: hidden; border-radius: var(--r-img); isolation: isolate;
  border: 2px dashed rgba(247,228,147,.55);
  background: repeating-linear-gradient(135deg, rgba(247,228,147,.07) 0 14px, transparent 14px 28px);
  color: var(--cream);
  transition: transform .5s var(--out), border-color .3s;
}
.ph::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: conic-gradient(var(--butter) 25%, transparent 0 50%, var(--butter) 0 75%, transparent 0) 0 0/28px 28px;
  transition: opacity .3s steps(4);
}
.ph:hover { transform: rotate(-1deg) scale(1.015); border-color: var(--butter); }
.ph:hover::after { opacity: .14; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-label { position: absolute; left: 14px; bottom: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; background: var(--wine); color: var(--butter); padding: 6px 10px; }
.ph .ph-label { background: var(--butter); color: var(--wine); }
.ph-ratio { position: absolute; right: 14px; top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: inherit; opacity: .85; }
.r-wide { grid-column: 1 / -1; aspect-ratio: 16/9; }
.r-sq { aspect-ratio: 1/1; }
.r-tall { aspect-ratio: 4/5; }

/* Variante sobre fondo claro */
.ph.on-light { border-color: var(--wine); background: repeating-linear-gradient(135deg, rgba(87,3,0,.07) 0 14px, transparent 14px 28px); color: var(--wine); }
.ph.on-light .ph-label { background: var(--wine); color: var(--butter); }
.ph.on-light::after { background: conic-gradient(var(--wine) 25%, transparent 0 50%, var(--wine) 0 75%, transparent 0) 0 0/28px 28px; }

/* Hueco ya relleno: sin rayas ni borde discontinuo */
.ph.fill, .paris .ph.fill { border: 0; background: rgba(42,5,3,.25); }
.ph.fill::after { display: none; }
.ph.fill > img { position: absolute; inset: 0; display: block; }
/* .natural: la imagen manda su proporción (no se recorta) */
.ph.fill.natural { aspect-ratio: auto; }
.ph.fill.natural > img { position: static; height: auto; }

/* --- Modelos 3D (<model-viewer>, lo carga js/site.js) ----- */
.model-3d { margin: 0; }
.model-3d model-viewer {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1;
  background: rgba(247,228,147,.06); border: 2px dashed rgba(247,228,147,.35); border-radius: var(--r-img);
  --poster-color: transparent;
  --progress-bar-color: var(--butter);
  --progress-bar-height: 3px;
}
.model-3d model-viewer:focus-visible { outline: 3px solid var(--butter); outline-offset: 4px; }
.model-3d figcaption { margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; opacity: .8; }
@media (max-width: 700px) {
  .model-3d model-viewer { aspect-ratio: 4 / 5; }
}

/* --- Lightbox (<dialog> nativo) --------------------------
   Pantalla entera: arriba contador y cerrar, en medio la foto a
   su proporción (el JS calcula el tamaño: nunca más de 2× el
   original), abajo pie y botones, y una tira de miniaturas.
   En la foto: clic o doble toque amplía, arrastrar mueve, deslizar
   cambia de foto y deslizar hacia abajo cierra.
--------------------------------------------------------- */
html:has(dialog.lb[open]) { overflow: hidden; }
dialog.lb {
  border: 0; margin: 0; padding: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  background: var(--wine); color: var(--cream);
  overscroll-behavior: contain;
}
dialog.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; animation: lb-in .3s var(--out); }
dialog.lb::backdrop { background: transparent; }
@keyframes lb-in { from { opacity: 0; } }
.lb-top, .lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 24px; }
.lb-count { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; color: var(--butter); }
.lb-stage { position: relative; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: zoom-out; }
.lb-img {
  position: absolute; left: 50%; top: 50%; max-width: none;
  translate: -50% -50%; transform: translate(var(--x, 0px), var(--y, 0px)) scale(var(--s, 1));
  border-radius: var(--r-img); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
  cursor: zoom-in; -webkit-user-drag: none;
  transition: transform .35s var(--out), opacity .3s ease;
}
.lb-img.is-zoomed { cursor: grab; }
.lb-stage.is-moving .lb-img { transition: none; }
.lb-stage.is-moving .lb-img.is-zoomed { cursor: grabbing; }
/* Entra y sale deslizándose hacia el lado del gesto (--dir: -1 | 1) */
.lb-img.is-in { opacity: 0; transform: translate(calc(var(--dir, 0) * 48px), 0) scale(.97); }
.lb-img.is-out { opacity: 0; transform: translate(calc(var(--dir, 0) * -48px), 0) scale(.97); pointer-events: none; }
.lb-load { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 3px solid rgba(247,228,147,.25); border-top-color: var(--butter); border-radius: 50%; opacity: 0; transition: opacity .2s; animation: lb-spin .8s linear infinite; pointer-events: none; }
.lb-stage.is-loading .lb-load { opacity: 1; transition-delay: .25s; }
@keyframes lb-spin { to { rotate: 1turn; } }
.lb-cap { margin: 0; max-width: 62ch; font-family: var(--serif); font-style: italic; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.3; }
.lb-ctrl { display: flex; gap: 10px; }
.lb-b {
  min-width: 48px; min-height: 48px; padding: 0 16px;
  background: var(--butter); color: var(--wine); border: 2px solid var(--butter);
  font-family: var(--mono); font-size: 14px; letter-spacing: .05em; text-transform: uppercase;
  transition: transform .25s var(--out), background .25s;
}
.lb-b:hover { transform: translateY(-3px); background: var(--wine); color: var(--butter); }
.lb-strip { display: flex; gap: 6px; overflow-x: auto; padding: 0 24px 16px; scrollbar-width: thin; scrollbar-color: rgba(247,228,147,.4) transparent; }
.lb-strip[hidden] { display: none; }
.lb-strip button { flex: none; width: 56px; height: 56px; padding: 0; overflow: hidden; border-radius: var(--r-img-s); border: 2px solid transparent; background: rgba(42,5,3,.4); opacity: .5; cursor: pointer; transition: opacity .2s, border-color .2s; }
.lb-strip button:hover { opacity: .85; }
.lb-strip button[aria-current] { opacity: 1; border-color: var(--butter); }
.lb-strip button:focus-visible { outline: 2px solid var(--butter); outline-offset: 2px; }
.lb-strip img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) {
  .lb-top, .lb-bar { padding: 10px 16px; }
  .lb-bar { flex-wrap: wrap; }
  .lb-strip { padding: 0 16px 12px; }
  .lb-strip button { width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  dialog.lb[open] { animation: none; }
  .lb-img { transition: opacity .2s ease; }
  .lb-img.is-in, .lb-img.is-out { transform: translate(var(--x, 0px), var(--y, 0px)) scale(var(--s, 1)); }
}

/* Fotos de la página que se amplían (las marca el JS con [data-zoom]) */
[data-zoom] { cursor: zoom-in; }
[data-zoom]:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }

/* --- Nav (la inyecta renderNav() en js/site.js) -----------
   Fija y escondida por encima de la pantalla: baja con el ratón
   en el borde de arriba, al tocar la isla, con el drawer abierto
   o con el foco de teclado dentro. El estado va en el mount (`data-shown`,
   `data-peek`), que no se re-pinta al cambiar idioma o página.
   Entra con muelle y sale acelerando; a lo escondido le sobra
   recorrido para que no asome la sombra.
--------------------------------------------------------- */
[data-nav] {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transform: translateY(calc(-100% - 40px));
  transition: transform .6s var(--ease);
}
[data-nav][data-peek] { transform: translateY(calc(-100% + 6px)); transition: transform .45s var(--out); }
[data-nav]:is([data-shown], :has(:focus-visible)) { transform: none; transition: transform .75s var(--spring); }
.nav {
  height: var(--nav-h); padding: 0 var(--pad-x);
  background: var(--wine); color: var(--butter);
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-bottom: 2px solid rgba(247,228,147,.35);
  /* Arriba, sombra dura del mismo vino: si el muelle se pasa, no asoma hueco */
  box-shadow: 0 -40px 0 var(--wine), 0 14px 30px -18px rgba(26,2,0,.55);
}
/* Progreso de la página: el borde de abajo se llena de izquierda a
   derecha. --p (0 … 1) lo escribe updateProgress() en el mount */
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--butter); transform: scaleX(var(--p, 0)); transform-origin: left;
}
/* El contenido llega un poco después que la barra, en cascada */
.nav > * { opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--out); }
[data-nav]:is([data-shown], :has(:focus-visible)) .nav > * { opacity: 1; transform: none; transition: opacity .5s var(--out) .12s, transform .7s var(--spring) .12s; }
[data-nav]:is([data-shown], :has(:focus-visible)) .nav > :nth-child(2) { transition-delay: .18s; }
[data-nav]:is([data-shown], :has(:focus-visible)) .nav > :nth-child(3) { transition-delay: .24s; }
.brand { font-weight: 800; font-size: 18px; letter-spacing: -.03em; color: var(--butter); display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.brand i { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { position: relative; color: var(--butter); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 12px 0; white-space: nowrap; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--butter); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; gap: 10px; align-items: center; }

.chip-btn, .menu-btn {
  min-height: 36px; padding: 0 12px;
  background: transparent; color: var(--butter); border: 2px solid var(--butter);
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  transition: background .25s, color .25s;
}
.chip-btn:hover, .menu-btn:hover { background: var(--butter); color: var(--wine); }
.menu-btn { display: none; min-height: 44px; padding: 0 16px; font-size: 13px; }

/* --- Drawer móvil ----------------------------------------
   Vive fuera del mount de la nav (se re-pinta al cambiar
   idioma), así que va fixed bajo la cabecera.
--------------------------------------------------------- */
.drawer {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 55;
  max-height: calc(100vh - var(--nav-h)); max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain;
  background: var(--wine); color: var(--butter);
  border-bottom: 2px solid var(--butter);
  padding: 8px var(--pad-x) 24px;
  display: flex; flex-direction: column; gap: 20px;
  opacity: 0; transform: translateY(-12px);
  transition: opacity .3s var(--out), transform .3s var(--out);
}
.drawer[data-open='true'] { opacity: 1; transform: none; }
.drawer-links { display: flex; flex-direction: column; }
.drawer-links a { color: var(--butter); font-size: 28px; font-weight: 800; letter-spacing: -.03em; text-transform: uppercase; padding: 8px 0; border-bottom: 1px solid rgba(247,228,147,.3); }
.drawer-links a[aria-current='page'] { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; }
.drawer-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }

/* --- Isla de sección (renderIsland() en js/site.js) --------
   Píldora fija arriba en el centro: dice en qué sección se está
   y, al tocarla, baja la nav. Con la nav abajo sube encogiéndose
   hacia ella; cuando la nav se esconde, cae de ella con muelle
   (el retraso deja que la barra se vaya antes). El ancho lo fija
   el JS en px: CSS no sabe animar de auto a auto.
--------------------------------------------------------- */
.island {
  position: fixed; top: 10px; left: 50%; z-index: 58;
  display: flex; align-items: center; gap: 9px;
  height: 34px; padding: 0 13px 0 12px;
  background: var(--wine); color: var(--butter);
  border: 1.5px solid rgba(247,228,147,.55); border-radius: 999px;
  box-shadow: 0 12px 28px -14px rgba(26,2,0,.75), inset 0 1px 0 rgba(247,228,147,.14);
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; line-height: 1;
  transform: translateX(-50%);
  transition: transform .8s var(--spring) .22s, opacity .4s var(--out) .22s, filter .7s var(--out), border-color .25s;
  -webkit-tap-highlight-color: transparent;
  --focus: var(--butter);
}
.island:active { transform: translateX(-50%) scale(.95); transition: transform .15s var(--out); }
[data-nav]:is([data-shown], :has(:focus-visible)) ~ .island {
  transform: translate(-50%, -30px) scale(.55); opacity: 0; pointer-events: none;
  transition: transform .45s var(--ease), opacity .25s var(--out);
}
/* Anillo de progreso alrededor del punto: el arco (pathLength 1) se
   cierra con --p, que escribe updateProgress() en la isla */
.island-ring { position: relative; flex: none; display: grid; place-items: center; width: 16px; height: 16px; }
.island-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; overflow: visible; }
.island-ring circle { fill: none; stroke-width: 1.5; }
.island-track { stroke: rgba(247,228,147,.25); }
.island-arc { stroke: var(--butter); stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--p, 0)); }
/* Punto "en directo": late despacio */
.island-dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--butter); }
.island-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--butter);
  opacity: 0; animation: island-ping 2.8s var(--out) infinite;
}
@keyframes island-ping {
  0% { transform: scale(.4); opacity: .7; }
  70%, 100% { transform: scale(1.5); opacity: 0; }
}
/* Ventana del texto: el nuevo entra y el viejo sale en vertical,
   con un pelo de desenfoque (hacia abajo si se baja de sección) */
.island-view { position: relative; display: block; height: 14px; overflow: hidden; transition: width .6s var(--spring); }
.island-lbl {
  position: absolute; left: 0; top: 0; line-height: 14px; white-space: nowrap;
  transition: transform .55s var(--out), opacity .4s var(--out), filter .4s var(--out);
}
.island-lbl:is(.is-from-down, .is-from-up, .is-to-down, .is-to-up) { opacity: 0; filter: blur(3px); }
.island-lbl:is(.is-from-down, .is-to-down) { transform: translateY(110%); }
.island-lbl:is(.is-from-up, .is-to-up) { transform: translateY(-110%); }
/* Flechita: la isla abre algo */
.island-chev {
  flex: none; width: 5px; height: 5px; margin: -3px 0 0 1px;
  border-right: 1.5px solid; border-bottom: 1.5px solid; rotate: 45deg; opacity: .75;
  transition: translate .35s var(--out), opacity .25s;
}
/* Hover solo con ratón: en táctil se quedaría pegado tras el toque */
@media (hover: hover) {
  .island:hover { border-color: var(--butter); }
  .island:hover .island-chev { translate: 0 2px; opacity: 1; }
}
/* Modo cine: se apaga como la nav */
.gcar-cine-on .island:not(:hover, :focus-visible) { filter: brightness(.3); }

/* --- Footer (lo inyecta renderFooter()) ------------------- */
.site-foot { background: var(--wine); color: var(--butter); padding: 0 var(--pad-x) 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 56px 0 48px; border-top: 2px solid var(--butter); }
.foot-brand { font-weight: 800; font-size: clamp(32px, 4vw, 48px); line-height: 1; letter-spacing: -.04em; display: inline-flex; align-items: baseline; gap: 10px; }
.foot-brand i { font-family: var(--serif); font-weight: 400; font-size: 1.2em; }
.foot-role { margin: 14px 0 0; max-width: 30ch; font-family: var(--mono); font-size: 12px; letter-spacing: .05em; line-height: 1.6; text-transform: uppercase; opacity: .75; }
.foot-title { margin: 0 0 14px; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.foot-title::before { content: ""; width: 8px; height: 8px; background: currentColor; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
/* El hover cambia letra y desplaza el texto, pero NO la caja del enlace:
   si la caja encogiera o se moviera, el cursor en el borde quedaría
   fuera y el hover parpadearía. El texto y dos gemelos invisibles (uno
   con cada letra) comparten celda: la caja mide lo del más ancho en
   cualquier estado, y el padding deja sitio a los 6px del desplazamiento. */
.foot-links a { display: inline-grid; align-items: center; min-height: 44px; padding-right: 6px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; }
.foot-links a > span, .foot-links a::before, .foot-links a::after { grid-area: 1 / 1; }
.foot-links a::before, .foot-links a::after { content: attr(data-label); visibility: hidden; }
.foot-links a::after { font-family: var(--serif); font-style: italic; font-weight: 400; }
.foot-links a > span { transition: transform .3s var(--out); }
.foot-links a:hover > span { transform: translateX(6px); font-family: var(--serif); font-style: italic; font-weight: 400; }

/* Crédito + tarjeta del desarrollador (popover sobre el enlace) */
/* Sticker de Bea bajo el nombre, señalándolo */
.foot-bea { display: block; width: 92px; height: auto; margin: 26px 0 0 18px; rotate: -3deg; filter: drop-shadow(2px 5px 4px rgba(0,0,0,.35)); transition: rotate .45s var(--out); }
.foot-bea:hover { rotate: 2deg; }
/* Pantone arrugados en 2x2, en la tercera columna del footer */
.foot-pantone { display: grid; grid-template-columns: repeat(2, minmax(0, 110px)); gap: 18px 28px; justify-content: center; align-items: center; }
.foot-pantone img { display: block; width: 100%; height: auto; rotate: var(--r, 0deg); filter: drop-shadow(2px 5px 4px rgba(0,0,0,.35)); transition: rotate .45s var(--out), scale .45s var(--out); }
.foot-pantone img:hover { rotate: 0deg; scale: 1.06; }
.foot-credit { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.dev-wrap { position: relative; display: inline-block; }
.dev-trigger {
  min-height: 44px; padding: 0; background: none; border: 0; border-bottom: 2px solid transparent;
  font-family: var(--mono); font-size: 12px; letter-spacing: .05em; text-transform: none; color: var(--butter);
  transition: border-color .25s;
}
.dev-trigger:hover, .dev-trigger:focus-visible, .dev-trigger[aria-expanded='true'] { border-bottom-color: currentColor; }
.dev-card {
  position: absolute; bottom: calc(100% + 12px); left: 50%; translate: -50% 0; z-index: 20;
  width: max-content; max-width: calc(100vw - 2 * var(--pad-x));
  display: flex; flex-direction: column; gap: 14px; padding: 16px 16px 16px 20px;
  /* Misma rejilla de puntos que la portada, en vino sobre butter */
  background: var(--butter) radial-gradient(rgba(87,3,0,.14) 1.2px, transparent 1.3px) 0 0 / 14px 14px;
  color: var(--wine); border: 2px solid var(--wine); box-shadow: 5px 5px 0 var(--ink);
  text-transform: none; text-align: left;
  animation: dev-in .3s var(--out) both;
}
@keyframes dev-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.dev-top { display: flex; align-items: flex-end; gap: 16px; padding-right: 44px; }
/* Foto girada con sombra sólida, como la de "Sobre mí"; asoma por arriba */
.dev-avatar {
  position: relative; overflow: hidden; width: 64px; height: 64px; flex: none; margin-top: -34px;
  display: grid; place-items: center; background: var(--wine); color: var(--butter);
  font-family: var(--serif); font-style: italic; font-size: 26px;
  box-shadow: 5px 5px 0 var(--ink); transform: rotate(-4deg); transition: transform .5s var(--out);
}
.dev-card:hover .dev-avatar { transform: rotate(0deg) scale(1.04); }
/* La foto tapa las iniciales; si no carga, quedan "EL" */
.dev-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dev-id { display: flex; flex-direction: column; gap: 4px; }
/* Sans gruesa + serif cursiva, como "Beatriz Suárez" en la portada */
.dev-name { font-family: var(--sans); font-size: 20px; font-weight: 800; line-height: 1; letter-spacing: -.04em; text-transform: uppercase; }
.dev-name i { font-family: var(--serif); font-weight: 400; font-size: 1.2em; letter-spacing: -.02em; text-transform: none; }
.dev-role { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.dev-role .ann { --ann-color: var(--wine); }
/* Sello giratorio, versión pequeña del de la portada. El contorno
   (drop-shadow) lo separa tanto del fondo vino como de la tarjeta */
.dev-stamp {
  position: absolute; top: -28px; right: -24px; width: 70px; aspect-ratio: 1; display: grid; place-items: center; color: var(--wine); z-index: 1;
  filter: drop-shadow(1.5px 0 0 var(--wine)) drop-shadow(-1.5px 0 0 var(--wine)) drop-shadow(0 1.5px 0 var(--wine)) drop-shadow(0 -1.5px 0 var(--wine)) drop-shadow(3px 3px 0 var(--ink));
}
.dev-stamp::after { content: ""; position: absolute; inset: 18%; border: 1px dashed var(--wine); border-radius: 50%; opacity: .5; }
.dev-stamp::before { content: ""; position: absolute; inset: 0; background: var(--butter); clip-path: polygon(50.0% 0.0%,58.4% 7.8%,69.1% 3.8%,73.9% 14.2%,85.4% 14.6%,85.8% 26.1%,96.2% 30.9%,92.2% 41.6%,100.0% 50.0%,92.2% 58.4%,96.2% 69.1%,85.8% 73.9%,85.4% 85.4%,73.9% 85.8%,69.1% 96.2%,58.4% 92.2%,50.0% 100.0%,41.6% 92.2%,30.9% 96.2%,26.1% 85.8%,14.6% 85.4%,14.2% 73.9%,3.8% 69.1%,7.8% 58.4%,0.0% 50.0%,7.8% 41.6%,3.8% 30.9%,14.2% 26.1%,14.6% 14.6%,26.1% 14.2%,30.9% 3.8%,41.6% 7.8%); animation: spin 24s linear infinite; }
.dev-stamp span { position: relative; display: flex; flex-direction: column; align-items: center; font-weight: 800; font-size: 11px; line-height: .9; letter-spacing: -.02em; text-transform: uppercase; transform: rotate(8deg); }
.dev-stamp i { font-family: var(--serif); font-weight: 400; font-size: 1.45em; text-transform: none; }
.dev-card:hover .dev-stamp::before { animation-duration: 4s; }
.dev-links { display: flex; gap: 8px; }
.dev-links a, .dev-links button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 12px;
  background: none; color: inherit; border: 2px solid var(--wine); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  transition: background .25s, color .25s;
}
.dev-links a:hover, .dev-links button:hover, .dev-copy[data-copied] { background: var(--wine); color: var(--butter); }

/* Tarjeta de Edu: tarjeta de visita de dos caras pegada con celo.
   La caja (fondo, borde, sombra) pasa a cada cara; .dev-card solo
   coloca y da perspectiva. La cara oculta lleva visibility: hidden
   para que no se tabule: la que sale se esconde a mitad del giro y
   la que entra aparece en seguida (backface-visibility la tapa). */
.dev-biz { padding: 0; background: none; border: 0; box-shadow: none; perspective: 1000px; animation-name: dev-drop; }
@keyframes dev-drop { from { opacity: 0; transform: translateY(10px) rotate(-5deg); } to { opacity: 1; transform: none; } }
.dev-flip { display: grid; transform-style: preserve-3d; rotate: -1.5deg; transition: transform .7s var(--out), rotate .45s var(--out); }
.dev-biz:hover .dev-flip, .dev-biz:focus-within .dev-flip { rotate: 0deg; }
.dev-biz[data-flipped] .dev-flip { transform: rotateY(180deg); }
.dev-face {
  grid-area: 1 / 1; position: relative; isolation: isolate;
  display: flex; flex-direction: column; gap: 14px; padding: 16px 16px 16px 20px;
  /* Interior burdeos con la trama de la web, pero de cuadraditos en
     vez de puntos (queda de reserva sin el fondo de ondas) */
  background: var(--wine) conic-gradient(at 2.5px 2.5px, transparent 75%, rgba(247,228,147,.14) 0) 6px 6px / 14px 14px;
  color: var(--butter); --focus: var(--butter);
  /* Filo butter por fuera del borde vino, como el contorno del sello,
     para que la tarjeta se recorte sobre el fondo vino del footer */
  border: 2px solid var(--wine); box-shadow: 0 0 0 3px var(--butter), 7px 7px 0 3px var(--ink);
  backface-visibility: hidden; visibility: hidden; transition: visibility 0s .35s;
}
.dev-biz:not([data-flipped]) .dev-front, .dev-biz[data-flipped] .dev-back { visibility: visible; transition-delay: 0s; }
.dev-back { transform: rotateY(180deg); }
/* Celo arriba, como los .stk-tape de las páginas */
.dev-face::before { content: ""; position: absolute; left: 50%; top: -12px; width: 64px; height: 22px; margin-left: -32px; background: rgba(255,255,255,.45); transform: rotate(-4deg); }
/* Fondo de ondas de caracteres (js/site.js, mountDevWaves): bajo el
   contenido de la cara (isolation) y recortado a ella sin cortar el
   avatar, el sello ni el celo. Montado, quita la trama de cuadraditos */
.dev-waves { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.dev-face.has-waves { background-image: none; }
.dev-front .dev-links, .dev-back .dev-links { padding-top: 14px; border-top: 1px dashed rgba(247,228,147,.35); }
/* Sobre el burdeos, botones y marca de "Coding" en butter */
.dev-biz .dev-links a, .dev-biz .dev-links button { border-color: var(--butter); }
.dev-biz .dev-links a:hover, .dev-biz .dev-links button:hover, .dev-biz .dev-copy[data-copied] { background: var(--butter); color: var(--wine); }
.dev-biz .dev-role .ann { --ann-color: var(--butter); }
.dev-back .dev-links { margin-top: auto; }
.dev-links .dev-turn { flex: none; width: 40px; padding: 0; font-size: 18px; letter-spacing: 0; }
.dev-turn span { display: inline-block; transition: rotate .45s var(--out); }
.dev-turn:hover span { rotate: 180deg; }
.dev-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.dev-mail { width: fit-content; font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.05; letter-spacing: -.02em; border-bottom: 1px solid transparent; transition: border-color .25s; }
.dev-mail:hover { border-bottom-color: currentColor; }
/* Toque de terminal: prompt con cursor que parpadea encima del nombre
   y el rol como su salida. Con movimiento reducido el cursor se queda fijo */
.dev-cmd { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; opacity: .7; }
.dev-caret { display: inline-block; width: .6em; height: 1.1em; margin-left: 3px; vertical-align: -.2em; background: currentColor; animation: dev-blink 1.1s steps(1) infinite; }
@keyframes dev-blink { 50% { opacity: 0; } }
.dev-biz .dev-role::before { content: "> "; content: "> " / ""; opacity: .55; }

/* Solo para lectores de pantalla */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Créditos de los objetos 3D: la misma tarjeta, pero colgada de toda
   la línea del © y alineada a su izquierda (el botón queda pegado al
   borde de la página y centrada se saldría) */
.foot-rights { position: relative; }
.cred-wrap { position: static; }
.cred-card { left: 0; translate: none; width: min(400px, calc(100vw - 2 * var(--pad-x))); gap: 12px; }
.cred-title { padding-right: 44px; }
.cred-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cred-list li { display: flex; flex-direction: column; gap: 2px; font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.cred-list a { border-bottom: 1px solid transparent; transition: border-color .25s; }
.cred-list a:hover, .cred-list a:focus-visible { border-bottom-color: currentColor; }
.cred-by { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .04em; }
.cred-note { padding-top: 10px; border-top: 1px dashed rgba(87,3,0,.35); font-family: var(--mono); font-size: 10px; line-height: 1.5; letter-spacing: .04em; }

.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 2px solid var(--butter); font-family: var(--mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.lost { position: relative; display: inline-block; min-height: 44px; line-height: 44px; }
.lost .b { display: none; }
.lost:hover .a { display: none; }
.lost:hover .b { display: inline; }
.up { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; color: var(--butter); border-bottom: 2px solid var(--butter); transition: transform .3s var(--out); }
.up:hover { transform: translateY(-6px); }

/* --- Responsive ------------------------------------------- */
/* La nav colapsa antes que el resto (1200): con el selector de
   idioma, los enlaces no caben por debajo. */
@media (max-width: 1200px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
}
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-id { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .site-foot { padding-bottom: 32px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 40px 0 32px; }
  .foot { flex-direction: column; align-items: flex-start; gap: 4px; }
  /* En columna el popover cuelga de toda la línea del crédito y se
     alinea a su izquierda, para no salirse por la derecha */
  .foot-credit { position: relative; }
  .dev-wrap { position: static; }
  .dev-card { left: 0; translate: none; }
  .dev-stamp { right: -10px; }
  .dev-links a, .dev-links button { min-height: 44px; }
  .dev-links .dev-turn { width: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; translate: none; }
  html { scroll-behavior: auto; }
}
