/* ============================================================
   ACADEMIA CREATIVA - Dark Mode Premium Design System
   Aesthetic: Cybersecurity / Intelligence / Cinematography
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;700&family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Core Dark Palette */
  --bg-primary: #05080f;
  --bg-secondary: #090d14;
  --bg-tertiary: #141a2a;
  --bg-card: #161d2f;
  --bg-card-hover: #1a2238;
  --bg-elevated: #1e2640;

  /* Accent Colors */
  --accent-cyan: #00e5ff;
  --accent-cyan-dim: #00b8d4;
  --accent-cyan-glow: rgba(0, 229, 255, 0.25);
  --accent-cyan-subtle: rgba(0, 229, 255, 0.08);
  --accent-emerald: #00e676;
  --accent-emerald-dim: #00c853;
  --accent-emerald-glow: rgba(0, 230, 118, 0.25);

  /* Text Colors */
  --text-primary: #eaf0f6;
  --text-secondary: #8899aa;
  --text-tertiary: #5a6b7c;
  --text-accent: var(--accent-cyan);
  --text-white: #ffffff;

  /* Glassmorphism */
  --glass-bg: rgba(10, 14, 23, 0.72);
  --glass-border: rgba(0, 229, 255, 0.08);
  --glass-blur: 20px;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0a0e17 0%, #0d1526 40%, #0a1628 100%);
  --gradient-card: linear-gradient(135deg, rgba(22, 29, 47, 0.9) 0%, rgba(20, 26, 42, 0.9) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-emerald) 100%);
  --gradient-text: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-emerald) 100%);
  --gradient-glow: linear-gradient(135deg, var(--accent-cyan-glow) 0%, var(--accent-emerald-glow) 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow-cyan: 0 0 30px rgba(0, 229, 255, 0.15);
  --shadow-glow-emerald: 0 0 30px rgba(0, 230, 118, 0.15);

  /* Borders */
  --border-subtle: 1px solid rgba(255, 255, 255, 0.04);
  --border-accent: 1px solid rgba(0, 229, 255, 0.15);
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;

  /* Typography Scale */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-handwriting: 'Caveat', cursive;
  --fs-hero: clamp(2.5rem, 5vw, 4.2rem);
  --fs-h2: clamp(1.8rem, 3.5vw, 2.8rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.5rem);
  --fs-body: 1rem;
  --fs-body-lg: 1.125rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;

  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-emerald);
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-padding {
  padding: var(--space-4xl) 0;
}

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

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stagger delays for children */
.stagger-1 { transition-delay: 0.1s !important; }
.stagger-2 { transition-delay: 0.25s !important; }
.stagger-3 { transition-delay: 0.4s !important; }
.stagger-4 { transition-delay: 0.55s !important; }

/* --- Animated Background Particles --- */
.particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* ============================================================
   HEADER - Glassmorphism Sticky Nav
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--transition-smooth);
}

.site-header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-white);
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-accent);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--bg-primary);
}

.logo span.logo-highlight {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.main-nav a {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  font-weight: 500;
  padding: var(--space-xs) 12px;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.main-nav a:hover {
  color: var(--text-white);
}

.main-nav a:hover::after {
  width: 60%;
}

.cta-header {
  background: transparent;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan) !important;
  font-size: var(--fs-small) !important;
  font-weight: 600 !important;
  padding: 10px 22px !important;
  border-radius: 50px !important;
  cursor: pointer;
  transition: all var(--transition-smooth) !important;
  position: relative;
  overflow: hidden;
}

.cta-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
  z-index: -1;
}

.cta-header:hover {
  color: var(--bg-primary) !important;
  border-color: transparent;
  box-shadow: var(--shadow-glow-cyan);
}

.cta-header:hover::before {
  opacity: 1;
}

.cta-header::after {
  display: none !important;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.25) saturate(0.7);
}

.animated-gradient-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 229, 255, 0.15), rgba(0, 230, 118, 0.15), rgba(10, 14, 23, 0.8));
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 23, 0.5) 0%,
    rgba(10, 14, 23, 0.7) 50%,
    rgba(10, 14, 23, 0.95) 90%,
    var(--bg-primary) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.hero-micro {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--accent-cyan-subtle);
  border: 1px solid rgba(0, 229, 255, 0.12);
  color: var(--accent-cyan);
  font-size: var(--fs-small);
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: var(--space-lg);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-micro .trophy {
  font-size: 1rem;
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.12;
  color: var(--text-white);
  margin-bottom: var(--space-lg);
  letter-spacing: -1.5px;
}

.hero-title .highlight {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
  max-width: 680px;
}

