/* ==========================================================================
   Larsen 2026
   Escala ajustada para web: contenido de hasta 1280px, tipografía fluida con
   clamp(). Los valores de referencia son a 1440px de ancho.
   ========================================================================== */

@font-face { font-family: "Jakarta"; src: url("../fonts/PlusJakartaSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("../fonts/PlusJakartaSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("../fonts/PlusJakartaSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("../fonts/PlusJakartaSans-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "JetMono"; src: url("../fonts/JetBrainsMono-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetMono"; src: url("../fonts/JetBrainsMono-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --yellow: #fff75a;
  --navy: #25366d;
  --navy-dark: #0e1e47;
  --red: #d52639;
  --paper: #f7f7f7;
  --white: #ffffff;

  --sans: "Jakarta", system-ui, sans-serif;
  --mono: "JetMono", ui-monospace, monospace;

  --gutter: clamp(20px, 5.5vw, 120px);
  --wrap: min(1280px, 100vw - 2 * var(--gutter));
  --section: clamp(80px, 9vw, 150px);       /* aire vertical de sección */

  /* tipografía (a 1440px) */
  --fs-nav: clamp(12px, 0.86vw, 13.5px);    /* 12.4 */
  --fs-eyebrow: clamp(11px, 0.83vw, 13px);  /* 12 */
  --fs-display: clamp(40px, 5vw, 80px);     /* 72 */
  --fs-h1: clamp(34px, 4.1vw, 66px);        /* 59 */
  --fs-lead: clamp(18px, 1.55vw, 25px);     /* 22 */
  --fs-body: clamp(15px, 1.08vw, 17px);     /* 15.5 */
  --fs-service: clamp(16px, 1.3vw, 21px);   /* 18.7 */
  --fs-award: clamp(15px, 1.1vw, 18px);     /* 15.8 */

  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  /* Reserva siempre el lugar de la barra de scroll: así nada se corre cuando
     el loader bloquea el scroll y después lo libera. */
  scrollbar-gutter: stable;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a[x-apple-data-detectors] { color: inherit !important; text-decoration: none !important; font: inherit !important; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--yellow); color: var(--navy); }

.wrap { width: var(--wrap); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  font-family: var(--mono);
  font-weight: 800;
  font-size: var(--fs-eyebrow);
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.display {
  font-weight: 700;
  font-size: var(--fs-display);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-top: 0.22em;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(38px, 2.8vw, 44px);
  padding: 0 clamp(18px, 1.5vw, 24px);
  border-radius: 999px;
  background: var(--navy);
  color: var(--yellow);
  font-weight: 700;
  font-size: clamp(11.5px, 0.8vw, 13px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.pill span { display: inline-block; pointer-events: none; }
.pill:hover { background: var(--yellow); color: var(--navy); }

/* ---------- Telón (carga y transición entre páginas) ------------------ */
.curtain {
  position: fixed; inset: 0; z-index: 100;
  background: var(--navy-dark);
  display: grid; place-items: center;
  pointer-events: none;
  /* --r abre un círculo transparente en el centro: la página aparece desde ahí */
  --r: 0%;
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent calc(var(--r) - 0.5%), #000 var(--r));
          mask: radial-gradient(circle at 50% 50%, transparent calc(var(--r) - 0.5%), #000 var(--r));
}
.curtain__seal { position: relative; width: clamp(150px, 16vw, 230px); aspect-ratio: 1; }
.curtain__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.curtain__logo { position: absolute; left: 50%; top: 50%; width: 60%; translate: -50% -50%; color: var(--yellow); overflow: hidden; }
.no-js .curtain, .curtain.is-done { display: none; }

/* ---------- Cursor ----------------------------------------------------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  /* Colores de marca exactos (sin mezcla con el fondo): amarillo sobre fondos
     oscuros y fotos, azul sobre fondos claros o amarillos (clase is-light). */
  .cursor {
    --c: var(--yellow); --c2: var(--navy);
    display: grid; place-items: center;
    position: fixed; left: 0; top: 0; z-index: 90;
    width: 12px; height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: var(--c);
    border: 0 solid var(--c);
    pointer-events: none;
    transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out),
      background-color .3s, border-color .3s, border-width .3s;
  }
  .cursor.is-light { --c: var(--navy); --c2: var(--yellow); }
  .cursor__label {
    font-family: var(--mono); font-weight: 800; font-size: 12px; letter-spacing: .08em;
    color: var(--c2); opacity: 0; transition: opacity .25s;
  }
  /* Sobre links: aro del color de marca, así el texto de abajo se sigue leyendo. */
  .cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: transparent; border-width: 2px; }
  .cursor.is-label { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--c); border-width: 0; }
  .cursor.is-label .cursor__label { opacity: 1; }
  .cursor.is-hidden, .cursor.is-off { width: 0; height: 0; margin: 0; }
}

/* ---------- Volver arriba --------------------------------------------- */
/* Aparece al bajar; el anillo amarillo marca cuánto se recorrió la página. */
.totop {
  position: fixed; z-index: 60;
  right: clamp(16px, 2vw, 32px); bottom: clamp(16px, 2vw, 32px);
  width: clamp(46px, 3.4vw, 56px); aspect-ratio: 1;
  padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--yellow);
  opacity: 0; scale: .6; pointer-events: none;
  transition: opacity .5s var(--ease-out), scale .6s var(--ease-out);
}
.totop.is-visible { opacity: 1; scale: 1; pointer-events: auto; }
.menu-open .totop, .is-editing .totop { opacity: 0; pointer-events: none; }
.totop__inner {
  position: absolute; inset: 0; display: grid; place-items: center;
  border-radius: 50%; background: var(--navy);
  box-shadow: 0 10px 30px rgba(14, 30, 71, .25);
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.totop__ring { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; fill: none; stroke-width: 1.5; }
.totop__ring circle { stroke: currentColor; opacity: .18; }
.totop__ring .totop__progress { opacity: 1; stroke-dasharray: 1; stroke-dashoffset: 1; }
.totop__arrow { position: relative; width: 34%; aspect-ratio: 1; overflow: hidden; }
.totop__arrow svg {
  display: block; width: 100%; height: 100%;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: translate .55s var(--ease-out);
}
.totop__arrow svg + svg { position: absolute; left: 0; top: 0; translate: 0 110%; }
.totop:hover .totop__arrow svg:first-child { translate: 0 -110%; }
.totop:hover .totop__arrow svg + svg { translate: 0 0; }
.totop:hover .totop__inner { background: var(--yellow); color: var(--navy); }
.totop:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; border-radius: 50%; }
/* Sobre el footer (azul oscuro) se invierte para no perderse. */
.totop.is-dark .totop__inner { background: var(--yellow); color: var(--navy); box-shadow: none; }
.totop.is-dark:hover .totop__inner { background: var(--white); }

/* ---------- Header ---------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color .4s var(--ease), transform .6s var(--ease), box-shadow .4s;
}
.header.is-solid { background: rgba(14, 30, 71, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.header.is-hidden { transform: translateY(-100%); }
/* Con la barra azul de fondo, el botón Contacto pasa a amarillo para no perderse. */
.header.is-solid:not(.header--light) .header__cta { background: var(--yellow); color: var(--navy); }
.header.is-solid:not(.header--light) .header__cta:hover { background: var(--white); color: var(--navy); }
.header__inner {
  width: var(--wrap);
  margin-inline: auto;
  height: clamp(64px, 5.6vw, 84px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header__logo { color: var(--yellow); width: clamp(46px, 3.6vw, 56px); }
.nav { display: flex; gap: clamp(18px, 2.2vw, 36px); }
.nav a {
  position: relative;
  font-family: var(--mono);
  font-weight: 700;
  font-size: var(--fs-nav);
  letter-spacing: 0.04em;
  color: var(--white);
  text-transform: uppercase;
  padding: 6px 0;
  overflow: hidden;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--yellow); transition: transform .45s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 26px; }
.menu-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Hero ------------------------------------------------------ */
.hero {
  position: relative;
  /* lvh: alto de pantalla con las barras del navegador escondidas. Con svh, en el
     iPhone quedaba una franja blanca abajo mientras el hero está fijo y las barras se esconden. */
  height: 100vh;
  height: 100lvh;
  min-height: 540px;
  overflow: hidden;
  background: var(--navy-dark);
  display: grid;
  place-items: center;
}
/* Sobra imagen a los costados para el parallax con el mouse: nunca se ve el borde. */
/* Por las dudas, el espacio que reserva el hero fijo también es azul (nunca blanco). */
.pin-spacer:has(> .hero) { background: var(--navy-dark); }
.hero__media { position: absolute; inset: -8% -48px; }
.hero__media-in { position: absolute; inset: 0; }
.hero__media img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__video.is-playing { opacity: 1; }
/* Efecto por delante del video. Elegido: puntos. Quedan disponibles grano y nada (?fondo=). */
.hero__fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero[data-fx="puntos"] .hero__fx {
  background-image: radial-gradient(circle at center, rgba(14, 30, 71, .62) 0 1.1px, transparent 1.5px);
  background-size: 4px 4px;
}
.hero[data-fx="grano"] .hero__fx {
  background-image: url("../img/grano.png");
  background-size: 160px 160px;
  opacity: .55;
  animation: heroGrain .9s steps(6) infinite;
}
@keyframes heroGrain {
  0% { background-position: 0 0; } 20% { background-position: -40px 30px; } 40% { background-position: 60px -20px; }
  60% { background-position: -70px -50px; } 80% { background-position: 30px 70px; } 100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) { .hero[data-fx="grano"] .hero__fx { animation: none; } }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,30,71,.55) 0%, rgba(14,30,71,0) 24%, rgba(14,30,71,0) 66%, rgba(14,30,71,.45) 100%),
    rgba(14,30,71,.12);
  pointer-events: none;
}
.hero__title { position: relative; z-index: 2; width: min(var(--wrap), 1080px); color: var(--yellow); }
/* Máscara solo arriba y abajo (entrada y salida de las letras); a los costados
   las letras se pueden mover con el mouse sin cortarse. */
.hero__word { width: 100%; overflow: visible; clip-path: inset(0 -30%); }
.hero__word g { will-change: transform; }
.hero__tagline { width: 99.5%; margin: 2.4% 0 0 0.3%; overflow: visible; }
.hero__foot {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(22px, 2.6vw, 40px);
  width: var(--wrap); margin-inline: auto;
  display: flex; justify-content: space-between; align-items: end;
  font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
.hero__scroll {
  position: relative;
  width: 2px; height: clamp(36px, 3.4vw, 56px);
  background: rgba(255,247,90,.25);
  overflow: hidden;
  margin-inline: auto;
}
.hero__scroll::after {
  content: ""; position: absolute; inset: 0;
  background: var(--yellow);
  animation: scrollHint 2.2s var(--ease) infinite;
}
@keyframes scrollHint { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Quiénes somos -------------------------------------------- */
.about {
  position: relative;
  background: var(--navy-dark);
  color: var(--white);
  padding: var(--section) 0;
  overflow: hidden;
}
.about .eyebrow { color: var(--yellow); }
.about__title {
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-top: 0.45em;
}
.about__title strong { color: var(--yellow); font-weight: 700; }
.about__text {
  font-size: var(--fs-lead);
  line-height: 1.4;
  max-width: 30em;
  margin-top: clamp(28px, 3vw, 48px);
}
.about__shape {
  position: absolute;
  width: clamp(300px, 46vw, 760px);
  aspect-ratio: 1;
  left: 47%;
  top: 2%;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.about__fallback, .about__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.about__shape.is-3d .about__fallback { display: none; }
.about .wrap { position: relative; z-index: 1; }

/* Palabras que se encienden con el scroll */
.words .word { opacity: .18; }

/* ---------- Trabajos (grilla) ---------------------------------------- */
.works { background: var(--navy-dark); }
/* Columnas elegidas desde el panel (2, 3 o 4). */
.works__grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); }
/* Con 4 columnas las tarjetas son más chicas: texto y márgenes acompañan. */
.works__grid[data-cols="4"] .work__info { padding: clamp(18px, 1.8vw, 30px); }
.works__grid[data-cols="4"] .work__title { font-size: clamp(14px, 1.1vw, 18px); }
.works__grid[data-cols="4"] .work__meta { font-size: clamp(12px, 0.85vw, 14px); }
/* Con 2 columnas, más grandes. */
.works__grid[data-cols="2"] .work { aspect-ratio: 16 / 11; }
.works__grid[data-cols="2"] .work__title { font-size: clamp(18px, 1.7vw, 28px); }
@media (max-width: 1180px) { .works__grid[data-cols="4"] { grid-template-columns: repeat(3, 1fr); } }
.work {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--navy);
}
.work__img { position: absolute; inset: -8% 0; }
.work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .8s; }
.work:hover .work__img img { transform: scale(1.07); }
.works__grid:hover .work:not(:hover) .work__img img { filter: grayscale(.6) brightness(.7); }
.work__info {
  position: absolute; inset: 0;
  padding: clamp(22px, 2.4vw, 40px);
  background: rgba(255, 247, 90, 0.94);
  color: var(--navy);
  clip-path: inset(100% 0 0 0);
  transition: clip-path .8s var(--ease);
  display: flex; flex-direction: column;
}
.work:hover .work__info, .work:focus-visible .work__info { clip-path: inset(0 0 0 0); }
.work__title {
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(16px, 1.35vw, 22px);
  line-height: 1.3;
  max-width: 14em;
  transform: translateY(24px);
  opacity: 0;
  transition: transform .8s var(--ease-out) .12s, opacity .5s .15s;
}
.work__meta {
  margin-top: 1em;
  font-size: clamp(13px, 0.95vw, 15px);
  font-weight: 600;
  line-height: 1.45;
  max-width: 24em;
  transform: translateY(24px);
  opacity: 0;
  transition: transform .8s var(--ease-out) .2s, opacity .5s .24s;
}
.work__more {
  margin-top: auto;
  font-family: var(--mono);
  font-weight: 800;
  font-size: var(--fs-nav);
  letter-spacing: .05em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .6em;
  opacity: 0;
  transition: opacity .5s .3s;
}
.work__more svg { width: 1.8em; transition: transform .5s var(--ease); }
.work:hover .work__title, .work:hover .work__meta,
.work:focus-visible .work__title, .work:focus-visible .work__meta { transform: none; opacity: 1; }
.work:hover .work__more, .work:focus-visible .work__more { opacity: 1; }
.work:hover .work__more svg { transform: translateX(6px); }

