/* =========================================================
   NOVA GAP — Business Partners
   Sistema visual: paleta + geometría de Nova Gap
   Tipografías gratuitas (Google Fonts): Inter Tight + JetBrains Mono
   ========================================================= */

:root {
  --blue: #2042C0;
  --blue-deep: #10226a;
  --blue-glow: #3d63ff;
  --ink: #1A1A1A;
  --black: #0B0B0C;
  --paper: #F2F2F2;
  --white: #FFFFFF;
  --line-dark: rgba(242, 242, 242, .14);
  --line-light: rgba(26, 26, 26, .14);
  --muted-dark: rgba(242, 242, 242, .62);
  --muted-light: rgba(26, 26, 26, .62);

  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --pad: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Grain overlay (textura de las refes) ---------- */
.grain::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Logos (máscara: se pintan con cualquier color) ---------- */
.logo {
  display: inline-block;
  background: currentColor;
  -webkit-mask: var(--src) no-repeat center / contain;
          mask: var(--src) no-repeat center / contain;
}
.logo--h { --src: url("logo-horizontal.svg"); aspect-ratio: 798 / 238; }
.logo--h-outline { --src: url("logo-horizontal-outline.svg"); aspect-ratio: 799 / 240; }
.logo--iso { --src: url("isotipo.svg"); aspect-ratio: 430 / 322; }

/* ---------- Etiquetas [ BRACKETS ] ---------- */
.tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: inline-flex; gap: .6em; align-items: center;
}
.tag::before { content: "["; opacity: .55; }
.tag::after { content: "]"; opacity: .55; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--blue); --fg: var(--paper);
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 22px 16px 24px;
  background: var(--bg); color: var(--fg);
  font-size: 14px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase;
  overflow: hidden; isolation: isolate;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: color .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--paper);
  transform: translateX(-101%) skewX(-20deg); transform-origin: left;
  transition: transform .5s var(--ease);
  width: 130%; left: -15%;
}
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: translateX(0) skewX(-20deg); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--paper); box-shadow: inset 0 0 0 1px var(--line-dark); }
.btn--light { --bg: var(--paper); --fg: var(--ink); }
.btn--light::before { background: var(--ink); }
.btn--light:hover { color: var(--paper); }

.arrow { width: 16px; height: 16px; flex: none; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--paper);
  transition: background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(11, 11, 12, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-color: var(--line-dark);
}
.header__in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.header__logo { width: 150px; color: var(--paper); }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a:not(.btn) {
  font-size: 14px; letter-spacing: .02em; position: relative; opacity: .82; transition: opacity .3s;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav a:not(.btn):hover { opacity: 1; }
.nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: 12px 18px; font-size: 12px; }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }
.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  color: var(--paper); background: var(--black);
  display: flex; flex-direction: column;
}
.hero__photo {
  position: absolute; inset: 0; z-index: 0;
  background: var(--black);
}
.hero__photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.15) brightness(.55);
  opacity: .45; mix-blend-mode: luminosity;
}
/* Aura azul tipo horizonte (Sui) */
.hero__aura {
  position: absolute; z-index: 1;
  left: 50%; bottom: -55vh; width: 160vw; height: 95vh;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(255,255,255,.95), rgba(160,185,255,.85) 18%, var(--blue-glow) 38%, var(--blue) 55%, rgba(32,66,192,0) 100%);
  filter: blur(28px);
  animation: aura 9s ease-in-out infinite alternate;
}
@keyframes aura {
  0%   { transform: translateX(-50%) scale(1, 1); opacity: .92; }
  100% { transform: translateX(-50%) scale(1.06, 1.14); opacity: 1; }
}
.hero__fade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(11,11,12,.85) 0%, rgba(11,11,12,.15) 40%, rgba(11,11,12,0) 70%); }

