/* ==========================================================================
   DNAD — Landing
   ========================================================================== */

@font-face {
  font-family: "Hubot Sans";
  src: url("../assets/fonts/hubot-sans.woff") format("woff");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("../assets/fonts/sora.woff") format("woff");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: "Climate Crisis";
  src: url("../assets/fonts/climate-crisis.woff") format("woff");
  font-display: swap;
}

:root {
  --bg: #000000;
  --ink: #f2f4f5;
  --ink-strong: #ffffff;
  --muted: #b9c0c7;
  --muted-2: #98a1ab;
  --muted-3: #a3acb5;
  --accent: #5ce1e6;
  --accent-soft: #9eeef1;
  --accent-hover: #a6f1f3;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.26);
  --glass: rgba(255, 255, 255, 0.04);

  --font-body: "Hubot Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Sora", "Helvetica Neue", Helvetica, sans-serif;
  --font-melt: "Climate Crisis", "Arial Black", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: 40px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
main { overflow-x: clip; } /* los brillos salen de la sección sin generar scroll lateral */
a { color: var(--accent-soft); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }
p, h1, h2, h3, ul { margin: 0; }
ul { padding: 0; list-style: none; }
strong { font-weight: 800; }

::selection { background: var(--accent); color: #000; }

.container { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.accent { color: var(--accent-soft); font-weight: 700; }
.stack-56 { display: flex; flex-direction: column; gap: 56px; }

/* ---------- Barra de progreso ---------- */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 50;
  background: linear-gradient(90deg, var(--accent), #ff5aaa, #ffbe6e);
  transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
}

/* ---------- Degradados por sección ----------
   Cada sección lleva su propio brillo (data-glow), centrado en su alto,
   para que acompañe al contenido en cualquier tamaño de pantalla. */
[data-glow]::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: 50%; width: 1100px; height: 900px; margin-top: -450px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow-color), transparent);
  will-change: transform;
  animation: drift 22s ease-in-out infinite alternate;
}
[data-glow="cyan"]::before        { --glow-color: rgba(92, 225, 230, 0.16);  left: -300px; }
[data-glow="violet-soft"]::before { --glow-color: rgba(140, 150, 255, 0.09); right: -320px; animation-duration: 25s; animation-delay: -8s; }
[data-glow="pink"]::before        { --glow-color: rgba(255, 90, 170, 0.13);  right: -320px; animation-duration: 26s; animation-delay: -6s; }
[data-glow="amber"]::before       { --glow-color: rgba(255, 190, 110, 0.11); left: -260px; animation-duration: 30s; animation-delay: -12s; }
[data-glow="violet"]::before      { --glow-color: rgba(140, 150, 255, 0.13); right: -300px; animation-duration: 24s; animation-delay: -3s; }
[data-glow="white"]::before       { --glow-color: rgba(255, 255, 255, 0.09); left: 50%; margin-left: -600px; width: 1200px; height: 800px; margin-top: -400px; animation-duration: 28s; }

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(80px, -60px, 0) scale(1.08); }
  100% { transform: translate3d(-60px, 50px, 0) scale(0.95); }
}

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; font-weight: 700; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: background 0.25s, box-shadow 0.25s, border-color 0.25s, color 0.25s, transform 0.35s var(--ease-out);
}
.btn svg { flex-shrink: 0; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; gap: 8px; }
.btn--md { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn--xl { min-height: 60px; padding: 0 34px; font-size: 18px; font-weight: 800; }

.btn--primary {
  background: var(--accent); color: #000;
  box-shadow: 0 0 28px rgba(92, 225, 230, 0.35);
}
.btn--primary:hover { background: var(--accent-hover); color: #000; box-shadow: 0 0 40px rgba(92, 225, 230, 0.55); }
/* Destello que cruza el botón */
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.65) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 5s ease-in-out infinite;
}
.btn--primary:hover::after { animation-duration: 1.4s; }
@keyframes shine {
  0%, 70% { transform: translateX(-120%); }
  100%    { transform: translateX(120%); }
}

