/* ==========================================================================
   MALLAS ATLANTA — Sistema visual
   Concepto: "La red que sostiene". El rombo del logo es también la celda de
   la malla: todo el sitio se construye sobre esa geometría.
   ========================================================================== */

:root {
  /* Marca */
  --red: #e11f26;
  --red-deep: #b8141a;
  --blue: #0a4f86;
  --blue-bright: #1f6fb5;
  --mint: #ddf2e6;

  /* Neutros cálidos (nunca negro/blanco puros) */
  --ink: #0a1726;
  --ink-2: #10233a;
  --ink-3: #18314f;
  --paper: #f5f2eb;
  --paper-2: #ece6da;
  --paper-3: #e2dacb;
  --white: #fbfaf6;

  --text: #0f1d2e;
  --text-2: rgba(15, 29, 46, 0.68);
  --text-3: rgba(15, 29, 46, 0.46);
  --line: rgba(15, 29, 46, 0.12);

  --on-dark: #f3efe6;
  --on-dark-2: rgba(243, 239, 230, 0.66);
  --on-dark-3: rgba(243, 239, 230, 0.4);
  --line-dark: rgba(243, 239, 230, 0.14);

  --wa: #25d366;

  /* Tipografía */
  --f-display: "Archivo", "Helvetica Neue", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "Martian Mono", ui-monospace, monospace;

  --fs-hero: clamp(3.1rem, 8.6vw, 8.9rem);
  --fs-h1: clamp(2.8rem, 7vw, 7rem);
  --fs-h2: clamp(2.3rem, 5.2vw, 5rem);
  --fs-h3: clamp(1.45rem, 2.2vw, 2.1rem);
  --fs-lead: clamp(1.08rem, 1.35vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-mono: 0.72rem;

  /* Ritmo */
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 1440px;
  --section: clamp(5.5rem, 12vw, 11rem);
  --radius: 4px;
  --radius-lg: 14px;

  /* Movimiento */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-inout: cubic-bezier(0.87, 0, 0.13, 1);

  --header-h: 84px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}
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(--text);
  font-family: var(--f-display);
  font-size: var(--fs-body);
  font-variation-settings: "wdth" 100;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
p { margin: 0 0 1em; }
figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 0.95; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--red); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--red); color: var(--white); padding: .8rem 1.2rem; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   Tipografía utilitaria
   -------------------------------------------------------------------------- */
.display {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 118;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 0.86;
}
.serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
  font-variation-settings: normal;
}
.serif--red { color: var(--red); }

.h2 {
  font-size: var(--fs-h2);
  font-variation-settings: "wdth" 112;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 0.9;
  text-wrap: balance;
}
.h2 .serif { font-size: 1.1em; line-height: 0.8; }

.h3 {
  font-size: var(--fs-h3);
  font-variation-settings: "wdth" 108;
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1.05;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 34em;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow::before {
  content: "";
  width: .62em; height: .86em;
  background: var(--red);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  flex: none;
}
.on-dark .eyebrow, .eyebrow--light { color: var(--on-dark-2); }

.mono {
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */
.btn {
  --bg: var(--red);
  --fg: var(--white);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  padding: 1.05rem 1.5rem 1.05rem 1.6rem;
  background: var(--bg);
  color: var(--fg);
  font-weight: 650;
  font-size: .98rem;
  letter-spacing: .01em;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  border-radius: inherit;
  transition: transform .6s var(--ease-out);
  z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { box-shadow: 0 18px 40px -18px rgba(225, 31, 38, .7); }
.btn__icon {
  display: grid; place-items: center;
  width: 1.9rem; height: 1.9rem;
  margin: -.35rem -.6rem -.35rem 0;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  transition: transform .6s var(--ease-out);
}
.btn:hover .btn__icon { transform: rotate(-45deg); }
.btn svg { width: 1rem; height: 1rem; }

.btn--wa { --bg: var(--red); }
.btn--ghost {
  --bg: transparent; --fg: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn--ghost::before { background: var(--text); }
.btn--ghost:hover { color: var(--paper); box-shadow: none; }
.on-dark .btn--ghost { --fg: var(--on-dark); box-shadow: inset 0 0 0 1px var(--line-dark); }
.on-dark .btn--ghost::before { background: var(--on-dark); }
.on-dark .btn--ghost:hover { color: var(--ink); }
.on-dark .btn::before { background: var(--on-dark); }
.on-dark .btn:not(.btn--ghost):hover { color: var(--ink); }
.btn--ghost .btn__icon { background: var(--line); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 650;
  border-bottom: 1px solid currentColor;
  padding-bottom: .2rem;
  transition: gap .5s var(--ease-out), color .3s;
}
.link-arrow:hover { gap: 1rem; color: var(--red); }
.link-arrow svg { width: .95rem; height: .95rem; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--on-dark);
  transition: background .5s var(--ease-out), color .4s, transform .6s var(--ease-out), height .5s var(--ease-out), box-shadow .5s;
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.header.is-scrolled {
  --header-h: 70px;
  background: rgba(245, 242, 235, .86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  color: var(--text);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden { transform: translateY(-100%); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  flex: none;
}
.brand__mark { width: 30px; height: 41px; --logo-frame: var(--on-dark); transition: transform .8s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(180deg); }
.brand__word { height: 36px; width: auto; }
.brand__word--dark { display: none; }
.header.is-scrolled .brand__word--light { display: none; }
.header.is-scrolled .brand__word--dark { display: block; }
.header.is-scrolled .brand__mark { --logo-frame: var(--blue); }

.nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.6rem); }
.nav__link {
  position: relative;
  font-size: .94rem;
  font-weight: 550;
  padding: .4rem 0;
  opacity: .82;
  transition: opacity .3s;
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: var(--red);
  transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease-out);
}
.nav__link:hover, .nav__link[aria-current="page"] { opacity: 1; }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.header__cta { padding: .78rem 1.15rem .78rem 1.3rem; font-size: .9rem; }
.header__cta .btn__icon { width: 1.6rem; height: 1.6rem; }

.menu-toggle {
  display: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  position: relative;
  box-shadow: inset 0 0 0 1px currentColor;
  opacity: .9;
}
.menu-toggle span {
  position: absolute; left: 15px; right: 15px; height: 1.5px; background: currentColor;
  transition: transform .5s var(--ease-out), top .5s var(--ease-out);
}
.menu-toggle span:nth-child(1) { top: 20px; }
.menu-toggle span:nth-child(2) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { top: 23.5px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 23.5px; transform: rotate(-45deg); }

/* Menú móvil */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink);
  color: var(--on-dark);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease-inout);
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open .header { color: var(--on-dark); background: transparent; box-shadow: none; backdrop-filter: none; }
.menu-open .header .brand__word--light { display: block; }
.menu-open .header .brand__word--dark { display: none; }
.menu-open .header .brand__mark { --logo-frame: var(--on-dark); }
.mobile-menu__links a {
  display: flex; align-items: baseline; gap: 1rem;
  font-size: clamp(2.4rem, 11vw, 4rem);
  font-variation-settings: "wdth" 115;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.05;
  padding: .25rem 0;
  border-bottom: 1px solid var(--line-dark);
  transform: translateY(30px); opacity: 0;
  transition: transform .8s var(--ease-out), opacity .8s var(--ease-out), color .3s;
}
.mobile-menu__links a small { font-family: var(--f-mono); font-size: .7rem; font-weight: 400; color: var(--red); letter-spacing: .05em; }
.mobile-menu__links a[aria-current="page"] { color: var(--red); }
.menu-open .mobile-menu__links a { transform: none; opacity: 1; }
.menu-open .mobile-menu__links li:nth-child(1) a { transition-delay: .25s; }
.menu-open .mobile-menu__links li:nth-child(2) a { transition-delay: .3s; }
.menu-open .mobile-menu__links li:nth-child(3) a { transition-delay: .35s; }
.menu-open .mobile-menu__links li:nth-child(4) a { transition-delay: .4s; }
.menu-open .mobile-menu__links li:nth-child(5) a { transition-delay: .45s; }
.mobile-menu__foot { display: grid; gap: 1rem; color: var(--on-dark-2); font-size: .95rem; }
.mobile-menu__foot .btn { justify-content: space-between; }

/* --------------------------------------------------------------------------
   Secciones oscuras / patrón rombo
   -------------------------------------------------------------------------- */
.on-dark {
  background: var(--ink);
  color: var(--on-dark);
}
.on-dark .lead { color: var(--on-dark-2); }

.pattern-diamond {
  position: relative;
}
.pattern-diamond::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='74' viewBox='0 0 54 74'%3E%3Cpath d='M27 0 54 37 27 74 0 37Z' fill='none' stroke='%23f3efe6' stroke-opacity='.07' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 54px 74px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}
.pattern-diamond--ink::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='74' viewBox='0 0 54 74'%3E%3Cpath d='M27 0 54 37 27 74 0 37Z' fill='none' stroke='%230f1d2e' stroke-opacity='.08' stroke-width='1'/%3E%3C/svg%3E");
}

