/* Mari · portfolio
   Concepto: un fichero bordó. Las solapas son el menú; cada sección es una hoja que se apoya sobre la anterior.
   Una sola apariencia de marca (no cambia con el tema del sistema). */
:root {
  --papel: #F3EEE8;
  --hoja: #FFFDFA;
  --bordo: #842236;
  --bordo-osc: #6E1C2D;
  --bordo-luz: #B4566C;
  --tinta: #1E1517;
  --rosa: #E9C2CA;
  --plata: #B7B6BA;
  --gris: #4A3F41;
  --gris-claro: #D8D3C8;
  --sobre: #E7DED3;

  /* Sistema tipográfico de MARI
     Fraunces (itálica y regular): títulos y acentos expresivos, con medida.
     Archivo Regular: todo lo que se lee (bajadas, párrafos, descripciones, biografía).
     Archivo Black: etiquetas importantes, llamadas de atención y botones.
     Archivo Narrow: metadatos, categorías, fechas y anotaciones. */
  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-texto: 'Archivo', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --f-etiqueta: 'Archivo', 'Arial Black', Arial, sans-serif;
  --f-nota: 'Archivo Narrow', 'Arial Narrow', Arial, sans-serif;

  /* el logo es provisorio: se reemplaza pisando img/logo/logotipo.svg y volviendo a generar las páginas */

  --hoja-max: 1240px;
  --pad-hoja: clamp(20px, 5vw, 72px);
  /* curvas de movimiento: salida suave (llega y se asienta), entrada-salida (objetos con peso) */
  --suave: cubic-bezier(.16, 1, .3, 1);
  --firme: cubic-bezier(.65, 0, .35, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--sobre);
  color: var(--tinta);
  font-family: var(--f-texto);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--bordo); }
a:hover { color: var(--tinta); }
:focus-visible { outline: 2px solid var(--bordo); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; text-wrap: balance; }
/* títulos que no son encabezados de HTML */
.intro__titulo, .etapa__titulo, .sensacion__texto, .siguiente__nombre, .creditos__titulo, .sobre-grande__titulo, .intro-foto__concepto,
.tarjeta__nombre, .mini__nombre, .hoja-m__pregunta, .servicios li, .carta__titulo, .velo-aa span { font-family: var(--f-display); }

.saltar {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--hoja); color: var(--tinta); padding: 10px 16px; border-radius: 6px;
}
.saltar:focus { top: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* logo: va dentro del HTML y toma el color del texto (currentColor) */
.marca-logo { display: block; width: 100%; height: auto; overflow: visible; }

/* ---------- estructura: pantalla completa, contenido en una columna de --hoja-max ---------- */
.pagina { position: relative; overflow-x: clip; }
.cabecera, .hoja, .pie { --margen: max(var(--pad-hoja), calc((100% - var(--hoja-max)) / 2)); }

/* ---------- cabecera: logo y solapas del fichero ---------- */
.cabecera {
  position: relative; z-index: 3;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: 18px var(--margen) 0;
  background: var(--sobre);
}
.logo { display: block; width: 104px; padding-bottom: 10px; color: var(--bordo); transition: color .2s ease; }
.logo:hover { color: var(--tinta); }
.logo .marca-logo { width: 100%; }
.pestanas { display: flex; gap: 10px; align-items: flex-end; padding-right: 6px; }
.pestana {
  position: relative; isolation: isolate;
  font-family: var(--f-etiqueta); font-weight: 900; font-size: 11px; line-height: 1; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; color: var(--papel); white-space: nowrap;
  padding: 16px 24px 14px;
}
/* la solapa es parte de la ficha: mismo cartón, sin movimiento; el hover solo la ilumina */
.pestana::before {
  content: ""; position: absolute; inset: 0 -5px -1px; z-index: -1;
  background: var(--fondo-pestana, var(--bordo) url(../img/objetos/textura-bordo.webp) 0 0 / 600px auto);
  border-radius: 9px 9px 0 0;
  transform: perspective(50px) rotateX(7deg); transform-origin: 50% 100%;
  transition: filter .2s ease;
}
.pestana:hover { color: var(--hoja); }
.pestana:hover::before { filter: brightness(1.14); }
.pestana[aria-current="page"] { color: var(--rosa); }
.pestana:focus-visible { outline-color: var(--rosa); outline-offset: -4px; }

/* ---------- hojas (separadores) ---------- */
.hoja { position: relative; padding: 96px var(--margen) 160px; }
.hoja > * { position: relative; z-index: 2; }
.hoja + .hoja { margin-top: -40px; box-shadow: 0 -12px 32px rgba(30, 21, 23, .12); }
.hoja--papel { background: var(--papel); }
.hoja--rosa { background: var(--rosa); }
.hoja--tinta { background: var(--tinta); color: var(--papel); }
.hoja--tinta a:not(.boton) { color: var(--rosa); }
.hoja--tinta a:not(.boton):hover { color: var(--hoja); }
.hoja--bordo { background: var(--bordo); color: var(--papel); }
.hoja--bordo a:not(.boton) { color: var(--rosa); }
.hoja--bordo a:not(.boton):hover { color: var(--hoja); }
.hoja--fichero { background: var(--bordo) url(../img/objetos/textura-bordo.webp) 0 0 / 600px auto; color: var(--papel); }
.hoja > .separador {
  position: absolute; z-index: 2; top: -42px; left: calc(var(--margen) + var(--x, 72px) - 72px);
  margin: 0; font-family: var(--f-etiqueta); font-weight: 900; font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  padding: 16px 26px 14px; border-radius: 12px 12px 0 0; background: inherit; color: inherit;
}
.hoja--rosa > .separador { color: var(--tinta); }

.grilla { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }

/* ---------- objetos compartidos ---------- */
/* clip: siempre muerde un borde, la mitad queda afuera del papel */
.clip { position: absolute; z-index: 5; width: 20px; height: auto; top: -34px; left: 26px; filter: drop-shadow(1px 2px 1.5px rgba(30,21,23,.3)); pointer-events: none; }

/* foto montada en papel calado */
.calado-foto { position: relative; aspect-ratio: 802 / 1000; }
.calado-foto__img { position: absolute; inset: 9% 10.5%; width: 79%; height: 82%; object-fit: cover; object-position: 50% 15%; }
.calado-foto__marco { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 8px 14px rgba(30,21,23,.18)); }

