:root {
  --black:    #060912;
  --deep:     #0B1120;
  --surface:  #111827;
  --card:     #161f30;
  --border:   rgba(108,99,255,0.15);
  --violet:   rgba(74,63,166);
  --violet2:  #8B85FF;
  --cyan:     rgba(0,182,190);
  --cyan2:    #38E8FF;
  --white:    #F0F4FF;
  --muted:    #B8C4D4;
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  max-width: 100vw;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* ── CANVAS ESTELAR ──────────────────────────────── */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── NAV ─────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 5vw;
  background: rgba(6,9,18,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

.logo-text span { color: var(--violet); }

.logo-img {
  height: 55px;
  width: auto;
  display: block;
}

footer .logo-img { height: 34px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  color: #C8D4E8;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  cursor: pointer;
}
.nav-links a:hover { color: var(--white); }

.nav-login {
  color: var(--muted) !important;
  font-size: 0.92rem !important;
}

.btn-nav {
  background: var(--violet);
  color: #fff !important;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  transition: background 0.2s, transform 0.15s !important;
}
.btn-nav:hover {
  background: var(--violet2) !important;
  transform: translateY(-1px);
}

/* ── MENU HAMBURGUESA (móvil) ─────────────────────── */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-burger { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ── HERO ────────────────────────────────────────── */
#hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 5vw 3rem;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero-inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero-content { text-align: left; }

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  width: 100%;
}

.constellation {
  width: 100%;
  max-width: 380px;
  height: auto;
  animation: heroFloat 7s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.const-node { transition: opacity 0.45s ease; }
.const-dim  { opacity: 0.22; }

.hero-slide-caption {
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}

.hero-slide-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--white);
  text-align: center;
  max-width: 360px;
  transition: opacity 0.25s ease;
}
.hero-slide-text.is-fading { opacity: 0; }

.hero-slide-dots {
  display: flex;
  gap: 0.55rem;
}

.dot {
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s, transform 0.2s;
}
.dot:hover::after { background: var(--violet2); }
.dot.active::after { background: var(--cyan); transform: scale(1.35); }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: 100px;
  padding: 0.4rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--violet2);
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.8s ease both;
  max-width: 100%;
}


h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  animation: fadeUp 0.8s 0.1s ease both;
}

h1 .line-violet { color: var(--violet); }
h1 .line-cyan   { color: var(--cyan); }

.hero-sub {
  max-width: 500px;
  color: #C8D4E8;
  font-size: 1.02rem;
  font-weight: 400;
  margin: 0 0 1.6rem;
  animation: fadeUp 0.8s 0.2s ease both;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  animation: fadeUp 0.8s 0.3s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--violet);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 24px rgba(108,99,255,0.25);
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--violet2);
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(108,99,255,0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  border: 1px solid rgba(240,244,255,0.15);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.btn-secondary:hover {
  border-color: var(--violet);
  background: rgba(108,99,255,0.05);
}

.hero-orb {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse at center,
    rgba(108,99,255,0.08) 0%,
    rgba(0,212,255,0.04) 40%,
    transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.hero-badges {
  display: flex;
  gap: 0.65rem;
  justify-content: flex-start;
  margin-top: 1.75rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.8s 0.5s ease both;
  flex-wrap: wrap;
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.4rem 0.85rem;
  font-size: 0.76rem;
  color: var(--muted);
}
.hero-badge svg { color: var(--cyan); flex-shrink: 0; }

/* ── SECCIONES COMUNES ────────────────────────────── */
section {
  position: relative;
  z-index: 1;
  padding: 4.5rem 5vw;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

section > .section-inner { width: 100%; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--white);
}

.section-title-sm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  font-weight: 400;
  line-height: 1.7;
}

/* ── CREDENCIALES ────────────────────────────────── */
.credenciales-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.credencial-card {
  background: var(--card);
  padding: 2rem 1.6rem 1.8rem;
  text-align: center;
  transition: background 0.3s;
}
.credencial-card:hover { background: var(--surface); }

.credencial-icon {
  width: 96px; height: 96px;
  margin: 0 auto 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.credencial-card:hover .credencial-icon { transform: translateY(-4px); }

.credencial-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.credencial-card p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

/* ── PRODUCTO ────────────────────────────────────── */
.producto-hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.producto-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(108,99,255,0.06), transparent 70%);
  border-radius: 50%;
}