/* Grano sutil */
.grain::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   HERO (inicio)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 85% 10%, rgba(31, 111, 181, .28) 0%, transparent 55%),
    radial-gradient(70% 60% at 0% 100%, rgba(225, 31, 38, .12) 0%, transparent 60%),
    var(--ink);
}
.hero__net {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  touch-action: pan-y;
}
.hero__inner {
  position: relative; z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: calc(var(--header-h) + clamp(2rem, 6vh, 4rem));
  padding-bottom: clamp(2rem, 6vh, 4rem);
  pointer-events: none;
}
.hero__inner a, .hero__inner button { pointer-events: auto; }
.hero__title {
  font-size: var(--fs-hero);
  margin: 1.6rem 0 2rem;
}
.hero__title .serif {
  display: inline-block;
  font-size: 1.12em;
  line-height: .8;
  color: var(--red);
  letter-spacing: -0.02em;
  padding-right: .08em;
}
.hero__lead {
  font-size: var(--fs-lead);
  color: var(--on-dark-2);
  max-width: 31em;
  margin-bottom: 2.4rem;
}
.hero__lead strong { color: var(--on-dark); font-weight: 600; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero__media {
  position: relative;
  justify-self: end;
  width: min(100%, 470px);
  aspect-ratio: 3 / 4;
}
.hero__photo {
  position: absolute; inset: 0;
  border-radius: 220px 220px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.7);
}
.hero__photo img {
  width: 100%; height: 115%;
  object-fit: cover;
  transform: translateY(var(--py, 0px)) scale(1.04);
}
.hero__tag {
  position: absolute;
  left: -2.6rem; bottom: 2.4rem;
  display: flex; align-items: center; gap: .9rem;
  padding: .9rem 1.2rem .9rem .9rem;
  background: var(--paper);
  color: var(--text);
  border-radius: 999px;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.6);
  pointer-events: auto;
}
.hero__tag-dot {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--red); color: var(--white);
  display: grid; place-items: center;
}
.hero__tag-dot svg { width: 20px; height: 20px; }
.hero__tag b { display: block; font-size: .95rem; line-height: 1.15; }
.hero__tag span { font-size: .8rem; color: var(--text-2); }

.hero__badge {
  position: absolute;
  top: -1.4rem; right: -1.4rem;
  width: 128px; height: 128px;
  pointer-events: auto;
}
.hero__badge svg { width: 100%; height: 100%; animation: spin 22s linear infinite; }
.hero__badge-core {
  position: absolute; inset: 34%;
  border-radius: 50%;
  background: var(--red);
  display: grid; place-items: center;
}
.hero__badge-core svg { width: 22px; height: 22px; animation: none; color: var(--white); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__hint {
  position: absolute; z-index: 3;
  left: 50%; bottom: 7.2rem;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: .6rem;
  color: var(--on-dark-3);
  pointer-events: none;
  transition: opacity .8s var(--ease-out);
}
.hero__hint.is-gone { opacity: 0; }
.hero__hint i {
  width: 20px; height: 20px; border: 1px solid currentColor; border-radius: 50%;
  position: relative;
}
.hero__hint i::after {
  content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--red);
  animation: pulse 2s var(--ease-out) infinite;
}
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }

.hero__bar {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line-dark);
}
.hero__bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero__fact {
  padding: 1.4rem 0;
  display: flex; flex-direction: column; gap: .25rem;
  border-left: 1px solid var(--line-dark);
  padding-left: 1.4rem;
}
.hero__fact:first-child { border-left: 0; padding-left: 0; }
.hero__fact b { font-size: 1.02rem; font-weight: 650; }
.hero__fact span { color: var(--on-dark-3); }

/* Carga orquestada del hero */
.load-rise { display: block; overflow: hidden; padding-top: .14em; margin-top: -.14em; }
.load-rise > span { display: block; transform: translateY(110%); }
.is-loaded .load-rise > span { transform: none; transition: transform 1.25s var(--ease-out); }
.is-loaded .load-rise:nth-child(2) > span { transition-delay: .09s; }
.is-loaded .load-rise:nth-child(3) > span { transition-delay: .18s; }
.is-loaded .load-rise:nth-child(4) > span { transition-delay: .27s; }
.load-fade { opacity: 0; transform: translateY(18px); }
.is-loaded .load-fade { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, .4s); }
.load-clip { clip-path: inset(100% 0 0 0 round 220px 220px 14px 14px); }
.is-loaded .load-clip { clip-path: inset(0 0 0 0 round 220px 220px 14px 14px); transition: clip-path 1.6s var(--ease-inout) .2s; }
.header .container { opacity: 0; transform: translateY(-12px); }
.is-loaded .header .container { opacity: 1; transform: none; transition: opacity .9s var(--ease-out) .55s, transform .9s var(--ease-out) .55s; }

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */
.marquee {
  background: var(--red);
  color: var(--white);
  overflow: hidden;
  padding: 1.15rem 0;
  position: relative;
  z-index: 2;
}
.marquee__track {
  display: flex; width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item {
  display: flex; align-items: center; gap: 2.2rem;
  padding-right: 2.2rem;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-variation-settings: "wdth" 120;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.marquee__item::after {
  content: "";
  width: .6em; height: .82em;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  opacity: .55;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Sección genérica
   -------------------------------------------------------------------------- */
.section { position: relative; padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .65); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: end;
  gap: 2rem 4rem;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}
.section-head .eyebrow { margin-bottom: 1.6rem; }
.section-head .lead { margin: 0; justify-self: end; }

/* Manifiesto */
.manifesto {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 2rem var(--gutter);
}
.manifesto__label { padding-top: .8rem; }
.manifesto__text {
  font-size: clamp(1.75rem, 3.7vw, 3.55rem);
  font-variation-settings: "wdth" 104;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}
.manifesto__text .word { opacity: .16; transition: opacity .5s var(--ease-out); }
.manifesto__text .word.is-on { opacity: 1; }
.manifesto__text em { font-family: var(--f-serif); font-weight: 400; color: var(--red); font-size: 1.08em; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
}
.stat {
  padding: 2rem 1.5rem 0 0;
  border-right: 1px solid var(--line);
  margin-right: 1.5rem;
}
.stat:last-child { border-right: 0; margin-right: 0; }
.stat__num {
  display: block;
  font-size: clamp(3rem, 6vw, 5.6rem);
  font-variation-settings: "wdth" 120;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: .8rem;
}
.stat__num sup { font-size: .4em; vertical-align: top; position: relative; top: .3em; color: var(--red); margin-left: .05em; }
.stat p { color: var(--text-2); font-size: .95rem; margin: 0; max-width: 18em; }

/* --------------------------------------------------------------------------
   Para quién (tarjetas de audiencia)
   -------------------------------------------------------------------------- */
.audience {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}
.a-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--on-dark);
  isolation: isolate;
  min-height: 560px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.4rem, 2.4vw, 2.2rem);
}
.a-card:nth-child(1) { grid-column: span 5; min-height: 680px; }
.a-card:nth-child(2) { grid-column: span 4; margin-top: 6rem; }
.a-card:nth-child(3) { grid-column: span 3; margin-top: 12rem; min-height: 470px; }
.a-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
  transition: transform 1.4s var(--ease-out);
}
.a-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,23,38,0) 35%, rgba(10,23,38,.88) 100%);
}
.a-card:hover img { transform: scale(1.06); }
.a-card__num { position: absolute; top: 1.4rem; left: 1.6rem; color: var(--on-dark-2); }
.a-card h3 { margin-bottom: .7rem; }
.a-card p { color: var(--on-dark-2); margin: 0; font-size: .98rem; max-width: 24em; }

/* --------------------------------------------------------------------------
   Prueba de resistencia (video)
   -------------------------------------------------------------------------- */
.proof {
  overflow: hidden;
}
.proof__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.proof__title { font-size: clamp(2.4rem, 3.9vw, 4.6rem); }
.proof__title .serif { display: block; color: var(--red); font-size: 1.1em; line-height: .9; }
.proof__phone {
  position: relative;
  width: clamp(240px, 24vw, 330px);
  aspect-ratio: 9 / 16;
  border-radius: 38px;
  padding: 10px;
  background: linear-gradient(145deg, #2a3d57, #0b1625);
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.08);
}
.proof__phone video {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 29px;
  background: #000;
}
.proof__rec {
  position: absolute; top: 26px; left: 26px;
  display: flex; align-items: center; gap: .45rem;
  color: var(--white);
  background: rgba(10,23,38,.6);
  backdrop-filter: blur(6px);
  padding: .4rem .7rem;
  border-radius: 999px;
  font-size: .62rem;
}
.proof__rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.proof__list { display: grid; gap: 0; }
.proof__item {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line-dark);
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem;
}
.proof__item:last-child { border-bottom: 1px solid var(--line-dark); }
.proof__item .mono { color: var(--red); padding-top: .3rem; }
.proof__item b { display: block; font-size: 1.1rem; font-weight: 650; margin-bottom: .3rem; }
.proof__item p { color: var(--on-dark-2); margin: 0; font-size: .95rem; }