/* ---------- Servicios ------------------------------------------------- */
.services { padding: var(--section) 0; background: var(--paper); }
.services__list { margin-top: clamp(40px, 4.4vw, 70px); border-top: 1.5px solid var(--navy); }
.service { position: relative; border-bottom: 1.5px solid var(--navy); }
.service__head {
  position: relative;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: clamp(20px, 1.8vw, 30px) 0;
  text-align: left;
  font-family: var(--mono);
  font-weight: 800;
  font-size: var(--fs-service);
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--navy);
  isolation: isolate;
}
.service__head::before {
  content: ""; position: absolute; inset: 0 calc(-1 * clamp(12px, 1.2vw, 20px)); z-index: -1;
  background: var(--yellow);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .6s var(--ease);
}
.service__head:hover::before { transform: scaleY(1); }
.service__icon { position: relative; width: clamp(18px, 1.4vw, 22px); aspect-ratio: 1; flex: none; }
.service__icon::before, .service__icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: currentColor; transition: transform .6s var(--ease);
}
.service__icon::after { transform: rotate(90deg); }
.service.is-open .service__icon::after { transform: rotate(0deg); }
.service.is-open .service__icon { transform: rotate(180deg); transition: transform .6s var(--ease); }
.service__label { transition: transform .6s var(--ease); }
.service__head:hover .service__label { transform: translateX(10px); }
.service__body { height: 0; overflow: hidden; }
.service__content { padding: 4px 0 clamp(30px, 3vw, 48px); }
.service__lead { font-weight: 600; font-size: var(--fs-lead); line-height: 1.3; max-width: 30em; }
.service__text { font-size: var(--fs-body); line-height: 1.6; max-width: 52em; margin-top: 1.2em; }

