/* ============================================================
   ATLANTEPOS — Design System (base, nav, hero, shared)
   Brand: royal blue #315084 + teal #4c77bd
   ============================================================ */

:root {
  /* Brand */
  --brand: #315084;
  --brand-600: #2e4b7c;
  --brand-700: #243c63;
  --brand-400: #4e78bd;
  --teal: #4672ba;
  --teal-400: #668ac6;
  --cyan: #517abf;

  --brand-gradient: linear-gradient(120deg, #315084 0%, #4672ba 55%, #668ac6 100%);
  --brand-gradient-soft: linear-gradient(120deg, rgba(49, 80, 132,0.12), rgba(70, 114, 186,0.12));

  /* Ink / dark surfaces */
  --ink: #051732;
  --ink-2: #051732;
  --ink-3: #0c1b34;

  /* Light surfaces */
  --bg: #ffffff;
  --bg-soft: #f2f6fd;
  --bg-tint: #e6eefc;
  --surface: #ffffff;

  /* Text */
  --text: #051732;
  --text-2: #304e80;
  --muted: #446fb7;
  --white: #ffffff;

  /* Lines */
  --border: #d8e5fb;
  --border-dark: rgba(255, 255, 255, 0.10);

  /* Type */
  --font-display: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Radius */
  --r-sm: 0.6rem;
  --r-md: 1rem;
  --r-lg: 1.4rem;
  --r-xl: 2rem;
  --r-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(5, 23, 50, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(5, 23, 50, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(36, 60, 99, 0.28);
  --shadow-glow: 0 0 0 1px rgba(49, 80, 132,0.15), 0 24px 60px -18px rgba(49, 80, 132,0.45);

  /* Spacing rhythm */
  --section-pad: clamp(4.5rem, 9vw, 9rem);
  --container: 1200px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 0.35s var(--ease);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: clamp(0.94rem, 0.9rem + 0.2vw, 1.02rem);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--text);
}

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

/* <picture> es solo un envoltorio: que no altere la maquetación del <img> */
picture { display: block; }

/* ---- Iconos SVG (sustituyen a Font Awesome) ----
   Se dimensionan en em y heredan currentColor, así que se comportan como
   un icono de fuente: font-size y color siguen controlándolos. */
.icon-sprite { display: none; }
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  flex-shrink: 0;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

a { color: var(--brand); text-decoration: none; transition: color var(--t); }

ul { list-style: none; }

::selection { background: rgba(49, 80, 132, 0.22); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 2000;
  background: var(--ink);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.15rem, 4vw, 2rem);
}

.section { padding: var(--section-pad) 0; }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.9rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--r-full);
  background: var(--brand-gradient-soft);
}

.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  color: var(--text);
}

.section-subtitle {
  margin-top: 1rem;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--muted);
  line-height: 1.65;
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: gradShift 6s ease-in-out infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.eyebrow .icon { margin-right: 0.35rem; }

/* --- Pills --- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.45rem 0.95rem;
  border-radius: var(--r-full);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}
.pill__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #537cc0;
  box-shadow: 0 0 0 0 rgba(83, 124, 192, 0.6);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(83, 124, 192,0.55); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(83, 124, 192,0); }
}

/* --- Buttons --- */
.btn {
  --btn-py: 0.7rem;
  --btn-px: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  padding: var(--btn-py) var(--btn-px);
  border-radius: var(--r-full);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  max-width: 100%;
  min-height: 44px; /* área táctil mínima (WCAG 2.5.5) */
  text-align: center;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--sm { --btn-py: 0.5rem; --btn-px: 1.05rem; font-size: 0.9rem; }
.btn--lg { --btn-py: 0.95rem; --btn-px: 1.9rem; font-size: 1.05rem; }
.btn--full { width: 100%; }

.btn--primary {
  position: relative;
  background: var(--brand-gradient);
  background-size: 180% auto;
  color: #ffffff;
  box-shadow: 0 12px 28px -10px rgba(49, 80, 132, 0.6);
  overflow: hidden;
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255,0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn--primary:hover {
  color: #ffffff;
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(49, 80, 132, 0.7);
}
.btn--primary:hover::after { transform: translateX(120%); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--brand-700);
  border-color: var(--border);
}
.btn--outline:hover {
  color: var(--brand-700);
  border-color: var(--brand);
  background: var(--brand-gradient-soft);
  transform: translateY(-2px);
}

.btn--white {
  background: #ffffff;
  color: var(--brand-700);
}
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--brand-700); }

