/* ════════════════════════════════════════════════════════════════
   EiDiamond 4.0 — Web Corporativa 3D  ·  V8.0 "Ecosistema Definitivo"
   Design System · Dark Luxe · Gold/Cyan · Custom Cursor · Bloom-Ready
   SRE Performance Patched: glass-blur 14px, GPU-safe, reduced-motion
   ════════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─────────────────────────────────────────────── */
:root {
  --bg-deep: #0A0A0F;
  --bg-surface: #111118;
  --bg-elevated: #1A1A2E;
  --accent-gold: #D4AF37;
  --accent-gold-light: #E8C547;
  --accent-gold-dim: rgba(212, 175, 55, 0.15);
  --accent-cyan: #4ECDC4;
  --accent-cyan-dim: rgba(78, 205, 196, 0.12);
  --accent-magenta: #FF6B9D;
  --text-primary: #F0F0F5;
  --text-secondary: rgba(255, 255, 255, 0.80);
  /* [V9.1] bright on glass */
  --text-dim: #555570;

  /* Glassmorphism — 14px max blur (SRE fix #6: GPU safety on mobile) */
  --glass-bg: rgba(255, 255, 255, 0.04);
  /* [V9.1] crystal glass */
  --glass-border: rgba(255, 255, 255, 0.08);
  /* [V9.1] white light edge */
  --glass-blur: 22px;
  /* [V9.1] premium depth blur */

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --section-px: clamp(1.25rem, 5vw, 3rem);
  --content-max: 1200px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: auto;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  background: rgba(212, 175, 55, 0.3);
  color: var(--text-primary);
}

/* ─── Custom Cursor — [V9.1] REMOVED — system cursor restored ───── */
/* cursor: none removed intentionally. Ring hidden via display:none below. */

.cursor-outer {
  display: none;
  /* [V9.1] ring removed — system cursor active */
}

/* cursor ring states removed [V9.1] */

.cursor-inner {
  display: none;
  /* [V9.1] dot removed — system cursor active */
}

/* ─── Loading Screen ────────────────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 1.2s var(--ease-out-expo), visibility 1.2s;
}

.loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  height: clamp(60px, 12vw, 100px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.4));
  animation: loaderPulse 2s ease-in-out infinite;
}

@keyframes loaderPulse {

  0%,
  100% {
    filter: drop-shadow(0 0 28px rgba(212, 175, 55, 0.3));
  }

  50% {
    filter: drop-shadow(0 0 60px rgba(212, 175, 55, 0.65));
  }
}

.loader-brand {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-cyan));
  /* [V10.2] text-fill:transparent OFF — color sólido previene texto negro */
  -webkit-text-fill-color: var(--accent-gold);
  letter-spacing: 0.06em;
}

.loader-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.loader-bar-track {
  width: min(240px, 60vw);
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 1px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-cyan));
  border-radius: 1px;
  transition: width 0.35s ease;
}

.loader-pct {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.15em;
}

/* ─── WebGL Canvas ──────────────────────────────────────────────── */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

/* ─── Navigation ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.1rem var(--section-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 15, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: background 0.5s, padding 0.5s var(--ease-out-expo), border-color 0.5s;
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.92);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom-color: rgba(212, 175, 55, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-logo-img {
  height: clamp(28px, 5vw, 44px);
  width: auto;
  object-fit: contain;
  transition: height 0.4s var(--ease-out-expo);
}

.nav.scrolled .nav-logo-img {
  height: clamp(22px, 4vw, 34px);
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  /* [V10.2] text-fill:transparent OFF — color sólido previene texto negro */
  -webkit-text-fill-color: var(--accent-gold);
}

/* ─── CTA Buttons ───────────────────────────────────────────────── */
.btn-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  border: none;
  border-radius: 100px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
  letter-spacing: 0.01em;
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-cyan), var(--accent-gold));
  z-index: -1;
  filter: blur(18px);
  opacity: 0.5;
  transition: opacity 0.4s;
}

.btn-glow:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 40px rgba(212, 175, 55, 0.35), 0 0 80px rgba(212, 175, 55, 0.1);
}

.btn-glow:hover::before {
  opacity: 1;
}

.btn-glow--large {
  padding: 1.1rem 3rem;
  font-size: 1.15rem;
}

.btn-glow--outline {
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 0.65rem 1.6rem;
  font-size: 0.85rem;
}

