/* =========================================================
   Andrés Catalá · Galería virtual
   ========================================================= */
:root {
  --negro: #0e0d0c;
  --carbon: #171513;
  --pared: #1f1c1a;
  --linea: rgba(236, 231, 223, .14);
  --papel: #ece7df;
  --papel-2: #b9b2a8;
  --papel-3: #8a847b;
  --rojo: #e0281d;
  --luz: 255, 236, 205;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--negro);
  color: var(--papel);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: .95; letter-spacing: -.01em; }
em { font-style: italic; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--papel); color: var(--negro); padding: 8px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--rojo); outline-offset: 3px; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--papel-3);
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border: 1px solid var(--rojo); border-radius: 999px;
  background: var(--rojo); color: #fff;
  font-size: 14px; font-weight: 600; letter-spacing: .04em; text-decoration: none;
  transition: transform .3s var(--ease), background .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--linea { background: transparent; border-color: var(--linea); color: var(--papel); }
.btn--linea:hover { border-color: var(--papel); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background .4s, transform .5s var(--ease), padding .4s;
}
.nav.solida { background: rgba(14, 13, 12, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 12px; }
.nav.oculta { transform: translateY(-110%); }
.nav-logo { font-family: var(--serif); font-size: 26px; text-decoration: none; letter-spacing: .01em; }
.nav-logo em { color: var(--rojo); }
.nav-links { display: flex; gap: clamp(16px, 2.6vw, 36px); }
.nav-links a { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--papel-2); transition: color .2s; }
.nav-links a:hover { color: var(--papel); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; }
.nav-toggle i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--papel); transition: transform .3s var(--ease); }
.nav-toggle i:first-of-type { top: 18px; }
.nav-toggle i:last-of-type { top: 26px; }
.nav-toggle[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; margin-right: -10px; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; align-items: center; gap: 28px;
    background: rgba(14, 13, 12, .97);
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav-links a { font-family: var(--serif); font-size: 40px; text-transform: none; letter-spacing: 0; color: var(--papel); }
  .nav.abierta .nav-links { opacity: 1; pointer-events: auto; }
}

/* ---------- Portada ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px var(--gutter) 90px;
  overflow: hidden; isolation: isolate;
}
.hero-img { position: absolute; inset: 0; z-index: -1; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 30%; animation: heroIn 2.4s var(--ease) both; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.55), transparent 60%), linear-gradient(0deg, var(--negro), transparent 30%); }
@keyframes heroIn { from { opacity: 0; transform: scale(1.06); } }
.hero-text { max-width: 560px; animation: subir 1.2s .3s var(--ease) both; }
.hero h1 { font-size: clamp(72px, 13vw, 190px); }
.hero h1 em { color: var(--papel); }
.trazo { width: min(320px, 70%); height: 24px; margin: 18px 0 22px -4px; overflow: visible; }
.trazo path { fill: none; stroke: var(--rojo); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; animation: pintar 1.4s 1s var(--ease) forwards; }
@keyframes pintar { to { stroke-dashoffset: 0; } }
@keyframes subir { from { opacity: 0; transform: translateY(24px); } }
.hero-lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--papel-2); max-width: 400px; margin: 0 0 32px; }
.hero-scroll { position: absolute; left: 50%; bottom: 28px; width: 22px; height: 36px; border: 1.5px solid var(--papel-3); border-radius: 12px; transform: translateX(-50%); }
.hero-scroll span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--papel); animation: rueda 1.8s infinite; }
@keyframes rueda { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (max-width: 699px) {
  .hero { align-items: flex-end; padding-bottom: 96px; }
  .hero-img img { object-position: 70% 20%; }
  .hero::after { background: linear-gradient(0deg, var(--negro) 8%, rgba(14,13,12,.6) 45%, transparent 75%); }
}

/* ---------- Sala virtual ---------- */
.sala { position: relative; background: var(--pared); }
.sala-sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.sala-vista { position: relative; flex: 1; overflow: hidden; background: var(--pared); }
.sala-vista::before { /* techo en penumbra */
  content: ""; position: absolute; inset: 0 0 auto; height: 38%; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.55), transparent);
}
.pared-textura {
  position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.track { position: absolute; top: 0; left: 0; height: 100%; will-change: transform; }
.obra-grupo { position: absolute; inset: 0; pointer-events: none; }
.obra-grupo .obra, .obra-grupo .cartela { pointer-events: auto; }

.suelo {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0, transparent 14px),
    linear-gradient(180deg, #2a2521, #121010 90%);
  border-top: 1px solid rgba(255,255,255,.05);
}
.suelo::before { /* rodapié */
  content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 9px;
  background: #151311; border-top: 1px solid rgba(255,255,255,.04);
}

.riel { position: absolute; top: 0; height: 6px; z-index: 3; background: #0b0a09; box-shadow: 0 1px 0 rgba(255,255,255,.05); }
.foco { position: absolute; top: 0; z-index: 3; width: 14px; height: 22px; margin-left: -7px; background: linear-gradient(#1a1816, #050505); border-radius: 0 0 6px 6px; }
.foco::after { content: ""; position: absolute; left: 3px; right: 3px; bottom: -2px; height: 3px; border-radius: 3px; background: rgb(var(--luz)); opacity: .4; box-shadow: 0 0 12px 3px rgba(var(--luz), .5); transition: opacity .6s; }

.cono {
  position: absolute; top: 18px; z-index: 0; pointer-events: none;
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(var(--luz), .13), rgba(var(--luz), .03) 70%, transparent);
  opacity: .35; transition: opacity .8s var(--ease);
}
.halo {
  position: absolute; z-index: 0; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--luz), .2), rgba(var(--luz), .06) 55%, transparent);
  opacity: .45; transition: opacity .8s var(--ease);
}
.charco {
  position: absolute; z-index: 1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--luz), .12), transparent);
  opacity: .4; transition: opacity .8s var(--ease);
}