/* Óvalos (geometría del isotipo) */
.ovals { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.ovals svg { position: absolute; right: -12vw; top: 50%; width: min(88vw, 1250px); transform: translateY(-50%); overflow: visible; }
.ovals ellipse { fill: none; stroke: rgba(242,242,242,.22); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ovals .gap-line { stroke: rgba(242,242,242,.32); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ovals .spin { transform-origin: 600px 450px; animation: spin 60s linear infinite; }
.ovals .spin--rev { animation-duration: 90s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Grilla de líneas finas (Lexora) */
.gridlines { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.gridlines span { border-left: 1px solid rgba(242,242,242,.07); }
.gridlines span:last-child { border-right: 1px solid rgba(242,242,242,.07); }

.hero__in { position: relative; z-index: 3; flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding-top: 120px; padding-bottom: 48px; }
.hero__meta { display: flex; justify-content: space-between; gap: 20px; color: var(--muted-dark); flex-wrap: wrap; }
.hero__title {
  margin: 0; font-weight: 400;
  font-size: clamp(46px, 9.2vw, 158px);
  line-height: .9; letter-spacing: -.045em;
  text-transform: uppercase;
  max-width: 13ch;
}
.hero__title .thin { font-weight: 200; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .1s; }
.hero__title .line:nth-child(3) > span { animation-delay: .2s; }
@keyframes rise { to { transform: translateY(0); } }
.hero__bottom { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; margin-top: 48px; }
.hero__lead { max-width: 420px; margin: 0 0 22px; color: rgba(242,242,242,.82); font-size: 18px; }
.hero__scroll { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); display: flex; align-items: center; gap: 12px; }
.hero__scroll i { display: block; width: 1px; height: 46px; background: linear-gradient(var(--paper), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* =========================================================
   STATS (bloques de datos estilo Sui)
   ========================================================= */
.stats { background: var(--black); color: var(--paper); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 28px 34px; border-left: 1px solid var(--line-dark); position: relative; }
.stat:last-child { border-right: 1px solid var(--line-dark); }
.stat__num { font-size: clamp(44px, 5vw, 76px); font-weight: 300; letter-spacing: -.04em; line-height: 1; display: flex; align-items: baseline; gap: 4px; }
.stat__num small { font-size: .45em; color: var(--blue-glow); font-weight: 400; }
.stat__label { margin-top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-dark); }
.stat::before { content: ""; position: absolute; left: -1px; top: -1px; width: 7px; height: 7px; background: var(--blue-glow); }

/* =========================================================
   SECCIONES CLARAS (retícula de puntos, Lexora)
   ========================================================= */
.light {
  background-color: var(--paper); color: var(--ink);
  background-image: radial-gradient(rgba(26,26,26,.16) 1px, transparent 1.2px);
  background-size: 28px 28px;
  position: relative;
}
.section { padding: clamp(80px, 11vw, 160px) 0; position: relative; }
.section__head { display: grid; grid-template-columns: 220px 1fr; gap: 24px; margin-bottom: clamp(40px, 6vw, 80px); align-items: start; }
.section__head .tag { padding-top: 10px; }
.h2 { margin: 0; font-weight: 400; font-size: clamp(38px, 5.6vw, 92px); line-height: .95; letter-spacing: -.04em; text-transform: uppercase; }
.h2 em { font-style: normal; font-weight: 200; color: var(--blue); }
.dark .h2 em { color: var(--blue-glow); }

/* ---------- ABOUT ---------- */
.about__grid { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 24px; align-items: stretch; }
.about__media { position: relative; min-height: 520px; background: linear-gradient(160deg, #2a2a2a, #0b0b0c); overflow: hidden;
  clip-path: polygon(0 0, 78% 0, 100% 22%, 100% 100%, 0 100%); }
.about__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); transform: scale(1.08); transition: transform 1.6s var(--ease); }
.about__media.in img { transform: scale(1); }
.about__media .badge { position: absolute; left: 0; bottom: 0; background: var(--blue); color: var(--paper); padding: 18px 22px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.about__text { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding-left: clamp(0px, 3vw, 40px); }
.about__text p { margin: 0 0 1.2em; font-size: 19px; color: #2b2b2b; }
.about__text p:first-of-type { font-size: clamp(22px, 2.1vw, 28px); line-height: 1.3; letter-spacing: -.015em; color: var(--ink); }
.about__side { color: var(--muted-light); }
.about__side .iso { width: 70px; color: var(--blue); margin-top: 20px; }

/* ---------- BANDA CTA (gradiente pixelado azul) ---------- */
.band { position: relative; overflow: hidden; background: var(--blue); color: var(--paper); }
.dither { position: absolute; inset: 0; display: grid; z-index: 0; }
.dither i { background: var(--black); transition: opacity 1.2s; }
.band__in { position: relative; z-index: 1; padding-top: clamp(90px, 12vw, 170px); padding-bottom: clamp(90px, 12vw, 170px); display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.band__in .tag { padding-top: 14px; }
.band__title { margin: 0 0 40px; font-weight: 300; font-size: clamp(38px, 6.2vw, 104px); line-height: .95; letter-spacing: -.045em; text-transform: uppercase; max-width: 15ch; }

/* ---------- SERVICES (acordeón) ---------- */
.services { border-top: 1px solid var(--line-light); }
.svc { border-bottom: 1px solid var(--line-light); position: relative; isolation: isolate; }
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--blue);
  clip-path: polygon(0 0, 0 0, -10% 100%, -10% 100%);
  transition: clip-path .7s var(--ease);
}
.svc__btn { width: 100%; text-align: left; display: grid; grid-template-columns: 220px 1fr 300px 56px; gap: 24px; align-items: center; padding: 38px 0; transition: color .45s var(--ease), padding .45s var(--ease); }
.svc__num { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; }
.svc__title { font-size: clamp(26px, 3.4vw, 50px); line-height: 1; letter-spacing: -.035em; text-transform: uppercase; font-weight: 400; }
.svc__short { font-size: 15px; color: var(--muted-light); transition: color .45s; }
.svc__icon { width: 56px; height: 56px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; transition: transform .5s var(--ease), background .4s, color .4s; }
.svc__icon svg { width: 18px; height: 18px; }
.svc:hover::before, .svc.open::before { clip-path: polygon(0 0, 112% 0, 100% 100%, -10% 100%); }
.svc:hover .svc__btn, .svc.open .svc__btn { color: var(--paper); padding-left: 24px; padding-right: 24px; }
.svc:hover .svc__short, .svc.open .svc__short { color: rgba(242,242,242,.78); }
.svc.open .svc__icon { transform: rotate(45deg); background: var(--paper); color: var(--blue); }
.svc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); color: var(--paper); }
.svc.open .svc__panel { grid-template-rows: 1fr; }
.svc__panel > div { overflow: hidden; }
.svc__body { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 24px; padding: 0 24px 48px; }
.svc__body p { margin: 0 0 1em; color: rgba(242,242,242,.88); }
.svc__img { aspect-ratio: 4 / 3; background: linear-gradient(160deg, #1a2f86, #0b0b0c); overflow: hidden; clip-path: polygon(0 0, 85% 0, 100% 15%, 100% 100%, 0 100%); }
.svc__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); mix-blend-mode: luminosity; }

/* ---------- VALUES (fotos B/N, Lexora) ---------- */
.dark { background: var(--black); color: var(--paper); position: relative; }
.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.value { background: var(--black); position: relative; overflow: hidden; min-height: 560px; display: flex; flex-direction: column; justify-content: space-between; padding: 26px; }
.value__img { position: absolute; inset: 0; z-index: 0; background: linear-gradient(170deg, #2b2b2b, #0b0b0c); }
.value__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.62); transform: scale(1.05); transition: transform 1.2s var(--ease), filter .8s; }
.value:hover .value__img img { transform: scale(1); filter: grayscale(1) contrast(1.15) brightness(.4); }
.value__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,.2), rgba(11,11,12,.85)); }
.value > *:not(.value__img) { position: relative; z-index: 1; }
.value__top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted-dark); }
.value h3 { margin: 0 0 14px; font-weight: 400; font-size: clamp(34px, 3.6vw, 56px); letter-spacing: -.04em; text-transform: uppercase; line-height: .95; }
.value p { margin: 0; max-width: 32ch; color: rgba(242,242,242,.82); }
.value__bar { height: 3px; background: var(--blue-glow); width: 0; transition: width .8s var(--ease); margin-top: 22px; }
.value:hover .value__bar { width: 100%; }

