/* =========================================================
   CREA PUBLICIDAD INTEGRAL — rediseño futurista
   Animaciones 100% CSS Scroll-Driven Animations
   (animation-timeline: scroll() / view() / named timelines)
   Colores de marca tomados del sitio original.
   ========================================================= */

@font-face {
  font-family: "MontserratLocal";
  src: url("../fonts/Montserrat.woff2") format("woff2");
  font-display: swap;
}

@property --num {
  syntax: "<integer>";
  initial-value: 0;
  inherits: false;
}
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  /* Marca (sitio original) */
  --primary: #28CEC9;
  --secondary: #2E519F;
  --tertiary: #5EC0C3;
  --primary-hover: #1fa5a1;
  --secondary-hover: #213c76;

  /* Futurista */
  --bg: #04060c;
  --bg-2: #080d1a;
  --panel: rgb(14 22 40 / .55);
  --line: rgb(40 206 201 / .18);
  --text: #e9f7f8;
  --muted: #8fa6b8;
  --glow: 0 0 24px rgb(40 206 201 / .55), 0 0 64px rgb(46 81 159 / .45);

  --font: "Montserrat", "MontserratLocal", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --nav-h: 76px;
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 64px; }
#inicio { scroll-margin-top: 0; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--primary); color: #001; }

/* Fondo: grilla tech + spotlight que sigue el cursor */
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px circle at var(--mx, 50%) var(--my, 30%), rgb(40 206 201 / .08), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--bg);
  mask-image: radial-gradient(ellipse at center, #000 30%, rgb(0 0 0 / .35) 100%);
  opacity: .5;
  pointer-events: none;
}

