/* ============================================================
   ONE HEADLIGHT · OVERKILLY v3 — Headlight palette, Foudre scroll
   Bold brand colors only (no cream/pastels). The scroll
   choreography (wordmark, fan, reactive carousel, kinetic type)
   is borrowed from Foudre; the COLOR is 100% One Headlight.
   ============================================================ */

:root {
  --azul: #1e1bb0;
  --azul-hondo: #12107e;
  --tinta: #000d8a;
  --amarillo: #faff00;
  --morado: #9b30d0;
  --magenta: #d12a8c;
  --blanco: #ffffff;
  --display: 'Archivo Black', sans-serif;
  --body: 'Quicksand', sans-serif;
  --radius: 20px;
  --grain: url('../assets/img/bg-grain.jpg');
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-weight: 600;
  background: var(--azul);
  color: var(--blanco);
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

/* ── LENIS smooth scroll ── */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

img { display: block; max-width: 100%; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--amarillo); outline-offset: 3px; border-radius: 6px;
}

/* ── PILL NAV (white, brand glyphs — readable over every section color) ── */
.pill {
  position: fixed; top: 26px; z-index: 200;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; text-decoration: none;
  background: var(--blanco); color: var(--azul);
  transition: transform .4s var(--ease-spring), box-shadow .25s ease;
  box-shadow: 0 6px 22px rgba(0,0,0,.28);
}
.pill:hover { transform: scale(1.1); }
.pill--burger { left: 26px; flex-direction: column; gap: 5px; }
.pill--burger span { width: 20px; height: 2.5px; background: var(--azul); border-radius: 2px; }
.pill--mail { right: 26px; }
.pill--close {
  position: absolute; top: 26px; left: 26px;
  background: var(--amarillo); color: var(--azul);
  font-size: 1.1rem; font-weight: 700;
}

/* sticky brandmark — small logo badge, top-centre; revealed once the intro opens */
.brandmark {
  position: fixed; top: 26px; left: 50%; z-index: 200;
  transform: translateX(-50%) translateY(-16px) scale(.95);
  display: flex; align-items: center; padding: 11px 20px;
  background: var(--azul-hondo); border-radius: 999px;
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
  opacity: 0; pointer-events: none;
  transition: opacity .5s ease, transform .55s var(--ease-spring);
}
.brandmark img { display: block; height: 26px; width: auto; position: relative; z-index: 1; }
/* scroll-progress ring traced on the pill border (ui-tricks/liquid-glass-control) */
.brandmark__ring { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 2; overflow: visible; }
.brandmark__track { stroke: rgba(255,255,255,.16); stroke-width: 2; }
.brandmark__bar { stroke: var(--amarillo); stroke-width: 2.5; stroke-linecap: round; }
.brandmark__head { fill: var(--amarillo); opacity: 0; }
.brandmark.is-shown {
  opacity: 1; transform: translateX(-50%) translateY(0) scale(1); pointer-events: auto;
}
body.menu-open .brandmark { opacity: 0; pointer-events: none; }

/* ── FULLSCREEN MENU ── */
.menu {
  position: fixed; inset: 0; z-index: 300;
  background: var(--azul);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility 0s .35s;
}
.menu::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grain) center / cover; opacity: .08; mix-blend-mode: overlay;
  pointer-events: none;
}
.menu.is-open {
  opacity: 1; visibility: visible;
  transition: opacity .35s ease, visibility 0s 0s;
}
.menu__links { list-style: none; text-align: center; position: relative; z-index: 1; }
.menu__links a {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(2rem, 7vh, 3.6rem); line-height: 1.25;
  color: var(--blanco); text-decoration: none;
  transition: color .2s ease;
}
.menu__links a:hover { color: var(--amarillo); }
.menu__links li {
  transform: translateY(28px); opacity: 0;
  transition: transform .6s var(--ease-spring), opacity .5s ease;
}
.menu.is-open .menu__links li { transform: none; opacity: 1; }
.menu__links li:nth-child(1) { transition-delay: .08s; }
.menu__links li:nth-child(2) { transition-delay: .14s; }
.menu__links li:nth-child(3) { transition-delay: .20s; }
.menu__links li:nth-child(4) { transition-delay: .26s; }
.menu__links li:nth-child(5) { transition-delay: .32s; }
.menu__links li:nth-child(6) { transition-delay: .38s; }
.menu__foot {
  position: absolute; bottom: 30px; z-index: 1;
  color: rgba(255,255,255,.6); font-size: .95rem; letter-spacing: .08em;
}