/* ---------- CONTACT ---------- */
.contact { position: relative; overflow: hidden; }
.contact__aura { position: absolute; right: -30vw; top: -20vw; width: 80vw; height: 80vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(61,99,255,.55), rgba(32,66,192,.2) 50%, transparent 72%); filter: blur(30px); pointer-events: none; }
.contact__grid { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 24px; position: relative; z-index: 1; align-items: start; }
.contact__grid > .tag { padding-top: 12px; }
.contact__lead { color: var(--muted-dark); max-width: 42ch; margin: 28px 0 44px; font-size: 18px; }
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); margin-bottom: 28px; }
.office { background: var(--black); padding: 24px; }
.office .tag { color: var(--blue-glow); margin-bottom: 14px; }
.office p { margin: 0; color: rgba(242,242,242,.86); }
.channels { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line-dark); }
.channel { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line-dark); transition: padding .4s var(--ease), color .3s; gap: 16px; }
.channel:hover { padding-left: 10px; color: var(--blue-glow); }
.channel span:first-child { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-dark); }
.channel span:last-child { font-size: clamp(16px, 1.4vw, 20px); word-break: break-all; text-align: right; }

.form { background: rgba(242,242,242,.03); border: 1px solid var(--line-dark); padding: clamp(24px, 3vw, 44px); align-self: start; backdrop-filter: blur(6px); }
.form h3 { margin: 0 0 30px; font-weight: 400; font-size: 26px; letter-spacing: -.02em; }
.field { position: relative; margin-bottom: 26px; }
.field label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(242,242,242,.3);
  color: var(--paper); font: inherit; font-size: 18px; padding: 8px 0 12px; outline: none; border-radius: 0;
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { border-color: var(--blue-glow); }
.form__note { font-size: 13px; color: var(--muted-dark); margin: 16px 0 0; min-height: 1.4em; }
.form .btn { width: 100%; justify-content: space-between; }