.btn-glow--outline::before {
  display: none;
}

.btn-glow--outline:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--accent-gold);
}

.btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease-out-expo);
}

.btn-glow:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-pulse {
  animation: ctaPulse 2.5s ease-in-out infinite;
}

@keyframes ctaPulse {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
  }

  50% {
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.5), 0 0 100px rgba(212, 175, 55, 0.12);
  }
}

/* CTA Micro-copy */
.cta-microcopy {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-align: center;
}

/* Metric highlight */
.metric-highlight {
  color: var(--accent-gold-light);
  font-weight: 600;
}

/* ─── Sections (Common) ─────────────────────────────────────────── */
.section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(6rem, 12vh, 10rem) var(--section-px);
}

/* ─── Landing Readability — Section Backdrops ───────────────────── */
/* Overlay mínimo: el 3D respira, el texto se lee                   */
.section:not(.section--hero) {
  background:
    linear-gradient(to bottom,
      transparent 0%,
      rgba(6, 6, 10, 0.60) 10%,
      rgba(6, 6, 10, 0.68) 50%,
      rgba(6, 6, 10, 0.60) 90%,
      transparent 100%);
}

.section-inner {
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* [V10.1] above WebGL z:0 */

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  border: 1px solid rgba(78, 205, 196, 0.15);
  margin-bottom: 1.8rem;
}

.section-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.85;
  margin-bottom: 2.8rem;
}

.section-punchline {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 3.5rem;
  text-align: center;
}

/* ─── Typography ────────────────────────────────────────────────── */
.heading-xl {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.6rem;
  color: var(--text-primary);
  /* [V10.1] sólido blanco premium — no depende de background-clip */
}

.heading-lg {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
}

.gradient-text {
  /* [V10.2] background-clip ELIMINADO — causaba interior negro en fondo oscuro */
  /* background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; */
  background: none;
  /* no recortar gradiente al texto */
  color: var(--accent-gold) !important;
  filter: drop-shadow(0 2px 12px rgba(212, 175, 55, 0.55)) drop-shadow(0 0 30px rgba(255, 100, 0, 0.25));
}

.gradient-text--gold {
  /* [V10.2] fill:transparent eliminado */
  background: none;
  color: var(--accent-gold-light) !important;
  -webkit-text-fill-color: var(--accent-gold-light) !important;
}

em {
  font-style: normal;
  color: var(--accent-gold);
}

/* ─── HERO Section ──────────────────────────────────────────────── */
.section--hero {
  min-height: 100vh;
  text-align: center;
  padding-top: clamp(8rem, 18vh, 14rem);
}

.section--hero .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: clamp(2rem, 5vh, 4rem);
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  /* [V10.2] background-clip ELIMINADO — causaba interior negro */
  /* background: linear-gradient(...); -webkit-text-fill-color: transparent; */
  background: none;
  color: var(--accent-gold) !important;
  -webkit-text-fill-color: var(--accent-gold) !important;
  /* forzar gold en WebKit */
  line-height: 1.1;
  filter: drop-shadow(0 2px 10px rgba(212, 175, 55, 0.65)) drop-shadow(0 0 25px rgba(255, 69, 0, 0.30));
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.35rem;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, transparent, var(--accent-gold-dim), transparent);
}

/* KICKER — Categoría corporativa */
.hero-kicker {
  font-family: var(--font-body);
  font-size: clamp(0.65rem, 1.2vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: clamp(1.8rem, 3.5vh, 2.8rem);
  opacity: 0.7;
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  color: var(--text-secondary);
  margin-bottom: 1.3rem;
  max-width: 740px;
  font-weight: 300;
  line-height: 1.75;
}

.hero-desc {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: var(--text-dim);
  line-height: 1.9;
  max-width: 580px;
  margin-bottom: 2.5rem;
}

/* DECLARACIÓN DE CATEGORÍA — cuerpo corporativo */
.hero-category-statement {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.85;
  max-width: 660px;
  margin-bottom: clamp(1.2rem, 2.5vh, 1.8rem);
  letter-spacing: 0.01em;
}

/* SENTENCIA FINAL — sola, en silencio */
.hero-hasta-hoy {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent-gold);
  -webkit-text-fill-color: var(--accent-gold);
  filter: drop-shadow(0 2px 16px rgba(212, 175, 55, 0.6)) drop-shadow(0 0 40px rgba(212, 175, 55, 0.2));
  margin-bottom: clamp(2.2rem, 4.5vh, 3.5rem);
  animation: hastaHoyBreath 3.5s ease-in-out infinite;
}