/* ── HERO — HEAD + LIGHT ── */
.hero {
  position: relative;
  padding: 96px 0 4rem; background: var(--azul);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(250,255,0,.10) 0%, transparent 60%),
    radial-gradient(120% 90% at 85% 8%, rgba(18,16,126,.55) 0%, transparent 55%),
    radial-gradient(100% 80% at 8% 92%, rgba(0,13,138,.5) 0%, transparent 50%),
    var(--grain) center / cover no-repeat;
  opacity: .9; pointer-events: none;
}
.hero__stage { position: relative; z-index: 1; }
.hero__word { text-align: center; user-select: none; }
.hero__one {
  display: block;
  font-family: var(--display); text-transform: uppercase;
  color: var(--amarillo); font-size: clamp(.9rem, 2vw, 1.3rem);
  letter-spacing: .4em; margin-bottom: .15em;
}
.hero__logo {
  position: relative; display: block;
  width: min(86vw, 1080px); aspect-ratio: 1626 / 515; margin: 0 auto;
}
.hero__logo-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; will-change: transform;
}
.hero__head  { clip-path: inset(0 41% 0 0); }   /* left of the logo, cut in the D|L gap */
.hero__light { clip-path: inset(0 0 0 59%); }   /* right of the logo (LIGHT) */
.hero__reveal {
  display: flex; flex-direction: column; align-items: center;
  gap: 2.4rem; margin-top: 3rem;
}

/* pinned hero choreography (desktop): HEAD+LIGHT join, then split to reveal */
.hero.is-pinned { overflow: visible; padding: 0; }
.hero.is-pinned .hero__stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
}
.hero.is-pinned .hero__word {
  position: absolute; inset: 0; z-index: 20; margin: 0;   /* above the intro overlay — opens like doors */
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0;                                             /* JS fades the logo in after the intro text */
}
.hero.is-pinned .hero__logo { width: min(80vw, 1000px); }
.hero.is-pinned .hero__reveal {
  position: absolute; inset: 0; z-index: 1; margin: 0;
  justify-content: center; opacity: 0;
}
.hero.is-pinned .fan {
  width: min(560px, 64vw); min-height: clamp(220px, 30vw, 360px); margin: 0 auto;
}

/* ── VECTORIZED INTRO OVERLAY (scroll-driven) ── */
/* Off by default; only the pinned desktop hero plays the intro. JS drives the
   word reveal, then grows an evenodd clip-path hole so the logo + overlay open
   together to uncover the hero underneath. */
.hero__loader { display: none; }
.hero.is-pinned .hero__loader {
  display: grid; place-items: center;
  position: absolute; inset: 0; z-index: 10;            /* above the reveal (z1), below the logo (z20) */
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(250,255,0,.14) 0%, transparent 55%),
    var(--azul-hondo);
  will-change: clip-path;
}
.hero.is-pinned .hero__loader::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: var(--grain) center / cover; opacity: .10; mix-blend-mode: overlay;
}
.hero__loader-text {
  position: relative; z-index: 1;
  max-width: 15ch; text-align: center; padding: 0 6vw;
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(2.4rem, 8vw, 6.5rem); line-height: .94;
}
.word-wrap { display: inline-block; overflow: hidden; vertical-align: bottom; }
.word {
  display: inline-block; transform: translateY(110%);
  color: color-mix(in srgb, var(--amarillo) 20%, var(--azul-hondo));
}
.word.in  { transform: translateY(0); }
.word.lit { color: var(--amarillo); }
.hero__hint {
  position: absolute; bottom: 6vh; left: 50%; z-index: 1;
  transform: translateX(-50%); color: var(--amarillo);
  font-size: 1.8rem; line-height: 1;
  animation: hintBob 1.6s ease-in-out infinite;
}
@keyframes hintBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}

/* keep the pills + promo card out of the way while the intro overlay covers the screen */
.pill, .promo { transition: opacity .5s ease; }
body.intro-cover .pill,
body.intro-cover .promo { opacity: 0; pointer-events: none; }