/* --------------------------------------------------------------------------
   Lista de servicios (hover con imagen)
   -------------------------------------------------------------------------- */
.svc-list { border-top: 1px solid var(--line); }
.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: 5rem minmax(0, 1.2fr) minmax(0, 1fr) 3.5rem;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.4rem, 2.6vw, 2.3rem) 0;
  border-bottom: 1px solid var(--line);
  transition: padding .6s var(--ease-out), color .4s;
}
.svc-row::before {
  content: "";
  position: absolute; inset: 0 calc(var(--gutter) * -1);
  background: var(--ink);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .6s var(--ease-out);
  z-index: -1;
}
.svc-list { position: relative; isolation: isolate; }
.svc-row:hover { color: var(--on-dark); }
.svc-row:hover::before { transform: scaleY(1); transform-origin: top; }
.svc-row__num { color: var(--text-3); transition: color .4s; }
.svc-row:hover .svc-row__num { color: var(--red); }
.svc-row__name {
  font-size: clamp(1.7rem, 3.6vw, 3.4rem);
  font-variation-settings: "wdth" 115;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 1;
  transition: transform .6s var(--ease-out);
}
.svc-row:hover .svc-row__name { transform: translateX(.6rem); }
.svc-row__desc { color: var(--text-2); font-size: .98rem; margin: 0; transition: color .4s; }
.svc-row:hover .svc-row__desc { color: var(--on-dark-2); }
.svc-row__arrow {
  width: 3.2rem; height: 3.2rem; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background .4s, transform .6s var(--ease-out), box-shadow .4s;
}
.svc-row__arrow svg { width: 1.1rem; height: 1.1rem; }
.svc-row:hover .svc-row__arrow { background: var(--red); box-shadow: none; transform: rotate(-45deg); color: var(--white); }
.svc-row__thumb { display: none; }

.svc-float {
  position: fixed; top: 0; left: 0;
  width: 300px; aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  pointer-events: none;
  z-index: 60;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(.7) rotate(-6deg);
  transition: opacity .4s var(--ease-out), transform .6s var(--ease-out);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
}
.svc-float.is-on { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1) rotate(-3deg); }
.svc-float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s var(--ease-out); }
.svc-float img.is-active { opacity: 1; }

/* --------------------------------------------------------------------------
   Proceso
   -------------------------------------------------------------------------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
  position: relative;
}
.process__line {
  position: absolute; left: 0; right: 0; top: 34px; height: 1px;
  background: var(--line);
}
.process__line i {
  position: absolute; inset: 0; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform 2.2s var(--ease-inout);
}
.is-inview .process__line i { transform: scaleX(1); }
.step { padding-right: 2rem; position: relative; }
.step__icon {
  width: 68px; height: 68px;
  display: grid; place-items: center;
  position: relative;
  margin-bottom: 2rem;
  color: var(--blue);
}
.step__icon::before {
  content: ""; position: absolute; inset: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.step__icon::after {
  content: ""; position: absolute; inset: 1px;
  background: var(--paper);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.step__icon svg { position: relative; z-index: 1; width: 24px; height: 24px; }
.step .mono { color: var(--red); display: block; margin-bottom: .8rem; }
.step h3 { margin-bottom: .8rem; }
.step p { color: var(--text-2); font-size: .96rem; margin: 0; }

/* --------------------------------------------------------------------------
   Galería horizontal (inicio)
   -------------------------------------------------------------------------- */
.hscroll { position: relative; }
.hscroll__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.hscroll__head {
  display: flex; justify-content: space-between; align-items: end; gap: 2rem;
  margin-bottom: 3rem;
}
.hscroll__track {
  display: flex; gap: 1.4rem;
  padding-left: var(--gutter);
  will-change: transform;
}
.hscroll__item {
  flex: none;
  height: min(58vh, 560px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.hscroll__item img { height: 100%; width: auto; object-fit: cover; }
.hscroll__item--wide { aspect-ratio: 4 / 3; }
.hscroll__item--tall { aspect-ratio: 3 / 4; }
.hscroll__item img { width: 100%; }
.hscroll__item figcaption {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(245,242,235,.92); color: var(--text);
  padding: .45rem .8rem; border-radius: 999px;
}
.hscroll__end {
  flex: none; width: min(70vw, 420px);
  display: flex; flex-direction: column; justify-content: center; gap: 1.5rem;
  padding: 0 3rem;
}
.hscroll__progress { height: 2px; background: var(--line-dark); margin-top: 3rem; position: relative; }
.hscroll__progress i { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* --------------------------------------------------------------------------
   Ciudades
   -------------------------------------------------------------------------- */
.cities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}
.city {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  color: var(--on-dark);
  isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.6rem;
}
.city img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease-out); }
.city::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,23,38,.35) 0%, rgba(10,23,38,0) 35%, rgba(10,23,38,.85) 100%); }
.city:hover img { transform: scale(1.06); }
.city__top { display: flex; justify-content: space-between; color: var(--on-dark-2); }
.city h3 {
  font-size: clamp(1.9rem, 2.5vw, 2.7rem);
  font-variation-settings: "wdth" 108;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  margin-bottom: .6rem;
}
.city p { margin: 0; color: var(--on-dark-2); font-size: .95rem; }
.city:nth-child(2) { transform: translateY(3rem); }