/* ---------- FOOTER ---------- */
.footer { background: var(--black); color: var(--paper); border-top: 1px solid var(--line-dark); position: relative; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 220px 1fr 1fr 1fr; gap: 24px; padding: 70px 0 60px; }
.footer h4 { margin: 0 0 18px; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-dark); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--blue-glow); }
.footer__text { color: var(--muted-dark); max-width: 34ch; margin: 0; }
.footer__mark { color: var(--paper); width: 100%; padding: 0 0 10px; opacity: .95; }
.footer__mark .logo { width: 100%; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0 28px; border-top: 1px solid var(--line-dark); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-dark); flex-wrap: wrap; }

/* ---------- WhatsApp flotante ---------- */
.wa { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--blue); color: var(--paper); display: grid; place-items: center; box-shadow: 0 10px 40px rgba(32,66,192,.5); transition: transform .3s var(--ease); }
.wa:hover { transform: scale(1.08); }
.wa svg { width: 26px; height: 26px; }

/* ---------- PÁGINA ABOUT ---------- */
.page-hero { position: relative; overflow: hidden; color: var(--paper); background: var(--black); padding: 190px 0 110px; }
.page-hero .hero__aura { bottom: -70vh; opacity: .75; }
.page-hero h1 { margin: 22px 0 0; font-weight: 400; font-size: clamp(48px, 10vw, 170px); line-height: .88; letter-spacing: -.05em; text-transform: uppercase; position: relative; z-index: 3; }
.page-hero .wrap { position: relative; z-index: 3; }
.story { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.story__cols { columns: 2; column-gap: 48px; }
.story__cols p { margin: 0 0 1.2em; font-size: 19px; break-inside: avoid; }
.story__cols p:first-child { font-size: 26px; line-height: 1.3; letter-spacing: -.015em; column-span: all; max-width: 30ch; margin-bottom: 40px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.pill { border: 1px solid var(--line-light); padding: 10px 16px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; background: var(--paper); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* Imagen que no carga: se oculta y queda el fondo gráfico */
img.broken { visibility: hidden; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .section__head, .about__grid, .band__in, .contact__grid, .story { grid-template-columns: 1fr; }
  .about__grid { gap: 40px; }
  .about__text { padding-left: 0; }
  .svc__btn { grid-template-columns: 70px 1fr 56px; }
  .svc__short { display: none; }
  .svc__body { grid-template-columns: 1fr; padding: 0 24px 40px; }
  .svc__body > .spacer { display: none; }
  .contact__grid { gap: 48px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .gridlines { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { position: fixed; inset: 0; background: var(--black); flex-direction: column; justify-content: center; gap: 30px; transform: translateY(-100%); transition: transform .6s var(--ease); }
  .nav a:not(.btn) { font-size: 34px; letter-spacing: -.03em; text-transform: uppercase; }
  .menu-open .nav { transform: none; }
  .burger { display: block; z-index: 2; }
  .header__logo { width: 128px; position: relative; z-index: 2; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 1px solid var(--line-dark); }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .hero__bottom { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
  .ovals svg { right: -60vw; width: 160vw; }
  .values__grid { grid-template-columns: 1fr; }
  .value { min-height: 420px; }
  .offices { grid-template-columns: 1fr; }
  .about__media { min-height: 380px; }
  .footer__top { grid-template-columns: 1fr; }
  .story__cols { columns: 1; }
  .svc__btn { grid-template-columns: 44px 1fr 44px; gap: 14px; padding: 28px 0; }
  .svc__icon { width: 44px; height: 44px; }
  .svc:hover .svc__btn, .svc.open .svc__btn { padding-left: 14px; padding-right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
}
/* FIX mobile: el blur va en ::before para que el menu fixed no quede encerrado en el header */
.header.is-scrolled { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: transparent; transition: background .4s; }
.header.is-scrolled::before { background: rgba(11, 11, 12, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
@media (max-width: 760px) { .nav { visibility: hidden; transition: transform .6s var(--ease), visibility 0s linear .6s; } .menu-open .nav { visibility: visible; transition: transform .6s var(--ease), visibility 0s; } }