.obra {
  position: absolute; z-index: 2;
  padding: 0; border: 0; background: #2a2622;
  box-shadow:
    0 1px 1px rgba(0,0,0,.6),
    3px 5px 6px rgba(0,0,0,.45),
    12px 22px 40px -6px rgba(0,0,0,.65);
  filter: brightness(.62) saturate(.85);
  transition: filter .8s var(--ease), transform .5s var(--ease);
  -webkit-box-reflect: below var(--reflejo, 200px) linear-gradient(transparent 55%, rgba(255,255,255,.07));
}
.obra img { width: 100%; height: 100%; object-fit: cover; }
.obra::after { /* canto del bastidor */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset -1px -1px 0 rgba(0,0,0,.35), inset 1px 1px 0 rgba(255,255,255,.06);
}
.obra:hover { transform: translateY(-2px); }
.obra-grupo.activa .obra { filter: none; }
.obra-grupo.activa .cono { opacity: 1; }
.obra-grupo.activa .halo { opacity: 1; }
.obra-grupo.activa .charco { opacity: 1; }
.obra-grupo.activa .foco::after { opacity: 1; }

.cartela {
  position: absolute; z-index: 2; width: 150px;
  font-size: 11px; line-height: 1.45; color: var(--papel-2);
  opacity: .35; transform: translateY(6px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.cartela strong { display: block; font: italic 400 19px/1.1 var(--serif); color: var(--papel); margin-bottom: 4px; }
.cartela .ver { display: inline-block; margin-top: 8px; color: var(--rojo); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 10px; }
.obra-grupo.activa .cartela { opacity: 1; transform: none; }

/* Estado: el punto rojo de galería indica obra vendida */
.estado { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--papel-2); }
.estado::before { content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.estado--vendido::before { background: var(--rojo); box-shadow: 0 0 0 2px rgba(224,40,29,.18); }
.estado--disponible::before { border: 1.5px solid #8fbf7f; }
.estado--disponible { color: #a9cf9b; }
.cartela .estado + .ver { margin-top: 6px; }
.ficha dd .estado { margin: 0; justify-content: flex-end; font-size: 12px; }
.ficha dl div[hidden] { display: none; }
.chip-estado {
  position: absolute; top: 12px; left: 12px;
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 8px; border-radius: 999px;
  background: rgba(14,13,12,.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--papel-2);
}
.chip-estado::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.chip-estado--vendido::before { background: var(--rojo); }
.chip-estado--disponible { color: #a9cf9b; }
.chip-estado--disponible::before { border: 1.5px solid #8fbf7f; }
.filtro .filtro-disp { margin-left: 8px; }
.filtro .filtro-disp[aria-pressed="true"] { border-color: #8fbf7f; }

.panel-sala { position: absolute; z-index: 2; max-width: 320px; }
.panel-sala h2 { font-size: clamp(40px, 6vh, 72px); }
.panel-sala h2 em { color: var(--rojo); }
.panel-sala p { color: var(--papel-2); font-size: 14px; margin: 14px 0 0; }
.panel-sala .btn { margin-top: 22px; }

.visitante {
  position: absolute; z-index: 4; left: clamp(12px, 9vw, 140px); bottom: 0;
  color: #050505; pointer-events: none;
  transition: opacity .6s var(--ease);
}
.visitante svg { display: block; height: 100%; width: auto; fill: currentColor; filter: drop-shadow(0 0 1px rgba(var(--luz), .25)); transform-origin: 50% 100%; }
.visitante.andando svg { animation: paso .42s ease-in-out infinite; }
@keyframes paso { 50% { transform: translateY(-1.2%) rotate(.6deg); } }
.visitante-etq {
  position: absolute; left: 100%; bottom: 62%; margin-left: 10px; white-space: nowrap;
  font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--papel-3);
}
.visitante-etq::before { content: ""; display: inline-block; width: 14px; height: 1px; margin: 0 8px 3px 0; background: currentColor; vertical-align: middle; }
.sala.cerca .visitante { opacity: 0; }
.visitante.tenue { opacity: .16; }

.sala-pista {
  position: absolute; left: 50%; bottom: 18%; z-index: 5; margin: 0;
  transform: translateX(-50%);
  padding: 10px 18px; border-radius: 999px;
  background: rgba(14,13,12,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--papel-2); white-space: nowrap;
  transition: opacity .6s;
}
.sala-pista::after { content: " ↓"; display: inline-block; animation: rebote 1.4s infinite; }
.sala-pista.fuera { opacity: 0; pointer-events: none; }
@keyframes rebote { 50% { transform: translateY(3px); } }

.sala-hud {
  position: relative; z-index: 6;
  display: flex; align-items: center; gap: 16px;
  padding: 14px var(--gutter);
  background: var(--negro);
}
.sala-hud--top { justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.05); }
.salas-tabs { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.salas-tabs button {
  display: flex; align-items: baseline; gap: 8px; flex: none;
  padding: 8px 14px; border: 1px solid transparent; border-radius: 999px; background: none;
  color: var(--papel-3); transition: color .2s, border-color .2s, background .2s;
}
.salas-tabs button b { font: italic 400 20px/1 var(--serif); }
.salas-tabs button span { font-size: 12px; letter-spacing: .06em; }
.salas-tabs button:hover { color: var(--papel); }
.salas-tabs button[aria-selected="true"] { color: var(--papel); border-color: var(--linea); background: rgba(236,231,223,.06); }
.salas-tabs button[aria-selected="true"] b { color: var(--rojo); }
.panel-sala .panel-tema { font: italic 400 26px/1.2 var(--serif); color: var(--papel); margin-top: 6px; }
.filtro { display: flex; flex-wrap: wrap; gap: 8px; margin: -24px 0 32px; }
.filtro button { border: 1px solid var(--linea); background: none; border-radius: 999px; padding: 7px 16px; font-size: 13px; color: var(--papel-2); }
.filtro button[aria-pressed="true"] { border-color: var(--rojo); color: var(--papel); }
.hud-titulo { margin: 0; font: italic 400 24px/1 var(--serif); }
.hud-sub { margin: 2px 0 0; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--papel-3); }
.zoom { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--papel-2); }
.zoom span { min-width: 64px; text-align: center; letter-spacing: .06em; }
.zoom button, .flecha {
  width: 38px; height: 38px; flex: none;
  border: 1px solid var(--linea); border-radius: 50%; background: transparent;
  font-size: 17px; line-height: 1;
  transition: border-color .2s, background .2s;
}
.zoom button:hover, .flecha:hover { border-color: var(--papel); }
.zoom button:disabled, .flecha:disabled { opacity: .3; cursor: default; border-color: var(--linea); }
.sala-hud--bottom { border-top: 1px solid rgba(255,255,255,.05); }
.hud-info { display: flex; flex-direction: column; min-width: 0; flex: 0 1 260px; }
.hud-num { font-size: 11px; letter-spacing: .16em; color: var(--papel-3); }
.hud-obra { font: italic 400 20px/1.2 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-obra small { font: 400 12px var(--sans); color: var(--papel-3); margin-left: 8px; font-style: normal; }
.plano { position: relative; flex: 1; height: 34px; margin: 0 8px; cursor: pointer; }
.plano::before { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--linea); }
.plano-obra { position: absolute; bottom: 9px; background: var(--papel-3); opacity: .55; border: 0; padding: 0; transition: opacity .3s, background .3s; }
.plano-obra.activa { background: var(--rojo); opacity: 1; }
.plano-ventana { position: absolute; top: 0; bottom: 0; border: 1px solid rgba(236,231,223,.5); border-radius: 3px; pointer-events: none; }

@media (max-width: 700px) {
  .sala-hud { padding-block: 10px; gap: 10px; }
  .hud-titulo { font-size: 20px; }
  .salas-tabs button { padding: 8px 10px; }
  .salas-tabs button span { display: none; }
  .zoom span { display: none; }
  .plano { display: none; }
  .hud-info { flex: 1; }
  .hud-obra { font-size: 18px; }
  .cartela { width: 120px; font-size: 10px; }
  .cartela strong { font-size: 16px; }
  .visitante-etq { display: none; }
}

/* ---------- Secciones ---------- */
.seccion { padding: clamp(80px, 12vw, 160px) var(--gutter); max-width: 1440px; margin: 0 auto; }
.seccion h2 { font-size: clamp(48px, 7vw, 104px); }
.seccion-cab { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 32px; margin-bottom: clamp(36px, 5vw, 64px); }
.seccion-cab .eyebrow { flex-basis: 100%; margin: 0; }
.seccion-cab h2 { margin-right: auto; }

/* Catálogo */
.vista-toggle { display: inline-flex; padding: 4px; border: 1px solid var(--linea); border-radius: 999px; }
.vista-toggle button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-size: 13px; color: var(--papel-2); transition: background .3s, color .3s; }
.vista-toggle button[aria-checked="true"] { background: var(--papel); color: var(--negro); }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: clamp(16px, 2vw, 28px); }
.tarjeta { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.tarjeta-marco {
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1; padding: 12%;
  background: radial-gradient(ellipse at 50% 35%, #2b2723, var(--carbon) 70%);
  overflow: hidden;
}
.grid.escala .tarjeta-marco { align-items: flex-end; padding-bottom: 16%; }
.tarjeta-marco img {
  width: var(--w-igual); height: auto;
  box-shadow: 4px 8px 18px rgba(0,0,0,.5);
  transition: width .7s var(--ease), transform .5s var(--ease);
}
.grid.escala .tarjeta-marco img { width: var(--w-escala); }
.tarjeta:hover .tarjeta-marco img { transform: translateY(-4px); }
.tarjeta-marco::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 16%; height: 1px; background: var(--linea); opacity: 0; transition: opacity .5s; }
.grid.escala .tarjeta-marco::after { opacity: 1; }
.tarjeta-pie { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 2px 0; }
.tarjeta-pie strong { font: italic 400 24px/1.1 var(--serif); }
.tarjeta-pie span { font-size: 12px; color: var(--papel-3); white-space: nowrap; }

/* El pintor */
.pintor-intro { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.pintor-texto p:not(.eyebrow) { font-size: clamp(17px, 1.4vw, 20px); color: var(--papel-2); max-width: 520px; }
.pintor-texto h2 { margin-bottom: 28px; }
.pintor-foto { margin: 0; }
.pintor-foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 60% 40%; }
.sub { font-size: clamp(30px, 3.5vw, 44px); margin: clamp(72px, 9vw, 120px) 0 24px; font-style: italic; }
.carrusel {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 16px;
  scrollbar-width: thin; scrollbar-color: var(--papel-3) transparent;
}
.carrusel figure { flex: none; margin: 0; scroll-snap-align: start; }
.carrusel img { height: clamp(260px, 40vw, 460px); width: auto; object-fit: cover; }
.carrusel figcaption { margin-top: 10px; font-size: 13px; color: var(--papel-3); }
@media (max-width: 860px) { .pintor-intro { grid-template-columns: 1fr; } }

.lema { margin: -8px 0 28px; padding-left: 18px; border-left: 3px solid var(--rojo); font: italic 400 clamp(22px, 2vw, 28px)/1.25 var(--serif); color: var(--papel); }

/* Trayectoria */
.tray-cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); }
.tray-tit { font-size: 13px; font-family: var(--sans); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--papel-3); margin: 0 0 8px; }
.tray-tit:not(:first-child) { margin-top: 48px; }
.tray { list-style: none; margin: 0; padding: 0; }
.tray li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--linea); }
.tray span { font: italic 400 22px/1.2 var(--serif); color: var(--rojo); }
.tray p { margin: 0; color: var(--papel-2); font-size: 14px; }
.tray strong { display: block; font: 400 22px/1.2 var(--serif); color: var(--papel); margin-bottom: 2px; }
@media (max-width: 760px) { .tray-cols { grid-template-columns: 1fr; } }