.btn--outline-white {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--outline-white:hover { background: rgba(255, 255, 255,0.12); color: #ffffff; transform: translateY(-2px); }

.btn--whatsapp {
  background: #436eb5;
  color: #ffffff;
  box-shadow: 0 12px 28px -10px rgba(67, 110, 181, 0.6);
}
.btn--whatsapp:hover { background: #3c62a1; color: #ffffff; transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(67, 110, 181,0.7); }

/* Link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand);
}
.link-arrow .icon { transition: transform var(--t); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: background var(--t), box-shadow var(--t), border-color var(--t);
  border-bottom: 1px solid transparent;
}
.nav__progress {
  position: absolute;
  left: 0; bottom: 0;
  height: 2.5px;
  width: 0%;
  background: var(--brand-gradient);
  box-shadow: 0 0 12px rgba(70, 114, 186, 0.7);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.nav__logo { display: inline-flex; align-items: center; position: relative; }
.nav__logo-img { height: 42px; width: auto; transition: opacity var(--t); }
.nav__logo-img--dark { position: absolute; inset: 0; opacity: 0; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.2vw, 2rem);
}
.nav__links a {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--t);
}
.nav__links a:not(.btn):hover { color: #ffffff; }
.nav__links .btn { color: #ffffff; }

.nav__toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  /* área táctil mínima de 44x44 (WCAG 2.5.5) */
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
}
.nav__toggle span {
  width: 24px; height: 2px; border-radius: 2px;
  background: #ffffff;
  transition: transform var(--t), opacity var(--t), background var(--t);
}

/* Scrolled state → light glass */
.nav--solid {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px -18px rgba(5, 23, 50, 0.25);
}
.nav--solid .nav__logo-img--light { opacity: 0; }
.nav--solid .nav__logo-img--dark { opacity: 1; }
.nav--solid .nav__links a { color: var(--text-2); }
.nav--solid .nav__links a:not(.btn):hover { color: var(--brand); }
.nav--solid .nav__links a.active { color: var(--brand); }
.nav--solid .nav__toggle span { background: var(--text); }

.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: radial-gradient(140% 120% at 80% -10%, #11274b 0%, var(--ink-2) 42%, var(--ink) 100%);
  color: #ffffff;
  padding: clamp(8rem, 14vh, 11rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}

/* Aurora blobs */
.hero__aurora { position: absolute; inset: 0; z-index: -2; filter: blur(60px); }
.hero__blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}
.hero__blob--1 {
  width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
  top: -12%; left: -6%;
  background: radial-gradient(circle, #315084 0%, transparent 68%);
  animation: drift1 18s ease-in-out infinite alternate;
}
.hero__blob--2 {
  width: 42vw; height: 42vw; max-width: 560px; max-height: 560px;
  top: 8%; right: -8%;
  background: radial-gradient(circle, #4672ba 0%, transparent 66%);
  animation: drift2 22s ease-in-out infinite alternate;
}
.hero__blob--3 {
  width: 38vw; height: 38vw; max-width: 520px; max-height: 520px;
  bottom: -18%; left: 30%;
  background: radial-gradient(circle, #426cb2 0%, transparent 70%);
  opacity: 0.4;
  animation: drift3 26s ease-in-out infinite alternate;
}
@keyframes drift1 { from { transform: translate(0,0) scale(1);} to { transform: translate(8%, 10%) scale(1.15);} }
@keyframes drift2 { from { transform: translate(0,0) scale(1);} to { transform: translate(-10%, 6%) scale(1.1);} }
@keyframes drift3 { from { transform: translate(0,0) scale(1);} to { transform: translate(6%, -12%) scale(1.2);} }

.hero__grid-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255,0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(120% 100% at 50% 0%, #051732 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #051732 30%, transparent 78%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__title {
  font-size: clamp(2.15rem, 5vw, 3.7rem);
  font-weight: 600;
  color: #ffffff;
  margin: 1.4rem 0 1.3rem;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  color: rgba(255, 255, 255, 0.72);
  max-width: 40ch;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 2rem 0 1.8rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}
.hero__trust li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__trust .icon { color: var(--teal-400); }

/* Hero visual */
.hero__visual { display: flex; justify-content: center; }
.hero__stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  transform-style: preserve-3d;
  will-change: transform;
}
.hero__glow {
  position: absolute;
  inset: 8% 6% 6% 6%;
  z-index: -1;
  background: radial-gradient(circle at 55% 45%, rgba(70, 114, 186,0.55), rgba(49, 80, 132,0.35) 40%, transparent 70%);
  filter: blur(48px);
  animation: pulseGlow 5s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
.hero__device {
  width: 100%;
  filter: drop-shadow(0 40px 60px rgba(5, 23, 50, 0.55));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero__chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.95rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -16px rgba(5, 23, 50,0.5);
  color: var(--text);
  font-size: 0.82rem;
  animation: float 6s ease-in-out infinite;
}
.hero__chip .icon { font-size: 1.15rem; }
.hero__chip strong { display: block; font-family: var(--font-display); font-size: 0.85rem; }
.hero__chip span { color: var(--muted); font-size: 0.74rem; }
.hero__chip--a { top: 14%; left: -4%; animation-delay: 0.6s; }
.hero__chip--a .icon { color: #325287; }
.hero__chip--b { bottom: 12%; right: -3%; animation-delay: 1.2s; }
.hero__chip--b .icon { color: var(--brand); }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  padding: 1.1rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255,0.06);
  border-bottom: 1px solid rgba(255, 255, 255,0.06);
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: -0.01em;
  animation: marquee 34s linear infinite;
}
.marquee__track span { color: rgba(255, 255, 255,0.82); }
.marquee__sep { color: var(--teal-400); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band {
  position: relative;
  background: var(--ink-2);
  color: #ffffff;
  padding: clamp(3.5rem, 6vw, 5rem) 0;
  overflow: hidden;
  isolation: isolate;
}
.stats-band__aurora {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 120% at 15% 30%, rgba(49, 80, 132,0.4), transparent 60%),
    radial-gradient(50% 120% at 85% 70%, rgba(70, 114, 186,0.35), transparent 60%);
  filter: blur(20px);
}
.stats-band__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 3vw, 2.5rem);
  text-align: center;
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #ffffff, #97baf4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.66);
  max-width: 22ch;
  margin-inline: auto;
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  position: relative;
  background: radial-gradient(120% 140% at 50% -20%, #183464 0%, var(--ink-2) 55%, var(--ink) 100%);
  color: #ffffff;
  text-align: center;
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
  overflow: hidden;
  isolation: isolate;
}
.cta__aurora {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(45% 60% at 30% 20%, rgba(49, 80, 132,0.5), transparent 60%),
    radial-gradient(45% 60% at 75% 80%, rgba(70, 114, 186,0.45), transparent 60%);
  filter: blur(40px);
  animation: pulseGlow 7s ease-in-out infinite;
}
.cta__inner h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: #ffffff;
  max-width: 16ch;
  margin: 0 auto;
}
.cta__inner p {
  margin: 1.2rem auto 2rem;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}
.cta__actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  padding: clamp(3.5rem, 6vw, 5rem) 0 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, minmax(0, 1fr));
  gap: clamp(1.6rem, 3.5vw, 3rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-dark);
}
/* width:auto es imprescindible: sin él gana el atributo width del <img>
   y el logo (1241x875) se estira. */
