/* ============================================================
   NEXARA — style.css
   Dark navy / cyan / purple AI tech aesthetic
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:       #030510;
  --bg2:      #060820;
  --bg3:      #080c2a;
  --cyan:     #00e5ff;
  --cyan-dim: #00b8cc;
  --purple:   #8b00ff;
  --purple-dim:#6a00cc;
  --white:    #ffffff;
  --text:     rgba(255,255,255,0.85);
  --text-dim: rgba(255,255,255,0.45);
  --border:   rgba(255,255,255,0.07);
  --border-c: rgba(0,229,255,0.18);

  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius:   12px;
  --radius-sm: 8px;
  --max-w:    1200px;
  --nav-h:    96px;

  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Container ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  color: #000;
  border-color: transparent;
}
.btn--primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(0,229,255,0.35);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.22);
}
.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0,229,255,0.06);
}
.btn--full { width: 100%; justify-content: center; }

/* ── Section common ────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 auto;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: rgba(3,5,16,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 40px rgba(0,0,0,0.4);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav__logo img {
  height: 80px;
  width: auto;
}
.nav__logo span {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: var(--white);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
}
.nav__links a {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1.5px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #000;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: opacity var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}
.nav__cta:hover {
  opacity: 0.85;
  box-shadow: 0 0 24px rgba(0,229,255,0.3);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(3,5,16,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 998;
  padding: 24px 40px;
  gap: 0;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu a {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--cyan); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* Grid background */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}

/* Ambient glows */
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.hero__glow--a {
  width: 600px; height: 600px;
  top: -100px; left: -100px;
  background: radial-gradient(circle, rgba(139,0,255,0.18) 0%, transparent 70%);
}
.hero__glow--b {
  width: 500px; height: 500px;
  bottom: -80px; right: -60px;
  background: radial-gradient(circle, rgba(0,229,255,0.14) 0%, transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(0,229,255,0.07);
  border: 1px solid rgba(0,229,255,0.2);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--cyan);
  margin-bottom: 36px;
}
.hero__badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse-dot 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,229,255,0.5); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(0,229,255,0); }
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.06;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.hero__gradient {
  background: linear-gradient(90deg, var(--cyan) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: 44px;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll line */
.hero__scroll-line {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 72px;
  background: linear-gradient(to bottom, transparent, rgba(0,229,255,0.5), transparent);
  animation: scroll-fade 2s ease-in-out infinite;
}
@keyframes scroll-fade {
  0%,100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.stats__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  flex: 1;
  min-width: 140px;
}
.stat-item strong {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-item span {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 400;
}
.stat-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ============================================================
   SOLUCIONES
   ============================================================ */
.soluciones {
  padding: 120px 0;
}
.sol-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.sol-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.sol-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  opacity: 0;
  transition: opacity var(--transition);
}
.sol-card:hover {
  border-color: rgba(0,229,255,0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(0,229,255,0.05);
}
.sol-card:hover::before { opacity: 1; }

.sol-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.sol-card__icon svg {
  width: 24px; height: 24px;
}
.sol-card__icon--cyan {
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.2);
  color: var(--cyan);
}
.sol-card__icon--purple {
  background: rgba(139,0,255,0.12);
  border: 1px solid rgba(139,0,255,0.25);
  color: #b060ff;
}
.sol-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.sol-card p {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 20px;
}
.sol-card__tag {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cyan);
  opacity: 0.7;
}

/* ── Sol-card live badge ─────────────────────────────────── */
.sol-card__live {
  position: absolute;
  top: 16px; right: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  color: var(--cyan);
  opacity: 0.6;
  transition: opacity var(--transition);
}
.sol-card__live span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse-dot 1.6s ease-in-out infinite;
}
.sol-card__live--purple { color: #b060ff; }
.sol-card__live--purple span { background: var(--purple); }
.sol-card:hover .sol-card__live { opacity: 1; }

/* ── Sol-card wave bars ──────────────────────────────────── */
.sol-card__wave {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 28px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.sol-card__wave span {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: rgba(0,229,255,0.35);
  animation: wave-eq 1.6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  height: var(--h, 50%);
}
.sol-card__wave--purple span {
  background: rgba(139,0,255,0.45);
}
@keyframes wave-eq {
  0%,100% { transform: scaleY(0.4); opacity: 0.5; }
  50%     { transform: scaleY(1);   opacity: 1; }
}
.sol-card__wave span { transform-origin: bottom; }

/* ============================================================
   PROCESO
   ============================================================ */
.proceso {
  padding: 120px 0;
  background: var(--bg2);
  position: relative;
}
.proceso::before,
.proceso::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.proceso::before { top: 0; }
.proceso::after { bottom: 0; }

.proceso-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.paso {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 0 20px;
}
.paso__num {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1.5px solid var(--border-c);
  background: rgba(0,229,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  color: var(--cyan);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.paso__content h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.paso__content p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.paso-connector {
  width: 80px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  opacity: 0.3;
  margin-top: 32px;
  flex-shrink: 0;
}

/* ============================================================
   IMPACTO
   ============================================================ */
.impacto {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.impacto__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(139,0,255,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 100% 50%, rgba(0,229,255,0.07) 0%, transparent 60%);
}
.impacto__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.impacto__text .eyebrow { display: block; margin-bottom: 18px; }
.impacto__text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 40px;
}
.impacto__metrics {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}
.impacto__metric {
  display: flex;
  align-items: center;
  gap: 20px;
}
.impacto__metric strong {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 80px;
}
.impacto__metric span {
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* Dashboard visual */
.impacto__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.dashboard {
  width: 100%;
  height: 260px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.dashboard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
}
.dashboard__bar {
  flex: 1;
  height: var(--h, 50%);
  background: linear-gradient(to top, var(--c, var(--cyan)), color-mix(in srgb, var(--c, var(--cyan)) 60%, transparent));
  border-radius: 4px 4px 0 0;
  opacity: 0.8;
  transition: opacity var(--transition);
}
.dashboard__bar:hover { opacity: 1; }
.dashboard__line {
  position: absolute;
  bottom: 40%; left: 24px; right: 24px;
  height: 1px;
  background: rgba(255,255,255,0.06);
}
.dashboard__label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testimonios {
  padding: 120px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.testi-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color var(--transition), transform var(--transition);
}
.testi-card:hover {
  border-color: rgba(0,229,255,0.15);
  transform: translateY(-3px);
}
.testi-card--featured {
  background: var(--bg3);
  border-color: rgba(0,229,255,0.2);
  box-shadow: 0 0 60px rgba(0,229,255,0.06);
}
.testi-card--featured:hover {
  border-color: rgba(0,229,255,0.35);
}
.testi-card__stars {
  color: var(--cyan);
  font-size: 0.9rem;
  letter-spacing: 2px;
}
.testi-card p {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}
.testi-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.testi-card__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  color: #000;
  flex-shrink: 0;
}
.testi-card__author strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}
.testi-card__author span {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contacto {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.contacto__glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(139,0,255,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.contacto__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contacto__text .eyebrow { display: block; margin-bottom: 18px; }
.contacto__text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}
.contacto__text > p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 36px;
}
.contacto__info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contacto__info span {
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--text-dim);
  user-select: text;
}

/* Form */
.contacto__form {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--cyan);
  border-radius: var(--radius);
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--white);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(0,229,255,0.4);
  background: rgba(0,229,255,0.04);
}
.form-group textarea { resize: vertical; min-height: 90px; }