/* Vídeo */
.yt { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 30%; opacity: .7; transition: opacity .4s, transform 1.2s var(--ease); }
.yt:hover img { opacity: .85; transform: scale(1.02); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play {
  position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px;
  border: 0; border-radius: 50%; background: var(--rojo); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 0 0 0 rgba(224,40,29,.5); animation: latido 2.4s infinite;
  transition: transform .3s var(--ease);
}
.yt-play:hover { transform: scale(1.08); }
.yt-play svg { width: 34px; height: 34px; fill: currentColor; margin-left: 4px; }
@keyframes latido { 70% { box-shadow: 0 0 0 22px rgba(224,40,29,0); } 100% { box-shadow: 0 0 0 0 rgba(224,40,29,0); } }
.yt-nota { position: absolute; left: 16px; bottom: 12px; margin: 0; font-size: 11px; color: var(--papel-3); }

/* Contacto */
.contacto { text-align: center; }
.contacto h2 { max-width: 12ch; margin: 0 auto; }
.contacto-lead { max-width: 480px; margin: 28px auto 40px; color: var(--papel-2); font-size: 18px; }
.contacto-mail {
  display: inline-block; font: italic 400 clamp(28px, 5vw, 64px)/1.1 var(--serif);
  text-decoration: none; background: linear-gradient(var(--rojo), var(--rojo)) 0 100% / 0 2px no-repeat;
  transition: background-size .5s var(--ease); padding-bottom: 6px; overflow-wrap: anywhere;
}
.contacto-mail:hover { background-size: 100% 2px; }

.pie { display: flex; justify-content: space-between; gap: 16px; padding: 28px var(--gutter); border-top: 1px solid var(--linea); font-size: 13px; color: var(--papel-3); }
.pie a { text-decoration: none; }

/* ---------- Ficha ---------- */
.ficha {
  width: min(1240px, 100vw - 32px); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100svh - 32px);
  padding: 0; border: 0; background: var(--carbon); color: var(--papel);
  display: none; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); overflow: hidden;
}
.ficha[open] { display: grid; animation: abrir .5s var(--ease); }
.ficha::backdrop { background: rgba(5,5,5,.85); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@keyframes abrir { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.ficha-img { display: grid; place-items: center; padding: clamp(20px, 4vw, 56px); background: radial-gradient(ellipse at 50% 40%, #2d2925, #141210 75%); min-height: 0; }
.ficha-img img { max-height: calc(100svh - 140px); width: auto; object-fit: contain; box-shadow: 8px 16px 40px rgba(0,0,0,.6); }
.ficha-info { padding: clamp(28px, 3.5vw, 48px); overflow-y: auto; display: flex; flex-direction: column; }
.ficha-info h2 { font-size: clamp(40px, 4vw, 60px); font-style: italic; }
.ficha dl { margin: 28px 0; display: grid; gap: 14px; }
.ficha dl div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--linea); }
.ficha dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--papel-3); }
.ficha dd { margin: 0; text-align: right; }
.escala { margin: 0 0 28px; }
.escala svg { display: block; width: 100%; height: 170px; }
.escala figcaption { font-size: 12px; color: var(--papel-3); margin-top: 8px; }
.ficha-acciones { display: flex; flex-wrap: wrap; gap: 10px; }
.ficha-nav { display: flex; justify-content: space-between; margin-top: auto; padding-top: 28px; }
.ficha-nav button { background: none; border: 0; padding: 8px 0; font-size: 13px; color: var(--papel-2); letter-spacing: .04em; }
.ficha-nav button:hover { color: var(--papel); }
.ficha-cerrar {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(14,13,12,.7); font-size: 26px; line-height: 1;
}
@media (max-width: 820px) {
  .ficha { grid-template-columns: 1fr; overflow-y: auto; }
  .ficha-img img { max-height: 55svh; }
  .ficha-info { overflow: visible; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