.footer__brand img { height: 44px; width: auto; margin-bottom: 1rem; }
.footer__brand p { font-size: 0.92rem; line-height: 1.7; max-width: 34ch; }
.footer__social { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.footer__social a {
  width: 44px; height: 44px; /* área táctil mínima (WCAG 2.5.5) */
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  transition: background var(--t), color var(--t), transform var(--t);
}
.footer__social a:hover { background: var(--brand-gradient); color: #ffffff; transform: translateY(-3px); }

.footer__links h4 {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer__links a {
  display: block;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.58);
  padding: 0.32rem 0;
  transition: color var(--t), transform var(--t);
}
.footer__links a:hover { color: #ffffff; transform: translateX(3px); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 1.8rem;
  font-size: 0.85rem;
}
.footer__made .icon { color: #7aa6f0; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
/* Reveal only hides when JS is available (html.js set inline in <head>),
   so pages without JS still show all content. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.in { opacity: 1; transform: none; }

/* Spotlight cursor glow on cards */
.spotlight { position: relative; }
.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(49, 80, 132,0.14), transparent 60%);
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
  z-index: 1;
}
.spotlight:hover::before { opacity: 1; }

/* ============================================================
   RESPONSIVE — hero & shared
   ============================================================ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__subtitle { margin-inline: auto; }
  .hero__actions, .hero__trust { justify-content: center; }
  .hero__visual { order: -1; }
  .hero__stage { max-width: 440px; }
  .stats-band__grid { grid-template-columns: repeat(2, 1fr); row-gap: 2.4rem; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}

/* Entre el hamburguesa y el escritorio ancho el nav va justo: 8 enlaces más el
   botón de demo. Se aprieta en vez de desbordar sobre el logo. */
@media (max-width: 1140px) and (min-width: 981px) {
  .nav__links { gap: 0.85rem; }
  .nav__links a { font-size: 0.86rem; }
  .nav__links .btn { padding-inline: 0.9rem; }
  .nav__logo-img { height: 36px; }
}

/* Menú hamburguesa. Salta a 980px: por debajo de eso la fila de enlaces no cabe
   y se comía el logo y el botón de demo. */
@media (max-width: 980px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    padding: 1rem 1.15rem 1.4rem;
    background: rgba(5, 23, 50, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-dark);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t), transform var(--t), visibility var(--t);
  }
  /* enlaces del menú con área táctil holgada */
  .nav__links a {
    color: rgba(255, 255, 255,0.9) !important;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.4rem;
  }
  .nav__links.open { opacity: 1; visibility: visible; transform: none; }
  .nav__links .btn { margin-top: 0.5rem; justify-content: center; }
}

@media (max-width: 720px) {
  .hero__chip { display: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  /* Los CTA largos ("Enviar mensaje por WhatsApp") no caben en una línea:
     que ajusten en vez de desbordar el viewport. */
  .btn--lg {
    --btn-px: 1.25rem;
    font-size: 1rem;
    white-space: normal;
  }
  .hero__actions .btn,
  .cta__actions .btn,
  .contact__card .btn--lg { width: 100%; }
}

@media (max-width: 460px) {
  .stats-band__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .reveal { opacity: 1 !important; transform: none !important; }
  .hero__device, .hero__chip, .hero__glow, .hero__blob, .cta__aurora, .marquee__track, .gradient-text { animation: none !important; }
}