.form-success {
  text-align: center;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.25);
  color: var(--cyan);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding-top: 64px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.footer__logo-wrap {
  display: block;
  padding: 0;
  margin: 0;
}
.footer__logo-wrap span {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.8rem;
  letter-spacing: 0.14em;
  color: var(--white);
  display: block;
}
.footer__logo-wrap span {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--white);
}
.footer__brand p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 260px;
  margin: 0;
  padding: 0;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__col-title {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
}
.footer__col a {
  font-size: 0.87rem;
  color: var(--text-dim);
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--cyan); }
.footer__col span {
  font-size: 0.87rem;
  color: var(--text-dim);
  user-select: text;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 40px;
}
.footer__bottom span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .impacto__inner,
  .contacto__inner { gap: 48px; }
}

@media (max-width: 900px) {
  .sol-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .impacto__inner { grid-template-columns: 1fr; }
  .contacto__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }

  .proceso-steps { flex-direction: column; align-items: stretch; }
  .paso { flex-direction: row; text-align: left; gap: 24px; padding: 0; }
  .paso__content { flex: 1; }
  .paso-connector { width: 1.5px; height: 32px; margin: 0 0 0 32px; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .mobile-menu { display: flex; padding: 16px 24px; }

  .section-header { margin-bottom: 48px; }

  .stats__inner { gap: 12px; }
  .stat-sep { display: none; }
  .stat-item { min-width: 120px; }

  .sol-grid { gap: 16px; }
  .sol-card { padding: 28px; }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; padding: 20px 24px; }

  .dashboard { height: 180px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2.6rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .contacto__form { padding: 28px 20px; }
}

/* ============================================================
   ANIMACIONES Y EFECTOS TECH
   ============================================================ */

/* ── Matrix canvas ───────────────────────────────────────── */
.hero__matrix {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

/* ── Particle canvas ─────────────────────────────────────── */
.hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.55;
  pointer-events: none;
}