.producto-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 100px;
  padding: 0.3rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.producto-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.producto-desc {
  color: #C8D4E8;
  font-weight: 400;
  margin-bottom: 2rem;
  font-size: 0.98rem;
  line-height: 1.75;
}

.btn-lyra {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: #fff;
  padding: 1rem 2.2rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 0 30px rgba(108,99,255,0.3);
  cursor: pointer;
}
.btn-lyra:hover { opacity: 0.9; transform: translateY(-2px); }

.producto-screen {
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.screen-bar {
  background: var(--surface);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.screen-dot { width: 8px; height: 8px; border-radius: 50%; }

.screen-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.screen-row { display: flex; gap: 0.7rem; }

.screen-block {
  background: var(--card);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  flex: 1;
}

.screen-block-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
  letter-spacing: 0.08em;
}

.screen-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
}

.screen-bar-chart {
  background: var(--card);
  border-radius: 8px;
  padding: 0.8rem 1rem;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 50px;
}

.bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--violet);
  opacity: 0.7;
}
.bar.hi { background: var(--cyan); opacity: 1; }

/* ── MODULOS ─────────────────────────────────────── */
.modulos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 1.75rem;
}

.modulo-card {
  background: var(--card);
  padding: 1.1rem 1.1rem;
  transition: background 0.3s;
  position: relative;
}

.modulo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.modulo-card:hover { background: var(--surface); }
.modulo-card:hover::before { transform: scaleX(1); }

.modulo-card-icon {
  width: 46px; height: 46px;
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.modulo-card-icon svg { width: 21px; height: 21px; }

/* Formas orgánicas tipo "blob" — a mano, sin degradados de IA */
.blob-a { background: rgba(108,99,255,0.16); color: var(--violet2); border-radius: 63% 37% 54% 46% / 43% 37% 63% 57%; transform: rotate(-3deg); }
.blob-b { background: rgba(0,212,255,0.14);  color: var(--cyan);    border-radius: 37% 63% 70% 30% / 30% 62% 38% 70%; transform: rotate(4deg); }
.blob-c { background: rgba(139,133,255,0.16); color: var(--violet2); border-radius: 58% 42% 38% 62% / 43% 41% 59% 57%; transform: rotate(2deg); }
.blob-d { background: rgba(56,232,255,0.14); color: var(--cyan2);   border-radius: 40% 60% 65% 35% / 60% 45% 55% 40%; transform: rotate(-4deg); }
.modulo-card:hover .blob-a { transform: rotate(-3deg) scale(1.08); }
.modulo-card:hover .blob-b { transform: rotate(4deg) scale(1.08); }
.modulo-card:hover .blob-c { transform: rotate(2deg) scale(1.08); }
.modulo-card:hover .blob-d { transform: rotate(-4deg) scale(1.08); }

.modulo-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
  color: var(--white);
}

.modulo-card p {
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.45;
}

/* ── POR QUE LYRA ────────────────────────────────── */
.porque-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}

.porque-visual { position: relative; }

.codigo-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--muted);
  position: relative;
  overflow: hidden;
}

.codigo-block::before {
  content: '● ● ●';
  display: block;
  color: rgba(255,255,255,0.2);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  margin-bottom: 1rem;
}

.c-purple { color: var(--violet2); }
.c-cyan   { color: var(--cyan); }
.c-green  { color: #4ADE80; }
.c-yellow { color: #FDE68A; }
.c-white  { color: var(--white); }

.porque-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.porque-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.porque-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--violet);
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.porque-item h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--white);
}

.porque-item p {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.7;
}

/* ── PROCESO ─────────────────────────────────────── */
.proceso-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 2rem;
}

.step {
  background: var(--card);
  padding: 2.5rem 1.5rem;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--violet);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--white);
}

.step p {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.7;
}

/* ── PREGUNTAS FRECUENTES ─────────────────────────── */
.faq-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.98rem;
  text-align: left;
  padding: 1.2rem 1.5rem;
  cursor: pointer;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--cyan); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer { max-height: 320px; }

.faq-answer p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  padding: 0 1.5rem 1.3rem;
}

/* ── SERVICIOS (secundario) ───────────────────────── */
#servicios { padding: 4.5rem 5vw; }