/* fanned cards */
.fan {
  position: relative;
  width: min(680px, 86vw); margin: 3rem auto 0;
  display: flex; justify-content: center; align-items: flex-end;
  min-height: clamp(300px, 48vw, 480px);
}
.fan__card {
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
  background: var(--blanco); padding: 8px;
}
.fan__card img { border-radius: 12px; object-fit: cover; }
.fan__card--center { width: 46%; z-index: 3; position: relative; }
.fan__card--center img { aspect-ratio: 3 / 4; }
.fan__card--left, .fan__card--right {
  width: 40%; position: absolute; bottom: 6%; z-index: 1;
}
.fan__card--left  { left: 0;  transform: rotate(-8deg); }
.fan__card--right { right: 0; transform: rotate(8deg); }
.fan__card--left img, .fan__card--right img { aspect-ratio: 3 / 4; }

/* stickers */
.sticker {
  position: absolute; z-index: 4;
  background: var(--blanco);
  padding: .55em .9em; border-radius: 18px;
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  animation: floaty 4.5s ease-in-out infinite;
}
.sticker::after {
  content: ''; position: absolute; bottom: -6px; left: 22px;
  width: 14px; height: 14px; background: var(--blanco);
  border-radius: 3px; transform: rotate(45deg);
}
.sticker--left  { left: -4%; top: 16%; }
.sticker--right { right: -4%; top: auto; bottom: 8%; animation-delay: 1.4s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* hero intro claim (revealed when HEAD+LIGHT part) */
.hero__intro { max-width: 1180px; margin: 0 auto; padding: 0 28px; text-align: center; }
.hero__label {
  font-size: .95rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amarillo); margin-bottom: .8rem;
}
.hero__claim {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(1.8rem, 5vw, 3.4rem); line-height: .98;
  display: flex; flex-direction: column; align-items: center;
}
.hero__claim--white { color: var(--blanco); }
.hero__claim--yellow { color: var(--amarillo); }

/* ── BUTTONS ── */
.btn {
  font-family: var(--body); font-weight: 700; text-decoration: none;
  display: inline-block; padding: .65em 1.5em; border-radius: 999px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn { transition: transform .35s var(--ease-spring), box-shadow .35s ease; }
.btn:hover { transform: translateY(-2px) scale(1.04); }
.btn--yellow { background: var(--amarillo); color: var(--azul); }
.btn--yellow:hover { box-shadow: 0 8px 26px rgba(250,255,0,.4); }

/* ── STICKY PROMO CARD ── */
.promo {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  width: 320px; background: var(--azul-hondo); border-radius: var(--radius);
  padding: 16px; color: var(--blanco);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  transition: transform .4s ease, opacity .4s ease;
}
.promo.is-hidden { transform: translateY(120%); opacity: 0; pointer-events: none; }
.promo__label {
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.75); margin-bottom: 10px; text-align: center;
  position: relative;
}
.promo__label::before {
  content: ''; position: absolute; top: -8px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.4);
}
.promo__body { display: flex; gap: 12px; }
.promo__body > img {
  width: 110px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px;
}
.promo__info { display: flex; flex-direction: column; gap: 8px; }
.promo__title {
  font-family: var(--display); text-transform: uppercase;
  font-size: 1.15rem; line-height: 1;
}
.promo__tag {
  align-self: flex-start;
  background: var(--amarillo); color: var(--azul);
  font-size: .72rem; font-weight: 700; padding: .35em .8em; border-radius: 999px;
}
.promo__cta { margin-top: auto; font-size: .85rem; align-self: flex-start; }

/* ── SECTIONS ── */
.section { position: relative; padding: 7rem 28px; }
.section__label {
  position: absolute; left: 28px; bottom: 24px;
  font-size: .85rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: underline;
  text-underline-offset: 4px; color: var(--amarillo);
}
.section__label--tinta { color: var(--azul); }