/* ── Scan line hero ──────────────────────────────────────── */
.hero__scan {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  z-index: 2;
  animation: scan-move 6s linear infinite;
  opacity: 0.4;
  pointer-events: none;
}
@keyframes scan-move {
  0%   { top: 0%; opacity: 0; }
  5%   { opacity: 0.4; }
  95%  { opacity: 0.4; }
  100% { top: 100%; opacity: 0; }
}

/* ── Hero third glow ─────────────────────────────────────── */
.hero__glow--c {
  width: 400px; height: 400px;
  top: 30%; right: 15%;
  background: radial-gradient(circle, rgba(0,229,255,0.07) 0%, transparent 70%);
}

/* ── Hero corner brackets ────────────────────────────────── */
.hero__corner {
  position: absolute;
  width: 36px; height: 36px;
  pointer-events: none;
  z-index: 3;
  opacity: 0.45;
}
.hero__corner--tl { top: 20px; left: 20px; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.hero__corner--tr { top: 20px; right: 20px; border-top: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }
.hero__corner--bl { bottom: 20px; left: 20px; border-bottom: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.hero__corner--br { bottom: 20px; right: 20px; border-bottom: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }

/* ── Hero terminal ───────────────────────────────────────── */
.hero__terminal {
  margin-top: 48px;
  background: rgba(3,5,16,0.75);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-width: 420px;
  backdrop-filter: blur(8px);
}
.hero__terminal-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(0,229,255,0.1);
}
.hero__terminal-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: block;
}
.hero__terminal-bar span:nth-child(1) { background: #ff5f56; }
.hero__terminal-bar span:nth-child(2) { background: #ffbd2e; }
.hero__terminal-bar span:nth-child(3) { background: #27c93f; }
.hero__terminal-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  line-height: 1.5;
}
.hero__terminal-body p { margin: 0; color: rgba(255,255,255,0.5); }
.t-prompt { color: var(--cyan); }
.t-sep { color: rgba(255,255,255,0.3); margin: 0 4px; }
.t-cmd { color: rgba(255,255,255,0.75); }
.t-ok { color: #27c93f; margin-right: 6px; }
.t-val { color: var(--cyan); }
.t-cursor { animation: term-blink 1s step-end infinite; }
@keyframes term-blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ── Hero cursor (typewriter) ────────────────────────────── */
.hero__cursor {
  display: inline-block;
  color: var(--cyan);
  font-weight: 300;
  animation: cursor-blink 1.1s step-end infinite;
  margin-left: 2px;
}
@keyframes cursor-blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ── Floating glow orbs ──────────────────────────────────── */
@keyframes float-a {
  0%,100% { transform: translate(0,0) scale(1); }
  40%     { transform: translate(30px,-20px) scale(1.08); }
  70%     { transform: translate(-18px,14px) scale(0.95); }
}
@keyframes float-b {
  0%,100% { transform: translate(0,0) scale(1); }
  35%     { transform: translate(-25px,18px) scale(1.06); }
  65%     { transform: translate(20px,-12px) scale(0.96); }
}
.hero__glow--a { animation: float-a 12s ease-in-out infinite; }
.hero__glow--b { animation: float-b 15s ease-in-out infinite; }

/* ── Scroll reveal ───────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="delay-1"] { transition-delay: 0.12s; }
[data-reveal="delay-2"] { transition-delay: 0.24s; }
[data-reveal="delay-3"] { transition-delay: 0.36s; }

/* ── Dashboard bar grow ──────────────────────────────────── */
.dashboard__bar {
  height: 0 !important;
  transition: height 1.2s cubic-bezier(0.4,0,0.2,1);
}
.dashboard__bar.animated {
  height: var(--h, 50%) !important;
}

/* ── Pulsing ring on proceso numbers ─────────────────────── */
@keyframes ring-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,229,255,0.45); }
  70%  { box-shadow: 0 0 0 14px rgba(0,229,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,229,255,0); }
}
.paso__num { animation: ring-pulse 2.8s ease-out infinite; }

/* ── Animated gradient border on sol-cards ───────────────── */
.sol-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--cyan), var(--purple), var(--cyan));
  background-size: 300% 300%;
  opacity: 0;
  z-index: -1;
  transition: opacity var(--transition);
  animation: grad-rotate 4s linear infinite;
}
@keyframes grad-rotate {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.sol-card:hover::after { opacity: 0.6; }

/* ── Dashboard scan line animation ───────────────────────── */
.dashboard__line {
  animation: dash-scan 3s ease-in-out infinite alternate;
}
@keyframes dash-scan {
  0%   { bottom: 20%; opacity: 0.04; }
  100% { bottom: 70%; opacity: 0.10; }
}

/* ── Glow on featured testi card ─────────────────────────── */
@keyframes glow-pulse {
  0%,100% { box-shadow: 0 0 40px rgba(0,229,255,0.06); }
  50%     { box-shadow: 0 0 60px rgba(0,229,255,0.15); }
}
.testi-card--featured { animation: glow-pulse 3.5s ease-in-out infinite; }

/* ── Impacto section circuit overlay ─────────────────────── */
.impacto::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}
.impacto__inner { z-index: 2; }