.hero-subtitle strong {
  color: var(--text-primary);
  font-weight: 600;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--gradient-accent);
  color: var(--bg-primary);
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: 700;
  padding: 16px 36px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.2px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.3), 0 0 80px rgba(0, 230, 118, 0.15);
  color: var(--bg-primary);
}

.btn-primary .arrow {
  transition: transform var(--transition-fast);
}

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

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.hero-stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-stat-label {
  font-size: var(--fs-small);
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* ============================================================
   BLOQUE 2 - Realidad del Mercado (Cards)
   ============================================================ */
.market-section {
  background: var(--bg-secondary);
  position: relative;
  z-index: 2;
}

.market-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan-glow), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: var(--space-sm);
  letter-spacing: -1px;
}

.section-header p {
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.market-card {
  background: var(--gradient-card);
  border: var(--border-subtle);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.market-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.market-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.12);
  box-shadow: var(--shadow-glow-cyan);
}

.market-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--border-radius-md);
  background: var(--accent-cyan-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  border: 1px solid rgba(0, 229, 255, 0.08);
}

.card-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: var(--space-sm);
}

.card-stat {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-xs);
  display: block;
}

.card-body {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   BLOQUE 3 - Propuesta Disruptiva (Z-Pattern)
   ============================================================ */
.advantages-section {
  position: relative;
  z-index: 2;
}

.advantages-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.advantages-header h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -1px;
}

.advantages-header .subtitle {
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
  margin-top: var(--space-sm);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.advantage-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  margin-bottom: var(--space-4xl);
}

.advantage-row.reverse {
  direction: rtl;
}

.advantage-row.reverse > * {
  direction: ltr;
}

.advantage-text {
  padding: var(--space-lg) 0;
}

.advantage-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--accent-cyan-subtle);
  color: var(--accent-cyan);
  font-size: var(--fs-micro);
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-md);
}

.advantage-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: var(--space-sm);
}

.advantage-desc {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: 1.8;
}

.advantage-stat-highlight {
  display: inline-block;
  color: var(--accent-emerald);
  font-weight: 700;
  font-size: var(--fs-body-lg);
  margin-top: var(--space-sm);
}

.advantage-image {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.advantage-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.advantage-image:hover img {
  transform: scale(1.03);
}

.advantage-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: var(--border-subtle);
  border-radius: var(--border-radius-lg);
  pointer-events: none;
}

/* ============================================================
   BLOQUE 4 - Segmentación (Interactive Panels)
   ============================================================ */
.segments-section {
  background: var(--bg-secondary);
  position: relative;
  z-index: 2;
}

.segments-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan-glow), transparent);
}

.segments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.segment-card {
  background: var(--bg-card);
  border: var(--border-subtle);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.segment-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform var(--transition-smooth);
  transform-origin: left;
}

.segment-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, 0.12);
  box-shadow: var(--shadow-glow-cyan);
  background: var(--bg-card-hover);
}

.segment-card:hover::before {
  transform: scaleX(1);
}

.segment-icon {
  font-size: 2.2rem;
  margin-bottom: var(--space-md);
  display: block;
}

.segment-name {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: var(--space-xs);
}

.segment-subtitle {
  font-size: var(--fs-micro);
  color: var(--accent-cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
}

.segment-desc {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  flex-grow: 1;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all var(--transition-smooth);
}

.segment-card:hover .segment-desc {
  max-height: 200px;
  opacity: 1;
  margin-bottom: var(--space-lg);
}

.segment-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--accent-cyan);
  font-size: var(--fs-small);
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-smooth);
}

.segment-card:hover .segment-cta {
  opacity: 1;
  transform: translateY(0);
}

.segment-cta .arrow {
  transition: transform var(--transition-fast);
}

.segment-card:hover .segment-cta .arrow {
  transform: translateX(4px);
}

/* ============================================================
   BLOQUE 5 - Trust / Fundador
   ============================================================ */
.trust-section {
  position: relative;
  z-index: 2;
}

.founder-block {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: var(--space-3xl);
  align-items: start;
  margin-bottom: var(--space-3xl);
}

.founder-image-wrapper {
  position: relative;
}

.founder-image {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
}

.founder-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05);
}

.founder-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: var(--border-accent);
  border-radius: var(--border-radius-lg);
  pointer-events: none;
}

.founder-glow {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--accent-cyan-glow) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
}

.founder-text h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: var(--space-md);
}

.founder-letter {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: 1.9;
}

.founder-letter-text {
  font-family: var(--font-handwriting);
  font-size: 1.45rem;
  line-height: 1.25;
  color: #eaf0f6;
  letter-spacing: 0.5px;
}

.founder-letter p {
  margin-bottom: 0.8rem;
}

.founder-letter strong {
  color: var(--text-primary);
}

.founder-cta-text {
  font-size: var(--fs-body-lg);
  font-weight: 600;
  color: var(--accent-cyan);
  font-style: italic;
  margin-top: var(--space-lg);
}