@keyframes hastaHoyBreath {

  0%,
  100% {
    filter: drop-shadow(0 2px 12px rgba(212, 175, 55, 0.45)) drop-shadow(0 0 30px rgba(212, 175, 55, 0.15));
  }

  50% {
    filter: drop-shadow(0 2px 20px rgba(212, 175, 55, 0.75)) drop-shadow(0 0 60px rgba(212, 175, 55, 0.30));
  }
}

.hero-cta {
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-main {
  height: clamp(100px, 22vw, 260px);
  width: auto;
  object-fit: contain;
  margin-bottom: clamp(1.5rem, 3vh, 3rem);
  filter: drop-shadow(0 0 60px rgba(212, 175, 55, 0.3)) drop-shadow(0 0 120px rgba(212, 175, 55, 0.1));
  animation: logoBreath 4s ease-in-out infinite;
}

@keyframes logoBreath {

  0%,
  100% {
    filter: drop-shadow(0 0 50px rgba(212, 175, 55, 0.25)) drop-shadow(0 0 100px rgba(212, 175, 55, 0.08));
  }

  50% {
    filter: drop-shadow(0 0 70px rgba(212, 175, 55, 0.4)) drop-shadow(0 0 140px rgba(212, 175, 55, 0.15));
  }
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.35;
  margin-top: auto;
}

.scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--accent-gold), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    transform: scaleY(0.4);
    opacity: 0.3;
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    opacity: 0.8;
    transform-origin: top;
  }
}

/* ─── Proof Strip — Marquee ─────────────────────────────────────── */
.proof-strip {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 1rem 0;
  border-top: 1px solid rgba(212, 175, 55, 0.06);
  border-bottom: 1px solid rgba(212, 175, 55, 0.06);
  background: rgba(10, 10, 15, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.proof-strip-track {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee 50s linear infinite;
  padding: 0 2rem;
}

.proof-strip-track p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.proof-strip-track strong {
  color: var(--accent-gold);
  font-weight: 600;
}

.proof-icon {
  color: var(--accent-gold);
  font-size: 0.55rem;
  opacity: 0.5;
  flex-shrink: 0;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ─── Features Grid (Adaptabilidad) ────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: clamp(1.8rem, 3vw, 2.5rem);
  transition: border-color 0.5s, box-shadow 0.5s;
}

.feature-card:hover {
  border-color: rgba(212, 175, 55, 0.30);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(212, 175, 55, 0.08);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  display: block;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 0.65rem;
}

.feature-text {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* ─── Tilt Cards (parallax on hover — JS sets --rx, --ry) ────────── */
.tilt-card {
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  will-change: transform;
}

.tilt-card:not(:hover) {
  transition: transform 0.7s var(--ease-out-expo), border-color 0.5s, box-shadow 0.5s;
}

/* ─── Tools List (Arsenal) ──────────────────────────────────────── */
.tools-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.tool-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: clamp(1.6rem, 2.5vw, 2.2rem);
  transition: border-color 0.5s;
}

.tool-card:hover {
  border-color: rgba(212, 175, 55, 0.18);
}

.tool-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 580px;
  justify-self: center;
}

.tool-header {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
}

.tool-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}

.tool-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-gold);
  line-height: 1.2;
}

.tool-tagline {
  font-size: 0.82rem;
  color: var(--accent-cyan);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 0.15rem;
}

.tool-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* ─── Academia Section ──────────────────────────────────────────── */
.academia-hero-text {
  text-align: center;
  margin: 2rem 0 3rem;
}

.big-stat {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, var(--accent-gold-light), var(--accent-gold));
  /* [V10.2] text-fill:transparent OFF — color sólido previene texto negro */
  -webkit-text-fill-color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.big-stat span {
  -webkit-text-fill-color: #FFFFFF !important;
  color: #FFFFFF !important;
  font-weight: 800;
  font-size: 0.6em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9), 0 2px 12px rgba(0, 0, 0, 0.8);
}