/* --------------------------------------------------------------------------
   CTA final
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  text-align: left;
}
.cta__inner { position: relative; z-index: 1; }
.cta__title {
  font-size: clamp(2.5rem, 7.2vw, 7.8rem);
  line-height: .86;
  margin-bottom: 3rem;
}
.cta__title .serif { color: var(--red); }
.cta__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 2rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line-dark);
}
.cta__phone {
  font-size: clamp(1.6rem, 3.2vw, 2.8rem);
  font-variation-settings: "wdth" 112;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: block;
  transition: color .3s;
}
.cta__phone:hover { color: var(--red); }
.cta__diamond {
  position: absolute;
  right: -8vw; top: 50%;
  width: min(48vw, 640px);
  transform: translateY(-50%);
  opacity: .08;
  --logo-frame: var(--on-dark);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: var(--on-dark-2);
  padding: clamp(4rem, 7vw, 6rem) 0 2rem;
  border-top: 1px solid var(--line-dark);
  font-size: .95rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 3rem 2rem;
}
.footer__brand img { height: 52px; width: auto; margin-bottom: 1.4rem; }
.footer__brand p { max-width: 26em; }
.footer h4 {
  font-family: var(--f-mono); font-weight: 400; font-size: var(--fs-mono);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-dark-3); margin-bottom: 1.2rem;
}
.footer li { margin-bottom: .55rem; }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--on-dark); }
.footer__social { display: flex; gap: .6rem; margin-top: 1.4rem; }
.footer__social a {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line-dark);
  transition: background .3s, color .3s, box-shadow .3s;
}
.footer__social a:hover { background: var(--red); color: var(--white); box-shadow: none; }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 4rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line-dark);
  font-size: .82rem; color: var(--on-dark-3);
}
.footer__giant {
  margin-top: 3rem;
  font-size: clamp(3rem, 16.5vw, 17rem);
  font-variation-settings: "wdth" 125;
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: .78;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-dark);
  white-space: nowrap;
  user-select: none;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   WhatsApp flotante
   -------------------------------------------------------------------------- */
.wa-fab {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 80;
  display: flex; align-items: center;
  height: 62px;
  padding: 0 0 0 0;
  border-radius: 999px;
  background: var(--wa);
  color: #06301a;
  box-shadow: 0 18px 40px -12px rgba(37, 211, 102, .55), 0 6px 14px rgba(0,0,0,.18);
  transform: translateY(120px);
  transition: transform .8s var(--ease-out), box-shadow .4s;
}
.wa-fab.is-in { transform: none; }
.wa-fab__icon { width: 62px; height: 62px; display: grid; place-items: center; flex: none; position: relative; }
.wa-fab__icon svg { width: 30px; height: 30px; }
.wa-fab__icon::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .6);
  animation: ring 2.6s var(--ease-out) infinite;
}
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 70%, 100% { box-shadow: 0 0 0 18px rgba(37,211,102,0); } }
.wa-fab__label {
  max-width: 0; overflow: hidden; white-space: nowrap;
  font-weight: 700; font-size: .95rem;
  transition: max-width .6s var(--ease-out), padding .6s var(--ease-out);
}
.wa-fab:hover .wa-fab__label, .wa-fab.is-peek .wa-fab__label { max-width: 220px; padding-right: 1.4rem; }

/* --------------------------------------------------------------------------
   Page hero (subpáginas)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(4rem, 10vw, 8rem)) 0 clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
  background:
    radial-gradient(90% 90% at 100% 0%, rgba(31,111,181,.26) 0%, transparent 60%),
    var(--ink);
}
.page-hero__grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: end;
  gap: 2rem 4rem;
}
.page-hero h1 { font-size: var(--fs-h1); margin-top: 1.6rem; }
.page-hero h1 .serif { color: var(--red); font-size: 1.1em; line-height: .8; }
.page-hero .lead { margin: 0; }
.crumbs { display: flex; gap: .6rem; color: var(--on-dark-3); margin-top: 3rem; }
.crumbs a:hover { color: var(--on-dark); }
.page-hero__net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .8; }

/* --------------------------------------------------------------------------
   Servicios (detalle)
   -------------------------------------------------------------------------- */
.svc-nav {
  position: sticky; top: 70px; z-index: 40;
  background: rgba(245, 242, 235, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: top .6s var(--ease-out);
}
body:has(.header.is-hidden) .svc-nav { top: 0; }
.svc-nav__inner { display: flex; gap: .4rem; overflow-x: auto; padding-block: .8rem; scrollbar-width: none; }
.svc-nav__inner::-webkit-scrollbar { display: none; }
.svc-nav a {
  flex: none;
  padding: .55rem 1rem;
  border-radius: 999px;
  font-size: .88rem; font-weight: 550;
  color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background .3s, color .3s;
}
.svc-nav a:hover, .svc-nav a.is-active { background: var(--ink); color: var(--paper); box-shadow: none; }

.svc-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: center;
  padding-block: clamp(4rem, 8vw, 7.5rem);
  border-bottom: 1px solid var(--line);
}
.svc-block:nth-child(even) .svc-block__media { order: 2; }
.svc-block__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.svc-block__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.svc-block:hover .svc-block__media img { transform: scale(1.04); }
.svc-block__media .mono {
  position: absolute; top: 1.2rem; left: 1.2rem;
  background: rgba(245,242,235,.92); padding: .45rem .8rem; border-radius: 999px;
}
.svc-block__num {
  font-size: clamp(5rem, 11vw, 10rem);
  font-variation-settings: "wdth" 125;
  font-weight: 850;
  line-height: .8;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--red);
  display: block;
  margin-bottom: 1.5rem;
}
.svc-block h2 { margin-bottom: 1.4rem; }
.svc-block .lead { margin-bottom: 2rem; }
.checks { display: grid; gap: .1rem; margin-bottom: 2.4rem; }
.checks li {
  display: grid; grid-template-columns: 1.4rem 1fr; gap: .8rem;
  padding: .85rem 0;
  border-top: 1px solid var(--line);
  font-size: .98rem;
}
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before {
  content: "";
  width: .7rem; height: .95rem; margin-top: .3rem;
  background: var(--red);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.on-dark .checks li { border-color: var(--line-dark); }

/* Bloque de compromisos */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}
.promise {
  padding: clamp(1.8rem, 3vw, 2.8rem);
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  transition: background .5s var(--ease-out);
}
.promise:hover { background: var(--ink-2); }
.promise svg { width: 30px; height: 30px; color: var(--red); margin-bottom: 2.4rem; }
.promise h3 { margin-bottom: .8rem; font-size: 1.4rem; }
.promise p { color: var(--on-dark-2); font-size: .96rem; margin: 0; }