/* Testimonials Carousel */
.testimonials-subsection h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text-white);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonials-viewport {
  overflow: hidden;
  width: 100%;
}

.testimonials-track {
  display: flex;
  gap: var(--space-lg);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  min-width: calc(33.333% - (var(--space-lg) * 2 / 3));
  flex: 0 0 calc(33.333% - (var(--space-lg) * 2 / 3));
  background: var(--bg-card);
  border: var(--border-subtle);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-smooth);
}

.carousel-btn {
  background: var(--bg-elevated);
  border: var(--border-subtle);
  color: var(--accent-cyan);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
  z-index: 10;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: var(--accent-cyan-subtle);
  border-color: var(--accent-cyan);
  transform: scale(1.1);
}

.testimonial-card:hover {
  border-color: rgba(0, 229, 255, 0.1);
  transform: translateY(-2px);
}

.testimonial-quote {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
  font-style: italic;
  position: relative;
  padding-left: var(--space-md);
  border-left: 2px solid var(--accent-cyan);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--bg-primary);
  flex-shrink: 0;
}

.testimonial-info .name {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-info .role {
  font-size: var(--fs-micro);
  color: var(--text-tertiary);
}

/* ============================================================
   BLOQUE 6 - FAQs (Accordion)
   ============================================================ */
.faq-section {
  background: var(--bg-secondary);
  position: relative;
  z-index: 2;
}

.faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan-glow), transparent);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: var(--fs-body-lg);
  font-weight: 600;
  padding: var(--space-lg) 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  transition: color var(--transition-fast);
}

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

.faq-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--accent-cyan-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-smooth);
  font-size: 1.2rem;
  color: var(--accent-cyan);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--accent-cyan);
  color: var(--bg-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth), padding var(--transition-smooth);
}

.faq-item.active .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding: 0 0 var(--space-lg) 0;
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================================
   BLOQUE 7 - Formulario Interactivo
   ============================================================ */
.form-section {
  position: relative;
  z-index: 2;
}

.form-wrapper {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border: var(--border-subtle);
  border-radius: var(--border-radius-xl);
  padding: var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
}

.form-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.progress-step {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.progress-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--text-tertiary);
  transition: all var(--transition-smooth);
}

.progress-dot.active {
  background: var(--gradient-accent);
  border-color: transparent;
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow-cyan);
}

.progress-dot.completed {
  background: var(--accent-emerald);
  border-color: transparent;
  color: var(--bg-primary);
}

.progress-line {
  width: 60px;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  transition: all var(--transition-smooth);
}

.progress-line.active {
  background: var(--gradient-accent);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-step-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: var(--space-lg);
}

.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.radio-option,
.checkbox-option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: var(--fs-body);
  color: var(--text-secondary);
}

.radio-option:hover,
.checkbox-option:hover {
  border-color: rgba(0, 229, 255, 0.15);
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.radio-option.selected,
.checkbox-option.selected {
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.06);
  color: var(--text-white);
}

.radio-option input,
.checkbox-option input {
  display: none;
}

.custom-radio,
.custom-check {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.custom-check {
  border-radius: 6px;
}

.radio-option.selected .custom-radio {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan);
}

.radio-option.selected .custom-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-primary);
}

.checkbox-option.selected .custom-check {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan);
}

.checkbox-option.selected .custom-check::after {
  content: '✓';
  font-size: 12px;
  color: var(--bg-primary);
  font-weight: 900;
}

.option-emoji {
  font-size: 1.3rem;
}

.form-input-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-field label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-primary);
}

.form-field label .optional {
  color: var(--text-tertiary);
  font-weight: 400;
}

.form-field input {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius-md);
  padding: 14px var(--space-md);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  transition: all var(--transition-fast);
  outline: none;
}

.form-field input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--accent-cyan-subtle);
}

.form-field input::placeholder {
  color: var(--text-tertiary);
}

.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-xl);
  gap: var(--space-sm);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--gradient-accent);
  color: var(--bg-primary);
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: 700;
  padding: 16px 36px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.3), 0 0 80px rgba(0, 230, 118, 0.15);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: var(--space-3xl) 0 var(--space-lg) 0;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand .logo {
  margin-bottom: var(--space-md);
}

.footer-tagline {
  font-size: var(--fs-small);
  color: var(--text-tertiary);
  line-height: 1.7;
  max-width: 320px;
}

.footer-column h4 {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-links a {
  font-size: var(--fs-small);
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-seal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--accent-cyan-subtle);
  border: 1px solid rgba(0, 229, 255, 0.08);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--space-xl);
}

.seal-icon {
  font-size: 1.5rem;
}