/* ── TRABAJO (reactive bg cycles brand BLUES via JS) ── */
.section--work {
  background: var(--azul-hondo);
  transition: background-color .6s ease;
  overflow: hidden;
}
.work__pin { max-width: 1320px; margin: 0 auto; position: relative; }
.work__head { margin-bottom: 1.6rem; }
.stories__viewport { overflow: visible; }
.work__title {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: .95;
  color: var(--blanco);
  display: flex; flex-direction: column;
}
.work__social { display: flex; align-items: center; margin-top: 1.6rem; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--blanco); margin-right: -12px;
  background: var(--blanco);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--more {
  display: flex; align-items: center; justify-content: center;
  background: var(--amarillo); color: var(--azul);
  font-size: .85rem; font-weight: 700; margin-right: 0;
}
.work__kicker { margin-top: 1.4rem; color: var(--blanco); font-weight: 700; }

.stories__track {
  display: flex; gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 1.2rem 4px;
}
.stories__track::-webkit-scrollbar { display: none; }

/* pinned scroll-driven mode (desktop): vertical scroll moves cards horizontally */
.section--work.is-pinned { overflow: visible; padding: 0; }
.section--work.is-pinned .work__pin {
  position: sticky; top: 0; height: 100vh; max-width: none;
  display: flex; flex-direction: column; justify-content: center;
  padding: 4.5rem 28px 3.5rem; overflow: hidden;
}
.section--work.is-pinned .work__head {
  max-width: 1320px; width: 100%; margin: 0 auto 1.4rem;
}
.section--work.is-pinned .work__title {
  flex-direction: row; flex-wrap: wrap; gap: .35em;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}
.section--work.is-pinned .work__social,
.section--work.is-pinned .work__kicker { display: none; }
.section--work.is-pinned .stories__viewport {
  flex: 1; display: flex; align-items: center; overflow: hidden; width: 100%;
}
.section--work.is-pinned .stories__track {
  overflow: visible; scroll-snap-type: none; padding: 0 28px; will-change: transform;
}
.section--work.is-pinned .story { flex: 0 0 auto; width: auto; height: min(60vh, 540px); }

.story {
  position: relative; flex: 0 0 clamp(240px, 26vw, 330px);
  aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden;
  scroll-snap-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
  background: var(--azul-hondo);
}
.story > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.story__bars {
  position: absolute; top: 12px; left: 12px; right: 12px; z-index: 2;
  display: flex; gap: 5px;
}
.story__bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.4); }
.story__bars i.is-full { background: var(--blanco); }
.story__name {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--blanco);
  text-shadow: 0 4px 30px rgba(0,0,0,.55);
  text-align: center; padding: 0 1rem; line-height: 1;
  pointer-events: none;
}
.story__tag {
  position: absolute; right: 12px; bottom: 14px; z-index: 2;
  background: var(--blanco); color: var(--azul);
  font-size: .78rem; font-weight: 700;
  padding: .4em .9em; border-radius: 999px;
}
/* Video reel cards: poster + centred play button, name pinned bottom-left */
.story--video { cursor: pointer; }
.story--video::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.4) 100%);
  pointer-events: none; transition: opacity .3s ease;
}
.story__play {
  position: absolute; top: 50%; left: 50%; z-index: 3;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--azul);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform .4s var(--ease-spring), background .3s ease;
}
.story__play::before {
  content: ""; position: absolute; top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid; border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--azul);
}
.story--video:hover .story__play { transform: translate(-50%, -50%) scale(1.1); background: var(--amarillo); }
.story--video:hover .story__play::before { border-left-color: var(--tinta); }
.story__name--btm {
  inset: auto; bottom: 46px; left: 16px; right: 16px; z-index: 2;
  justify-content: flex-start; align-items: flex-end;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem); text-align: left;
}
.story__video {
  position: absolute; inset: 0; z-index: 4;
  width: 100%; height: 100%; object-fit: cover; background: #000;
}
.story.is-playing .story__play,
.story.is-playing .story__name,
.story.is-playing::after { opacity: 0; pointer-events: none; }

.story--cta {
  background: var(--azul-hondo);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.6rem;
}
.story__more {
  font-family: var(--display); text-transform: uppercase;
  color: var(--amarillo); font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  text-align: center; line-height: 1.05;
}

.stories__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blanco); color: var(--azul);
  border: none; cursor: pointer; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 26px rgba(0,0,0,.3);
  transition: transform .4s var(--ease-spring);
}
.stories__btn:hover { transform: translateY(-50%) scale(1.12); }
.stories__btn[disabled] { opacity: .3; pointer-events: none; }
.stories__btn--prev { left: -8px; }
.stories__btn--next { right: -8px; }