.btn--ghost { border: 1px solid var(--line-strong); color: #e6eaee; font-weight: 600; }
.btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.05); }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.3s, transform 0.4s var(--ease-out);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-scrolled { background: rgba(0, 0, 0, 0.82); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 16px; transition: padding 0.3s var(--ease-out);
}
.nav.is-scrolled .nav__inner { padding-block: 10px; }
.nav__logo { display: flex; align-items: center; min-height: 44px; }
.nav__logo img { height: 26px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.nav__link { position: relative; color: var(--muted); padding-block: 6px; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease-out);
}
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__mobile-cta { display: none; }
.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%;
  background: transparent; cursor: pointer; position: relative;
}
.nav__toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: #fff;
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child  { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child  { top: 21px; transform: rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative; z-index: 1; min-height: 780px;
  display: flex; align-items: center; padding: 150px 0 170px; overflow: hidden;
}
.hero__cube {
  position: absolute; inset: 0 -80px 0 auto; width: min(1400px, 110vw); z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%), linear-gradient(180deg, #000 60%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 45%), linear-gradient(180deg, #000 60%, transparent 100%);
  mask-composite: intersect;
}
.hero__cube-inner {
  position: absolute; inset: 0;
  transform: translate3d(var(--px, 0px), calc(var(--py, 0px) + var(--sy, 0px)), 0) scale(1.04);
  transition: transform 0.9s var(--ease-out);
}
.hero__cube img {
  width: 100%; height: 100%; object-fit: cover; object-position: right center;
  mix-blend-mode: screen;
  animation: cube-float 9s ease-in-out infinite, cube-hue 14s linear infinite;
  opacity: 0; transition: opacity 1.6s ease;
}
.is-loaded .hero__cube img { opacity: 1; }
@keyframes cube-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-18px) rotate(1.2deg); }
}
@keyframes cube-hue {
  0%, 100% { filter: hue-rotate(0deg) brightness(1); }
  50%      { filter: hue-rotate(35deg) brightness(1.15); }
}

.hero__content { position: relative; z-index: 1; width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 30px; }
.pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.16);
  background: var(--glass); font-size: 14px; font-weight: 600; color: #d6dbe0;
}
.pill__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-soft); }
.pill__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent-soft);
  animation: ping 2.2s var(--ease-out) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(3.2); opacity: 0; } }

.hero__title {
  max-width: 680px; font-size: clamp(40px, 6.4vw, 68px); line-height: 1.04; font-weight: 400; letter-spacing: -0.027em;
}
.hero__title .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .word > span {
  display: inline-block; transform: translateY(105%);
  transition: transform 1s var(--ease-out), font-stretch 1.4s var(--ease-out);
  transition-delay: calc(var(--i) * 70ms + 150ms);
}
.hero__title strong .word > span { font-stretch: 75%; }
.is-loaded .hero__title .word > span { transform: none; }
.is-loaded .hero__title strong .word > span { font-stretch: 100%; transition-delay: calc(var(--i) * 70ms + 150ms), calc(var(--i) * 70ms + 650ms); }

.hero__lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }
.hero__note { font-size: 14px; color: var(--muted-2); }

.hero__item { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.hero__title.hero__item { opacity: 1; transform: none; }
.is-loaded .hero__item { opacity: 1; transform: none; }
.is-loaded .hero__item:nth-child(1) { transition-delay: 0.05s; }
.is-loaded .hero__item:nth-child(3) { transition-delay: 0.7s; }
.is-loaded .hero__item:nth-child(4) { transition-delay: 0.85s; }
.is-loaded .hero__item:nth-child(5) { transition-delay: 1s; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 40px; z-index: 1; width: 26px; height: 42px; margin-left: -13px;
  border: 1.5px solid rgba(255,255,255,0.3); border-radius: 999px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff;
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(14px); opacity: 0; } }

