/* Trillizos Torres Pacheco — propuesta de sitio (formadigital)
   Pared de galería clara, noche para el hero, las series y la prensa.
   Tipografía: Archivo (OFL) recortada a tres instancias en tp/fuentes/. */

@font-face { font-family: "TP Display"; src: url(fuentes/tp-display.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "TP Texto"; src: url(fuentes/tp-texto.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "TP Texto"; src: url(fuentes/tp-texto-sb.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --pared: #F2EFE9;
  --pared-2: #E8E3D9;
  --pared-3: #DDD6C9;
  --papel: #FBFAF7;
  --tinta: #171614;
  --tinta-2: #46433D;
  --gris: #726D63;
  --linea: #D5CEC1;
  --rojo: #C8161F;
  --rojo-2: #A51018;
  --noche: #0C1016;
  --noche-2: #141A23;
  --noche-3: #1E2631;
  --noche-txt: #ECE9E2;
  --noche-gris: #9CA3AD;
  --display: "TP Display", "Arial Narrow", "Helvetica Neue", sans-serif;
  --texto: "TP Texto", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1320px;
  --g: clamp(16px, 4vw, 48px);
  --top-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); }
body {
  margin: 0; background: var(--pared); color: var(--tinta);
  font: 400 17px/1.6 var(--texto); font-kerning: normal;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--rojo); outline-offset: 3px; }
::selection { background: var(--rojo); color: #fff; }

/* Idioma: el HTML trae los dos textos; se ve el del <html lang> */
html[lang="es"] [lang="en"], html[lang="en"] [lang="es"] { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--g); }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--tinta); color: #fff; padding: 10px 14px; border-radius: 4px; }
.saltar:focus { top: 12px; }

.eyebrow {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font: 600 12.5px/1.3 var(--texto); letter-spacing: .14em; text-transform: uppercase; color: var(--gris);
}
.punto { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rojo); flex: none; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--tinta); }