.academia-hero-text p:last-child {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.academia-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.academia-feature {
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border-left: 2px solid var(--accent-gold-dim);
  transition: border-color 0.4s;
}

.academia-feature:hover {
  border-left-color: var(--accent-gold);
}

.academia-feature h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--accent-gold-light);
}

.academia-feature p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* ─── Endgame Section ───────────────────────────────────────────── */
.section--endgame {
  text-align: center;
}

.section--endgame .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section--endgame .section-lead {
  text-align: center;
}

.endgame-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  width: 100%;
}

.endgame-feature {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: clamp(1.8rem, 3vw, 2.5rem);
  text-align: center;
  transition: border-color 0.5s;
}

.endgame-feature:hover {
  border-color: rgba(212, 175, 55, 0.22);
}

.endgame-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.endgame-feature h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--accent-gold);
}

.endgame-feature p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ─── Final CTA ─────────────────────────────────────────────────── */
.final-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.final-cta-sub {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: center;
  margin-top: 0.5rem;
}

/* ─── FAQ Section ───────────────────────────────────────────────── */
.section--faq {
  min-height: auto;
  padding-bottom: clamp(6rem, 12vh, 10rem);
}

.section--faq .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq-list {
  width: 100%;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.faq-item {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.4s;
}

.faq-item[open] {
  border-color: rgba(212, 175, 55, 0.2);
}

.faq-item:hover {
  border-color: rgba(212, 175, 55, 0.12);
}

/* Remove default details marker */
.faq-item>summary {
  list-style: none;
}

.faq-item>summary::-webkit-details-marker {
  display: none;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.8rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  user-select: none;
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--accent-gold);
}

.faq-item[open] .faq-question {
  color: var(--accent-gold);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent-gold);
  transition: transform 0.45s var(--ease-out-expo);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

/* Animated expand via CSS grid trick (no JS height calculation) */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out-expo);
}

.faq-item[open] .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-inner p {
  padding: 0 1.8rem 1.4rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ─── Footer ─────────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  padding: 3rem var(--section-px);
  border-top: 1px solid rgba(212, 175, 55, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.footer-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  opacity: 0.5;
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.12));
  transition: opacity 0.4s;
}

.footer-logo:hover {
  opacity: 0.8;
}

.footer p {
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

.footer span {
  color: var(--accent-gold);
}

/* ─── Reveal Defaults (GSAP activates) ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(50px);
}

.reveal-child {
  opacity: 0;
  transform: translateY(40px);
}

/* ─── Ecosystem Section ─────────────────────────────────────────── */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.eco-module {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.eco-module:hover {
  border-color: rgba(212, 175, 55, 0.25);
  box-shadow: 0 8px 40px rgba(212, 175, 55, 0.08);
}

.eco-module-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.eco-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.eco-module-header h3 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.eco-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.eco-features li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.eco-features li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.eco-check {
  color: var(--accent-gold);
  font-size: 0.55rem;
  flex-shrink: 0;
  margin-top: 0.42rem;
}

.ecosystem-closing {
  text-align: center;
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.ecosystem-closing p:first-child {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  font-style: italic;
  background: rgba(4, 4, 8, 0.55);
  padding: 0.4rem 1.4rem;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: inline-block;
}

.ecosystem-closing p.gradient-text {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--accent-gold);
  -webkit-text-fill-color: var(--accent-gold) !important;
  background: rgba(4, 4, 8, 0.9) !important;
  background-clip: unset !important;
  -webkit-background-clip: unset !important;
  padding: 0.55rem 2.2rem;
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-shadow: 0 0 24px rgba(212, 175, 55, 0.5), 0 2px 10px rgba(0, 0, 0, 0.9);
  display: inline-block;
}

@media (max-width: 768px) {
  .ecosystem-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Rocket Silhouette ─────────────────────────────────────────── */
.rocket-silhouette {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(240px, 26vw);
  height: min(600px, 68vh);
  pointer-events: none;
  z-index: 3;
  opacity: 0.85;
}

.rocket-silhouette svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3)) drop-shadow(0 0 2px rgba(212, 175, 55, 0.15));
}

/* ─── Contact Form ──────────────────────────────────────────────── */

.section--contact {
  text-align: left;
}

.section--contact .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-form {
  max-width: 860px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

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

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.95rem 1.3rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  width: 100%;
  transition: border-color 0.3s, box-shadow 0.3s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.08);
}

.form-group select {
  cursor: pointer;
  color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 145px;
  line-height: 1.75;
}