/* --------------------------------------------------------------------------
   Mallas (tipos y especificaciones)
   -------------------------------------------------------------------------- */
.spec-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}
.spec-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3.4vw, 3.2rem);
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(15,29,46,.35);
  overflow: hidden;
}
.spec-card--dark { background: var(--ink); color: var(--on-dark); }
.spec-card__tag { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3rem; }
.spec-card__tag .mono { color: var(--text-3); }
.spec-card--dark .spec-card__tag .mono { color: var(--on-dark-3); }
.spec-card h3 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-variation-settings: "wdth" 122;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: .85;
  margin-bottom: 1rem;
}
.spec-card__sub { font-family: var(--f-serif); font-style: italic; font-size: 1.6rem; color: var(--red); margin-bottom: 2.4rem; display: block; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.spec-table th, .spec-table td { text-align: left; padding: .95rem 0; border-top: 1px solid var(--line); font-size: .96rem; vertical-align: top; }
.spec-table th { font-family: var(--f-mono); font-weight: 400; font-size: var(--fs-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); width: 42%; padding-top: 1.15rem; }
.spec-card--dark .spec-table th, .spec-card--dark .spec-table td { border-color: var(--line-dark); }
.spec-card--dark .spec-table th { color: var(--on-dark-3); }
.spec-meter { height: 6px; border-radius: 3px; background: var(--paper-2); overflow: hidden; margin-top: .6rem; }
.spec-card--dark .spec-meter { background: var(--ink-3); }
.spec-meter i { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease-out) .3s; }
.is-inview .spec-meter i { transform: scaleX(var(--v)); }
.spec-card__art {
  position: absolute; right: -40px; top: -40px; width: 220px; opacity: .12; pointer-events: none;
}
.note { font-size: .85rem; color: var(--text-3); margin-top: 1.6rem; }

/* Visualizador de cuadrícula */
.mesh-lab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.mesh-lab__stage {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
}
.mesh-lab__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.mesh-lab__stage svg.mesh-lab__net { position: absolute; inset: 0; width: 100%; height: 100%; }
.mesh-lab__ruler {
  position: absolute; left: 1.2rem; bottom: 1.2rem;
  background: var(--paper); color: var(--text);
  padding: .6rem 1rem; border-radius: 999px;
  display: flex; gap: .6rem; align-items: center;
}
.mesh-lab__ruler b { font-size: 1.1rem; }
.seg {
  display: inline-flex; padding: 5px; border-radius: 999px;
  background: var(--paper-2); gap: 4px; margin: 1.6rem 0 2rem;
  flex-wrap: wrap;
}
.seg button {
  padding: .7rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: .92rem;
  color: var(--text-2);
  transition: background .4s var(--ease-out), color .3s;
}
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.mesh-lab__info { min-height: 7.5em; }
.mesh-lab__info h3 { margin-bottom: .6rem; }
.mesh-lab__info p { color: var(--text-2); }

.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.swatch {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
}
.swatch__chip { aspect-ratio: 1; position: relative; }
.swatch__chip svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.swatch__body { padding: 1.1rem 1.2rem 1.3rem; }
.swatch__body b { display: block; font-size: 1.05rem; margin-bottom: .2rem; }
.swatch__body span { font-size: .88rem; color: var(--text-2); }

.parts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.part { padding: 2rem 1.6rem 2rem 0; border-right: 1px solid var(--line); margin-right: 1.6rem; }
.part:last-child { border-right: 0; margin-right: 0; }
.part svg { width: 40px; height: 40px; color: var(--blue); margin-bottom: 1.6rem; }
.part h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.part p { font-size: .94rem; color: var(--text-2); margin: 0; }