h1, h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; }
h2 { font-size: clamp(38px, 5.2vw, 76px); line-height: .94; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 15.5px/1.1 var(--texto); text-decoration: none; letter-spacing: .01em;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-rojo { background: var(--rojo); color: #fff; }
.btn-rojo:hover { background: var(--rojo-2); }
.btn-linea { border-color: currentColor; background: transparent; }
.btn-linea:hover { background: var(--tinta); border-color: var(--tinta); color: var(--pared); }

/* ---------- Encabezado ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--top-h);
  display: flex; align-items: center; gap: 24px; padding-inline: var(--g);
  color: var(--noche-txt); transition: background .3s, color .3s, box-shadow .3s;
}
.top--claro { background: rgba(242, 239, 233, .9); color: var(--tinta); box-shadow: 0 1px 0 var(--linea); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4); }
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo { width: 30px; height: 30px; flex: none; }
.logo circle { fill: currentColor; }
.logo path { fill: none; stroke: var(--noche); stroke-width: 2.6; stroke-linecap: round; transition: stroke .3s; }
.top--claro .logo path, .pie .logo path { stroke: var(--pared); }
.pie .logo path { stroke: var(--noche); }
.marca-txt { font: 600 14px/1.1 var(--texto); letter-spacing: .02em; }
.marca-txt b { font-weight: 600; opacity: .62; }
.nav { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 26px); margin-left: auto; }
.nav > a { font-size: 14.5px; font-weight: 600; text-decoration: none; opacity: .86; transition: opacity .2s; position: relative; }
.nav > a:hover, .nav > a[aria-current="true"] { opacity: 1; }
.nav > a[aria-current="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--rojo); }
.nav .nav-cta { border: 1.5px solid currentColor; border-radius: 999px; padding: 7px 14px; opacity: 1; }
.nav .nav-cta::after { display: none; }
.nav-redes { display: none; }
.top-der { display: flex; align-items: center; gap: 6px; }
.idioma {
  border: 0; background: none; padding: 8px 6px; font: 600 13px/1 var(--texto); letter-spacing: .06em;
  display: inline-flex; gap: 3px;
}
.idioma .i-sep { opacity: .35; }
html[lang="es"] .idioma .i-en, html[lang="en"] .idioma .i-es { opacity: .45; }
.menu-btn { display: none; }

@media (max-width: 1080px) {
  .top { gap: 12px; }
  .top-der { margin-left: auto; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid currentColor; border-radius: 999px;
    background: none; padding: 8px 14px; font: 600 14px/1 var(--texto);
  }
  .menu-ico { width: 14px; height: 10px; position: relative; border-top: 2px solid; border-bottom: 2px solid; }
  .menu-ico::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid; }
  .nav {
    position: fixed; inset: 0; z-index: -1; margin: 0; padding: calc(var(--top-h) + 24px) var(--g) 40px;
    background: var(--noche); color: var(--noche-txt);
    flex-direction: column; align-items: flex-start; gap: 4px;
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .nav > a { font: 800 clamp(34px, 9vw, 52px)/1.05 var(--display); text-transform: uppercase; opacity: 1; }
  .nav > a[aria-current="true"]::after { display: none; }
  .nav .nav-cta { border: 0; padding: 0; color: var(--rojo); }
  .nav-redes { display: flex; gap: 20px; margin-top: auto; font-weight: 600; }
  .nav-redes a { text-decoration: none; opacity: .8; }
  .menu-abierto .nav { opacity: 1; visibility: visible; }
  .menu-abierto .top { color: var(--noche-txt); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu-abierto .top .logo path { stroke: var(--noche); }
  .menu-abierto { overflow: hidden; }
}
@media (max-width: 420px) { .marca-txt b { display: block; } }

/* ---------- Hero: seis manos, una sola obra ---------- */
.hero { position: relative; background: var(--noche); color: var(--noche-txt); }
.hero-pin {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 28px;
  padding: calc(var(--top-h) + 20px) var(--g) 56px;
  background:
    radial-gradient(60% 55% at 72% 50%, rgba(43, 108, 163, .28), transparent 70%),
    radial-gradient(40% 40% at 10% 100%, rgba(200, 22, 31, .10), transparent 70%),
    var(--noche);
}
.hero--pin { height: 210vh; height: 210svh; }
.hero--pin .hero-pin { position: sticky; top: 0; height: 100vh; height: 100svh; }
.hero .eyebrow { color: var(--noche-gris); }
.hero h1 { font-size: clamp(46px, 6.4vw, 108px); line-height: .9; margin: 14px 0 0; }
.hero-lead { max-width: 30em; margin-top: 20px; color: #C9CDD3; font-size: clamp(16.5px, 1.35vw, 19px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero .btn-linea { color: var(--noche-txt); }
.hero .btn-linea:hover { background: var(--noche-txt); border-color: var(--noche-txt); color: var(--noche); }

.triptico { --p: 0; --sep: 9%; position: relative; width: 100%; margin-inline: auto; }
.franjas { position: relative; aspect-ratio: var(--ar); container-type: inline-size; }
.franjas::before { /* tapa las costuras de subpíxel cuando ya están juntas */
  content: ""; position: absolute; inset: 1px; background: #2b5f98; opacity: clamp(0, (var(--p) - .92) * 12.5, 1);
}
.franja {
  /* medido contra el ancho del tríptico (cqw) y 1 px encimado sobre la siguiente: sin costuras al juntarse */
  position: absolute; top: 0; bottom: 0; left: calc(var(--i) * 33.3333cqw); width: calc(33.3334cqw + 1px); overflow: hidden;
  background: #2b5f98;
  transform: translate3d(calc((var(--i) - 1) * var(--sep) * (1 - var(--p))), calc(var(--dy) * (1 - var(--p))), 0);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, calc(.6 * (1 - var(--p)))), 0 0 0 1px rgba(255, 255, 255, calc(.06 * (1 - var(--p))));
  will-change: transform;
}
.franja:nth-child(1) { --dy: -4%; }
.franja:nth-child(2) { --dy: 5%; }
.franja:nth-child(3) { --dy: -1.5%; }
.franja:last-child { width: 33.3334cqw; }
.franja img { position: absolute; top: 0; height: 100%; width: 100cqw; max-width: none; left: calc(var(--i) * -33.3333cqw); object-fit: cover; }
.nombres { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; opacity: clamp(0, 1 - var(--p) * 1.6, 1); }
.nombres li {
  font: 800 clamp(20px, 2vw, 30px)/1 var(--display); text-transform: uppercase; letter-spacing: .02em; text-align: center;
  transform: translateX(calc((var(--i) - 1) * var(--sep) * (1 - var(--p))));
}
.nombres li:nth-child(1) { --i: 0; } .nombres li:nth-child(2) { --i: 1; } .nombres li:nth-child(3) { --i: 2; }
.nombres li::before { content: ""; display: block; width: 1px; height: 12px; margin: 0 auto 8px; background: currentColor; opacity: .5; }
.pie-obra {
  position: absolute; left: 0; right: 0; top: calc(100% - 30px);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; font-size: 14.5px; color: #C9CDD3;
  opacity: clamp(0, (var(--p) - .62) * 2.7, 1); pointer-events: none;
}
.triptico[data-unida] .pie-obra { pointer-events: auto; }
.pie-obra a { text-decoration: none; }
.pie-obra a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.pie-obra b { color: #fff; font-weight: 600; }
.pie-obra .disp { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; }
.hero-pista {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); margin: 0;
  font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--noche-gris);
  opacity: clamp(0, 1 - var(--hp, 0) * 4, 1); white-space: nowrap;
}
.hero-pista i { font-style: normal; display: inline-block; animation: baja 1.8s var(--ease) infinite; }
@keyframes baja { 0%, 100% { transform: none; } 50% { transform: translateY(4px); } }
html.js .franja { animation: entra 1.1s var(--ease) both; animation-delay: calc(.15s + var(--i) * .14s); }
html.js .nombres li { animation: aparece .9s var(--ease) both; animation-delay: calc(.55s + var(--i) * .14s); }
@keyframes entra { from { opacity: 0; translate: 0 40px; } }
@keyframes aparece { from { opacity: 0; translate: 0 10px; } }

@media (min-width: 980px) {
  .hero-pin { grid-template-columns: minmax(300px, 5fr) 8fr; align-items: center; column-gap: clamp(32px, 4.5vw, 80px); padding-bottom: 72px; }
  .triptico { --sep: 15%; width: min(100%, calc((100svh - 300px) * var(--ar))); }
  .hero-txt { padding-bottom: 40px; }
}
@media (max-width: 979px) {
  .hero-pin { align-content: start; padding-top: calc(var(--top-h) + 24px); gap: 32px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .pie-obra { font-size: 13.5px; }
}

/* ---------- Secciones ---------- */
.sec { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.sec-cab { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-cab h2 { margin-top: 14px; }
.sec-nota { max-width: 30em; color: var(--tinta-2); font-size: 15.5px; }

/* Nosotros */
.nos-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.nos-foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
.nos-foto figcaption, .nos-tira figcaption { margin-top: 10px; font-size: 13.5px; color: var(--gris); }
.nos-txt h2 { margin: 14px 0 26px; }
.nos-txt p + p { margin-top: 14px; }
.nos-txt .lead { margin-bottom: 18px; }
.nos-txt div[lang] p:not(.lead) { color: var(--tinta-2); }
.datos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; margin: 34px 0 0; padding-top: 26px; border-top: 1px solid var(--linea); }
.datos dt { font: 800 clamp(40px, 4.4vw, 58px)/.9 var(--display); }
.datos dd { margin: 6px 0 0; font-size: 14.5px; color: var(--tinta-2); line-height: 1.35; }
.nos-tira { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 80px); }
.nos-tira figure:nth-child(1) { grid-column: span 4; }
.nos-tira figure:nth-child(2) { grid-column: span 4; }
.nos-tira figure:nth-child(3) { grid-column: span 4; }
.nos-tira img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
@media (min-width: 980px) {
  .nos-grid { grid-template-columns: 7fr 6fr; gap: clamp(40px, 6vw, 96px); }
  .datos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nos-tira figure:nth-child(2) { margin-top: 64px; }
}
@media (max-width: 700px) {
  .nos-tira { grid-template-columns: 1fr 1fr; }
  .nos-tira figure:nth-child(1), .nos-tira figure:nth-child(2) { grid-column: span 1; }
  .nos-tira figure:nth-child(3) { grid-column: span 2; }
}

/* Obra disponible */
.disponible { background: var(--pared); border-top: 1px solid var(--linea); }
.disponible .eyebrow { color: var(--rojo); }
.filtros { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 36px; padding-bottom: 18px; border-bottom: 1px solid var(--linea); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--g) * -1); padding-inline: var(--g); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1.5px solid var(--linea); background: transparent; border-radius: 999px; padding: 9px 15px;
  font-size: 14.5px; font-weight: 600; transition: background .2s, border-color .2s, color .2s;
}
.chip i { font-style: normal; font-weight: 400; opacity: .6; margin-left: 2px; }
.chip:hover { border-color: var(--tinta); }
.chip[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: var(--pared); }
.orden { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--gris); font-weight: 600; }
.orden select {
  appearance: none; -webkit-appearance: none; border: 1.5px solid var(--linea); border-radius: 999px; background: var(--papel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23171614' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
  padding: 9px 36px 9px 15px; font-size: 14.5px; font-weight: 600; color: var(--tinta);
}
@media (min-width: 900px) { .chips { margin: 0; padding: 0; } }

.muro { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 44px 28px; }
.obra { display: flex; flex-direction: column; }
.obra[hidden] { display: none; }
.obra-img {
  position: relative; display: block; aspect-ratio: 1; background: var(--pared-2); border-radius: 2px; overflow: hidden;
  transition: background .3s;
}
.obra-img img {
  position: absolute; inset: 0; margin: auto; width: 80%; height: auto; max-height: 80%; object-fit: contain;
  background: var(--c); box-shadow: 0 1px 2px rgba(30, 20, 10, .16), 0 14px 28px -10px rgba(30, 20, 10, .42);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), opacity .5s;
}
.obra-img img.v { width: auto; height: 80%; max-width: 80%; }
.obra-img:hover { background: var(--pared-3); }
.obra-img:hover img { transform: translateY(-4px) scale(1.025); box-shadow: 0 1px 2px rgba(30, 20, 10, .16), 0 24px 40px -14px rgba(30, 20, 10, .5); }
.obra-info { padding-top: 14px; flex: 1; }
.obra-info h3 { font-size: 17px; line-height: 1.25; }
.obra-info h3 a { text-decoration: none; }
.obra-info h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ficha { margin-top: 4px; font-size: 13.5px; line-height: 1.4; color: var(--gris); }
.precio { margin-top: 8px; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.precio small { font-size: 12px; color: var(--gris); font-weight: 600; letter-spacing: .04em; }
.obra-int {
  align-self: flex-start; margin-top: 10px; border: 0; background: none; padding: 4px 0; color: var(--rojo);
  font-size: 14.5px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center;
}
.obra-int::after { content: "→"; transition: transform .2s var(--ease); }
.obra-int:hover::after { transform: translateX(4px); }
.muro-vacio { grid-column: 1 / -1; color: var(--gris); }
@media (max-width: 640px) {
  .muro { grid-template-columns: 1fr 1fr; gap: 32px 12px; }
  .obra-info h3 { font-size: 15.5px; }
  .ficha { font-size: 12.5px; }
  .precio { font-size: 15px; }
  .filtros { gap: 12px; }
  .orden { width: 100%; justify-content: space-between; }
}

/* Series */
.series { background: var(--noche); color: var(--noche-txt); }
.series .eyebrow { color: var(--noche-gris); }
.carril-btns { display: flex; gap: 8px; }
.carril-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .3); background: none;
  font-size: 18px; transition: background .2s, border-color .2s;
}
.carril-btn:hover { background: var(--noche-txt); color: var(--noche); border-color: var(--noche-txt); }
.carril-btn:disabled { opacity: .3; pointer-events: none; }
.carril {
  display: flex; gap: clamp(16px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 0 max(var(--g), calc((100vw - var(--max)) / 2 + var(--g))) 12px;
  scroll-padding-inline: max(var(--g), calc((100vw - var(--max)) / 2 + var(--g)));
  scrollbar-width: thin; scrollbar-color: var(--noche-3) transparent; outline-offset: -2px;
}
.serie { flex: 0 0 min(76vw, 340px); scroll-snap-align: start; }
.serie-img { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--noche-2); border-radius: 2px; overflow: hidden; }
.serie-img img { position: absolute; inset: 0; margin: auto; width: 84%; height: auto; max-height: 84%; background: var(--c); box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .7); transition: transform .6s var(--ease); }
.serie-img img.v { width: auto; height: 84%; max-width: 84%; }
.serie-img:hover img { transform: scale(1.03); }
.serie-k { margin-top: 16px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--noche-gris); }
.serie h3 { font: 800 clamp(26px, 2.6vw, 34px)/1 var(--display); text-transform: uppercase; margin-top: 6px; }
.serie-p { margin-top: 6px; color: #C9CDD3; font-size: 15px; }

/* Archivo */
.archivo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 34px 20px; }
.arch h3 { margin-top: 12px; font-size: 15px; line-height: 1.25; }
.arch h3 a { text-decoration: none; }
.arch h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.arch .ficha { font-size: 12.5px; }
.arch .obra-img { background: var(--pared-2); }
@media (max-width: 640px) { .archivo-grid { grid-template-columns: 1fr 1fr; gap: 28px 12px; } }