/* ---------- Banda amarilla 360 --------------------------------------- */
.band { position: relative; padding: clamp(18px, 1.7vw, 28px) 0; background: var(--paper); overflow: hidden; }
.band__inner { position: relative; background: var(--yellow); padding: clamp(90px, 9vw, 150px) 0; overflow: hidden; }
.band__title { font-size: var(--fs-h1); font-weight: 500; line-height: 1.2; letter-spacing: -0.03em; max-width: 13em; position: relative; z-index: 1; }
.band__title strong { font-weight: 800; }
.band__text { font-weight: 600; font-size: var(--fs-lead); line-height: 1.4; max-width: 26em; margin-top: clamp(24px, 2.6vw, 40px); position: relative; z-index: 1; }
.band__shape {
  position: absolute;
  width: clamp(280px, 38vw, 620px);
  aspect-ratio: 1;
  left: 54%; top: 6%;
  mix-blend-mode: multiply;
  opacity: .5;
  pointer-events: none;
}
.band__fallback, .band__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.band__shape.is-3d .band__fallback { display: none; }
.marquee {
  position: absolute; left: 0; right: 0; z-index: 2;
  height: clamp(26px, 3.1vw, 52px);
  overflow: hidden;
  pointer-events: none;
}
.marquee--top { top: 0; }
.marquee--bottom { bottom: 0; }
.marquee__track { display: flex; width: max-content; height: 100%; will-change: transform; }
/* Aire entre una palabra y la siguiente (antes "…SENLAR…" quedaba pegado). */
.marquee__track svg { height: 100%; width: auto; flex: none; color: var(--navy); margin-right: .55em; font-size: clamp(26px, 3.1vw, 52px); }