/* ── Proceso aurora background ───────────────────────────── */
.proceso__aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.proceso__aurora::before {
  content: '';
  position: absolute;
  width: 65%; height: 90%;
  top: -15%; left: -8%;
  background: radial-gradient(ellipse, rgba(139,0,255,0.1) 0%, transparent 65%);
  filter: blur(55px);
  animation: proc-aur-a 16s ease-in-out infinite;
}
.proceso__aurora::after {
  content: '';
  position: absolute;
  width: 60%; height: 80%;
  bottom: -15%; right: -8%;
  background: radial-gradient(ellipse, rgba(0,229,255,0.09) 0%, transparent 65%);
  filter: blur(55px);
  animation: proc-aur-b 20s ease-in-out infinite;
}
@keyframes proc-aur-a {
  0%,100% { transform: translate(0,0) scale(1); }
  40%     { transform: translate(6%,10%) scale(1.1); }
  70%     { transform: translate(-4%,-6%) scale(0.93); }
}
@keyframes proc-aur-b {
  0%,100% { transform: translate(0,0) scale(1); }
  35%     { transform: translate(-7%,-5%) scale(1.08); }
  65%     { transform: translate(5%,7%) scale(0.95); }
}

/* ── Proceso DNA helix canvas ────────────────────────────── */
.proceso__dna {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.32;
  pointer-events: none;
}
.proceso::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--bg2) 0%,
    transparent 22%,
    transparent 78%,
    var(--bg2) 100%
  );
  pointer-events: none;
  z-index: 1;
}
.proceso .container { position: relative; z-index: 2; }

/* ── Ticker ──────────────────────────────────────────────── */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  padding: 13px 0;
  position: relative;
}
.ticker::before,
.ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg2), transparent); }
.ticker::after  { right: 0; background: linear-gradient(-90deg, var(--bg2), transparent); }
.ticker__track {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  animation: ticker-scroll 28s linear infinite;
  width: max-content;
}
.ticker__track span {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}
.ticker__sep {
  color: var(--cyan) !important;
  opacity: 0.5;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Soluciones aurora background ────────────────────────── */
.soluciones { position: relative; overflow: hidden; }
.sol-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.sol-aurora::before {
  content: '';
  position: absolute;
  width: 80%; height: 80%;
  top: -20%; left: -10%;
  background: radial-gradient(ellipse, rgba(139,0,255,0.13) 0%, transparent 65%);
  animation: aurora-a 12s ease-in-out infinite;
  filter: blur(40px);
}
.sol-aurora::after {
  content: '';
  position: absolute;
  width: 70%; height: 70%;
  bottom: -15%; right: -10%;
  background: radial-gradient(ellipse, rgba(0,229,255,0.11) 0%, transparent 65%);
  animation: aurora-b 15s ease-in-out infinite;
  filter: blur(40px);
}
@keyframes aurora-a {
  0%,100% { transform: translate(0,0) scale(1);     opacity: 0.8; }
  33%     { transform: translate(8%,6%) scale(1.1);  opacity: 1; }
  66%     { transform: translate(-5%,-4%) scale(0.9); opacity: 0.7; }
}
@keyframes aurora-b {
  0%,100% { transform: translate(0,0) scale(1);      opacity: 0.7; }
  40%     { transform: translate(-7%,5%) scale(1.12); opacity: 1; }
  70%     { transform: translate(5%,-6%) scale(0.95); opacity: 0.8; }
}

/* ── Sol rotating rings ──────────────────────────────────── */
.sol-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.sol-ring--1 {
  width: 700px; height: 700px;
  top: -200px; right: -200px;
  border: 1px solid rgba(0,229,255,0.05);
  animation: spin-cw 50s linear infinite;
}
.sol-ring--1::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
  top: 50%; left: 0;
  transform: translate(-50%, -50%);
}
.sol-ring--2 {
  width: 500px; height: 500px;
  bottom: -150px; left: -150px;
  border: 1px solid rgba(139,0,255,0.07);
  animation: spin-ccw 38s linear infinite;
}
.sol-ring--2::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 12px var(--purple);
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
}
@keyframes spin-cw  { from { transform: rotate(0deg); }   to { transform: rotate(360deg); } }
@keyframes spin-ccw { from { transform: rotate(0deg); }   to { transform: rotate(-360deg); } }