/* ── MANIFIESTO (full yellow statement) ── */
.section--manifesto {
  background: var(--amarillo);
  padding-top: 9rem; padding-bottom: 9rem;
  text-align: center;
}
.manifesto { max-width: 1100px; margin: 0 auto; }
.kline { overflow: hidden; }
.kline span {
  display: inline-block;
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(2.2rem, 6.2vw, 4.8rem); line-height: 1.12;
  color: var(--azul);
  transform: translateY(110%);
  transition: transform .7s cubic-bezier(.2,.65,.25,1);
}
.kline--accent span { color: var(--tinta); }
.kline.is-in span { transform: translateY(0); }

.manifesto__copy {
  max-width: 760px; margin: 4rem auto 0;
  display: grid; gap: 1.4rem;
  color: var(--azul); font-size: clamp(1rem, 1.8vw, 1.2rem); font-weight: 700;
}

/* ── SERVICIOS (deep blue-ink block) ── */
.section--services { background: var(--tinta); }
.services__layout {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr 1.2fr;
  gap: 3rem; align-items: center;
}
.services__title {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(2.4rem, 5vw, 4rem); line-height: .95;
  display: flex; flex-direction: column;
}
.services__title--yellow { color: var(--amarillo); }
.services__title--white { color: var(--blanco); }
.services__kicker { margin-top: 1.4rem; color: rgba(255,255,255,.9); font-weight: 700; }
.services__photo {
  border-radius: var(--radius); overflow: hidden;
  --tilt: rotate(-3deg); transform: var(--tilt);
  box-shadow: 0 22px 55px rgba(0,0,0,.35);
}
.services__photo img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }

.accordion { display: flex; flex-direction: column; }
.accordion__item { border-bottom: 2px solid rgba(255,255,255,.3); }
.accordion__head {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--amarillo);
  padding: 1.3rem 0; text-align: left;
}
.accordion__head span { font-size: 1.4em; line-height: 1; transition: transform .4s var(--ease-spring); }
.accordion__item.is-open .accordion__head span { transform: rotate(45deg); }
.accordion__panel {
  max-height: 0; overflow: hidden;
  transition: max-height .45s cubic-bezier(.2,.65,.25,1);
}
.accordion__item.is-open .accordion__panel { max-height: 220px; }
.accordion__panel p { color: var(--blanco); font-weight: 700; padding-bottom: 1rem; }
.accordion__pills { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 1.4rem; }
.accordion__pills span {
  background: var(--amarillo); color: var(--azul);
  font-size: .8rem; font-weight: 700;
  padding: .4em 1em; border-radius: 999px;
}

/* ── RESULTADOS (yellow block · blue-ink metrics, the original's signature) ── */
.section--results { background: var(--amarillo); }
.results__title {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(2.6rem, 6vw, 4.6rem); color: var(--tinta);
  text-align: center; margin-bottom: 4rem;
}
.results__grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 3rem;
}
.result { text-align: center; }
.result h3 {
  font-family: var(--display); text-transform: uppercase;
  font-size: 1rem; color: var(--tinta); margin-bottom: 1rem;
}
.result__metric {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.6vw, 3.6rem); color: var(--tinta); line-height: 1;
}
.result__label { color: var(--azul); font-weight: 700; margin: .4rem 0 .8rem; }
.result__desc { color: rgba(0,13,138,.85); font-size: .95rem; }

/* ── CLIENTES (blue block, white logos float on faint chips) ── */
.section--clients { background: var(--azul); text-align: center; }
.clients__title {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1;
  display: flex; flex-direction: column; align-items: center;
}
.clients__title--yellow { color: var(--amarillo); }
.clients__title--white { color: var(--blanco); }
.clients__kicker { margin-top: 1.2rem; color: rgba(255,255,255,.9); font-weight: 700; }
.clients__grid {
  max-width: 1100px; margin: 3.5rem auto 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 18px;
}
.chip {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px; padding: 1.4rem 2rem;
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s ease, background-color .25s ease;
}
.chip:hover { transform: translateY(-4px) rotate(-1.5deg); background: rgba(255,255,255,.16); }
.chip img { max-height: 52px; max-width: 130px; object-fit: contain; }