/* ---------- botones: todos iguales, planos y redondeados ----------
   Sobre fondos claros son bordó; sobre fondos oscuros, papel. */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; align-self: flex-start;
  padding: 13px 24px 12px; border: 0; border-radius: 999px; text-decoration: none; cursor: pointer;
  font-family: var(--f-etiqueta); font-weight: 900; font-size: 11.5px; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  background: var(--bordo); color: var(--hoja);
  transition: background-color .2s ease, color .2s ease;
}
.boton:hover, .boton:focus-visible { background: var(--bordo-osc); color: var(--hoja); }
.hoja--fichero .boton, .hoja--tinta .boton, .hoja--bordo .boton, .pie .boton, .boton--claro-sobre-oscuro { background: var(--papel); color: var(--bordo); }
.hoja--fichero .boton:hover, .hoja--tinta .boton:hover, .hoja--bordo .boton:hover, .pie .boton:hover,
.hoja--fichero .boton:focus-visible, .hoja--tinta .boton:focus-visible, .hoja--bordo .boton:focus-visible { background: var(--rosa); color: var(--tinta); }
.boton--chico { padding: 10px 17px 9px; font-size: 10.5px; }
@media (max-width: 760px) { .boton { padding: 12px 20px 11px; } }

/* ---------- contacto (también en las páginas de proyecto) ---------- */
.escribime { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; flex-wrap: wrap; padding-top: 104px; }
.escribime__texto { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.escribime__titulo { font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: clamp(44px, 5.4vw, 76px); line-height: 1.02; max-width: 12ch; }
.escribime__bajada { max-width: 40ch; font-size: 18px; line-height: 1.55; color: rgba(243, 238, 232, .86); }
.correo { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.escribime__mail { font-size: 20px; overflow-wrap: anywhere; }
.copiar { border: 0; background: rgba(243, 238, 232, .14); color: var(--papel); border-radius: 999px; padding: 7px 16px; font-family: var(--f-nota); font-size: 14px; letter-spacing: .04em; cursor: pointer; transition: background-color .2s, color .2s; }
.copiar:hover, .copiar.hecho { background: var(--rosa); color: var(--tinta); }
.redes { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- pie de página ---------- */
.pie {
  position: relative; z-index: 2; background: var(--bordo-osc); color: rgba(243, 238, 232, .78);
  padding: 40px var(--margen) calc(40px + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "logo logo" "nav redes" "legal legal";
  align-items: center; gap: 22px 48px; font-size: 14px;
}
.pie a { color: inherit; text-decoration: none; }
.pie a:hover { color: var(--hoja); }
.pie__logo { grid-area: logo; width: 84px; color: var(--papel); }
.pie__redes { grid-area: redes; padding-top: 18px; }
.pie__nav { grid-area: nav; justify-content: flex-start; padding-top: 18px; }
.pie__nav, .pie__redes { display: flex; gap: 8px 28px; flex-wrap: wrap; }
.pie__legal { grid-area: legal; font-family: var(--f-nota); letter-spacing: .02em; padding-top: 18px; border-top: 1px solid rgba(243, 238, 232, .16); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }

/* ---------- apariciones al entrar en pantalla ---------- */
.revela, .asienta { transition: opacity .6s ease-out, translate .9s var(--suave); }
.js .revela:not(.en-vista), .js .asienta:not(.en-vista) { opacity: 0; translate: 0 32px; }

.sin-transicion, .sin-transicion * { transition: none !important; }

/* ---------- móvil ---------- */
@media (max-width: 760px) {
  .grilla { grid-template-columns: minmax(0, 1fr); }
  .grilla > * { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .hoja { padding-top: 64px; padding-bottom: 120px; }
  .hoja > .separador { left: 16px !important; padding: 12px 16px 10px; top: -36px; }
  .hoja + .hoja { margin-top: -32px; }
  .cabecera { padding-top: 14px; }
  .logo { width: 78px; padding-bottom: 9px; }
  .pestanas { gap: 7px; padding-right: 4px; }
  .pestana { padding: 12px 10px 10px; font-size: 9.5px; letter-spacing: .1em; }
  .pestana::before { inset: 0 -3px -1px; border-radius: 7px 7px 0 0; }
  .pie { grid-template-columns: 1fr; grid-template-areas: "logo" "nav" "redes" "legal"; justify-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  .revela, .asienta { transition-duration: .01s !important; }
}

/* papel calado dibujado (páginas de proyecto) */
.calado { position: absolute; inset: -6px; background: radial-gradient(circle at 6px 6px, var(--hoja) 5.6px, transparent 6.3px) 0 0 / 12px 12px; }
.papel { position: relative; height: 100%; background: var(--hoja); }
.papel--agujeros::after { content: ""; position: absolute; inset: 4px; border: 2px dotted rgba(30, 21, 23, .16); pointer-events: none; }
.papel img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sobre-grande__foto img { object-position: 50% 12%; }
@keyframes aparecer { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }

/* =========================================================
   PÁGINAS DE PROYECTO
   ========================================================= */
.volver { margin-bottom: 40px; }
.proyecto { padding-top: 48px; }
.proyecto img, .proyecto-foto img { width: 100%; height: auto; }
.pie-proyecto { margin-top: -40px; }

/* apertura: un solo objeto sobre el campo de color de la marca */
.apertura { position: relative; background: var(--campo); border-radius: 4px; min-height: clamp(320px, 42vw, 560px); display: grid; place-items: center; overflow: hidden; }
.apertura__etiqueta {
  position: relative; width: min(440px, 76%); aspect-ratio: 440 / 230; background: var(--hoja);
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 14% 100%, 0 50%);
  display: grid; place-items: center; padding: 8% 8% 8% 22%; transform: rotate(-4deg);
  filter: drop-shadow(0 24px 30px rgba(30,21,23,.22));
}
.apertura__ojal { position: absolute; left: 6.5%; top: 50%; width: 22px; height: 22px; translate: 0 -50%; border-radius: 50%; border: 4px solid var(--plata); background: var(--campo); }
.apertura__logo { max-height: 100%; object-fit: contain; }
.apertura .revela { transition-duration: 1.1s; }

.intro { margin-top: 88px; row-gap: 28px; align-items: start; }
.intro__titulo { grid-column: 1 / span 5; font-style: italic; font-size: clamp(56px, 7vw, 104px); line-height: .95; color: var(--bordo); }
.intro__texto { grid-column: 6 / span 5; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; }
.intro__meta { grid-column: 6 / span 5; font-size: 15px; color: var(--gris); line-height: 1.6; }
.a-sangre { margin: 88px 0 0; }
.a-sangre img { border-radius: 2px; }
.sensacion { margin-top: 120px; }
.sensacion__texto { grid-column: 2 / span 9; font-style: italic; font-weight: 300; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.3; color: var(--bordo); text-wrap: balance; }

.etapa { margin-top: 160px; row-gap: 32px; align-items: start; }
.etapa__titulo { grid-column: 1 / span 4; font-style: italic; font-size: clamp(48px, 5vw, 72px); line-height: 1; color: var(--bordo); }
.etapa__texto { grid-column: 6 / span 6; font-size: 19px; line-height: 1.6; }
.moodboard { grid-column: 1 / span 8; position: relative; margin: 24px 0 0; filter: drop-shadow(0 16px 30px rgba(30,21,23,.14)); }
.moodboard .clip { top: -40px; left: 40px; width: 24px; }
.notas { grid-column: 10 / span 3; display: flex; flex-direction: column; gap: 22px; margin-top: 24px; }
.nota-margen { font-family: var(--f-nota); font-size: 14px; letter-spacing: .02em; line-height: 1.5; border-left: 1px solid var(--bordo); padding-left: 14px; color: var(--gris); }

.logo-campo { grid-column: 1 / span 7; display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 10%; margin-top: 24px; border-radius: 2px; }
.logo-campo img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.sistema { grid-column: 8 / span 5; margin-top: 24px; display: flex; flex-direction: column; gap: 28px; }
.paleta-hex { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.paleta-hex li { display: flex; flex-direction: column; gap: 6px; }
.muestra { display: block; aspect-ratio: 1; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(30,21,23,.08); transition: transform .3s var(--suave); }
.paleta-hex li:hover .muestra { transform: translateY(-4px) rotate(-2deg); }
.hex { font-family: var(--f-nota); font-size: 14px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.hex-nombre { font-size: 13px; color: var(--gris); margin-top: -4px; }
.tipos { font-size: 18px; }
.tipos span { display: block; font-family: var(--f-nota); font-size: 13px; letter-spacing: .05em; color: var(--gris); margin-bottom: 4px; }

/* comparador: la referencia y su traducción */
.comparador { grid-column: 1 / -1; position: relative; aspect-ratio: 16 / 9; margin-top: 56px; overflow: hidden; border-radius: 2px; --x: 50%; background: var(--sobre); }
.comparador img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.comparador__capa { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.comparador__capa::after { content: ""; position: absolute; inset: 0; background: rgba(250,247,243,.18); -webkit-backdrop-filter: blur(.5px); backdrop-filter: blur(.5px); }
.comparador__linea { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; translate: -1px 0; background: var(--hoja); box-shadow: 0 0 12px rgba(30,21,23,.3); pointer-events: none; }
.comparador__linea::after { content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; translate: -50% -50%; border-radius: 50%; border: 6px solid var(--plata); background: rgba(250,247,243,.4); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.comparador__rotulo { position: absolute; bottom: 16px; padding: 6px 14px; border-radius: 999px; background: rgba(250,247,243,.85); font-size: 14px; pointer-events: none; }
.comparador__rotulo--izq { left: 16px; }
.comparador__rotulo--der { right: 16px; }
.comparador__control { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.comparador:focus-within .comparador__linea::after { outline: 2px solid var(--bordo); outline-offset: 3px; }

.apps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-top: 32px; align-items: start; }
.app { margin: 0; }
.app img { border-radius: 2px; box-shadow: 0 14px 30px rgba(30,21,23,.1); }
.app--full { grid-column: 1 / -1; }
.app--siete { grid-column: span 7; }
.app--cinco { grid-column: span 5; }
.app--seis { grid-column: span 6; }
.app--seis:nth-of-type(even) { margin-top: 80px; }

.siguiente { margin-top: 160px; border-top: 1px solid currentColor; padding-top: 28px; }
.siguiente a { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; text-decoration: none; color: inherit; }
.siguiente__pre { font-size: 17px; }
.siguiente__nombre { font-style: italic; font-weight: 700; font-size: clamp(40px, 5vw, 72px); line-height: 1; color: var(--bordo); transition: translate .4s var(--suave); }
.siguiente a:hover .siguiente__nombre { translate: 12px 0; }

/* ---------- proyecto de fotografía ---------- */
.proyecto-foto { background: var(--fondo); color: var(--texto); padding-top: 48px; }
.proyecto-foto .siguiente__nombre { color: var(--texto); }
.proyecto-foto .boton--sobre { background: var(--texto); color: var(--fondo); }
.proyecto-foto .boton--sobre:hover { background: color-mix(in srgb, var(--texto) 82%, var(--fondo)); color: var(--fondo); }
.apertura-foto { display: grid; place-items: center; padding-block: 24px 40px; }
.sobre-grande { position: relative; width: min(560px, 100%); aspect-ratio: 560 / 720; }
.sobre-grande__foto {
  position: absolute; left: 9%; right: 9%; top: 0; height: 74%; padding: 0; border: 0; background: none; cursor: zoom-in;
  filter: drop-shadow(0 18px 26px rgba(0,0,0,.25));
}
.sobre-grande__foto .papel { display: block; height: 100%; padding: 12px; }
.sobre-grande__foto img { height: 100%; object-fit: cover; }
.sobre-grande__bolsillo {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background: rgba(250, 247, 243, .8); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,.6); box-shadow: 0 22px 44px rgba(0,0,0,.22);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 9%; color: var(--tinta);
}
.sobre-grande__bolsillo svg { position: absolute; left: 0; top: 0; width: 100%; height: 38%; }
.sobre-grande__titulo { font-style: italic; font-size: clamp(34px, 4.6vw, 56px); line-height: 1; text-align: center; }
.sobre-grande__tipo { margin-top: 10px; font-size: 16px; color: var(--gris); }
@media (prefers-reduced-motion: no-preference) {
  .sobre-grande__foto { animation: sale-del-sobre 1.4s var(--suave) .3s both; }
}
@keyframes sale-del-sobre { from { translate: 0 34%; } to { translate: 0 0; } }
.sobre-grande__foto:hover { translate: 0 -8px; transition: translate .4s var(--suave); }

.intro-foto { margin-top: 72px; row-gap: 32px; align-items: start; }
.intro-foto__concepto { grid-column: 1 / span 7; font-weight: 300; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.4; }
.intro-foto__datos { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 20px; font-size: 16px; line-height: 1.55; }
.intro-foto__datos span { display: block; font-family: var(--f-nota); font-size: 13px; letter-spacing: .05em; color: var(--texto-suave); margin-bottom: 4px; }

.serie { margin-top: 120px; display: flex; flex-direction: column; gap: clamp(64px, 9vw, 140px); }
.serie__fila { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.serie__fila--par .foto:first-child { grid-column: 1 / span 6; }
.serie__fila--par .foto:last-child { grid-column: 7 / span 6; }
.serie__fila--sola .foto { grid-column: 4 / span 6; }
.serie__fila--desfasada .foto--alta { grid-column: 1 / span 5; }
.serie__fila--desfasada .foto--baja { grid-column: 8 / span 4; margin-top: 30%; }
.serie__fila--trio .foto { grid-column: span 4; }
.foto { margin: 0; }
.foto__abrir { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; border-radius: 2px; }
.foto__abrir img { transition: scale .8s var(--suave); }
.foto__abrir:hover img { scale: 1.03; }

.creditos { margin-top: 160px; row-gap: 24px; }
.creditos__titulo { grid-column: 1 / span 4; font-style: italic; font-size: clamp(40px, 4vw, 56px); line-height: 1; }
.creditos__lista { grid-column: 6 / span 7; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; }
.creditos__lista div { border-top: 1px solid color-mix(in srgb, var(--texto) 30%, transparent); padding-top: 10px; }
.creditos__lista dt { font-family: var(--f-nota); font-size: 13px; letter-spacing: .05em; color: var(--texto-suave); }
.creditos__lista dd { margin: 4px 0 0; font-size: 17px; }

/* visor de fotos */
.visor { position: fixed; inset: 0; z-index: 80; background: rgba(14, 10, 11, .94); display: grid; place-items: center; padding: max(24px, env(safe-area-inset-top, 0px)) max(64px, env(safe-area-inset-right, 0px)) max(48px, env(safe-area-inset-bottom, 0px)) max(64px, env(safe-area-inset-left, 0px)); }
.visor__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 30px 60px rgba(0,0,0,.4); }
.visor button { position: absolute; border: 0; background: rgba(243,238,232,.12); color: var(--papel); width: 48px; height: 48px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; }
.visor button:hover { background: rgba(243,238,232,.25); }
.visor__cerrar { top: calc(16px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); }
.visor__nav--ant { left: calc(10px + env(safe-area-inset-left, 0px)); top: 50%; translate: 0 -50%; }
.visor__nav--sig { right: calc(10px + env(safe-area-inset-right, 0px)); top: 50%; translate: 0 -50%; }
.visor__cuenta { position: absolute; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; text-align: center; color: var(--gris-claro); font-size: 15px; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) { .visor:not([hidden]) .visor__img { animation: aparecer .4s ease-out both; } }

@media (max-width: 760px) {
  .intro__titulo, .intro__texto, .intro__meta, .etapa__titulo, .etapa__texto, .moodboard, .notas, .logo-campo, .sistema, .sensacion__texto,
  .intro-foto__concepto, .intro-foto__datos, .creditos__titulo, .creditos__lista { grid-column: 1 / -1; }
  .apps, .serie__fila { grid-template-columns: minmax(0, 1fr); }
  .apps > *, .serie__fila .foto { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .creditos__lista { grid-template-columns: 1fr; }
  .etapa, .creditos, .siguiente { margin-top: 96px; }
  .intro, .a-sangre { margin-top: 56px; }
  .comparador { aspect-ratio: 4 / 5; }
  .visor { padding-inline: 12px; }
  .visor__nav { top: auto !important; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); translate: none !important; }
}