/* ---------- Clientes -------------------------------------------------- */
.clients { padding: var(--section) 0; }
.clients__grid {
  margin-top: clamp(40px, 4.4vw, 70px);
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: clamp(6px, 1.04vw, 15px);
}
.clients__grid li { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.clients__grid img { width: 100%; height: auto; transition: transform .6s var(--ease-out), opacity .4s; }
/* Hover: el logo pasa directo al azul de la marca (una capa azul con la forma
   del logo que aparece encima). Antes un filtro de color pasaba por verde. */
.clients__grid li::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--navy);
  -webkit-mask: var(--logo) center / contain no-repeat;
          mask: var(--logo) center / contain no-repeat;
  opacity: 0;
  transition: opacity .4s, transform .6s var(--ease-out);
}
.clients__grid li:hover img { transform: scale(1.08); opacity: 0 !important; } /* !important: GSAP deja opacity en línea tras la entrada */
.clients__grid li:hover::after { opacity: 1; transform: scale(1.08); }

/* ---------- Premios --------------------------------------------------- */
.awards { padding: 0 0 var(--section); }
.awards__grid {
  margin-top: clamp(40px, 4.4vw, 70px);
  display: grid;
  grid-template-columns: 488fr 459fr 373fr;
  gap: clamp(44px, 4.6vw, 76px) clamp(20px, 2vw, 32px);
}
.award__icon { height: clamp(52px, 4.4vw, 70px); width: auto; transform-origin: 0% 100%; }
.award__icon img { height: 100%; width: auto; will-change: transform; }
.award__name { font-family: var(--mono); font-weight: 800; font-size: var(--fs-eyebrow); letter-spacing: .06em; line-height: 1.3; margin-top: clamp(18px, 1.6vw, 26px); text-transform: uppercase; }
.award__text { font-size: var(--fs-award); line-height: 1.4; margin-top: 0.5em; font-weight: 500; }
.award__text strong { display: block; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; margin-bottom: .15em; }