/* ── CONTACTO (yellow block, blue card) ── */
.section--contact { background: var(--amarillo); overflow: hidden; }
.contact__cards {
  max-width: 980px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 0; align-items: center;
}
.contact__photo {
  border-radius: var(--radius); overflow: hidden;
  --tilt: rotate(-5deg) translateX(4%); transform: var(--tilt);
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
  z-index: 1;
}
.contact__photo img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.contact__card {
  background: var(--azul); color: var(--blanco);
  border-radius: var(--radius); padding: 3.4rem 3rem;
  --tilt: rotate(3deg) translateX(-4%);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  text-align: center; z-index: 2;
}
.contact__label {
  font-size: .85rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.8); margin-bottom: 1rem;
}
.contact__title {
  font-family: var(--display); text-transform: uppercase;
  color: var(--amarillo);
  font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1; margin-bottom: 1.4rem;
}
.contact__sub { max-width: 380px; margin: 0 auto 2rem; font-weight: 700; }

/* ── FOOTER (deep blue, small logo bookend) ── */
.footer {
  position: relative;
  background: var(--azul-hondo); padding: 4rem 0 2.4rem; overflow: hidden;
}
.footer::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grain) center / cover; opacity: .08; mix-blend-mode: overlay;
  pointer-events: none;
}
.footer > * { position: relative; z-index: 1; }
.footer__logo {
  display: block; height: clamp(34px, 5vw, 56px); width: auto;
  margin: 0 auto; user-select: none;
}
.footer__line {
  text-align: center; color: rgba(255,255,255,.65);
  font-size: .85rem; margin-top: 2rem; padding: 0 28px;
}

/* ── REVEAL ── */
/* --tilt lets rotated cards keep their rotation through the reveal transition */
.reveal {
  opacity: 0; transform: translateY(30px) var(--tilt,);
  transition: opacity .8s cubic-bezier(.2,.65,.25,1), transform .8s cubic-bezier(.2,.65,.25,1);
}
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
.reveal.is-visible { opacity: 1; transform: translateY(0) var(--tilt,); }

/* clip-path reveal — feature images grow into view (Foudre move) */
.reveal-clip {
  clip-path: inset(0 0 100% 0 round var(--radius));
  transition: clip-path 1s var(--ease-out);
}
.reveal-clip.is-visible { clip-path: inset(0 0 0 0 round var(--radius)); }

/* section titles "light up" as the beam reaches them (scroll narrative) */
.glow.is-visible { animation: lightUp 1.2s var(--ease-out); }
@keyframes lightUp {
  0%   { text-shadow: 0 0 0 rgba(250,255,0,0); filter: brightness(.8); }
  45%  { text-shadow: 0 0 28px rgba(250,255,0,.55); filter: brightness(1.18); }
  100% { text-shadow: 0 0 0 rgba(250,255,0,0); filter: brightness(1); }
}

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .work__layout { grid-template-columns: 1fr; gap: 2rem; }
  .services__layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .services__photo { max-width: 340px; margin: 0 auto; }
  /* Stacked layouts: show feature images directly. The clip-path reveal is a desktop-only
     flourish and was leaving tall empty gaps when the IntersectionObserver didn't fire on
     touch — so on small screens the images are always visible. */
  .reveal-clip { clip-path: none; }
}

@media (max-width: 760px) {
  .section { padding: 5rem 20px; }
  .promo { display: none; }
  .contact__cards { grid-template-columns: 1fr; gap: 2rem; }
  .contact__photo { --tilt: rotate(-4deg); max-width: 320px; margin: 0 auto; }
  .contact__card { --tilt: rotate(2deg); padding: 2.6rem 1.8rem; }
  .stories__btn--prev { left: 4px; }
  .stories__btn--next { right: 4px; }
  .fan { min-height: clamp(260px, 60vw, 380px); }
  .sticker--left { left: -2%; }
  .sticker--right { right: -2%; }
  .footer__logo { height: 40px; }
}

@media (hover: none) {
  .stories__btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal-clip { clip-path: none; }
  .kline span { transform: none; }
}