/* Trayectoria */
.trayectoria { background: var(--papel); border-top: 1px solid var(--linea); }
.tray-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.tray-cab h2 { margin-top: 14px; font-size: clamp(34px, 4.2vw, 60px); }
.expuesto { margin-top: 36px; }
.expuesto h3 { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); margin-bottom: 12px; }
.expuesto li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 11px 0; border-top: 1px solid var(--linea); }
.expuesto li b { font-weight: 600; }
.expuesto li > span { color: var(--gris); font-size: 15px; }
.linea li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; padding: 20px 0; border-top: 1px solid var(--linea); }
.linea li:last-child { border-bottom: 1px solid var(--linea); }
.linea time { font: 800 26px/1 var(--display); padding-top: 3px; font-variant-numeric: tabular-nums; }
.linea p { color: var(--tinta-2); font-size: 16px; }
.linea p b { color: var(--tinta); font-weight: 600; }
.tag {
  display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--linea);
  font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); vertical-align: 2px;
}
.premio .tag { border-color: var(--rojo); color: var(--rojo); }
@media (min-width: 980px) {
  .tray-grid { grid-template-columns: 5fr 7fr; gap: clamp(48px, 6vw, 96px); align-items: start; }
  .tray-cab { position: sticky; top: calc(var(--top-h) + 32px); }
}
@media (max-width: 560px) {
  .linea li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .linea time { font-size: 22px; }
}