/* ── Sol floating badges ─────────────────────────────────── */
.sol-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(0,229,255,0.07);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 999px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.73rem;
  color: var(--cyan);
  pointer-events: none;
  z-index: 3;
  backdrop-filter: blur(6px);
}
.sol-float__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
  animation: pulse-dot 1.8s ease-in-out infinite;
}
.sol-float__dot--purple { background: var(--purple); box-shadow: 0 0 8px var(--purple); }
.sol-float--1 { top: 13%; left: 4%;  animation: float-badge 5s ease-in-out infinite; }
.sol-float--2 { top: 42%; right: 3%; animation: float-badge 5s ease-in-out infinite 1.7s; color: #b060ff; border-color: rgba(139,0,255,0.3); background: rgba(139,0,255,0.07); }
.sol-float--3 { bottom: 12%; left: 7%; animation: float-badge 5s ease-in-out infinite 3.2s; }
@keyframes float-badge {
  0%,100% { transform: translateY(0);   opacity: 0.75; }
  50%     { transform: translateY(-9px); opacity: 1; }
}

/* ── Sol-card orbs ───────────────────────────────────────── */
.sol-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.sol-orb--1 {
  width: 400px; height: 400px;
  top: -80px; left: -100px;
  background: radial-gradient(circle, rgba(139,0,255,0.12) 0%, transparent 70%);
  animation: orb-drift-1 14s ease-in-out infinite;
}
.sol-orb--2 {
  width: 300px; height: 300px;
  bottom: 0; right: -60px;
  background: radial-gradient(circle, rgba(0,229,255,0.1) 0%, transparent 70%);
  animation: orb-drift-2 11s ease-in-out infinite;
}
.sol-orb--3 {
  width: 250px; height: 250px;
  top: 40%; left: 40%;
  background: radial-gradient(circle, rgba(139,0,255,0.06) 0%, transparent 70%);
  animation: orb-drift-1 18s ease-in-out infinite reverse;
}
@keyframes orb-drift-1 {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(40px,-30px); }
}
@keyframes orb-drift-2 {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(-30px,20px); }
}

/* ── Impacto rings decorativos ───────────────────────────── */
.impacto__rings {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}
.impacto__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,229,255,0.06);
  transform: translate(-50%,-50%);
}
.impacto__ring--1 { width: 400px; height: 400px; animation: ring-expand 6s ease-in-out infinite; }
.impacto__ring--2 { width: 600px; height: 600px; animation: ring-expand 6s ease-in-out infinite 1.5s; }
.impacto__ring--3 { width: 800px; height: 800px; animation: ring-expand 6s ease-in-out infinite 3s; }
@keyframes ring-expand {
  0%   { transform: translate(-50%,-50%) scale(0.9); opacity: 0.6; }
  100% { transform: translate(-50%,-50%) scale(1.1); opacity: 0; }
}

/* ── Metric SVG rings ────────────────────────────────────── */
.impacto__metric {
  display: flex;
  align-items: center;
  gap: 20px;
}
.impacto__metric-ring {
  position: relative;
  width: 52px; height: 52px;
  flex-shrink: 0;
}
.impacto__metric-ring svg {
  width: 52px; height: 52px;
  transform: rotate(-90deg);
}
.ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 4;
}
.ring-fill {
  fill: none;
  stroke: url(#ring-grad);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 169.6;
  stroke-dashoffset: 169.6;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.4,0,0.2,1);
}
.ring-fill.animated {
  stroke-dashoffset: calc(169.6 - (169.6 * var(--pct) / 100));
}

/* gradient for rings */
.impacto__text svg defs { display: none; }
body::before {
  content: '';
  position: absolute;
  width: 0; height: 0;
}

/* ── Data feed widget ────────────────────────────────────── */
.data-feed {
  margin-top: 16px;
  background: rgba(0,229,255,0.03);
  border: 1px solid rgba(0,229,255,0.1);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.data-feed__row {
  display: flex;
  justify-content: space-between;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
}
.data-feed__key { color: rgba(255,255,255,0.3); }
.data-feed__val { color: var(--cyan); }
.data-feed__val--ok { color: #27c93f; }

/* ── Testimonios background ──────────────────────────────── */
.testimonios { position: relative; overflow: hidden; }

.testi-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.testi-aurora::before {
  content: '';
  position: absolute;
  width: 65%; height: 90%;
  top: -15%; left: -8%;
  background: radial-gradient(ellipse, rgba(139,0,255,0.1) 0%, transparent 65%);
  filter: blur(55px);
  animation: proc-aur-a 16s ease-in-out infinite;
}
.testi-aurora::after {
  content: '';
  position: absolute;
  width: 60%; height: 80%;
  bottom: -15%; right: -8%;
  background: radial-gradient(ellipse, rgba(0,229,255,0.09) 0%, transparent 65%);
  filter: blur(55px);
  animation: proc-aur-b 20s ease-in-out infinite;
}

.testi-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.45;
  pointer-events: none;
}

/* ── Contacto concentric rings ───────────────────────────── */
.contacto__rings {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
  z-index: 0;
}
.cring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(139,0,255,0.07);
  transform: translate(-50%,-50%);
  animation: cring-pulse 5s ease-in-out infinite;
}
.cring--1 { width: 300px;  height: 300px; animation-delay: 0s; }
.cring--2 { width: 560px;  height: 560px; animation-delay: 1.2s; }
.cring--3 { width: 820px;  height: 820px; animation-delay: 2.4s; }
@keyframes cring-pulse {
  0%,100% { opacity: 0.5; transform: translate(-50%,-50%) scale(1); }
  50%     { opacity: 1;   transform: translate(-50%,-50%) scale(1.04); }
}