/* --------------------------------------------------------------------------
   Galería
   -------------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 3rem; }
.filters button {
  padding: .7rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: .92rem;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2);
  transition: background .4s var(--ease-out), color .3s, box-shadow .3s;
}
.filters button sup { font-family: var(--f-mono); font-size: .62rem; margin-left: .3rem; opacity: .6; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }

.masonry { columns: 3; column-gap: 1.2rem; }
.g-item {
  break-inside: avoid;
  margin-bottom: 1.2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: block;
  width: 100%;
  cursor: zoom-in;
  background: var(--paper-2);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.g-item.is-hidden { display: none; }
.g-item img { width: 100%; transition: transform 1.2s var(--ease-out); }
.g-item:hover img { transform: scale(1.05); }
.g-item__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.4rem 1.2rem 1.1rem;
  background: linear-gradient(180deg, transparent, rgba(10,23,38,.82));
  color: var(--on-dark);
  display: flex; justify-content: space-between; align-items: end; gap: 1rem;
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  text-align: left;
}
.g-item:hover .g-item__cap, .g-item:focus-visible .g-item__cap { opacity: 1; transform: none; }
.g-item__cap b { font-size: 1rem; font-weight: 600; }
.g-item__cap .mono { color: var(--on-dark-2); }
.g-item--video { cursor: pointer; }
.g-item--video .play {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.g-item--video .play span {
  width: 84px; height: 84px; border-radius: 50%; background: var(--red); color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 0 0 12px rgba(225,31,38,.25);
  transition: transform .6s var(--ease-out);
}
.g-item--video:hover .play span { transform: scale(1.1); }
.g-item--video .play svg { width: 26px; height: 26px; margin-left: 4px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(8, 17, 29, .96);
  display: grid; grid-template-rows: auto 1fr auto;
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease-out), visibility .5s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem var(--gutter); color: var(--on-dark-2); }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.lightbox__stage img, .lightbox__stage video {
  max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px;
  transform: scale(.96); transition: transform .6s var(--ease-out);
}
.lightbox.is-open .lightbox__stage img, .lightbox.is-open .lightbox__stage video { transform: none; }
.lightbox__bottom { display: flex; justify-content: center; gap: .8rem; padding: 1.2rem; }
.lb-btn {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; color: var(--on-dark);
  box-shadow: inset 0 0 0 1px var(--line-dark);
  transition: background .3s, color .3s;
}
.lb-btn:hover { background: var(--on-dark); color: var(--ink); }
.lb-btn svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   Contacto
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.quote-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.4vw, 3.2rem);
  box-shadow: 0 1px 0 var(--line), 0 40px 80px -50px rgba(15,29,46,.4);
}
.quote-form h2 { font-size: clamp(2rem, 3.4vw, 3rem); margin-bottom: .8rem; }
.quote-form > p { color: var(--text-2); margin-bottom: 2.4rem; }
.field { margin-bottom: 1.6rem; }
.field label, .field legend {
  display: block;
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: .7rem;
  padding: 0;
}
fieldset.field { border: 0; padding: 0; margin-inline: 0; }
.field input[type="text"], .field input[type="tel"], .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--line);
  border-radius: 0;
  padding: .7rem 0 .8rem;
  transition: border-color .4s var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%230f1d2e' stroke-width='1.6'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .2rem center;
  padding-right: 2rem;
  cursor: pointer;
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field ::placeholder { color: var(--text-3); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.field label.chip { display: inline-block; font-family: var(--f-display); font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--text); margin: 0; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .62rem 1rem;
  border-radius: 999px;
  font-size: .92rem; font-weight: 550;
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
  transition: background .3s, color .3s, box-shadow .3s;
  user-select: none;
}
.chip span::before {
  content: ""; width: .55rem; height: .75rem;
  background: currentColor; opacity: .25;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  transition: opacity .3s, background .3s;
}
.chip input:checked + span { background: var(--ink); color: var(--paper); box-shadow: none; }
.chip input:checked + span::before { opacity: 1; background: var(--red); }
.chip input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 3px; }
.quote-form .btn { width: 100%; justify-content: space-between; padding-block: 1.25rem; font-size: 1.02rem; }
.form-note { font-size: .82rem; color: var(--text-3); margin-top: 1rem; text-align: center; }
.form-error { color: var(--red-deep); font-size: .88rem; margin-top: .5rem; display: none; }
.field.has-error .form-error { display: block; }
.field.has-error input { border-color: var(--red); }

.contact-side { display: grid; gap: 1.2rem; position: sticky; top: 100px; }
.c-card {
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  background: var(--paper-2);
}
.c-card--dark { background: var(--ink); color: var(--on-dark); }
.c-card .mono { color: var(--text-3); display: block; margin-bottom: .9rem; }
.c-card--dark .mono { color: var(--on-dark-3); }
.c-card__big {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-variation-settings: "wdth" 112;
  font-weight: 750; letter-spacing: -0.02em; line-height: 1.05;
  display: block; margin-bottom: 1rem;
}
.c-card p { color: var(--text-2); margin: 0 0 1.2rem; }
.c-card--dark p { color: var(--on-dark-2); }
.hours { display: flex; align-items: center; gap: .7rem; font-weight: 600; }
.hours i { width: 10px; height: 10px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px rgba(37,211,102,.2); }

/* Mapa de cobertura */
.coverage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.map {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--ink-2);
  overflow: hidden;
  aspect-ratio: 16 / 11;
}
.map svg { width: 100%; height: 100%; }
.map .coast { fill: var(--ink-3); stroke: rgba(243,239,230,.28); stroke-width: 1.2; }
.map .route { fill: none; stroke: var(--red); stroke-width: 2; stroke-dasharray: 6 8; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.map .pin-ring { fill: none; stroke: var(--red); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pin 2.4s var(--ease-out) infinite; }
.map .pin-ring.d2 { animation-delay: .8s; }
.map .pin-ring.d3 { animation-delay: 1.6s; }
@keyframes pin { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
.map text { font-family: var(--f-display); fill: var(--on-dark); font-weight: 700; font-size: 17px; letter-spacing: .02em; text-transform: uppercase; }
.map text.sea { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 26px; fill: rgba(243,239,230,.35); text-transform: none; letter-spacing: 0; }
.map text.small { font-family: var(--f-mono); font-size: 10px; font-weight: 400; fill: var(--on-dark-3); letter-spacing: .08em; }
.cov-list li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem; align-items: center;
  padding: 1.4rem 0; border-top: 1px solid var(--line-dark);
}
.cov-list li:last-child { border-bottom: 1px solid var(--line-dark); }
.cov-list b { font-size: 1.3rem; font-variation-settings: "wdth" 112; text-transform: uppercase; letter-spacing: -0.01em; }
.cov-list .mono { color: var(--on-dark-3); }
.cov-list .dot { width: 12px; height: 16px; background: var(--red); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

/* FAQ */
.faq { max-width: 980px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 2rem;
  padding: 1.6rem 0;
  cursor: pointer;
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: color .3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--red); }
.faq summary i {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line);
  position: relative;
  transition: transform .5s var(--ease-out), background .3s;
}
.faq summary i::before, .faq summary i::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor;
  transform: translate(-50%, -50%);
}
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .5s var(--ease-out); }
.faq details[open] summary i { background: var(--red); color: var(--white); box-shadow: none; }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__body { padding: 0 4rem 1.8rem 0; color: var(--text-2); max-width: 46em; }
.faq__body p:last-child { margin: 0; }