.seal-text {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--accent-cyan);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-copyright {
  font-size: var(--fs-micro);
  color: var(--text-tertiary);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .market-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .advantage-row {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .advantage-row.reverse {
    direction: ltr;
  }

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

  .founder-block {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .founder-image-wrapper {
    max-width: 360px;
    margin: 0 auto;
  }

  .testimonial-card {
    min-width: calc(50% - (var(--space-lg) / 2));
    flex: 0 0 calc(50% - (var(--space-lg) / 2));
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  :root {
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 5rem;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--bg-tertiary);
    flex-direction: column;
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    gap: var(--space-xs);
    transition: right var(--transition-smooth);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav a {
    font-size: var(--fs-body);
    padding: var(--space-sm) var(--space-md);
    width: 100%;
  }

  .cta-header {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xs);
    text-align: center;
  }
  
  .hero-stat {
    text-align: center;
  }
  
  .hero-stat-number {
    font-size: 1.5rem;
  }

  .segments-grid {
    grid-template-columns: 1fr;
  }

  .segment-desc {
    max-height: none;
    opacity: 1;
    margin-bottom: var(--space-md);
  }

  .segment-cta {
    opacity: 1;
    transform: none;
  }

  .form-wrapper {
    padding: var(--space-xl);
  }

  .form-progress {
    gap: var(--space-xs);
  }

  .progress-line {
    width: 30px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: auto;
    padding-bottom: var(--space-3xl);
  }

  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
    line-height: 1.25;
  }
  
  .testimonial-card {
    min-width: 100%;
    flex: 0 0 100%;
  }

  .form-nav {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary,
  .btn-submit {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   ANIMATIONS & EFFECTS
   ============================================================ */

/* Subtle scan line effect */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 229, 255, 0.008) 2px,
    rgba(0, 229, 255, 0.008) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* ============================================================
   MICRO-INTERACTIONS & CINEMATIC EFFECTS
   ============================================================ */

/* Video Background */
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  filter: brightness(0.3) saturate(0.6);
  z-index: 0;
}

/* Magnetic Button */
.magnetic-button {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.magnetic-button.magnetic-active {
  transition: transform 0.1s linear; /* Fast response while active */
}

/* Typing Effect */
.typing-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  border-right: 2px solid var(--accent-cyan);
  animation: blinkCursor 0.75s step-end infinite;
}

@keyframes blinkCursor {
  from, to { border-color: transparent; }
  50% { border-color: var(--accent-cyan); }
}

/* Glow orb decorations */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.glow-orb.cyan {
  background: radial-gradient(circle, rgba(0, 229, 255, 0.12) 0%, transparent 70%);
}

.glow-orb.emerald {
  background: radial-gradient(circle, rgba(0, 230, 118, 0.1) 0%, transparent 70%);
}

/* Floating animation for decorative elements */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Counter animation */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Smooth loading transition */
.page-loaded .hero-content > * {
  animation: fadeSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.page-loaded .hero-micro { animation-delay: 0.1s; }
.page-loaded .hero-title { animation-delay: 0.25s; }
.page-loaded .hero-subtitle { animation-delay: 0.4s; }
.page-loaded .hero-content .btn-primary { animation-delay: 0.55s; }
.page-loaded .hero-stats { animation-delay: 0.7s; }

/* Mobile menu overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}








/* --- Lightbox Gallery Autoridad --- */
.founder-image-wrapper {
  cursor: pointer;
  position: relative;
  transition: transform var(--transition-smooth);
}
/* 1. Indicador sutil en la parte inferior */
.founder-image-wrapper::before {
  content: '🔍 Ver Galería Profesional';
  position: absolute;
  top: auto;
  bottom: 24px; /* Lo bajamos a tu recuadro rojo */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5, 8, 15, 0.85); /* Fondo oscuro sutil */
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan-subtle);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  opacity: 0;
  z-index: 10;
  transition: all var(--transition-smooth);
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.founder-image-wrapper:hover::before {
  opacity: 1;
  bottom: 30px; /* Pequeño efecto de elevación suave */
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}
.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 50px rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: none;
}
.lightbox-img.active {
  display: block;
  animation: fadeSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


/* 2. Botón "X" posicionado correctamente y con fondo */
.lightbox-close {
  position: absolute;
  top: 15px; 
  right: 15px;
  background: rgba(5, 8, 15, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.8;
  transition: all var(--transition-fast);
  z-index: 3010; /* Asegura que esté sobre la foto */
  line-height: 1;
}

.lightbox-close:hover {
  opacity: 1;
  background: rgba(0, 229, 255, 0.2);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}


.lightbox-nav {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.lightbox-btn {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 10px 24px;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: var(--fs-small);
}
.lightbox-btn:hover {
  background: var(--accent-cyan-subtle);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}