/* ==========================================================
   EDIFIKA — estilos
   Paleta tomada del logotipo: azul índigo profundo + amarillo
   ========================================================== */
:root {
  --navy-950: #05072a;
  --navy-900: #0b0e3a;
  --navy-800: #141a5c;
  --indigo: #303088;
  --indigo-300: #8d90d6;
  --gold: #f0c419;
  --gold-600: #d6a90a;
  --paper: #f4f2ed;
  --paper-2: #e9e6de;
  --ink: #0b0d24;
  --ink-2: #4a4c63;
  --line: rgba(11, 13, 36, .14);
  --line-dark: rgba(255, 255, 255, .14);

  --f-display: "Archivo", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main, footer { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
em { font-style: normal; color: var(--gold); }
::selection { background: var(--gold); color: var(--navy-950); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.tag { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
.tag::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.section { padding-block: clamp(88px, 12vw, 180px); position: relative; }
.section--dark { background: var(--navy-950); color: #fff; }
.section--dark .tag, .section--navy .tag { color: var(--indigo-300); }
.section--navy { background: var(--navy-900); color: #fff; }
.section--paper { background: var(--paper-2); }
.section__head { margin-bottom: clamp(40px, 6vw, 80px); }
.section__head--split { display: grid; gap: 24px; }
@media (min-width: 900px) {
  .section__head--split { grid-template-columns: 1fr 2.2fr; align-items: start; }
  .section__head--split .tag { margin-top: 1.2em; }
}

.h2 {
  font-size: clamp(38px, 6.4vw, 96px);
  line-height: .95;
  letter-spacing: -.02em;
  font-weight: 700;
  font-variation-settings: "wdth" 78;
  text-wrap: balance;
}
.section:not(.section--dark):not(.section--navy) .h2 em,
.contact em { color: var(--indigo); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: transform .4s var(--ease), background .3s, color .3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--gold { background: var(--gold); color: var(--navy-950); }
.btn--gold:hover { background: #fff; }
.btn--ghost { border: 1px solid rgba(255, 255, 255, .4); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy-950); }

/* ---------- Preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--navy-950); color: #fff;
  display: grid; place-items: center;
}
html:not(.js) .loader { display: none; }
.loader__inner { display: grid; justify-items: center; gap: 28px; }
.loader__bars { display: grid; gap: 8px; width: 120px; }
.loader__bars span {
  height: 16px; background: var(--gold);
  transform: skewY(-20deg) scaleX(0); transform-origin: left;
  animation: bar 1.1s var(--ease) forwards;
}
.loader__bars span:nth-child(2) { animation-delay: .15s; margin-left: -18px; }
.loader__bars span:nth-child(3) { animation-delay: .3s; }
@keyframes bar { to { transform: skewY(-20deg) scaleX(1); } }
.loader__count { font-family: var(--f-mono); font-size: 13px; letter-spacing: .2em; color: var(--indigo-300); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 16px var(--gutter);
  color: #fff;
  transition: background .4s, color .4s, padding .4s, transform .5s var(--ease), box-shadow .4s;
}
.nav.is-solid {
  background: rgba(244, 242, 237, .86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  color: var(--ink);
  padding-block: 10px;
  box-shadow: 0 1px 0 var(--line);
}
.js .nav:not(.is-ready) { opacity: 0; transform: translateY(-100%); }
.nav.is-ready { transition: background .4s, color .4s, padding .4s, transform .8s var(--ease), opacity .8s, box-shadow .4s; }
.nav.is-ready.is-hidden { transform: translateY(-110%); }
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.nav__chip { background: #fff; border-radius: 6px; padding: 6px 7px; display: grid; place-items: center; }
.nav__chip img { width: 30px; height: auto; }
.nav__word { font-weight: 600; letter-spacing: .32em; font-size: 15px; font-variation-settings: "wdth" 120; }
.nav__links { display: none; gap: 30px; }
.nav__links a { text-decoration: none; font-size: 14px; font-weight: 500; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { display: none; padding: 11px 20px; font-size: 14px; }
.nav__burger { width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; }
.nav__burger span { width: 24px; height: 2px; background: currentColor; transition: transform .4s var(--ease); }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
@media (min-width: 1040px) {
  .nav__links, .nav__cta { display: flex; }
  .nav__burger { display: none; }
}

.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--navy-950); color: #fff;
  padding: 110px var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu nav { display: grid; gap: 6px; }
.menu nav a {
  font-size: clamp(36px, 10vw, 64px); font-weight: 700; text-decoration: none; line-height: 1.1;
  font-variation-settings: "wdth" 75;
}
.menu nav a:hover { color: var(--gold); }
.menu .mono { color: var(--indigo-300); }
body.menu-open .nav { color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; background: var(--navy-950);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
html:not(.js) .hero__media img { transform: none; }
.hero__media { transform: scale(1.08); transform-origin: 50% 50%; }
html:not(.js) .hero__media { transform: none; }
.hero__media img { transform: none; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__credits {
  position: absolute; z-index: 2; right: var(--gutter); top: 50%; transform: translateY(-50%);
  list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; text-align: right; pointer-events: none;
}
.hero__credits li {
  display: flex; align-items: baseline; justify-content: flex-end; gap: 14px;
  font-size: clamp(22px, 2.6vw, 40px); font-weight: 700; line-height: 1.05; letter-spacing: -.01em;
  font-variation-settings: "wdth" 78; color: #fff; opacity: 0;
  text-shadow: 0 2px 6px rgba(5,7,42,.7), 0 2px 30px rgba(5,7,42,.8);
}
.hero__credits .mono { color: var(--gold); font-size: 11px; }
@media (max-width: 699px) {
  .hero__credits { left: var(--gutter); top: 34%; text-align: left; }
  .hero__credits li { justify-content: flex-start; }
}
html:not(.js) .hero__credits { display: none; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 42, .55) 0%, rgba(5, 7, 42, .05) 30%, rgba(5, 7, 42, .35) 55%, rgba(5, 7, 42, .94) 100%),
    linear-gradient(90deg, rgba(5, 7, 42, .6), transparent 70%);
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, transparent, #000 40%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent 85%);
}
.hero__content { position: relative; padding-top: 130px; padding-bottom: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,.8); margin-bottom: 26px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(240,196,25,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(240,196,25,0); } 100% { box-shadow: 0 0 0 0 rgba(240,196,25,0); } }
.hero__title {
  font-size: clamp(46px, 9.4vw, 148px);
  line-height: .9; letter-spacing: -.025em; font-weight: 800;
  font-variation-settings: "wdth" 72;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; }
.hero__foot { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .hero__foot { grid-template-columns: minmax(0, 520px) auto; justify-content: space-between; align-items: end; }
}
.hero__lead { font-size: clamp(16px, 1.4vw, 19px); color: rgba(255,255,255,.82); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta {
  position: relative; display: flex; justify-content: space-between; gap: 16px;
  padding-top: 20px; padding-bottom: 26px; color: rgba(255,255,255,.6);
  border-top: 1px solid var(--line-dark);
}
.hero__meta > span:first-child, .hero__meta > span:last-child { display: none; }
@media (min-width: 700px) { .hero__meta > span { display: inline !important; } }
.hero__scroll { display: inline-flex; align-items: center; gap: 10px; margin-inline: auto; }
.hero__scroll i { width: 1px; height: 26px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -100%; width: 1px; height: 100%; background: var(--gold); animation: drip 1.8s infinite var(--ease); }
@keyframes drip { to { top: 100%; } }

/* ---------- Marquesina ---------- */
.marquee { background: var(--gold); color: var(--navy-950); overflow: hidden; padding-block: 18px; }
.marquee__track {
  display: flex; gap: 28px; width: max-content; align-items: center;
  animation: marquee 48s linear infinite;
  font-weight: 700; font-size: clamp(18px, 2vw, 26px); text-transform: uppercase;
  font-variation-settings: "wdth" 80; white-space: nowrap;
}
.marquee__track b { font-size: .55em; opacity: .55; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Nosotros ---------- */
.about__statement {
  font-size: clamp(26px, 3.6vw, 54px);
  line-height: 1.12; letter-spacing: -.015em; font-weight: 600;
  font-variation-settings: "wdth" 85;
  max-width: 34ch;
  text-wrap: pretty;
}
.about__statement .w { opacity: .16; transition: opacity .2s; }
html:not(.js) .about__statement .w { opacity: 1; }

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  margin-top: clamp(56px, 8vw, 110px);
  border-top: 1px solid var(--line);
}
.stat { padding: 28px 18px 28px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 18px; }
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 34px 28px; border-right: 1px solid var(--line); }
  .stat:first-child { padding-left: 0; }
  .stat:last-child { border-right: 0; }
}
.stat__num {
  font-size: clamp(48px, 6vw, 92px); font-weight: 800; line-height: 1;
  font-variation-settings: "wdth" 70; letter-spacing: -.03em; color: var(--indigo);
}
.stat__label { font-size: 14px; color: var(--ink-2); max-width: 22ch; }

.about__media {
  display: grid; gap: 20px; margin-top: clamp(56px, 8vw, 110px);
  grid-template-columns: 1fr;
}
.about__img { overflow: hidden; border-radius: var(--radius); }
.about__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.about__img--a { aspect-ratio: 4 / 3; }
.about__img--b { aspect-ratio: 4 / 5; }
.about__note { align-self: end; display: grid; gap: 14px; max-width: 42ch; }
.about__note h3 { font-size: 24px; line-height: 1.15; font-weight: 700; font-variation-settings: "wdth" 85; }
.about__note p { color: var(--ink-2); }
@media (min-width: 900px) {
  .about__media { grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
  .about__img--b { margin-top: 120px; }
}

/* ---------- Proceso: del plano a la obra ---------- */
.bp { background: var(--navy-950); color: #fff; position: relative; }
.bp__pin {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto auto; gap: 18px;
  padding-block: 96px 22px;
  background-image:
    linear-gradient(rgba(141,144,214,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141,144,214,.07) 1px, transparent 1px),
    linear-gradient(rgba(141,144,214,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141,144,214,.035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.bp__head { display: grid; gap: 14px; }
.bp__head .tag { color: var(--indigo-300); }
.bp__head .h2 { font-size: clamp(36px, 5vw, 76px); }
.bp__stage { position: relative; width: min(1100px, 100% - 2 * var(--gutter)); margin-inline: auto; aspect-ratio: 12 / 7; align-self: center; max-height: 52svh; }
.bp__photo { position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; clip-path: inset(0 100% 0 0); }
.bp__photo img { width: 100%; height: 100%; object-fit: cover; }
.bp__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5,7,42,.55)); }
.bp__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bp__svg path, .bp__svg circle { fill: none; stroke: #c9cbf2; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.bp__svg .bp-axes path { stroke: rgba(141,144,214,.45); stroke-dasharray: 10 6 2 6; }
.bp__svg .bp-axes circle { stroke: var(--indigo-300); }
.bp__svg .bp-ground path:first-child { stroke: #fff; stroke-width: 2.2; }
.bp__svg .dash { stroke-dasharray: 5 5; }
.bp__svg .bp-struct path { stroke: #fff; stroke-width: 2; }
.bp__svg .bp-dim path { stroke: var(--gold); stroke-width: 1.2; }
.bp__svg .bp-fill rect { fill: url(#hatch); stroke: none; }
.bp__svg pattern line { stroke: var(--gold); stroke-width: 2; }
.bp__svg text { font-family: var(--f-mono); font-size: 15px; fill: #c9cbf2; text-anchor: middle; letter-spacing: .06em; }
.bp__svg .bp-dimtxt text { fill: var(--gold); font-size: 14px; }
.bp__scan { position: absolute; top: -4%; bottom: -4%; left: 0; width: 2px; background: var(--gold); box-shadow: 0 0 24px 4px rgba(240,196,25,.55); opacity: 0; }

.bp__steps { position: relative; width: min(1100px, 100% - 2 * var(--gutter)); margin-inline: auto; min-height: 118px; }
.bp__step { position: absolute; inset: 0 auto auto 0; display: grid; grid-template-columns: auto 1fr; column-gap: 24px; align-items: baseline; max-width: 760px; }
.bp__step .mono { color: var(--gold); grid-row: span 2; }
.bp__step h3 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1; font-weight: 800; font-variation-settings: "wdth" 75; letter-spacing: -.02em; }
.bp__step p { color: rgba(255,255,255,.7); margin-top: 8px; }
.bp__step:not(:first-child) { opacity: 0; }
.bp__hud { width: min(1100px, 100% - 2 * var(--gutter)); margin-inline: auto; display: flex; align-items: center; gap: 18px; color: rgba(255,255,255,.5); font-size: 11px; }
.bp__bar { flex: 1; height: 1px; background: var(--line-dark); position: relative; }
.bp__bar i { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); }
@media (max-width: 699px) {
  .bp__hud > span:first-child { display: none; }
  .bp__step { grid-template-columns: 1fr; }
  .bp__step .mono { grid-row: auto; margin-bottom: 6px; }
  .bp__steps { min-height: 150px; }
}
/* Sin animación: mostrar todo */
html:not(.js) .bp__photo { clip-path: none; position: relative; margin-top: 24px; }
html:not(.js) .bp__step { position: relative; opacity: 1; margin-bottom: 24px; }
html:not(.js) .bp__steps { min-height: 0; }

/* ---------- Servicios: paneles apilados ---------- */
.stack { display: grid; gap: 20px; }
.panel {
  display: grid; gap: 22px;
  background: var(--navy-900);
  border: 1px solid var(--line-dark); border-radius: 10px;
  padding: 22px; overflow: hidden;
  transform-origin: 50% 0;
}
.panel__n {
  display: block; font-size: clamp(64px, 9vw, 150px); font-weight: 900; line-height: .8;
  font-variation-settings: "wdth" 62; color: transparent; -webkit-text-stroke: 1.2px var(--gold); letter-spacing: -.02em;
}
.panel__text { display: grid; gap: 16px; align-content: start; }
.panel h3 { font-size: clamp(30px, 3.8vw, 58px); line-height: .98; font-weight: 800; font-variation-settings: "wdth" 76; letter-spacing: -.02em; }
.panel p { color: rgba(255,255,255,.7); max-width: 46ch; }
.panel__tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 6px 0 0; }
.panel__tags li { border: 1px solid var(--line-dark); border-radius: 999px; padding: 7px 12px; font-size: 11px; color: rgba(255,255,255,.75); }
.panel__img { border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 10; }
.panel__img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .stack { gap: 0; }
  .panel {
    position: sticky; top: calc(96px + var(--i) * 18px);
    height: min(640px, calc(100vh - 150px));
    grid-template-columns: 1fr 1.25fr; gap: 48px; padding: 40px;
    margin-bottom: 8vh;
    box-shadow: 0 -30px 60px -20px rgba(0,0,0,.6);
  }
  .panel:last-child { margin-bottom: 0; }
  .panel__text { align-content: space-between; }
  .panel__img { aspect-ratio: auto; height: 100%; }
}

/* ---------- Proyectos: zoom + capítulos ---------- */
.reel { background: var(--navy-950); color: #fff; position: relative; }
.reel__pin { position: relative; }
.zoom { display: none; }
.chapters { display: grid; }
.chapter { position: relative; height: 80svh; min-height: 460px; overflow: hidden; }
.chapter img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chapter::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,7,42,.35), transparent 35%, rgba(5,7,42,.85)); }
.chapter__text {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 6vh, 64px);
  display: grid; gap: 12px; max-width: 760px;
}
.chapter__text .mono { color: var(--gold); }
.chapter__text h3 { font-size: clamp(36px, 6vw, 96px); line-height: .92; font-weight: 800; font-variation-settings: "wdth" 72; letter-spacing: -.025em; text-wrap: balance; }
.chapter__text p { color: rgba(255,255,255,.78); max-width: 48ch; }
.reel__progress { display: none; }

/* Modo cine (activado por JS) */
.reel.is-cinema .reel__pin { height: 100svh; overflow: hidden; }
.reel.is-cinema .zoom { display: grid; place-items: center; position: absolute; inset: 0; z-index: 3; background: var(--paper); }
.zoom__grid {
  display: grid; grid-template-columns: repeat(3, 26vw); grid-template-rows: repeat(3, 26svh);
  gap: 2.4vw; will-change: transform;
}
.zoom__grid figure { overflow: hidden; border-radius: 4px; background: var(--paper-2); }
.zoom__grid img { width: 100%; height: 100%; object-fit: cover; }
.zoom__title {
  position: absolute; left: var(--gutter); bottom: 5svh; z-index: 2; display: grid; gap: 14px;
  color: var(--ink); background: var(--paper); padding: 22px 28px 26px; border-radius: 6px; max-width: min(640px, calc(100% - 2 * var(--gutter)));
}
.zoom__title .h2 { font-size: clamp(34px, 4.6vw, 72px); }
.zoom__title em { color: var(--indigo); }
.reel.is-cinema .chapters { position: absolute; inset: 0; }
.reel.is-cinema .chapter { position: absolute; inset: 0; height: auto; min-height: 0; clip-path: inset(100% 0 0 0); }
.reel.is-cinema .chapter:first-child { clip-path: none; }
.reel.is-cinema .chapter__text > * { opacity: 0; transform: translateY(40px); }
.reel.is-cinema .reel__progress {
  display: flex; align-items: center; gap: 14px; position: absolute; z-index: 2;
  right: var(--gutter); top: 50%; transform: translateY(-50%) rotate(90deg); transform-origin: right center;
  color: rgba(255,255,255,.7);
}
.reel__line { width: 120px; height: 1px; background: rgba(255,255,255,.25); position: relative; }
.reel__line i { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); }
@media (max-width: 699px) {
  .zoom__grid { grid-template-columns: repeat(3, 30vw); grid-template-rows: repeat(3, 30svh); gap: 3vw; }
  .reel.is-cinema .reel__progress { display: none; }
}

/* Grano de película */
.grain {
  position: fixed; inset: -50%; z-index: 80; pointer-events: none; opacity: .07;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(5%, -7%); }
  60% { transform: translate(-3%, 8%); } 80% { transform: translate(7%, 2%); } 100% { transform: translate(0, 0); }
}

/* ---------- Planta ---------- */
.plant__grid { display: grid; gap: 64px; align-items: center; }
.plant__text { display: grid; gap: 26px; align-content: start; }
.plant__text > p { color: rgba(255,255,255,.72); max-width: 52ch; font-size: 18px; }
.plant__list { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.plant__list li { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); font-weight: 500; }
.plant__list .mono { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); border-radius: 50%; font-size: 11px; }
.plant__stack { position: relative; padding-bottom: 80px; }
.plant__img { overflow: hidden; border-radius: var(--radius); }
.plant__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transform: scale(1.12); }
.plant__img--sm { position: absolute; right: -4%; bottom: 0; width: 46%; border: 6px solid var(--navy-900); }
.plant__img--sm img { aspect-ratio: 1; }
.plant__badge {
  position: absolute; left: -10px; top: -30px;
  width: 132px; height: 132px; border-radius: 50%;
  background: var(--gold); color: var(--navy-950);
  display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center;
  animation: spin 22s linear infinite;
}
.plant__badge img { width: 40px; mix-blend-mode: multiply; }
.plant__badge .mono { font-size: 10px; line-height: 1.3; font-weight: 500; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 900px) {
  .plant__grid { grid-template-columns: 1fr 1.15fr; gap: 90px; }
}

/* ---------- Trayectoria ---------- */
.tl { position: relative; display: grid; }
.tl__line { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl__line span { position: absolute; inset: 0; background: var(--gold); transform-origin: top; transform: scaleY(0); }
html:not(.js) .tl__line span { transform: none; }
.tl__item { display: grid; gap: 10px; padding: 0 0 48px 32px; position: relative; }
.tl__item::before {
  content: ""; position: absolute; left: -6px; top: 14px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--indigo);
}
.tl__year {
  font-size: clamp(44px, 7vw, 104px); font-weight: 800; line-height: .9;
  font-variation-settings: "wdth" 66; letter-spacing: -.03em; color: var(--indigo);
}
.tl__year small { font-size: .5em; color: var(--ink-2); }
.tl__body h3 { font-size: 22px; font-weight: 700; line-height: 1.2; margin-bottom: 8px; font-variation-settings: "wdth" 88; }
.tl__body p { color: var(--ink-2); max-width: 62ch; }
@media (min-width: 900px) {
  .tl__line { left: 30%; }
  .tl__item { grid-template-columns: 30% 1fr; gap: 0; padding: 0 0 72px 0; }
  .tl__item::before { left: calc(30% - 6px); }
  .tl__year { text-align: right; padding-right: 56px; }
  .tl__body { padding-left: 56px; padding-top: 10px; }
}

/* ---------- Galería ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters button {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; transition: background .3s, color .3s, border-color .3s;
}
.filters button:hover { border-color: var(--ink); }
.filters button.is-active { background: var(--navy-950); color: #fff; border-color: var(--navy-950); }
.masonry { columns: 2; column-gap: 12px; }
@media (min-width: 700px) { .masonry { columns: 3; column-gap: 16px; } }
@media (min-width: 1100px) { .masonry { columns: 4; } }
.tile {
  break-inside: avoid; margin-bottom: 12px; position: relative;
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in; display: block; width: 100%; padding: 0;
  background: var(--paper);
}
@media (min-width: 700px) { .tile { margin-bottom: 16px; } }
.tile img { width: 100%; transition: transform .9s var(--ease), filter .5s; }
.tile:hover img { transform: scale(1.05); }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px;
  background: linear-gradient(transparent, rgba(5,7,42,.85)); color: #fff; text-align: left;
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease);
}
.tile:hover figcaption, .tile:focus-visible figcaption { opacity: 1; transform: none; }
.tile.is-hidden { display: none; }

/* ---------- Cobertura ---------- */
.cov__lead { color: rgba(255,255,255,.75); font-size: clamp(18px, 1.6vw, 22px); max-width: 60ch; margin: -12px 0 48px; }
.cov { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.cov__col { padding: 28px 0; border-bottom: 1px solid var(--line-dark); display: grid; gap: 12px; }
.cov__col h3 { font-size: clamp(26px, 3vw, 40px); font-weight: 700; font-variation-settings: "wdth" 80; color: var(--gold); line-height: 1; }
.cov__col p { color: rgba(255,255,255,.72); }
@media (min-width: 900px) {
  .cov { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .cov__col { padding: 34px 28px; border-bottom: 0; border-right: 1px solid var(--line-dark); }
  .cov__col:first-child { padding-left: 0; }
  .cov__col:last-child { border-right: 0; }
}

/* ---------- Contacto ---------- */
.contact { background: var(--gold); color: var(--navy-950); padding-block: clamp(88px, 10vw, 150px); }
.contact .tag { color: var(--navy-800); }
.contact__grid { display: grid; gap: 48px; align-items: center; }
.contact__text { display: grid; gap: 30px; justify-items: start; }
.contact__title {
  font-size: clamp(44px, 7vw, 112px); line-height: .92; font-weight: 800;
  letter-spacing: -.025em; font-variation-settings: "wdth" 72;
}
.contact__addr { font-style: normal; font-size: clamp(20px, 2vw, 26px); font-weight: 600; line-height: 1.3; display: grid; gap: 8px; }
.contact__addr .mono { font-weight: 500; color: var(--navy-800); }
.contact .btn--gold { background: var(--navy-950); color: #fff; }
.contact .btn--gold:hover { background: #fff; color: var(--navy-950); }
.contact__map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy-950); box-shadow: 0 30px 60px -30px rgba(5,7,42,.6); }
.contact__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1.1fr 1fr; gap: 80px; } }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: rgba(255,255,255,.7); padding: 60px 0 36px; overflow: hidden; }
.footer__big {
  font-size: clamp(64px, 16.5vw, 236px); font-weight: 900; line-height: .8; letter-spacing: -.02em;
  font-variation-settings: "wdth" 125; color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.18);
  text-align: center; margin-bottom: 48px; user-select: none;
}
.footer__row { display: grid; gap: 28px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.footer__brand { display: flex; align-items: center; gap: 16px; max-width: 46ch; }
.footer__brand img { background: #fff; border-radius: 6px; padding: 6px; width: 48px; flex: none; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__nav a { text-decoration: none; font-size: 14px; }
.footer__nav a:hover { color: var(--gold); }
.footer__copy { color: rgba(255,255,255,.45); }
@media (min-width: 900px) { .footer__row { grid-template-columns: 1.2fr 1.4fr auto; align-items: center; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(5,7,42,.94);
  display: grid; place-items: center; padding: 60px 16px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { display: grid; gap: 12px; max-width: min(1200px, 100%); }
.lightbox img { max-height: 80vh; width: auto; margin-inline: auto; border-radius: var(--radius); }
.lightbox figcaption { color: rgba(255,255,255,.7); text-align: center; }
.lightbox__close { position: absolute; top: 14px; right: 18px; font-size: 40px; color: #fff; width: 52px; height: 52px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 48px; color: #fff; width: 56px; height: 72px; }
.lightbox__prev { left: 4px; }
.lightbox__next { right: 4px; }

/* ---------- Estados iniciales para animación (solo con JS) ---------- */
.js .reveal-up { opacity: 0; transform: translateY(24px); }
.js .hero__title .line > span { transform: translateY(105%); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal-up { opacity: 1; transform: none; }
  .js .hero__title .line > span { transform: none; }
  .about__statement .w { opacity: 1 !important; }
  .grain { display: none; }
}