/* --------------------------------------------------------------------------
   Revelados por scroll
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
[data-reveal].is-inview { opacity: 1; transform: none; }
[data-reveal="clip"] {
  opacity: 1; transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.4s var(--ease-inout);
  transition-delay: var(--delay, 0s);
}
[data-reveal="clip"].is-inview { clip-path: inset(0 0 0 0); }
[data-reveal="clip"] img { transform: scale(1.18); transition: transform 1.8s var(--ease-out); transition-delay: var(--delay, 0s); }
[data-reveal="clip"].is-inview img { transform: scale(1); }

.split-lines .line { display: block; overflow: hidden; padding: .14em 0 .04em; margin: -.14em 0 -.04em; }
.split-lines .line > span { display: block; transform: translateY(105%); transition: transform 1.2s var(--ease-out); }
.split-lines.is-inview .line > span { transform: none; }
.split-lines.is-inview .line:nth-child(2) > span { transition-delay: .08s; }
.split-lines.is-inview .line:nth-child(3) > span { transition-delay: .16s; }
.split-lines.is-inview .line:nth-child(4) > span { transition-delay: .24s; }

.no-js [data-reveal], .no-js .split-lines .line > span, .no-js .load-rise > span, .no-js .load-fade, .no-js .header .container { opacity: 1 !important; transform: none !important; clip-path: none !important; }
.no-js .load-clip { clip-path: none !important; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .header__cta { display: none; }
  .hero__bar-inner { grid-template-columns: repeat(2, 1fr); }
  .hero__fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero__fact:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .proof__grid { grid-template-columns: auto minmax(0, 1fr); }
  .proof__grid > :first-child { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
  .parts { grid-template-columns: repeat(2, 1fr); }
  .part:nth-child(2) { border-right: 0; margin-right: 0; }
  .part:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .hero__inner { grid-template-columns: 1fr; padding-top: calc(var(--header-h) + 2.5rem); gap: 3rem; }
  .hero__media { justify-self: start; width: min(78%, 360px); margin-left: 2.4rem; }
  .hero__hint { display: none; }
  .section-head, .page-hero__grid { grid-template-columns: 1fr; }
  .section-head .lead { justify-self: start; }
  .manifesto { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; margin-right: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 2rem; }
  .audience { grid-template-columns: 1fr 1fr; }
  .a-card:nth-child(n) { grid-column: span 1; margin-top: 0; min-height: 440px; }
  .a-card:nth-child(1) { grid-column: 1 / -1; min-height: 520px; }
  .svc-row { grid-template-columns: 3rem minmax(0, 1fr) 3.2rem; }
  .svc-row__desc { grid-column: 2 / 3; grid-row: 2; }
  .svc-row__arrow { grid-row: 1 / 3; grid-column: 3; }
  .svc-float { display: none; }
  .process { grid-template-columns: 1fr 1fr; gap: 3rem 0; }
  .process__line { display: none; }
  .cities { grid-template-columns: 1fr; }
  .city { aspect-ratio: 16 / 11; }
  .city:nth-child(2) { transform: none; }
  .svc-block { grid-template-columns: 1fr; }
  .svc-block:nth-child(even) .svc-block__media { order: 0; }
  .svc-block__media { aspect-ratio: 4 / 3.4; }
  .promise-grid { grid-template-columns: 1fr; }
  .spec-cards, .mesh-lab, .contact-grid, .coverage { grid-template-columns: 1fr; }
  .contact-side { position: static; }
  .masonry { columns: 2; }
  .hscroll__sticky { position: relative; height: auto; padding-block: var(--section); }
  .hscroll { height: auto !important; }
  .hscroll__track { overflow-x: auto; scroll-snap-type: x mandatory; padding-right: var(--gutter); transform: none !important; scrollbar-width: none; }
  .hscroll__track::-webkit-scrollbar { display: none; }
  .hscroll__item { scroll-snap-align: start; height: 62vw; max-height: 440px; }
  .hscroll__progress { display: none; }
}

@media (max-width: 600px) {
  :root { --fs-body: 1rem; }
  .display, .h2 { font-variation-settings: "wdth" 100; }
  .cta__title { font-size: 9vw; }
  .brand__word { height: 30px; }
  .brand__mark { width: 25px; height: 34px; }
  .hero__title { margin: 1.2rem 0 1.5rem; font-size: 15.5vw; }
  .hscroll__head { flex-direction: column; align-items: flex-start; gap: 1.4rem; margin-bottom: 2rem; }
  .svc-row { grid-template-columns: 2.2rem minmax(0, 1fr) 3rem; gap: .4rem 1rem; }
  .svc-row__arrow { width: 2.8rem; height: 2.8rem; }
  .hero__ctas .btn { flex: 1 1 100%; justify-content: space-between; }
  .hero__media { width: 82%; margin-left: 1.6rem; }
  .hero__tag { left: -1.6rem; bottom: 1.4rem; padding: .7rem 1rem .7rem .7rem; }
  .hero__badge { width: 96px; height: 96px; top: -1rem; right: -1rem; }
  .hero__fact { padding: 1rem 0 1rem 1rem; }
  .hero__fact b { font-size: .92rem; }
  .audience { grid-template-columns: 1fr; }
  .a-card:nth-child(n) { min-height: 420px; }
  .proof__grid { grid-template-columns: 1fr; justify-items: center; }
  .proof__grid > * { justify-self: stretch; }
  .proof__phone { justify-self: center !important; width: min(78vw, 300px); }
  .process { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding-right: .8rem; margin-right: .8rem; }
  .masonry { columns: 1; }
  .field-row { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .parts { grid-template-columns: 1fr; }
  .part { border-right: 0; margin-right: 0; border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr; }
  .faq__body { padding-right: 0; }
  .spec-table th { width: 46%; }
  .wa-fab { height: 58px; }
  .wa-fab__icon { width: 58px; height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal], .split-lines .line > span, .load-rise > span, .load-fade { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .load-clip, [data-reveal="clip"] { clip-path: none !important; }
  .marquee__track { animation: none; }
}