/* ── Contacto mini stats ─────────────────────────────────── */
.contacto__mini-stats {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.mini-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mini-stat strong {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mini-stat span {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ── Stats shimmer line ───────────────────────────────────── */
.stats {
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: shimmer-line 4s ease-in-out infinite;
}
@keyframes shimmer-line {
  0%   { left: -60%; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { left: 160%; opacity: 0; }
}

/* ── Nav animated bottom border ─────────────────────────── */
.nav--scrolled::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan) 35%, var(--purple) 65%, transparent);
  background-size: 200% 100%;
  animation: nav-flow 3s linear infinite;
}
@keyframes nav-flow {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ── Nav logo pulse glow ─────────────────────────────────── */
.nav__logo img {
  filter: drop-shadow(0 0 0px rgba(0,229,255,0));
  transition: filter 0.4s;
  animation: logo-glow 4s ease-in-out infinite;
}
@keyframes logo-glow {
  0%,100% { filter: drop-shadow(0 0 4px rgba(0,229,255,0.2)); }
  50%     { filter: drop-shadow(0 0 14px rgba(0,229,255,0.55)); }
}

/* ── Proceso connector dot ───────────────────────────────── */
.paso-connector { position: relative; overflow: visible; }
.paso-connector__dot {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan), 0 0 20px rgba(0,229,255,0.4);
  animation: dot-travel 2.2s cubic-bezier(0.4,0,0.6,1) infinite;
}
@keyframes dot-travel {
  0%   { left: 0%;   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* ── Footer canvas ───────────────────────────────────────── */
.footer { position: relative; overflow: hidden; }
.footer__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}
.footer__inner,
.footer__bottom { position: relative; z-index: 1; }

/* ── Footer animated top scan ────────────────────────────── */
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--purple), transparent);
  animation: footer-scan 5s ease-in-out infinite;
  z-index: 2;
}
@keyframes footer-scan {
  0%   { left: -60%; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: 160%; opacity: 0; }
}

/* ── Footer animated circuit grid ────────────────────────── */
.footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
  animation: grid-drift 20s linear infinite;
}
@keyframes grid-drift {
  0%   { background-position: 0 0; }
  100% { background-position: 44px 44px; }
}

/* ── Footer NEXARA gradient text ─────────────────────────── */
.footer__logo-wrap span {
  background: linear-gradient(90deg, var(--white) 0%, var(--cyan) 40%, var(--purple) 70%, var(--white) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: nexara-flow 5s linear infinite;
}
@keyframes nexara-flow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* ── Footer status badge ─────────────────────────────────── */
.footer__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.footer__status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #27c93f;
  flex-shrink: 0;
  animation: status-pulse 2.5s ease-in-out infinite;
}
@keyframes status-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(39,201,63,0.5); opacity: 1; }
  50%     { box-shadow: 0 0 0 6px rgba(39,201,63,0); opacity: 0.8; }
}
.footer__status span:last-child {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
}

/* ── CTA button inner glow ───────────────────────────────── */
.btn--primary {
  position: relative;
  overflow: hidden;
}
.btn--primary::after {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 40%;
  height: 200%;
  background: rgba(255,255,255,0.18);
  transform: skewX(-20deg);
  animation: btn-shine 3.5s ease-in-out infinite;
}
@keyframes btn-shine {
  0%,100% { left: -60%; opacity: 0; }
  40%     { opacity: 1; }
  60%     { left: 120%; opacity: 0; }
}

/* ============================================================
   RESPONSIVE FIXES — MOBILE & TABLET (appended)
   ============================================================ */