.wrap { width: min(1240px, 100%); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- utilidades ---------- */
.label {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 1rem;
}
.grad {
  background: linear-gradient(100deg, var(--primary) 0%, var(--tertiary) 40%, #7fa2ff 70%, var(--secondary) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.big-title {
  font-weight: 900;
  font-size: clamp(2.3rem, 6.5vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.035em;
  margin: 0;
  text-transform: uppercase;
}
.section-head { margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.section-head--center { text-align: center; }

.tag {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  background: rgb(4 6 12 / .55); backdrop-filter: blur(10px);
  color: var(--text);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; transform: scale(.7); } }

.btn {
  --b: var(--primary);
  position: relative;
  display: inline-flex; align-items: center; gap: .7rem;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
  isolation: isolate;
}
.btn--primary { background: var(--primary); color: #021313; box-shadow: 0 0 0 0 rgb(40 206 201 / .6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.btn--ghost { border: 1px solid rgb(255 255 255 / .25); background: rgb(255 255 255 / .04); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--xl { padding: 1.2rem 2rem; font-size: 1.05rem; }

/* ---------- progreso de lectura ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1000;
  background: linear-gradient(90deg, var(--secondary), var(--primary), #fff);
  box-shadow: 0 0 12px var(--primary);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
  border-bottom: 1px solid transparent;
}
.nav__brand img { height: 52px; width: auto; transform-origin: left center; }
.nav__links { display: flex; gap: .4rem; align-items: center; }
.nav__links a {
  font-weight: 700; font-size: .9rem; padding: .55rem 1rem; border-radius: 999px;
  color: var(--text); transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--primary); background: rgb(40 206 201 / .08); }
.nav__links .nav__cta { border: 1px solid var(--primary); color: var(--primary); }
.nav__links .nav__cta:hover { background: var(--primary); color: #021313; }
.nav__toggle { display: none; }

@media (max-width: 860px) {
  .nav__toggle {
    display: grid; place-content: center; gap: 7px;
    width: 46px; height: 46px; border-radius: 50%;
    background: rgb(255 255 255 / .06); border: 1px solid var(--line); cursor: pointer;
  }
  .nav__toggle span { width: 20px; height: 2px; background: var(--text); transition: transform .3s; }
  .nav[data-open] .nav__toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav[data-open] .nav__toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: var(--nav-h) 12px auto 12px;
    flex-direction: column; align-items: stretch; padding: 1rem;
    background: rgb(6 10 20 / .94); backdrop-filter: blur(18px);
    border: 1px solid var(--line); border-radius: var(--radius);
    opacity: 0; translate: 0 -12px; pointer-events: none;
    transition: opacity .25s, translate .25s;
  }
  .nav__links a { padding: .9rem 1rem; font-size: 1.05rem; }
  .nav[data-open] .nav__links { opacity: 1; translate: 0 0; pointer-events: auto; }
  .nav__brand img { height: 42px; }
}

/* ---------- HERO ---------- */
.hero { position: relative; height: 100svh; }
.hero__stage {
  position: sticky; top: 0;
  height: 100svh; overflow: clip;
  display: grid; place-items: center;
  perspective: 900px;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: saturate(.7) hue-rotate(-10deg) brightness(.45) contrast(1.15);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, transparent 0%, rgb(4 6 12 / .65) 60%, var(--bg) 100%),
    linear-gradient(180deg, rgb(46 81 159 / .35), rgb(40 206 201 / .12) 50%, var(--bg));
  mix-blend-mode: normal;
}
/* piso de grilla en perspectiva estilo synthwave */
.hero__grid {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 60%;
  background:
    linear-gradient(rgb(40 206 201 / .55) 2px, transparent 2px) 0 0 / 80px 80px,
    linear-gradient(90deg, rgb(40 206 201 / .55) 2px, transparent 2px) 0 0 / 80px 80px;
  transform: rotateX(72deg);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  opacity: .55;
}
.hero__orb {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
  animation: float 9s ease-in-out infinite alternate;
}
.hero__orb--a { width: 42vmax; height: 42vmax; background: var(--secondary); top: -18vmax; left: -12vmax; }
.hero__orb--b { width: 30vmax; height: 30vmax; background: var(--primary); bottom: -12vmax; right: -8vmax; animation-delay: -4s; opacity: .35; }
@keyframes float { to { translate: 6vmax 4vmax; } }

.hero__content {
  position: relative; z-index: 2;
  text-align: center;
  display: grid; justify-items: center; gap: clamp(1.2rem, 3vw, 2rem);
  padding: calc(var(--nav-h) + 1rem) var(--gutter) 3rem;
}
.hero__logo {
  width: min(620px, 82vw);
  filter: drop-shadow(0 0 30px rgb(40 206 201 / .45)) drop-shadow(0 0 2px rgb(255 255 255 / .6));
}
.hero__claim {
  margin: 0; max-width: 22ch;
  font-size: clamp(1.25rem, 3vw, 2.1rem); font-weight: 300; line-height: 1.25;
}
.hero__claim em { font-style: normal; font-weight: 800; color: var(--primary); text-shadow: 0 0 22px rgb(40 206 201 / .5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.hero__outro {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-content: center; text-align: center;
  font-weight: 900; font-size: clamp(3rem, 13vw, 12rem); line-height: .85; letter-spacing: -.05em;
  pointer-events: none;
  opacity: 0;
}
.hero__outro span:nth-child(1) { color: transparent; -webkit-text-stroke: 2px var(--primary); }
.hero__outro span:nth-child(2) { color: #fff; text-shadow: var(--glow); }
.hero__outro span:nth-child(3) { color: transparent; -webkit-text-stroke: 2px #7fa2ff; }

.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; translate: -50% 0; z-index: 4;
  display: grid; justify-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .3em; color: var(--muted);
}
.hero__scroll i { width: 1px; height: 46px; background: linear-gradient(var(--primary), transparent); animation: drip 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- TICKER ---------- */
.ticker {
  position: relative; z-index: 5;
  padding-block: 1.2rem;
  overflow: clip;
  background: linear-gradient(90deg, var(--secondary), #12306e 50%, var(--secondary));
  border-block: 1px solid rgb(40 206 201 / .4);
  rotate: -2deg; margin-block: -1rem; scale: 1.05;
  box-shadow: 0 0 60px rgb(46 81 159 / .5);
}
.ticker__row { display: flex; gap: 2rem; white-space: nowrap; width: max-content; align-items: center; }
.ticker__row span { font-weight: 900; font-size: clamp(1.6rem, 4vw, 3.2rem); text-transform: uppercase; letter-spacing: -.02em; }
.ticker__row b { color: var(--primary); font-size: 1.6rem; }
.ticker__row--b { margin-top: .4rem; }
.ticker__row--b span { color: transparent; -webkit-text-stroke: 1px rgb(255 255 255 / .55); }

/* ---------- NOSOTROS ---------- */
.about { position: relative; padding-block: clamp(6rem, 14vw, 11rem); overflow: clip; }
.about__bg {
  position: absolute; inset: -20% 0; background-size: cover; background-position: center;
  opacity: .12; filter: grayscale(1) contrast(1.3);
  mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
}
.about__inner { position: relative; display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.about__visual { position: relative; display: grid; place-items: center; }
.about__title-img { position: relative; z-index: 2; width: min(460px, 100%); filter: drop-shadow(0 30px 60px rgb(46 81 159 / .5)); }
.ring {
  position: absolute; width: 115%; aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed rgb(40 206 201 / .45);
  box-shadow: inset 0 0 80px rgb(40 206 201 / .15), 0 0 80px rgb(46 81 159 / .25);
}
.ring::before, .ring::after {
  content: ""; position: absolute; border-radius: 50%; inset: 12%;
  border: 2px solid transparent; border-top-color: var(--primary); border-right-color: var(--primary);
  filter: drop-shadow(0 0 8px var(--primary));
}
.ring::after { inset: 26%; border-top-color: #7fa2ff; border-right-color: transparent; border-left-color: #7fa2ff; }

.reveal-words { font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 700; line-height: 1.35; margin: 0 0 2.5rem; letter-spacing: -.01em; }
.reveal-words .w { display: inline; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.stat { padding: 1.1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); backdrop-filter: blur(10px); }
.stat__num { display: block; font-weight: 900; font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1; color: var(--primary); text-shadow: 0 0 20px rgb(40 206 201 / .45); font-variant-numeric: tabular-nums; }
.stat__lbl { display: block; margin-top: .5rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.counter::after { content: attr(data-to); }

@media (max-width: 860px) {
  .about__inner { grid-template-columns: 1fr; }
  .about__visual { max-width: 360px; margin-inline: auto; }
}
@media (max-width: 480px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- MISIÓN / VISIÓN ---------- */
.mv { padding-block: 2rem clamp(6rem, 12vw, 10rem); perspective: 1200px; }
.mv__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2rem); }
.panel {
  position: relative; padding: clamp(1.8rem, 4vw, 3rem); border-radius: var(--radius);
  background: linear-gradient(160deg, rgb(46 81 159 / .35), rgb(8 13 26 / .9) 60%);
  border: 1px solid var(--line);
  overflow: hidden;
}
.panel::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--angle), transparent 0 70%, var(--primary) 85%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite;
}
@keyframes spin { to { --angle: 360deg; } }
.panel__icon { font-size: 2rem; color: var(--primary); filter: drop-shadow(0 0 10px var(--primary)); margin-bottom: 1.2rem; }
.panel h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 900; margin: 0 0 1rem; line-height: 1; }
.panel p:last-child { color: #c7d6e2; margin: 0; font-size: 1.05rem; }
@media (max-width: 760px) { .mv__grid { grid-template-columns: 1fr; } }

/* ---------- SERVICIOS: stacking cards ---------- */
.services { padding-block: clamp(4rem, 10vw, 8rem) 4rem; }
.stack { --n: 9; list-style: none; margin: 0; padding: 0 0 6vh; display: grid; gap: 4vh; }
.card {
  position: sticky;
  top: calc(var(--nav-h) + 1rem + var(--i) * 12px);
  min-height: min(68svh, 560px);
  display: grid; grid-template-columns: 1fr 1.1fr;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  background: linear-gradient(135deg, #0b1630 0%, #060a14 70%);
  border: 1px solid rgb(40 206 201 / .25);
  box-shadow: 0 -20px 60px rgb(0 0 0 / .55), inset 0 1px 0 rgb(255 255 255 / .06);
  transform-origin: 50% 0;
}
.card:nth-child(even) { background: linear-gradient(135deg, #0a2a33 0%, #060a14 70%); }
.card__body { padding: clamp(1.6rem, 4vw, 3.5rem); display: flex; flex-direction: column; justify-content: center; gap: 1rem; position: relative; }
.card__num { font-family: var(--mono); color: var(--primary); font-size: .9rem; letter-spacing: .2em; }
.card__num::before { content: "SRV-"; opacity: .5; }
.card__icon {
  width: 64px; height: 64px; display: grid; place-items: center; font-size: 1.6rem;
  border-radius: 18px; color: var(--primary);
  background: rgb(40 206 201 / .1); border: 1px solid rgb(40 206 201 / .35);
  box-shadow: 0 0 30px rgb(40 206 201 / .2);
}
.card h3 { margin: 0; font-size: clamp(1.8rem, 4vw, 3.4rem); font-weight: 900; line-height: 1; letter-spacing: -.03em; text-transform: uppercase; }
.card p { margin: 0; color: #c2d3df; font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 42ch; }
.card__media { margin: 0; position: relative; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #060a14 0%, transparent 35%), linear-gradient(0deg, rgb(40 206 201 / .15), transparent 50%);
}
@media (max-width: 760px) {
  .card { grid-template-columns: 1fr; grid-template-rows: 42% 1fr; min-height: 78svh; top: calc(var(--nav-h) + .5rem + var(--i) * 8px); }
  .card__media { grid-row: 1; }
  .card__media::after { background: linear-gradient(0deg, #060a14 0%, transparent 60%); }
  .card__body { justify-content: flex-start; padding-top: 1.2rem; }
  .card__icon { width: 48px; height: 48px; font-size: 1.2rem; }
}

/* ---------- PORTAFOLIO: horizontal ---------- */
.hscroll { position: relative; }
.hscroll__sticky { padding-block: 4rem; }
.hscroll__head { margin-bottom: 2.5rem; }
.hscroll__track {
  display: flex; gap: clamp(1rem, 2vw, 2rem);
  padding-inline: var(--gutter);
  overflow-x: auto; scroll-snap-type: x mandatory;
}
.shot {
  flex: 0 0 auto; margin: 0; position: relative;
  width: clamp(240px, 30vw, 420px); aspect-ratio: 4 / 5;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  scroll-snap-align: center;
  background: var(--bg-2);
}
.shot:nth-child(3n+2) { aspect-ratio: 1; align-self: center; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .6s; filter: saturate(.85); }
.shot:hover img { transform: scale(1.07); filter: saturate(1.15); }
.shot figcaption {
  position: absolute; inset: auto 12px 12px 12px;
  padding: .7rem 1rem; border-radius: 14px;
  background: rgb(4 6 12 / .7); backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  font-size: .85rem; color: #d6e4ee;
}
.shot figcaption b { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .15em; color: var(--primary); text-transform: uppercase; }
.hscroll__bar { display: none; }

/* ---------- GALERÍA ---------- */
.gallery { padding-block: clamp(5rem, 10vw, 8rem); perspective: 1000px; }
.masonry { columns: 4 150px; column-gap: 1rem; }
.masonry img {
  width: 100%; margin-bottom: 1rem; break-inside: avoid;
  border-radius: 16px; border: 1px solid var(--line);
}

/* ---------- CLIENTES ---------- */
.clients { position: relative; padding-block: clamp(6rem, 12vw, 10rem); overflow: clip; }
.clients__bg {
  position: absolute; inset: -25% 0; background-size: cover; background-position: center;
  opacity: .25; filter: saturate(1.2);
  mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
}
.clients .wrap { position: relative; }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.8rem, 2vw, 1.5rem); }
.logos li {
  aspect-ratio: 1.25; display: grid; place-items: center; padding: 1.2rem;
  border-radius: var(--radius);
  background: rgb(8 13 26 / .65); backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.logos li:hover { border-color: var(--primary); box-shadow: var(--glow); transform: translateY(-4px); }
.logos img { max-height: 100%; width: auto; max-width: 78%; object-fit: contain; opacity: .9; }
@media (max-width: 700px) { .logos { grid-template-columns: repeat(2, 1fr); } }

/* ---------- REDES ---------- */
.social { padding-block: clamp(5rem, 10vw, 8rem); perspective: 1400px; overflow: clip; }
.social__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.social__phone { position: relative; display: grid; place-items: center; }
.social__phone img { position: relative; z-index: 2; width: min(400px, 85%); filter: drop-shadow(0 40px 60px rgb(0 0 0 / .6)); }
.social__halo {
  position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgb(40 206 201 / .45), rgb(46 81 159 / .25) 45%, transparent 70%);
  filter: blur(20px);
}
.social__text p { color: #c2d3df; font-size: 1.15rem; }
.social__links { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.social__links a {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .9rem 1.4rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel);
  font-weight: 700; transition: all .25s;
}
.social__links a i { font-size: 1.2rem; color: var(--primary); }
.social__links a:hover { background: var(--primary); color: #021313; box-shadow: var(--glow); }
.social__links a:hover i { color: #021313; }
@media (max-width: 760px) { .social__inner { grid-template-columns: 1fr; } .social__phone { order: 2; } }

/* ---------- CONTACTO ---------- */
.contact { position: relative; padding-block: clamp(6rem, 12vw, 10rem); overflow: clip; }
.contact__mega {
  position: absolute; top: 2rem; left: 0;
  font-weight: 900; font-size: clamp(5rem, 20vw, 18rem); line-height: 1; letter-spacing: -.05em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgb(40 206 201 / .22);
  pointer-events: none; user-select: none;
}
.contact__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.contact__lead { margin: 0 0 .5rem; color: var(--muted); font-size: 1.1rem; }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 2.5rem; display: grid; gap: 1rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; font-size: 1.05rem; overflow-wrap: anywhere; }
.contact__list i {
  flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  color: var(--primary); background: rgb(40 206 201 / .1); border: 1px solid var(--line);
}
.contact__list li > :last-child { padding-top: .45rem; }
.contact__list a:hover { color: var(--primary); }
.contact__map {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgb(40 206 201 / .4); box-shadow: var(--glow);
  aspect-ratio: 1 / 1;
}
.contact__map iframe { width: 100%; height: 100%; border: 0; filter: invert(.92) hue-rotate(180deg) saturate(.8) contrast(.9); }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } .contact__map { aspect-ratio: 4 / 3; } }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 2.5rem; background: rgb(4 6 12 / .8); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.footer img { height: 44px; width: auto; }
.footer p { margin: 0; color: var(--muted); font-size: .9rem; }
.footer__social { display: flex; gap: .6rem; }
.footer__social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); transition: all .2s; }
.footer__social a:hover { background: var(--primary); color: #021313; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 950;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.8rem;
  background: var(--secondary); color: #fff;
  border: 1px solid rgb(40 206 201 / .6);
  box-shadow: 0 0 0 0 rgb(40 206 201 / .6), 0 10px 30px rgb(0 0 0 / .5);
  animation: ping 2.4s infinite;
  transition: background .2s, transform .2s;
}
.wa-float:hover { background: var(--primary); color: #021313; transform: scale(1.08); }
@keyframes ping { 70% { box-shadow: 0 0 0 18px rgb(40 206 201 / 0), 0 10px 30px rgb(0 0 0 / .5); } 100% { box-shadow: 0 0 0 0 rgb(40 206 201 / 0), 0 10px 30px rgb(0 0 0 / .5); } }


/* =========================================================
   SCROLL-DRIVEN ANIMATIONS
   Solo en navegadores con soporte y sin "reducir movimiento".
   Sin soporte el sitio se ve completo y estático.
   ========================================================= */
@supports (animation-timeline: view()) {
@media (prefers-reduced-motion: no-preference) {

  /* Progreso del documento */
  .progress { animation: sx linear both; animation-timeline: scroll(root); }
  @keyframes sx { to { transform: scaleX(1); } }

  /* Nav: se compacta y se vuelve vidrio al hacer scroll */
  .nav { animation: navGlass linear both; animation-timeline: scroll(root); animation-range: 0 260px; }
  .nav__brand img { animation: navLogo linear both; animation-timeline: scroll(root); animation-range: 0 260px; }
  @keyframes navGlass {
    to { height: 64px; background: rgb(4 6 12 / .72); backdrop-filter: blur(16px) saturate(1.4); border-bottom-color: var(--line); }
  }
  @keyframes navLogo { to { scale: .78; } }

  /* ---- HERO: escena fija de 260vh ---- */
  .hero { height: 260vh; view-timeline: --hero block; }
  .hero__bg      { animation: heroBg linear both;       animation-timeline: --hero; animation-range: contain 0% contain 100%; }
  .hero__grid    { animation: heroGrid linear both;     animation-timeline: --hero; animation-range: contain 0% contain 100%; }
  .hero__content { animation: heroOut linear both;      animation-timeline: --hero; animation-range: contain 0% contain 45%; }
  .hero__logo    { animation: heroLogo linear both;     animation-timeline: --hero; animation-range: contain 0% contain 45%; }
  .hero__scroll  { animation: fadeOut linear both;      animation-timeline: --hero; animation-range: contain 0% contain 8%; }
  .hero__outro   { animation: outroShow linear both;    animation-timeline: --hero; animation-range: contain 35% contain 100%; }
  .hero__outro span { display: block; animation: outroWord linear both; animation-timeline: --hero; }
  .hero__outro span:nth-child(1) { animation-range: contain 38% contain 62%; }
  .hero__outro span:nth-child(2) { animation-range: contain 50% contain 76%; }
  .hero__outro span:nth-child(3) { animation-range: contain 62% contain 90%; }

  @keyframes heroBg   { to { transform: scale(1.45) rotate(2deg); filter: saturate(1.3) hue-rotate(-25deg) brightness(.25) blur(4px); } }
  @keyframes heroGrid { to { background-position: 0 640px, 0 640px; opacity: 1; } }
  @keyframes heroOut  { to { opacity: 0; transform: translateZ(-400px) translateY(-8vh); filter: blur(10px); } }
  @keyframes heroLogo { to { transform: scale(1.5); } }
  @keyframes fadeOut  { to { opacity: 0; } }
  @keyframes outroShow { 0% { opacity: 0; } 15%, 100% { opacity: 1; } }
  @keyframes outroWord {
    from { opacity: 0; transform: translateZ(600px) scale(1.6); filter: blur(20px); }
    to   { opacity: 1; transform: none; filter: blur(0); }
  }

  /* ---- Ticker: se desliza según el scroll ---- */
  .ticker__row--a { animation: tickA linear both; animation-timeline: view(); animation-range: cover; }
  .ticker__row--b { animation: tickB linear both; animation-timeline: view(); animation-range: cover; }
  @keyframes tickA { from { transform: translateX(5%); } to { transform: translateX(-45%); } }
  @keyframes tickB { from { transform: translateX(-50%); } to { transform: translateX(0%); } }

  /* ---- Nosotros ---- */
  .about__bg { animation: parallax linear both; animation-timeline: view(); animation-range: cover; }
  @keyframes parallax { from { transform: translateY(-12%); } to { transform: translateY(12%); } }

  .about__title-img { animation: popIn linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
  @keyframes popIn { from { opacity: 0; transform: scale(.6) rotate(-8deg); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }

  .ring { animation: ringSpin linear both; animation-timeline: view(); animation-range: cover; }
  .ring::before { animation: ringSpin linear both; animation-timeline: view(); animation-range: cover; animation-direction: reverse; }
  @keyframes ringSpin { from { rotate: 0deg; } to { rotate: 360deg; } }

  /* Texto que se "ilumina" palabra por palabra (spans creados en main.js) */
  .reveal-words { view-timeline: --words block; }
  .reveal-words .w {
    animation: wordOn linear both;
    animation-timeline: --words;
    animation-range: cover calc(18% + var(--p, 0) * 34%) cover calc(22% + var(--p, 0) * 34%);
  }
  @keyframes wordOn {
    from { opacity: .12; color: var(--text); text-shadow: none; }
    50%  { opacity: 1;   color: var(--primary); text-shadow: 0 0 18px var(--primary); }
    to   { opacity: 1;   color: var(--text); text-shadow: none; }
  }

  /* Contadores numéricos animados con @property */
  .counter { animation: count linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; counter-reset: num var(--num); }
  .counter::after { content: counter(num); }
  @keyframes count { from { --num: 0; } to { --num: var(--to); } }

  .stat { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }

  /* ---- Misión / Visión: entran en 3D desde los lados ---- */
  .panel--left  { animation: fromLeft linear both;  animation-timeline: view(); animation-range: entry 0% cover 40%; }
  .panel--right { animation: fromRight linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  @keyframes fromLeft  { from { opacity: 0; transform: translateX(-30%) rotateY(35deg); } to { opacity: 1; transform: none; } }
  @keyframes fromRight { from { opacity: 0; transform: translateX(30%) rotateY(-35deg); } to { opacity: 1; transform: none; } }

  /* ---- Títulos: barrido de recorte ---- */
  .big-title { animation: wipe linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; }
  @keyframes wipe {
    from { clip-path: inset(0 100% 0 0); letter-spacing: .05em; filter: blur(6px); }
    to   { clip-path: inset(0 0 0 0);    letter-spacing: -.035em; filter: none; }
  }

  /* ---- Servicios: tarjetas apiladas ---- */
  .stack { view-timeline: --stack block; }
  .card {
    animation: stackOut linear both;
    animation-timeline: --stack;
    animation-range: exit-crossing calc(var(--i) / var(--n) * 100%) exit-crossing 100%;
  }
  @keyframes stackOut {
    to { transform: scale(calc(1 - (var(--n) - 1 - var(--i)) * .035)); filter: brightness(calc(1 - (var(--n) - 1 - var(--i)) * .07)); }
  }
  .card__media img { animation: imgReveal linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  @keyframes imgReveal { from { clip-path: inset(0 0 100% 0); transform: scale(1.3); } to { clip-path: inset(0 0 0 0); transform: scale(1); } }
  .card__icon { animation: iconSpin linear both; animation-timeline: view(); animation-range: entry 20% entry 100%; }
  @keyframes iconSpin { from { transform: rotate(-180deg) scale(0); } to { transform: none; } }

  /* ---- Portafolio: scroll vertical → movimiento horizontal ---- */
  .hscroll { height: 420vh; view-timeline: --hs block; }
  .hscroll__sticky {
    position: sticky; top: 0; height: 100svh; overflow: clip;
    display: flex; flex-direction: column; justify-content: center;
    padding-block: calc(var(--nav-h) + 1rem) 2rem;
  }
  .hscroll__track {
    overflow: visible; width: max-content; scroll-snap-type: none;
    animation: slideX linear both; animation-timeline: --hs; animation-range: contain 0% contain 100%;
  }
  @keyframes slideX { to { transform: translateX(calc(-100% + 100vw)); } }
  .shot { width: clamp(240px, 28vw, 400px); max-height: 58svh; }
  .shot:nth-child(odd)  { animation: tiltA linear both; animation-timeline: --hs; animation-range: contain; }
  .shot:nth-child(even) { animation: tiltB linear both; animation-timeline: --hs; animation-range: contain; }
  @keyframes tiltA { from { rotate: -3deg; translate: 0 2vh; } to { rotate: 3deg; translate: 0 -2vh; } }
  @keyframes tiltB { from { rotate: 3deg; translate: 0 -2vh; } to { rotate: -3deg; translate: 0 2vh; } }
  .hscroll__sticky::after {
    content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 2rem; height: 2px;
    background: linear-gradient(90deg, var(--primary), #7fa2ff);
    box-shadow: 0 0 12px var(--primary);
    transform-origin: 0 50%;
    animation: sxFrom0 linear both; animation-timeline: --hs; animation-range: contain;
  }
  @keyframes sxFrom0 { from { transform: scaleX(0); } to { transform: scaleX(1); } }

  /* ---- Galería: cada foto se revela al entrar ---- */
  .masonry img { animation: tileIn linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; transform-origin: 50% 100%; }
  @keyframes tileIn {
    from { opacity: 0; transform: translateY(80px) rotateX(35deg) scale(.85); clip-path: inset(30% 0 0 0 round 16px); }
    to   { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 16px); }
  }

  /* ---- Clientes ---- */
  .clients__bg { animation: parallax linear both; animation-timeline: view(); animation-range: cover; }
  .logos li { animation: logoIn linear both; animation-timeline: view(); animation-range: entry calc(var(--k, 0) * 6%) cover 40%; }
  .logos li:nth-child(4n+2) { --k: 1; }
  .logos li:nth-child(4n+3) { --k: 2; }
  .logos li:nth-child(4n+4) { --k: 3; }
  @keyframes logoIn {
    from { opacity: 0; transform: translateY(60px) scale(.6); filter: blur(10px); }
    to   { opacity: 1; transform: none; filter: none; }
  }

  /* ---- Redes: el teléfono gira en 3D ---- */
  .social__phone img { animation: phone3d linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
  @keyframes phone3d {
    from { transform: rotateY(-55deg) rotateZ(-12deg) translateX(-30%) scale(.8); opacity: 0; }
    to   { transform: rotateY(0) rotateZ(-3deg); opacity: 1; }
  }
  .social__halo { animation: halo linear both; animation-timeline: view(); animation-range: cover; }
  @keyframes halo { from { transform: scale(.3); opacity: 0; } 50% { transform: scale(1.1); opacity: 1; } to { transform: scale(.8); opacity: .4; } }
  .social__links a { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  @keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

  /* ---- Contacto ---- */
  .contact__mega { animation: megaX linear both; animation-timeline: view(); animation-range: cover; }
  @keyframes megaX { from { transform: translateX(20%); } to { transform: translateX(-60%); } }
  .contact__list li { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  .contact__map { animation: mapIn linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  @keyframes mapIn { from { opacity: 0; transform: perspective(900px) rotateX(30deg) scale(.8); clip-path: circle(10% at 50% 50%); } to { opacity: 1; transform: none; clip-path: circle(75% at 50% 50%); } }
}
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