/* ---------- Contacto -------------------------------------------------- */
.contact { background: var(--yellow); padding: var(--section) 0; }
.contact__grid { display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: 40px; justify-content: space-between; }
.form { display: grid; gap: clamp(16px, 1.3vw, 22px); }
.form label { display: block; font-family: var(--mono); font-weight: 800; font-size: var(--fs-eyebrow); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.form input, .form textarea {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: var(--white);
  color: var(--navy);
  font: 500 16px/1.4 var(--sans);
  padding: 0 14px;
  height: 48px;
  outline: 2px solid transparent;
  transition: outline-color .3s;
}
.form textarea { height: 150px; padding: 12px 14px; resize: vertical; }
.form input:focus, .form textarea:focus { outline-color: var(--navy); }
.form .pill { justify-self: start; margin-top: 6px; }
.form .pill:hover { background: var(--navy-dark); color: var(--yellow); }
.form__hp { position: absolute; left: -9999px; }
/* Botón Enviar con estados */
.send { position: relative; overflow: hidden; min-width: 150px; isolation: isolate; transition: background-color .45s var(--ease), color .45s var(--ease), min-width .5s var(--ease); }
.send .send__label { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .5em; white-space: nowrap; }
.send__bar { position: absolute; inset: 0; z-index: 0; background: var(--navy-dark); transform: scaleX(0); transform-origin: left; }
.send .send__label svg { display: inline-block; width: 1.2em; height: 1.2em; flex: none; }
.form .send[data-state="sending"], .form .send[data-state="sending"]:hover { min-width: 180px; cursor: progress; background: var(--navy); color: var(--yellow); }
.form .send[data-state="sending"] .send__bar { animation: sendBar 1.6s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes sendBar {
  0%   { transform: scaleX(0); transform-origin: left; }
  50%  { transform: scaleX(1); transform-origin: left; }
  50.1%{ transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}
.form .send[data-state="sent"], .form .send[data-state="sent"]:hover { background: var(--navy-dark); color: var(--yellow); min-width: 180px; }
.form .send[data-state="error"], .form .send[data-state="error"]:hover { background: var(--red); color: var(--white); }
.send:disabled { opacity: 1; }
.form.is-sending input, .form.is-sending textarea { opacity: .55; transition: opacity .4s; }
.send__dots i { display: inline-block; animation: sendDot 1.2s ease-in-out infinite; font-style: normal; }
.send__dots i:nth-child(2) { animation-delay: .15s; } .send__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes sendDot { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.form__status { font-family: var(--mono); font-weight: 700; font-size: var(--fs-nav); min-height: 1.4em; }

/* ---------- Footer ---------------------------------------------------- */
.footer { background: var(--navy-dark); color: var(--white); padding: clamp(60px, 6vw, 96px) 0 clamp(28px, 2.4vw, 40px); overflow: hidden; }
/* Mismas columnas que Contacto: el texto arranca alineado con el formulario. */
.footer__grid { display: grid; grid-template-columns: 1fr minmax(0, 560px); align-items: center; gap: 40px; }
.seal { position: relative; width: clamp(124px, 11vw, 170px); aspect-ratio: 1; }
.seal__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal__logo { position: absolute; left: 50%; top: 50%; width: 60%; translate: -50% -50%; color: var(--yellow); }
.footer__info { font-family: var(--mono); font-weight: 700; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.6; }
.footer__info a { transition: color .3s; }
.footer__info a:hover { color: var(--yellow); }
.social { display: flex; gap: clamp(18px, 1.6vw, 24px); margin-top: clamp(18px, 1.6vw, 24px); }
.social a { color: var(--yellow); height: 24px; display: grid; place-items: center; }
.social svg { height: 100%; width: auto; }
.footer__credit { margin-top: clamp(22px, 2vw, 32px); font-size: 12px; letter-spacing: .04em; color: rgba(255,255,255,.6); }
.footer__credit a { color: var(--white); border-bottom: 1px solid rgba(255,255,255,.35); transition: color .3s, border-color .3s; }
.footer__credit a:hover { color: var(--yellow); border-color: var(--yellow); }
.footer__bottom {
  margin-top: clamp(48px, 4.4vw, 72px); padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.45);
}
.footer__bottom a:hover { color: var(--yellow); }

/* ---------- Responsive ------------------------------------------------ */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__cta { display: none; }
  .menu-open .nav {
    display: flex;
    position: fixed; inset: 0;
    z-index: -1;
    flex-direction: column; justify-content: center;
    gap: 18px;
    padding: 0 var(--gutter);
    background: var(--navy-dark);
  }
  .menu-open .nav a { font-size: clamp(22px, 6vw, 34px); }
  /* Con el menú abierto el header no puede tener blur ni transform: en Safari eso
     recorta el fondo del menú a la altura de la barra (texto blanco sobre la página). */
  .menu-open .header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; transition: none; }
  .menu-open, .menu-open body { overflow: hidden; }
  .menu-open .nav { overscroll-behavior: contain; }
  .clients__grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 900px) {
  .works__grid, .works__grid[data-cols] { grid-template-columns: repeat(2, 1fr); }
  .clients__grid { grid-template-columns: repeat(4, 1fr); }
  .awards__grid { grid-template-columns: 1fr 1fr; }
  .contact__grid, .footer__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__shape { left: 38%; top: auto; bottom: -10%; width: 80vw; }
  .band__shape { left: 40%; top: auto; bottom: -6%; width: 76vw; }
}
@media (max-width: 560px) {
  /* Premios en celular: filas compactas, ícono a la izquierda y texto a la derecha */
  .awards__grid { grid-template-columns: 1fr; gap: 0; margin-top: 32px; border-top: 1px solid rgba(37,54,109,.15); }
  .award { display: grid; grid-template-columns: 46px 1fr; column-gap: 18px; align-items: start; padding: 20px 0; border-bottom: 1px solid rgba(37,54,109,.15); }
  .award__icon { grid-row: 1 / span 2; height: 40px; display: flex; justify-content: center; }
  .award__name { margin-top: 0; font-size: 10.5px; }
  .award__text { margin-top: 6px; font-size: 14.5px; line-height: 1.4; }
  .award__text strong { font-size: 13.5px; }
  .works__grid, .works__grid[data-cols] { grid-template-columns: 1fr; }
  .work, .works__grid[data-cols] .work { aspect-ratio: 4 / 3.3; }
  .clients__grid { grid-template-columns: repeat(4, 1fr); }
  .awards__grid { grid-template-columns: 1fr; }
  .hero__tagline { margin-top: 4%; }
}
@media (hover: none), (max-width: 560px) {
  .work__info { clip-path: inset(0 0 0 0); background: linear-gradient(0deg, rgba(14,30,71,.88), rgba(14,30,71,0) 62%); color: var(--white); justify-content: flex-end; }
  .work__title, .work__meta { transform: none; opacity: 1; }
  .work__more { display: none; }
  .works__grid:hover .work:not(:hover) .work__img img { filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll::after { animation: none; }
  * { transition-duration: .01ms !important; animation: none !important; }
}

/* ---------- Header sobre fondo claro (proyectos) ----------------------- */
.nav__contact { display: none; }
.header--light .header__logo, .header--light .nav a { color: var(--navy); }
.header--light .nav a::after { background: var(--navy); }
.header--light.is-solid { background: rgba(247, 247, 247, 0.9); }
.header--light .burger span { background: var(--navy); }
.menu-open .header--light .nav a { color: var(--white); }
.menu-open .header--light .burger span { background: var(--yellow); }
.menu-open .header--light .header__logo { color: var(--yellow); }
@media (max-width: 1100px) { .menu-open .nav__contact { display: block; color: var(--yellow) !important; } }

/* ---------- Página de proyecto --------------------------------------- */
.page-project { background: var(--paper); }
.phero {
  display: grid;
  grid-template-columns: max(var(--gutter), (100vw - 1280px) / 2) minmax(0, 5fr) clamp(24px, 4vw, 64px) minmax(0, 7fr);
  padding-top: clamp(110px, 10vw, 160px);
  align-items: start;               /* como en el diseño: título a la altura de la foto */
}
.phero__text { grid-column: 2; padding-top: 4px; }
.phero__title { font-weight: 600; font-size: clamp(32px, 3.5vw, 56px); line-height: 1.2; letter-spacing: -0.025em; }
.phero__meta { margin: clamp(28px, 2.8vw, 44px) 0 0; display: grid; gap: clamp(14px, 1.3vw, 20px); }
.phero__meta dt { font-family: var(--mono); font-weight: 800; font-size: 11px; letter-spacing: .08em; color: var(--red); text-transform: uppercase; }
.phero__meta dd { margin: 3px 0 0; font-weight: 700; font-size: clamp(14px, 1vw, 16px); line-height: 1.4; }
.phero__media { grid-column: 4; aspect-ratio: 910 / 600; overflow: hidden; background: var(--navy); }
.phero__media img { width: 100%; height: 118%; object-fit: cover; }
.pintro { margin-top: clamp(64px, 6.6vw, 110px); max-width: 32em; font-weight: 600; font-size: var(--fs-lead); line-height: 1.45; }
.pintro p + p { margin-top: 1em; }
.pblock { margin-top: clamp(64px, 6vw, 100px); }
.pblock__title { display: flex; white-space: nowrap; align-items: center; gap: 14px; margin-bottom: clamp(20px, 1.8vw, 30px); }
.pblock__title::after { content: ""; flex: 1; height: 1.5px; background: currentColor; opacity: .25; }
.media-stack, .media-grid { display: grid; gap: clamp(16px, 2.2vw, 36px); }
.media-stack + .media-grid, .media-grid + .media-stack, .spots + .media-grid, .spots + .media-stack { margin-top: clamp(16px, 2.2vw, 36px); }
/* Grilla justificada: cada fila llena el ancho y sus imágenes comparten altura */
.media-grid { --gap: clamp(10px, 1.4vw, 22px); gap: var(--gap); }
.jrow { display: flex; gap: var(--gap); align-items: flex-start; }
.jrow > .media, .jrow__fill { flex: var(--r) 1 0; min-width: 0; }
.media--image { aspect-ratio: var(--r); }
.media--image a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.media--image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.media--image a:hover img { transform: scale(1.035); }
.media { margin: 0; overflow: hidden; background: rgba(37,54,109,.06); }
.video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: #6f6f6e; overflow: hidden; }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.video:hover img { transform: scale(1.04); }
.video__play { position: absolute; left: 50%; top: 50%; width: clamp(52px, 4.6vw, 76px); translate: -50% -50%; transition: transform .6s var(--ease-out); }
.video:hover .video__play { transform: scale(1.14); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Video propio: celda de la grilla con su proporción, igual que una foto */
.media--file { aspect-ratio: var(--r); background: #000; }
.media--file .video { aspect-ratio: auto; height: 100%; }
.video video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; object-fit: contain; }
/* Radio: reproductor propio con forma de onda */
.spots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.media-stack + .spots, .media-grid + .spots { margin-top: clamp(16px, 2.2vw, 36px); }
.spot {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 1.6vw, 24px); align-items: center;
  padding: clamp(18px, 1.8vw, 26px);
  background: var(--navy-dark); color: var(--white);
  overflow: hidden;
  transition: transform .6s var(--ease-out), box-shadow .6s;
}
.spot:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(14,30,71,.25); }
.spot__play {
  position: relative;
  width: clamp(54px, 4.4vw, 68px); aspect-ratio: 1; border-radius: 50%;
  background: var(--yellow); color: var(--navy);
  display: grid; place-items: center;
  transition: transform .5s var(--ease-out);
}
.spot__play:hover { transform: scale(1.08); }
.spot__play::before {      /* anillo que late mientras suena */
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--yellow);
  opacity: 0; pointer-events: none;
}
.spot.is-playing .spot__play::before { animation: ring 1.6s var(--ease-out) infinite; }
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
.spot__play svg { grid-area: 1 / 1; width: 42%; fill: currentColor; transition: transform .35s var(--ease-out), opacity .25s; }
.spot__play .i-play { margin-left: 8%; }
.spot__play .i-pause, .spot.is-playing .spot__play .i-play { opacity: 0; transform: scale(.5); }
.spot.is-playing .spot__play .i-pause { opacity: 1; transform: none; }
.spot__body { min-width: 0; }
.spot__meta { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 800; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); }
.spot__eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; opacity: 0; transition: opacity .3s; }
.spot__eq i { width: 2px; height: 100%; background: currentColor; transform-origin: bottom; animation: eq .9s ease-in-out infinite alternate; animation-play-state: paused; }
.spot__eq i:nth-child(2) { animation-delay: -.3s; } .spot__eq i:nth-child(3) { animation-delay: -.6s; }
.spot.is-playing .spot__eq { opacity: 1; }
.spot.is-playing .spot__eq i { animation-play-state: running; }
@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.spot__title { margin-top: 4px; font-weight: 700; font-size: clamp(16px, 1.25vw, 20px); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot__wave { position: relative; height: 36px; margin-top: 12px; cursor: pointer; outline: none; touch-action: none; --p: 0%; }
.spot__wave:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
.spot__bars { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; }
.spot__bars i { flex: 1; height: calc(var(--h) * 100%); min-height: 2px; border-radius: 2px; background: rgba(255,255,255,.22); transition: background-color .3s; }
.spot__bars--fill { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.spot__bars--fill i { background: var(--yellow); }
.spot__wave:hover .spot__bars:not(.spot__bars--fill) i { background: rgba(255,255,255,.34); }
.spot__time { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: .04em; color: rgba(255,255,255,.55); }
.spot audio { display: none; }
.pnext { display: block; margin-top: clamp(90px, 8vw, 140px); background: var(--yellow); color: var(--navy); padding: clamp(56px, 5.6vw, 90px) 0; overflow: hidden; }
.pnext__inner { display: block; }
.pnext__title { display: flex; align-items: center; gap: .35em; margin-top: .35em; font-weight: 700; font-size: var(--fs-display); line-height: 1.12; letter-spacing: -0.03em; }
.pnext__title svg { width: .6em; flex: none; transition: transform .6s var(--ease-out); }
.pnext:hover .pnext__title svg { transform: translateX(.25em); }

@media (max-width: 900px) {
  .phero { grid-template-columns: var(--gutter) 1fr var(--gutter); row-gap: 36px; }
  .phero__text { grid-column: 2; }
  .phero__media { grid-column: 2 / 4; grid-row: 2; }
}
@media (max-width: 600px) {
  .jrow { flex-wrap: wrap; }
  .jrow > .media { flex: 1 1 100%; }
  .jrow > .media.is-tall { flex: 1 1 calc(50% - var(--gap) / 2); }
  .jrow__fill { display: none; }
}

/* ---------- Visor de imágenes ----------------------------------------- */
/* Visor de imágenes. Por encima de todo (también de la barra del panel). */
.lightbox {
  position: fixed; inset: 0; z-index: 140;
  background: rgba(14, 30, 71, 0.96);
  color: var(--white);
}
.lightbox[hidden] { display: none; }
/* El área de la foto tiene alto y ancho definidos (filas/columnas minmax(0,1fr)):
   así max-height:100% funciona y la imagen SIEMPRE entra entera en la pantalla. */
.lightbox__stage {
  position: absolute; inset: 0;
  display: grid; grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); place-items: center;
  padding: clamp(64px, 7vw, 100px) clamp(16px, 8vw, 130px);
}
.lightbox__img { width: auto; height: auto; max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; user-select: none; -webkit-user-drag: none; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.lightbox__count { position: absolute; left: var(--gutter); top: clamp(24px, 2.6vw, 36px); color: var(--yellow); }
.lightbox__btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--yellow); background: rgba(255,255,255,.06); transition: background-color .3s, color .3s; }
.lightbox__btn:hover { background: var(--yellow); color: var(--navy); }
.lightbox__btn svg { width: 22px; }
.lightbox__prev svg { transform: scaleX(-1); }
.lightbox__close { right: var(--gutter); top: clamp(14px, 1.8vw, 24px); }
.lightbox__close span { position: absolute; width: 20px; height: 2px; background: currentColor; transform: rotate(45deg); }
.lightbox__close span + span { transform: rotate(-45deg); }
.lightbox__prev, .lightbox__next { top: 50%; margin-top: -26px; }
.lightbox__prev { left: clamp(10px, 2vw, 32px); }
.lightbox__next { right: clamp(10px, 2vw, 32px); }
@media (max-width: 600px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; margin: 0; }
  .lightbox__stage { padding: 70px 12px 90px; }
}