.servicios-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.servicio-pill {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}
.servicio-pill:hover { border-color: var(--violet); color: var(--white); }

/* ── CONTACTO ────────────────────────────────────── */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  margin-top: 2rem;
}

.contacto-info h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.contacto-info p {
  color: #C8D4E8;
  font-weight: 400;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.contacto-items { display: flex; flex-direction: column; gap: 1rem; }

.contacto-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.contacto-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.contacto-link:hover { color: var(--white); }

.c-icon {
  width: 36px; height: 36px;
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}

.form-contacto {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.82rem;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--violet); }

.form-group select option { background: var(--surface); }
.form-group textarea { resize: vertical; min-height: 64px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.btn-submit {
  background: var(--violet);
  color: #fff;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  width: 100%;
}
.btn-submit:hover { background: var(--violet2); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.7; cursor: default; transform: none; }
.btn-submit.is-success { background: #4ADE80; color: #062012; }
.btn-submit.is-error { background: #EF4444; }

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  min-height: 1.2em;
}
.form-note.is-error { color: #FCA5A5; }

/* ── FOOTER ──────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 3rem 5vw;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-copy { color: var(--muted); font-size: 0.85rem; }

.footer-links { display: flex; gap: 2rem; list-style: none; }

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

/* ── ANIMACIONES ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Aparición en cascada: cada tarjeta entra un poco después que la anterior */
.stagger-1  { transition-delay: 0.00s; }
.stagger-2  { transition-delay: 0.06s; }
.stagger-3  { transition-delay: 0.12s; }
.stagger-4  { transition-delay: 0.18s; }
.stagger-5  { transition-delay: 0.24s; }
.stagger-6  { transition-delay: 0.30s; }
.stagger-7  { transition-delay: 0.36s; }
.stagger-8  { transition-delay: 0.42s; }
.stagger-9  { transition-delay: 0.48s; }
.stagger-10 { transition-delay: 0.54s; }
.stagger-11 { transition-delay: 0.60s; }
.stagger-12 { transition-delay: 0.66s; }

/* ── DIVIDER ─────────────────────────────────────── */
.divider {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(108,99,255,0.65), rgba(0,212,255,0.65), transparent);
  box-shadow: 0 0 12px rgba(0,212,255,0.25);
  flex-shrink: 0;
}

/* ── ACCESIBILIDAD: MOVIMIENTO REDUCIDO ───────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #starfield { display: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ── BOTON VOLVER ARRIBA ───────────────────────────── */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,0.4), 0 0 22px rgba(108,99,255,0.35);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--violet2); }

@media (max-width: 600px) {
  .back-to-top { right: 1.1rem; bottom: 1.1rem; width: 44px; height: 44px; }
}

/* ── FOCO VISIBLE (ACCESIBILIDAD) ─────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(6,9,18,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 5vw 1.5rem;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.9rem 0.25rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links .btn-nav {
    margin-top: 0.75rem;
    text-align: center;
    border-bottom: none;
  }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-content { text-align: center; }
  .hero-ctas, .hero-badges { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-visual { order: -1; }
  .constellation { max-width: 300px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { justify-content: center; }

  .porque-grid { grid-template-columns: 1fr; }
  .producto-hero { grid-template-columns: 1fr; padding: 1.5rem; }
  .proceso-steps { grid-template-columns: 1fr 1fr; }
  .modulos-grid { grid-template-columns: repeat(2, 1fr); }
  .credenciales-grid { grid-template-columns: 1fr 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* Evita el zoom automático de iOS al enfocar un campo (mínimo 16px) */
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px; }

  /* El mini-dashboard del hero es apretado en pantallas angostas */
  .screen-row { flex-wrap: wrap; }
  .screen-row .screen-block { min-width: 45%; }
}

@media (max-width: 600px) {
  .proceso-steps { grid-template-columns: 1fr; }
  .hero-badges { gap: 0.5rem; }
  .constellation { max-width: 250px; }
  .modulos-grid { grid-template-columns: 1fr; }
  .credenciales-grid { grid-template-columns: 1fr; }
  .screen-row .screen-block { min-width: 100%; }
  /* En pantallas pequeñas el contenido suele superar el alto disponible:
     se ablanda el snap para que no "atrape" el scroll dentro de una sección. */
  html { scroll-snap-type: y proximity; }
  section { min-height: auto; }
}