/* ── Global safety: prevent horizontal scroll ────────────── */
@media (max-width: 1024px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
  img, svg, canvas, video { max-width: 100%; height: auto; }
  .container { padding-left: 28px; padding-right: 28px; }

  /* Soften ambient elements that overflow */
  .impacto__ring--1 { width: 320px; height: 320px; }
  .impacto__ring--2 { width: 480px; height: 480px; }
  .impacto__ring--3 { width: 640px; height: 640px; }
  .cring--1 { width: 240px; height: 240px; }
  .cring--2 { width: 440px; height: 440px; }
  .cring--3 { width: 640px; height: 640px; }

  /* Sol-float decorative badges out of the way */
  .sol-float--1 { top: 6%; left: 2%; }
  .sol-float--2 { top: 36%; right: 2%; }
  .sol-float--3 { bottom: 6%; left: 4%; }
}

/* ── Tablet (≤900px) ─────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --nav-h: 76px; }

  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 20px); padding-bottom: 60px; }
  .hero__content { padding-top: 30px; padding-bottom: 30px; }
  .hero__title { font-size: clamp(2.2rem, 7vw, 3.6rem); }
  .hero__sub { font-size: clamp(0.98rem, 2vw, 1.1rem); }
  .hero__terminal { max-width: 100%; }

  .stats__inner { flex-wrap: wrap; justify-content: center; gap: 28px; }

  .impacto__metrics { gap: 20px; }
  .impacto__visual { order: 2; }

  .contacto__mini-stats { gap: 18px; }

  .footer__inner { gap: 28px; padding-top: 40px; padding-bottom: 40px; }
}

/* ── Mobile (≤768px) ─────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --nav-h: 68px; }

  html, body { overflow-x: hidden; }
  .container { padding-left: 20px; padding-right: 20px; }

  /* ── Nav / Mobile menu ── */
  .nav__inner { padding: 0 20px; height: var(--nav-h); }
  .nav__logo img { max-height: 36px; width: auto; }
  .mobile-menu { top: var(--nav-h); }
  .mobile-menu a { padding: 14px 0; font-size: 1rem; }

  /* ── Buttons ── */
  .btn { padding: 12px 22px; font-size: 0.85rem; }

  /* ── Hero ── */
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 16px); padding-bottom: 50px; }
  .hero__content { padding-top: 16px; padding-bottom: 24px; }
  .hero__badge { font-size: 0.68rem; padding: 6px 14px; margin-bottom: 24px; }
  .hero__title { font-size: clamp(2rem, 9vw, 3rem); margin-bottom: 20px; line-height: 1.1; }
  .hero__sub { font-size: 1rem; margin-bottom: 28px; max-width: 100%; }
  .hero__actions { gap: 12px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero__glow--a, .hero__glow--b, .hero__glow--c { filter: blur(80px); opacity: 0.7; }
  .hero__glow--a { width: 320px; height: 320px; }
  .hero__glow--b { width: 280px; height: 280px; }
  .hero__corner { width: 24px; height: 24px; }
  .hero__corner--tl, .hero__corner--tr { top: 12px; }
  .hero__corner--bl, .hero__corner--br { bottom: 12px; }
  .hero__corner--tl, .hero__corner--bl { left: 12px; }
  .hero__corner--tr, .hero__corner--br { right: 12px; }
  .hero__terminal { margin-top: 32px; padding: 0; }
  .hero__terminal-body { font-size: 0.72rem; padding: 14px; line-height: 1.7; overflow-x: auto; }
  .hero__terminal-body p { white-space: nowrap; }

  /* ── Stats ── */
  .stats { padding: 48px 0; }
  .stats__inner { gap: 22px; flex-wrap: wrap; justify-content: center; }
  .stat-item { flex: 1 1 40%; min-width: 130px; text-align: center; }
  .stat-item strong { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .stat-sep { display: none; }

  /* ── Ticker ── */
  .ticker { padding: 14px 0; }
  .ticker__track span { font-size: 0.78rem; }

  /* ── Soluciones ── */
  .soluciones { padding: 70px 0; }
  .sol-grid { grid-template-columns: 1fr; gap: 18px; }
  .sol-card { padding: 24px; }
  .sol-card h3 { font-size: 1.2rem; }
  .sol-float { display: none; } /* badges decorativos demasiado intrusivos */
  .sol-ring { display: none; }
  .sol-orb { filter: blur(70px); opacity: 0.55; }

  /* ── Proceso ── */
  .proceso { padding: 70px 0; }
  .proceso-steps { gap: 0; }
  .paso { flex-direction: row; gap: 18px; padding: 16px 0; align-items: flex-start; }
  .paso__num { font-size: 1.8rem; min-width: 56px; }
  .paso__content h3 { font-size: 1.15rem; }
  .paso-connector { width: 1.5px; height: 24px; margin-left: 28px; }

  /* ── Impacto ── */
  .impacto { padding: 70px 0; }
  .impacto__inner { grid-template-columns: 1fr; gap: 36px; }
  .impacto__text h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .impacto__metrics { grid-template-columns: 1fr 1fr; gap: 16px; }
  .impacto__metric { gap: 12px; }
  .impacto__metric strong { font-size: 1.4rem; }
  .impacto__metric-ring { width: 56px; height: 56px; flex-shrink: 0; }
  .impacto__visual { padding: 20px; }
  .dashboard { height: 160px; gap: 10px; }
  .data-feed { font-size: 0.72rem; padding: 12px; }

  /* ── Testimonios ── */
  .testimonios { padding: 70px 0; }
  .testi-grid { grid-template-columns: 1fr; gap: 18px; }
  .testi-card { padding: 24px; }
  .testi-card--featured { transform: none; } /* desactivar escala 3D */
  .testi-card p { font-size: 0.95rem; }

  /* ── Contacto ── */
  .contacto { padding: 70px 0; }
  .contacto__inner { grid-template-columns: 1fr; gap: 36px; }
  .contacto__text h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .contacto__info { flex-direction: column; gap: 8px; align-items: flex-start; }
  .contacto__mini-stats { gap: 16px; }
  .mini-stat strong { font-size: 1.15rem; }
  .contacto__form { padding: 28px 22px; }
  .contacto__form input,
  .contacto__form textarea { width: 100%; font-size: 16px; } /* 16px evita zoom iOS */
  .form-group { width: 100%; }

  /* ── Footer ── */
  .footer__inner { grid-template-columns: 1fr; gap: 28px; text-align: left; padding: 40px 20px; }
  .footer__brand p { max-width: 100%; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; padding: 18px 20px; font-size: 0.78rem; }
  .footer__logo-wrap span { font-size: 1.5rem; }

  /* ── Simplificar animaciones 3D pesadas ── */
  .btn--primary:hover { transform: none; }
  .sol-card:hover { transform: translateY(-3px); }
  .impacto__ring--1 { width: 240px; height: 240px; }
  .impacto__ring--2 { width: 360px; height: 360px; }
  .impacto__ring--3 { width: 480px; height: 480px; }
  .cring--1 { width: 180px; height: 180px; }
  .cring--2 { width: 320px; height: 320px; }
  .cring--3 { width: 460px; height: 460px; }
}

/* ── Very small (≤480px) ─────────────────────────────────── */
@media (max-width: 480px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .nav__inner { padding: 0 16px; }

  .hero__title { font-size: clamp(1.8rem, 9vw, 2.4rem); }
  .hero__sub { font-size: 0.95rem; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }
  .hero__badge { font-size: 0.62rem; letter-spacing: 0.04em; }
  .hero__terminal-bar { padding: 8px 12px; }
  .hero__terminal-body { font-size: 0.65rem; padding: 12px; }

  .section-header { margin-bottom: 36px; }
  .section-header h2 { font-size: clamp(1.6rem, 7vw, 2rem); }
  .section-sub { font-size: 0.95rem; }

  .stat-item { flex: 1 1 100%; }
  .stat-item strong { font-size: 1.9rem; }

  .sol-card { padding: 20px; }
  .sol-card__icon { width: 44px; height: 44px; }
  .sol-card h3 { font-size: 1.08rem; }
  .sol-card p { font-size: 0.9rem; }

  .paso { gap: 14px; }
  .paso__num { font-size: 1.5rem; min-width: 44px; }
  .paso__content h3 { font-size: 1.05rem; }
  .paso__content p { font-size: 0.9rem; }

  .impacto__metrics { grid-template-columns: 1fr; }
  .impacto__metric { gap: 14px; }
  .impacto__visual { padding: 16px; }
  .dashboard { height: 140px; }

  .testi-card { padding: 20px; }
  .testi-card__avatar { width: 40px; height: 40px; font-size: 1rem; }

  .contacto__form { padding: 22px 18px; }
  .contacto__mini-stats { gap: 12px; }
  .mini-stat strong { font-size: 1rem; }
  .mini-stat span { font-size: 0.7rem; }

  .footer__logo-wrap span { font-size: 1.3rem; }
  .footer__bottom { font-size: 0.7rem; }

  /* Reducir más los efectos ambientales en pantallas chicas */
  .hero__glow--a { width: 240px; height: 240px; }
  .hero__glow--b { width: 220px; height: 220px; }
  .impacto__ring--1, .impacto__ring--2, .impacto__ring--3,
  .cring--1, .cring--2, .cring--3 { display: none; }
}

/* ── Touch / reduce-motion friendliness ──────────────────── */
@media (hover: none) and (pointer: coarse) {
  .sol-card:hover, .testi-card:hover, .btn--primary:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