.form-submit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

/* Form success state */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
}

.form-success.visible {
  display: block;
}

.form-success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.form-success h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1024px) {

  .features-grid,
  .academia-features,
  .endgame-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --glass-blur: 10px;
    --glass-bg: rgba(255, 255, 255, 0.07);
  }

  /* [V9.1] mobile readability */

  .features-grid,
  .tools-list,
  .academia-features,
  .endgame-features {
    grid-template-columns: 1fr;
  }

  .tool-card:last-child:nth-child(odd) {
    max-width: none;
  }

  .section {
    padding-top: clamp(5rem, 10vh, 8rem);
    padding-bottom: clamp(4rem, 8vh, 6rem);
  }

  .section--hero {
    padding-top: clamp(7rem, 14vh, 10rem);
  }

  .hero-logo-main {
    height: clamp(70px, 18vw, 140px);
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.2rem;
  }

  .stat-divider {
    width: 50px;
    height: 1px;
  }

  .heading-xl br,
  .heading-lg br,
  .hero-desc br,
  .hero-subtitle br {
    display: none;
  }

  .scroll-indicator {
    display: none;
  }

  #webgl-canvas {
    opacity: 0.55;
  }

  /* Disable tilt on touch */
  .tilt-card {
    transform: none !important;
  }

  /* Slow marquee on mobile */
  .proof-strip-track {
    animation-duration: 70s;
  }

  /* Hide cursor elements on mobile */
  .cursor-outer,
  .cursor-inner {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .btn-glow {
    padding: 0.75rem 1.6rem;
    font-size: 0.85rem;
  }

  .btn-glow--large {
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
  }

  .faq-question {
    padding: 1.1rem 1.2rem;
    font-size: 0.9rem;
  }

  .faq-answer-inner p {
    padding: 0 1.2rem 1.1rem;
  }
}

/* ─── Reduced Motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  .scroll-line,
  .btn-pulse,
  .loader-logo,
  .proof-strip-track,
  .hero-logo-main {
    animation: none;
  }

  .reveal,
  .reveal-child {
    opacity: 1;
    transform: none;
  }

  .feature-card:hover,
  .tool-card:hover,
  .endgame-feature:hover,
  .tilt-card {
    transform: none !important;
  }

  .faq-answer,
  .faq-chevron {
    transition: none;
  }
}

/* ─── [V9.2] Legibilidad sobre 3D — text-shadow sistem ──────────── */
/* Headings y elementos hero: sombra profunda multicapa */
.heading-xl,
.gradient-text,
.gradient-text--gold,
h1,
h2,
h3 {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 1), 0 1px 3px rgba(0, 0, 0, 1), 0 8px 40px rgba(0, 0, 0, 0.9), 0 16px 64px rgba(0, 0, 0, 0.7);
  /* [V10.1] reforzado */
}

/* Body text en secciones flotantes */
.hero-subtitle,
.hero-desc,
.hero-kicker,
.hero-category-statement,
.section-lead,
.section-tag,
.feature-text,
.tool-desc,
.academia-feature p,
.endgame-feature p,
.stat-label,
.hero-micro,
.nav-logo-text {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95), 0 2px 16px rgba(0, 0, 0, 0.75);
}

/* Hero category statement — sombra reforzada para legibilidad sobre partículas */
.hero-category-statement {
  text-shadow:
    0 0 18px rgba(0, 0, 0, 1),
    0 1px 4px rgba(0, 0, 0, 1),
    0 2px 12px rgba(0, 0, 0, 1),
    0 4px 28px rgba(0, 0, 0, 0.98),
    0 8px 48px rgba(0, 0, 0, 0.95),
    0 16px 64px rgba(0, 0, 0, 0.9) !important;
}

/* Hasta hoy — glow + legibilidad */
.hero-hasta-hoy {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 1), 0 1px 4px rgba(0, 0, 0, 1), 0 8px 40px rgba(0, 0, 0, 0.9);
}

/* stat-numbers: sombra sutil (son grandes, necesitan menos) */
.stat-number {
  /* text-shadow no actúa sobre text-fill:transparent — ya resuelto en V10.2 */
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.85), 0 1px 4px rgba(0, 0, 0, 0.9);
  -webkit-text-fill-color: var(--accent-gold) !important;
  color: var(--accent-gold) !important;
}