/* ---------- MARCAS (marquee) ---------- */
.brands { position: relative; z-index: 1; padding: 40px 0 100px; display: flex; flex-direction: column; align-items: center; gap: 44px; }
.brands__title { font-size: 17px; color: var(--muted); padding-inline: var(--gutter); text-align: center; }
.brands__title strong { color: #fff; }
.marquee {
  width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 72px; padding-right: 72px; }
.marquee__group img {
  height: var(--h); width: auto; max-width: 170px; object-fit: contain; opacity: 0.6;
  filter: grayscale(1); transition: opacity 0.3s, filter 0.3s, transform 0.4s var(--ease-out);
}
.marquee__group img:hover { opacity: 1; filter: none; transform: scale(1.08); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { position: relative; z-index: 1; padding: 110px 0; }
.section--lg { padding: 120px 0; }
.section__head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.section__lead { font-size: 19px; line-height: 1.55; color: var(--muted); }
.h2 {
  font-family: var(--font-display); font-size: clamp(36px, 5vw, 52px); line-height: 1.05;
  font-weight: 300; letter-spacing: -0.029em;
}
.h2 strong { font-weight: 800; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

/* ---------- Tarjetas ---------- */
.card {
  position: relative; padding: 26px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color 0.3s, transform 0.5s var(--ease-out), background 0.3s;
}
.card:hover { border-color: rgba(255,255,255,0.28); }
/* Luz que sigue al cursor */
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(92,225,230,0.12), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
}
.spot:hover::before { opacity: 1; }

.problems__a { font-size: 16px; color: var(--muted-3); }
.problems__b { font-size: 19px; font-weight: 700; line-height: 1.3; color: #fff; }
.problems .card:hover { transform: translateY(-4px); }

.card--cta {
  background: var(--accent); color: #000; border-color: transparent;
  box-shadow: 0 0 28px rgba(92,225,230,0.35); justify-content: space-between; gap: 12px;
}
.card--cta:hover { background: var(--accent-hover); color: #000; box-shadow: 0 0 44px rgba(92,225,230,0.6); transform: translateY(-4px); }
.card--cta__title { font-size: 19px; font-weight: 800; line-height: 1.3; }
.card--cta__link { font-size: 15px; font-weight: 700; }
.arrow { display: inline-block; transition: transform 0.35s var(--ease-out); }
.card--cta:hover .arrow { transform: translateX(6px); }

.card--lg { padding: 34px; border-radius: 22px; gap: 14px; overflow: hidden; }
.steps { gap: 24px; }
.steps__num { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--accent-soft); }
.steps__title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.steps p { font-size: 17px; line-height: 1.55; }
.steps__line {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out) 0.3s;
}
.steps .is-visible .steps__line { transform: scaleX(1); }

/* ---------- Servicios ---------- */
.services__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.services__intro { display: flex; flex-direction: column; gap: 16px; max-width: 680px; }
.services__tagline { font-size: 22px; line-height: 1.35; font-weight: 700; }
.services__aside { font-size: 17px; line-height: 1.55; max-width: 380px; }
.services { gap: 20px; align-items: stretch; perspective: 1200px; }
.card--xl { padding: 36px; border-radius: 24px; gap: 22px; transform-style: preserve-3d; }
.card--featured { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.4); }
.card--featured::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--angle, 0deg), transparent 0 70%, var(--accent) 80%, #ff5aaa 88%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: border-spin 5s linear infinite;
}
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes border-spin { to { --angle: 360deg; } }
.services__title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.services__title { font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: 0.03em; }
.badge {
  font-size: 12px; font-weight: 700; color: #000; background: #fff; padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
.badge--dark { align-self: flex-start; background: #000; color: #fff; font-size: 13px; padding: 6px 12px; }
.list { display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.4; color: #c9cfd5; }
.list li { display: flex; gap: 10px; }
.list li::before { content: "—"; color: #6f7882; }
.list--accent { color: #eef1f3; }
.list--accent li::before { color: var(--accent-soft); }
.services .is-visible .list li { animation: list-in 0.6s var(--ease-out) both; animation-delay: calc(var(--li, 0) * 60ms + 250ms); }
@keyframes list-in { from { opacity: 0; transform: translateX(-10px); } }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: center; }
.about__text { display: flex; flex-direction: column; gap: 22px; }
.about__title { display: flex; flex-direction: column; gap: 4px; line-height: 1.05; }
.about__pre { font-size: clamp(30px, 3.5vw, 40px); font-weight: 400; letter-spacing: -0.025em; }
.about__big {
  font-family: var(--font-display); font-size: clamp(40px, 5vw, 52px); font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fff 0%, #fff 40%, var(--accent-soft) 50%, #fff 60%, #fff 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: text-sheen 6s ease-in-out infinite;
}
@keyframes text-sheen { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0% 0; } }
.about__p { font-size: 18px; line-height: 1.6; }
.about__strong { color: #fff; font-weight: 700; }
.stats { display: flex; flex-direction: column; gap: 28px; padding-left: 40px; border-left: 1px solid rgba(255,255,255,0.12); }
.stat { display: flex; flex-direction: column; gap: 4px; font-size: 16px; }
.stat__value { font-family: var(--font-display); font-size: clamp(42px, 5vw, 56px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }

/* ---------- Oferta ---------- */
.card--offer { padding: 44px; border-radius: 28px; gap: 18px; }
.card--light { background: #f2f4f5; color: #000; border-color: transparent; gap: 20px; }
.card--light:hover { border-color: transparent; }
.offer__title { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.offer__lead { font-size: 20px; line-height: 1.5; color: #fff; }
.offer__p { font-size: 17px; line-height: 1.55; }
.card--offer .muted.offer__p { font-size: 18px; line-height: 1.6; }
.checks { display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; font-size: 17px; line-height: 1.4; font-weight: 600; }
.checks svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: #000; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.checks path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 0.6s var(--ease-out); }
.is-visible .checks li:nth-child(1) path { stroke-dashoffset: 0; transition-delay: 0.4s; }
.is-visible .checks li:nth-child(2) path { stroke-dashoffset: 0; transition-delay: 0.55s; }
.is-visible .checks li:nth-child(3) path { stroke-dashoffset: 0; transition-delay: 0.7s; }
.is-visible .checks li:nth-child(4) path { stroke-dashoffset: 0; transition-delay: 0.85s; }
.offer__btn { margin-top: 8px; align-self: flex-start; }

/* ---------- CTA final ---------- */
.cta { padding: 130px 0 110px; }
.cta__inner { max-width: 1000px; margin: 0 auto; padding-inline: var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.cta__title { display: flex; flex-direction: column; gap: 10px; line-height: 1; color: #fff; }
.cta__melt {
  font-family: var(--font-melt); font-weight: 400; font-size: clamp(40px, 8vw, 76px);
  font-variation-settings: "YEAR" var(--year, 1979);
}
.cta__mid { font-weight: 400; font-size: clamp(30px, 5.4vw, 52px); letter-spacing: -0.01em; }
.cta__p { font-size: 19px; line-height: 1.55; max-width: 560px; }

.contact {
  margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 48px;
  padding: 28px 40px; border-radius: 22px; border: 1px solid rgba(255,255,255,0.12);
  background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.contact__name { display: flex; flex-direction: column; text-align: left; line-height: 1.05; font-size: 26px; font-weight: 800; }
.contact__name .accent { font-weight: 800; }
.contact__sep { width: 1px; height: 48px; background: rgba(255,255,255,0.16); }
.contact__item { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.contact__label { font-size: 13px; font-weight: 700; color: var(--muted-2); }
.contact__item a { font-size: 17px; color: #eef1f3; }
.contact__item a:hover { color: var(--accent-soft); }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; padding: 32px 0; border-top: 1px solid rgba(255,255,255,0.07); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 14px; color: var(--muted-2); }
.footer img { height: 22px; width: auto; }

/* ---------- Reveal al hacer scroll ---------- */
.js .reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), border-color 0.3s, background 0.3s, box-shadow 0.3s;
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Una vez visibles, el hover de las tarjetas responde sin retraso */
.js .reveal.is-done { transition-delay: 0s; transition-duration: 0.5s, 0.5s, 0.3s, 0.3s, 0.3s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services { grid-template-columns: 1fr; }
  .services__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .about { gap: 48px; }
}

@media (max-width: 860px) {
  :root { --gutter: 20px; }
  [data-glow]::before { width: 700px; height: 700px; margin-top: -350px; }
  [data-glow="white"]::before { margin-left: -350px; }
  .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0; top: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 28px;
    font-size: 26px; font-weight: 700; background: rgba(0,0,0,0.94);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s;
  }
  .nav__links .nav__link { color: #fff; }
  .nav__links .nav__link, .nav__mobile-cta { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  .nav.is-open .nav__links > * { opacity: 1; transform: none; }
  .nav.is-open .nav__links > *:nth-child(2) { transition-delay: 0.05s; }
  .nav.is-open .nav__links > *:nth-child(3) { transition-delay: 0.1s; }
  .nav.is-open .nav__links > *:nth-child(4) { transition-delay: 0.15s; }
  .nav.is-open .nav__links > *:nth-child(5) { transition-delay: 0.2s; }
  .nav__mobile-cta { display: inline-flex; min-height: 52px; padding: 0 26px; font-size: 17px; margin-top: 12px; }
  .nav { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(0,0,0,0.85); }

  .hero { min-height: 0; padding: 110px 0 130px; }
  .hero__cube { inset: 0 -40% 0 auto; width: 150vw; opacity: 0.55; }
  .hero__scroll { display: none; }

  .section, .section--lg { padding: 72px 0; }
  .stack-56 { gap: 36px; }
  .grid-2, .about { grid-template-columns: 1fr; }
  .stats { padding-left: 24px; }
  .card--offer { padding: 30px; }
  .cta { padding: 90px 0 72px; }
  .contact { padding: 24px; gap: 20px 32px; }
  .contact__sep { display: none; }
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .btn { white-space: normal; text-align: center; max-width: 100%; line-height: 1.25; padding-block: 12px; }
  .btn--lg { padding-inline: 18px; font-size: 16px; gap: 8px; }
  .btn--xl { padding-inline: 18px; font-size: 16px; gap: 8px; }
  .pill { font-size: 13px; padding: 7px 14px; gap: 8px; }
  .hero { padding: 64px 0 96px; }
  .hero__content { gap: 24px; }
  .hero__title { font-size: clamp(34px, 10.4vw, 44px); }
  .cta__melt { font-size: clamp(30px, 10.5vw, 44px); }
  .cta__mid { font-size: clamp(24px, 7.6vw, 34px); }
  .about__big { font-size: clamp(36px, 11vw, 44px); }
  .grid-3 { grid-template-columns: 1fr; }
  .card--xl, .card--lg { padding: 26px; }
  .hero__actions .btn { width: 100%; }
  .contact { flex-direction: column; align-items: flex-start; width: 100%; }
  .marquee__group { gap: 48px; padding-right: 48px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .reveal, .hero__item, .hero__title .word > span { opacity: 1; transform: none; }
  .hero__cube img { opacity: 1; }
  .checks path { stroke-dashoffset: 0; }
  .steps__line { transform: scaleX(1); }
}