/* Prensa */
.prensa { background: var(--noche-2); color: var(--noche-txt); }
.prensa .eyebrow { color: var(--noche-gris); }
.prensa .sec-nota { color: var(--noche-gris); }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.video-play {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 3px; overflow: hidden; background: #000;
}
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .3s, transform .6s var(--ease); }
.video-play:hover img { opacity: 1; transform: scale(1.03); }
.play {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: var(--rojo); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: transform .3s var(--ease);
}
.play::after { content: ""; position: absolute; left: 26px; top: 21px; border-left: 16px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.video-play:hover .play { transform: scale(1.08); }
.dur { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .75); color: #fff; font-size: 12.5px; font-weight: 600; padding: 3px 7px; border-radius: 3px; }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 3px; background: #000; }
.video h3 { margin-top: 14px; font-size: 17px; }
.video p { margin-top: 2px; font-size: 14px; color: var(--noche-gris); }

/* Contacto */
.contacto { background: var(--pared); }
.cont-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
.cont-txt h2 { margin: 14px 0 22px; }
.canales { margin-top: 30px; display: grid; gap: 0; }
.canales li { border-top: 1px solid var(--linea); }
.canales li:last-child { border-bottom: 1px solid var(--linea); }
.canales li.canal-wa { border: 0; padding-bottom: 16px; }
.canales a, .canales li > span { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; text-decoration: none; font-size: 15.5px; color: var(--tinta-2); flex-wrap: wrap; }
.canales a b, .canales li > span b { color: var(--tinta); font-weight: 600; }
.canales a:not(.btn):hover b { color: var(--rojo); }
.canales .btn { color: #fff; justify-content: center; }
.form { background: var(--papel); border: 1px solid var(--linea); border-radius: 6px; padding: clamp(20px, 3vw, 36px); display: grid; gap: 18px; align-self: start; }
.campo-doble { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.campo { display: grid; gap: 7px; }
.campo > span { font-size: 14px; font-weight: 600; }
.campo i { color: var(--rojo); font-style: normal; }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 48px; border: 1.5px solid var(--linea); border-radius: 4px; background: #fff; padding: 11px 13px;
  font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.campo select { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23171614' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
.campo textarea { resize: vertical; min-height: 120px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--tinta); box-shadow: 0 0 0 3px rgba(200, 22, 31, .14); }
.campo [aria-invalid="true"] { border-color: var(--rojo); }
.motivo { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.motivo legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.motivo label { position: relative; }
.motivo input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.motivo label > span { display: inline-block; border: 1.5px solid var(--linea); border-radius: 999px; padding: 8px 14px; font-size: 14.5px; font-weight: 600; transition: background .2s, border-color .2s, color .2s; }
.motivo input:checked + span { background: var(--tinta); border-color: var(--tinta); color: var(--pared); }
.motivo input:focus-visible + span { outline: 2px solid var(--rojo); outline-offset: 2px; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-pie { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.form-estado { font-size: 15px; font-weight: 600; }
.form-estado.ok { color: #1F7A4A; }
.form-estado.error { color: var(--rojo); }
.form .btn[disabled] { opacity: .6; pointer-events: none; }
@media (min-width: 700px) { .campo-doble { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .cont-grid { grid-template-columns: 5fr 7fr; gap: clamp(48px, 6vw, 96px); } }

/* Pie */
.pie { background: var(--noche); color: var(--noche-gris); padding: 64px 0 96px; font-size: 14.5px; }
.pie .marca { color: var(--noche-txt); margin-bottom: 14px; }
.pie-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.pie nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; align-content: start; }
.pie nav a { text-decoration: none; color: var(--noche-txt); }
.pie nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.pie-legal p + p { margin-top: 8px; }
.pie .propuesta { color: var(--noche-txt); }
.pie .firma a { color: var(--noche-txt); }
@media (min-width: 860px) { .pie-grid { grid-template-columns: 4fr 4fr 5fr; } }

/* Insignia de propuesta */
.insignia {
  position: fixed; left: 12px; bottom: 12px; z-index: 30; max-width: 168px; margin: 0;
  background: rgba(23, 22, 20, .88); color: #fff; border-radius: 10px; padding: 7px 10px 7px 24px;
  font-size: 11.5px; line-height: 1.3; font-weight: 600; pointer-events: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.insignia::before { content: ""; position: absolute; left: 10px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--rojo); }
@media (min-width: 700px) { .insignia { max-width: none; border-radius: 999px; } .insignia::before { top: 50%; margin-top: -3.5px; } }

/* Aviso flotante */
.aviso {
  position: fixed; left: 50%; bottom: 20px; z-index: 70; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--tinta); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  transition: opacity .25s, transform .25s var(--ease); white-space: nowrap;
}
.aviso.ver { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Visor de obra ---------- */
.visor {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #0B0E12; color: var(--noche-txt); overflow: hidden;
}
.visor::backdrop { background: rgba(8, 10, 14, .9); }
.visor[open] { animation: visor-entra .3s var(--ease); }
@keyframes visor-entra { from { opacity: 0; } }
.v-cuerpo { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; height: 100%; }
.v-lienzo { position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 64px 16px 16px; }
.v-obra { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.v-obra img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); transition: opacity .25s; }
.v-obra img.cargando { opacity: 0; transition: none; }
.v-escala { position: absolute; inset: 64px 16px 16px; display: flex; flex-direction: column; }
.v-escala[hidden] { display: none; }
.pared { position: relative; flex: 1; min-height: 0; background: linear-gradient(#EDE9E1, #E4DFD5); border-radius: 3px; overflow: hidden; }
.cuadro { position: absolute; background-size: cover; background-position: center; box-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 16px 30px -10px rgba(40, 30, 20, .45); }
.persona { position: absolute; fill: #9A9387; }
.piso { position: absolute; left: 0; right: 0; bottom: 0; background: #CFC7B8; }
.escala-nota { margin-top: 10px; font-size: 13px; color: var(--noche-gris); text-align: center; }
.v-nav {
  position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .28); background: rgba(11, 14, 18, .6); font-size: 18px; z-index: 2;
  transition: background .2s;
}
.v-nav:hover { background: var(--noche-txt); color: var(--noche); }
.v-prev { left: 12px; } .v-sig { right: 12px; }
.v-info { padding: 20px 20px 28px; border-top: 1px solid var(--noche-3); overflow-y: auto; max-height: 46vh; }
.v-kicker { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--noche-gris); }
.v-info h2 { font-size: clamp(32px, 3.4vw, 50px); line-height: .95; margin-top: 10px; }
.v-ficha { margin: 18px 0 0; display: grid; gap: 0; }
.v-ficha div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--noche-3); font-size: 15px; }
.v-ficha div[hidden] { display: none; }
.v-ficha dt { color: var(--noche-gris); }
.v-ficha dd { margin: 0; }
.v-ficha small { display: block; color: var(--noche-gris); font-size: 13px; }
.v-precio { margin-top: 16px; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.v-precio small { font-size: 14px; color: var(--noche-gris); }
.v-precio .nota { display: block; font-size: 14.5px; font-weight: 400; color: var(--noche-gris); }
.v-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.v-acciones .btn-linea { color: var(--noche-txt); }
.v-acciones .btn-linea:hover, .v-acciones .btn-linea[aria-pressed="true"] { background: var(--noche-txt); border-color: var(--noche-txt); color: var(--noche); }
.v-autores { margin-top: 22px; font-size: 13.5px; color: var(--noche-gris); }
.v-cuenta { margin-top: 4px; font-size: 13px; color: var(--noche-gris); font-variant-numeric: tabular-nums; }
.v-cerrar {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .28); background: rgba(11, 14, 18, .6); font-size: 26px; line-height: 1;
}
.v-cerrar:hover { background: var(--noche-txt); color: var(--noche); }
@media (min-width: 900px) {
  .v-cuerpo { grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: minmax(0, 1fr); }
  .v-lienzo { padding: 48px 72px; }
  .v-escala { inset: 48px 72px 40px; }
  .v-info { border-top: 0; border-left: 1px solid var(--noche-3); max-height: none; padding: 72px 32px 32px; display: flex; flex-direction: column; }
  .v-autores { margin-top: auto; padding-top: 22px; }
}
@media (max-width: 899px) {
  .v-nav { top: auto; bottom: 12px; margin: 0; }
  .v-lienzo { padding-bottom: 72px; }
  .v-escala { bottom: 72px; }
  .v-acciones .btn { flex: 1 1 auto; min-height: 44px; padding: 10px 16px; }
}
html.visor-abierto, html.visor-abierto body { overflow: hidden; }
html.visor-abierto .insignia { display: none; }

/* Aparición al hacer scroll */
html.js .revela { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js .revela.visto { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  html.js .revela { opacity: 1; transform: none; }
  .triptico { --p: 1 !important; }
  .hero-pista { display: none; }
}

/* Hero en celular: la pintura va justo después del titular */
@media (max-width: 979px) {
  .hero-pin { gap: 0; }
  .hero-txt { display: contents; }
  .hero .eyebrow { order: 1; }
  .hero h1 { order: 2; }
  .triptico { order: 3; margin-top: 28px; }
  .hero-lead { order: 4; margin-top: 40px; }
  .hero-cta { order: 5; margin-top: 20px; }
}
.eyebrow-hero { gap: 6px 14px; }
.eyebrow-hero > span { white-space: nowrap; }
.eyebrow-hero > span + span::before { content: ""; display: inline-block; width: 18px; height: 1px; background: currentColor; opacity: .6; vertical-align: middle; margin-right: 14px; }

/* Encabezado sobre el hero ya con scroll: fondo de noche para que el texto no se encime */
.top--noche { background: rgba(12, 16, 22, .82); -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3); }

@media (max-width: 979px) {
  .hero-pista { display: none; }
  .hero-cta { gap: 4px; }
  .hero-cta .btn-linea { border-color: transparent; min-height: 40px; padding: 8px 12px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
  .hero-cta .btn-linea:hover { background: transparent; color: #fff; }
  .triptico { margin-top: 24px; }
  .hero-lead { margin-top: 34px; }
}
@media (max-width: 699px) {
  .insignia { max-width: calc(100vw - 24px); white-space: nowrap; border-radius: 999px; font-size: 11px; padding: 5px 10px 5px 22px; left: 10px; bottom: 10px; }
  .insignia::before { top: 50%; margin-top: -3.5px; left: 9px; }
}
