@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --bg-darkest: #07080d;
  --bg-dark: #0d0f17;
  --bg-card: rgba(20, 22, 36, 0.55);
  --bg-card-hover: rgba(28, 31, 50, 0.75);
  
  --primary-gold: #d4af37;
  --primary-gold-rgb: 212, 175, 55;
  --gold-glow: rgba(212, 175, 55, 0.15);
  --gold-gradient: linear-gradient(135deg, #f3e5ab 0%, #d4af37 50%, #aa7c11 100%);
  
  --emerald: #10b981;
  --emerald-rgb: 16, 185, 129;
  --emerald-glow: rgba(16, 185, 129, 0.15);
  
  --indigo: #6366f1;
  --indigo-rgb: 99, 102, 241;
  --indigo-glow: rgba(99, 102, 241, 0.15);

  --ruby: #f43f5e;
  --ruby-glow: rgba(244, 63, 94, 0.15);

  --text-primary: #f3f4f6;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  --border-light: rgba(255, 255, 255, 0.04);
  --border-gold: rgba(212, 175, 55, 0.15);
  --border-gold-hover: rgba(212, 175, 55, 0.4);
  
  /* Fonts */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout */
  --max-width: 1200px;
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --border-radius-lg: 24px;
  
  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-darkest);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  line-height: 1.6;
}

/* Background Gradients & Glows */
.bg-glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-glow-1 {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  filter: blur(80px);
}

.bg-glow-2 {
  position: absolute;
  bottom: 10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--emerald-glow) 0%, transparent 70%);
  filter: blur(100px);
}

.bg-glow-3 {
  position: absolute;
  top: 40%;
  left: 30%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, var(--indigo-glow) 0%, transparent 70%);
  filter: blur(90px);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

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

/* Reusable Components */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 1rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gold-gradient);
  color: var(--bg-darkest);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  padding: 32px;
  transition: var(--transition-medium);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.05);
}

/* Header Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(7, 8, 13, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--primary-gold);
}

.logo svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--primary-gold);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
  padding: 8px 0;
}

.nav-links a:hover {
  color: var(--primary-gold);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gold);
  transition: var(--transition-fast);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 3; /* Asegura que el texto esté sobre el eneagrama en caso de solapamiento */
}

.hero-tag {
  font-family: var(--font-title);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-gold);
  background: rgba(212, 175, 55, 0.1);
  padding: 6px 16px;
  border-radius: 30px;
  width: fit-content;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.hero h1 {
  font-size: 3.8rem;
  line-height: 1.1;
  font-weight: 800;
}

.hero-subtitle {
  font-family: var(--font-title);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--primary-gold);
  text-shadow: 0 0 10px rgba(var(--primary-gold-rgb), 0.15);
  margin-top: 8px;
  letter-spacing: 0.5px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

/* Visual element: Hero video animation */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-video-wrap {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(circle, rgba(20, 22, 36, 0.85) 0%, rgba(7, 8, 13, 0.95) 100%);
  border: 2px solid rgba(212, 175, 55, 0.28);
  box-shadow:
    0 0 50px rgba(212, 175, 55, 0.12),
    inset 0 0 40px rgba(0, 0, 0, 0.35);
  animation: float 6s ease-in-out infinite;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Hero Enneagram Background Visual (legacy SVG) */
.hero-enneagram-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 520px;
  height: 520px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: enneagram-breathe 8s ease-in-out infinite;
}

.hero-enneagram-bg svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Outer Concentric Circles */
.hero-enneagram-bg .outer-ring.ring-dashed {
  fill: none;
  stroke: rgba(99, 102, 241, 0.2); /* Brillo de Indigo */
  stroke-width: 1.2;
  stroke-dasharray: 4, 8;
  animation: spin-clockwise 50s linear infinite;
  transform-origin: center;
}

.hero-enneagram-bg .inner-ring {
  fill: none;
  stroke: var(--primary-gold);
  stroke-opacity: 0.25;
  stroke-width: 2;
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.2));
}

/* Lines */
.hero-enneagram-bg .enneagram-shape {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-enneagram-bg .enneagram-shape.triangle {
  stroke: var(--primary-gold);
  stroke-opacity: 0.4;
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.25));
}

.hero-enneagram-bg .enneagram-shape.hexad {
  stroke: rgba(197, 168, 128, 0.35); /* Dorado apagado */
  filter: drop-shadow(0 0 3px rgba(197, 168, 128, 0.15));
}

/* Dots and Glows */
.hero-enneagram-bg .enneagram-dot {
  stroke: var(--bg-darkest);
  stroke-width: 1.5;
  pointer-events: auto !important; /* Habilitar hover en el SVG de fondo */
  cursor: pointer;
  transition: r 0.2s cubic-bezier(0.4, 0, 0.2, 1), filter 0.2s ease;
}

.hero-enneagram-bg .enneagram-dot:hover {
  r: 8px; /* Agrandar punto al pasar cursor */
}

/* Color Coding for the 3 Centers */
.hero-enneagram-bg .enneagram-dot.dot-9,
.hero-enneagram-bg .enneagram-dot.dot-1,
.hero-enneagram-bg .enneagram-dot.dot-8 {
  fill: var(--indigo);
  filter: drop-shadow(0 0 6px var(--indigo));
}
.hero-enneagram-bg .enneagram-dot.dot-9:hover,
.hero-enneagram-bg .enneagram-dot.dot-1:hover,
.hero-enneagram-bg .enneagram-dot.dot-8:hover {
  filter: drop-shadow(0 0 12px var(--indigo)) brightness(1.2);
}

.hero-enneagram-bg .enneagram-dot.dot-2,
.hero-enneagram-bg .enneagram-dot.dot-3,
.hero-enneagram-bg .enneagram-dot.dot-4 {
  fill: var(--ruby);
  filter: drop-shadow(0 0 6px var(--ruby));
}
.hero-enneagram-bg .enneagram-dot.dot-2:hover,
.hero-enneagram-bg .enneagram-dot.dot-3:hover,
.hero-enneagram-bg .enneagram-dot.dot-4:hover {
  filter: drop-shadow(0 0 12px var(--ruby)) brightness(1.2);
}

.hero-enneagram-bg .enneagram-dot.dot-5,
.hero-enneagram-bg .enneagram-dot.dot-6,
.hero-enneagram-bg .enneagram-dot.dot-7 {
  fill: var(--emerald);
  filter: drop-shadow(0 0 6px var(--emerald));
}
.hero-enneagram-bg .enneagram-dot.dot-5:hover,
.hero-enneagram-bg .enneagram-dot.dot-6:hover,
.hero-enneagram-bg .enneagram-dot.dot-7:hover {
  filter: drop-shadow(0 0 12px var(--emerald)) brightness(1.2);
}

.mirror-container {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(20, 22, 36, 0.8) 0%, rgba(7, 8, 13, 0.9) 100%);
  border: 4px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.15), inset 0 0 30px rgba(212, 175, 55, 0.2);
  animation: float 6s ease-in-out infinite;
  z-index: 2; /* Sobre el eneagrama */
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Efectos de brillo dinámicos en el espejo al pasar sobre los centros */
.mirror-container.active-hover-indigo {
  border-color: rgba(99, 102, 241, 0.7);
  box-shadow: 0 0 60px rgba(99, 102, 241, 0.35), inset 0 0 30px rgba(99, 102, 241, 0.25);
}

.mirror-container.active-hover-emerald {
  border-color: rgba(16, 185, 129, 0.7);
  box-shadow: 0 0 60px rgba(16, 185, 129, 0.35), inset 0 0 30px rgba(16, 185, 129, 0.25);
}

.mirror-container.active-hover-ruby {
  border-color: rgba(244, 63, 94, 0.7);
  box-shadow: 0 0 60px rgba(244, 63, 94, 0.35), inset 0 0 30px rgba(244, 63, 94, 0.25);
}

.mirror-inner {
  width: 85%;
  height: 85%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(99, 102, 241, 0.1) 60%, transparent 100%);
  filter: blur(5px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mirror-reflection {
  position: absolute;
  width: 150%;
  height: 150%;
  background: linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.1) 50%, transparent 55%);
  animation: shine 4s linear infinite;
}

.pulse-core {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-gradient);
  box-shadow: 0 0 30px var(--primary-gold);
  animation: heartbeat 3s ease-in-out infinite;
  z-index: 2;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.pulse-core.hide {
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
}

/* Mirror Text Overlay - Información de Centros */
.mirror-text-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  text-align: center;
  padding: 24px;
}

.mirror-text-overlay.active {
  opacity: 1;
  transform: scale(1);
}

.mirror-text-overlay .overlay-num {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.mirror-text-overlay .overlay-title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
}

.mirror-text-overlay .overlay-subtitle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  margin-top: 4px;
}

.mirror-text-overlay.text-indigo {
  color: #c7d2fe; /* Light Indigo */
  text-shadow: 0 0 15px rgba(99, 102, 241, 0.7);
}

.mirror-text-overlay.text-emerald {
  color: #a7f3d0; /* Light Emerald */
  text-shadow: 0 0 15px rgba(16, 185, 129, 0.7);
}

.mirror-text-overlay.text-ruby {
  color: #fecdd3; /* Light Ruby */
  text-shadow: 0 0 15px rgba(244, 63, 94, 0.7);
}

.mirror-text-overlay .overlay-helper {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mirror-text-overlay.active.locked .overlay-helper {
  opacity: 0.7;
}

/* Clases de resaltado automático para la rotación */
.hero-enneagram-bg .enneagram-dot.auto-active.dot-9,
.hero-enneagram-bg .enneagram-dot.auto-active.dot-1,
.hero-enneagram-bg .enneagram-dot.auto-active.dot-8 {
  r: 6.5px;
  filter: drop-shadow(0 0 10px var(--indigo)) brightness(1.2);
}

.hero-enneagram-bg .enneagram-dot.auto-active.dot-2,
.hero-enneagram-bg .enneagram-dot.auto-active.dot-3,
.hero-enneagram-bg .enneagram-dot.auto-active.dot-4 {
  r: 6.5px;
  filter: drop-shadow(0 0 10px var(--ruby)) brightness(1.2);
}

.hero-enneagram-bg .enneagram-dot.auto-active.dot-5,
.hero-enneagram-bg .enneagram-dot.auto-active.dot-6,
.hero-enneagram-bg .enneagram-dot.auto-active.dot-7 {
  r: 6.5px;
  filter: drop-shadow(0 0 10px var(--emerald)) brightness(1.2);
}

@keyframes enneagram-breathe {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.15;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.03);
    opacity: 0.32;
  }
}

/* Philosophy Section (The 3 Fundamentals) */
.philosophy {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.section-header h2 {
  font-size: 2.6rem;
  max-width: 600px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 500px;
  font-size: 1.05rem;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.philosophy-card {
  position: relative;
}

.ph-icon {
  margin-bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
}

.ph-icon svg {
  width: 28px;
  height: 28px;
}

.philosophy-card:nth-child(1) .ph-icon svg { stroke: var(--indigo); fill: none; }
.philosophy-card:nth-child(2) .ph-icon svg { stroke: var(--emerald); fill: none; }
.philosophy-card:nth-child(3) .ph-icon svg { stroke: var(--primary-gold); fill: none; }

.philosophy-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.philosophy-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.ph-quote {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-left: 2px solid var(--border-light);
  padding-left: 12px;
}

/* Roadmap Section (The Path of 14 Practices) */
.roadmap-section {
  padding: 100px 0;
  position: relative;
  background: linear-gradient(180deg, transparent 0%, #090a0f 50%, transparent 100%);
}

.roadmap-wrapper {
  position: relative;
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* Timeline vertical line */
.roadmap-timeline {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(to bottom, 
    rgba(212,175,55,0.05) 0%, 
    var(--primary-gold) 15%, 
    var(--emerald) 50%, 
    var(--indigo) 85%, 
    rgba(99,102,241,0.05) 100%
  );
  z-index: 1;
}

.roadmap-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  position: relative;
  z-index: 2;
  align-items: center;
}

.roadmap-step:nth-child(even) {
  direction: rtl; /* Flip columns */
}

.roadmap-step:nth-child(even) .step-content {
  direction: ltr; /* Reset text direction inside card */
  text-align: left;
}

.step-card {
  cursor: pointer;
}

.step-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Node marker on the timeline line */
.step-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-darkest);
  border: 4px solid var(--primary-gold);
  box-shadow: 0 0 15px var(--gold-glow);
  z-index: 3;
  transition: var(--transition-fast);
}

.roadmap-step:nth-child(even) .step-node {
  left: auto;
  right: 50%;
  transform: translate(50%, -50%);
}

.roadmap-step.active .step-node {
  background: var(--primary-gold);
  box-shadow: 0 0 20px var(--primary-gold);
  transform: translate(-50%, -50%) scale(1.2);
}

.roadmap-step:nth-child(even).active .step-node {
  transform: translate(50%, -50%) scale(1.2);
}

.step-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.step-number {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary-gold);
}

.step-phase {
  font-family: var(--font-title);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 10px;
  border-radius: 4px;
}

.phase-1 { background: var(--ruby-glow); color: #fda4af; }
.phase-2 { background: var(--gold-glow); color: #fef08a; }
.phase-3 { background: var(--emerald-glow); color: #a7f3d0; }
.phase-4 { background: var(--indigo-glow); color: #c7d2fe; }

.step-card h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.step-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-gold);
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
}

.step-footer svg {
  width: 14px;
  height: 14px;
  stroke: var(--primary-gold);
  transition: var(--transition-fast);
}

.step-card:hover .step-footer svg {
  transform: translateX(4px);
}

/* Circle design inside step visual */
.step-sphere {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition-slow);
  overflow: hidden; /* Cortar imagen en círculo */
}

.step-sphere img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.roadmap-step.active .step-sphere img {
  transform: scale(1.08); /* Efecto zoom suave */
}

/* Colores de bordes según fases */
.roadmap-step[data-phase="1"] .step-sphere { border-color: rgba(244, 63, 94, 0.3); }
.roadmap-step[data-phase="2"] .step-sphere { border-color: rgba(212, 175, 55, 0.3); }
.roadmap-step[data-phase="3"] .step-sphere { border-color: rgba(16, 185, 129, 0.3); }
.roadmap-step[data-phase="4"] .step-sphere { border-color: rgba(99, 102, 241, 0.3); }

.roadmap-step[data-phase="1"].active .step-sphere {
  border-color: var(--ruby);
  box-shadow: 0 0 25px rgba(244, 63, 94, 0.35);
  transform: scale(1.05);
}

.roadmap-step[data-phase="2"].active .step-sphere {
  border-color: var(--primary-gold);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.35);
  transform: scale(1.05);
}

.roadmap-step[data-phase="3"].active .step-sphere {
  border-color: var(--emerald);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.35);
  transform: scale(1.05);
}

.roadmap-step[data-phase="4"].active .step-sphere {
  border-color: var(--indigo);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.35);
  transform: scale(1.05);
}

/* Interactive widget: Espejo del Alma */
.mirror-widget {
  padding: 100px 0;
  position: relative;
}

.widget-card {
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
}

.widget-intro {
  text-align: center;
  margin-bottom: 40px;
}

.widget-intro h3 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.widget-intro p {
  color: var(--text-secondary);
}

.widget-steps {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.widget-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: var(--transition-fast);
}

.widget-dot.active {
  background: var(--primary-gold);
  box-shadow: 0 0 10px var(--primary-gold);
  transform: scale(1.2);
}

.widget-content-area {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.question-slide {
  display: none;
  animation: fadeIn 0.4s ease-in-out forwards;
  width: 100%;
}

.question-slide.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.question-text {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 500;
  max-width: 600px;
}

.options-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 600px;
}

.option-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 18px 24px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-align: left;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 12px;
}

.option-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(212, 175, 55, 0.3);
}

.option-btn.selected {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--primary-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.option-checkbox {
  width: 20px;
  height: 20px;
  border: 1px solid var(--text-muted);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.option-btn.selected .option-checkbox {
  border-color: var(--primary-gold);
  background: var(--primary-gold);
}

.option-btn.selected .option-checkbox::after {
  content: '✓';
  color: var(--bg-darkest);
  font-size: 12px;
  font-weight: 800;
}

/* Result Area */
.result-slide {
  display: none;
  animation: fadeIn 0.6s ease-in-out forwards;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.result-slide.active {
  display: flex;
}

.result-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.result-glow-mirror {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid var(--primary-gold);
  box-shadow: 0 0 30px rgba(var(--primary-gold-rgb), 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.result-glow-mirror svg {
  width: 44px;
  height: 44px;
  stroke: var(--primary-gold);
}

.result-diagnosis {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 700;
}

.result-desc {
  max-width: 600px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.recommendations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 700px;
  text-align: left;
}

.rec-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-sm);
  padding: 20px;
  display: flex;
  gap: 16px;
}

.rec-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rec-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--emerald);
}

.rec-info h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--primary-gold);
}

.rec-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.widget-nav {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 600px;
  margin-top: 40px;
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
}

/* Modal for Step Details */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease-out;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: #0c0e16;
  border: 1px solid var(--border-gold);
  border-radius: var(--border-radius-lg);
  max-width: 640px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 40px rgba(var(--primary-gold-rgb), 0.1);
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  z-index: 10;
}

.modal-close:hover {
  background: rgba(244, 63, 94, 0.15);
  border-color: var(--ruby);
  color: var(--ruby);
}

.modal-header-banner {
  height: 8px;
  width: 100%;
  background: var(--gold-gradient);
}

.modal-body {
  padding: 40px;
  max-height: 80vh;
  overflow-y: auto;
  scrollbar-width: thin;
}

.modal-step-num {
  font-family: var(--font-title);
  color: var(--primary-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.modal-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.modal-description {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.6;
}

.modal-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.modal-section {
  padding: 20px;
  background: rgba(255, 255, 255, 0.01);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-light);
}

.modal-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  margin-bottom: 12px;
  font-family: var(--font-title);
}

.modal-section-title svg {
  width: 18px;
  height: 18px;
}

.sec-vicios {
  border-color: rgba(244, 63, 94, 0.15);
}

.sec-vicios .modal-section-title {
  color: var(--ruby);
}

.sec-vicios .modal-section-title svg {
  stroke: var(--ruby);
}

.sec-remedios {
  border-color: rgba(16, 185, 129, 0.15);
}

.sec-remedios .modal-section-title {
  color: var(--emerald);
}

.sec-remedios .modal-section-title svg {
  stroke: var(--emerald);
}

.modal-section-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Footer Section */
footer {
  background: #05060a;
  border-top: 1px solid var(--border-light);
  padding: 80px 0 40px;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-links-col h4 {
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-gold);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.quote-footer {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@keyframes shine {
  0% { transform: translate(-30%, -30%); }
  100% { transform: translate(30%, 30%); }
}

@keyframes spin-clockwise {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spin-counter {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px var(--primary-gold); }
  50% { transform: scale(1.15); box-shadow: 0 0 35px var(--primary-gold); }
}

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

/* Responsiveness */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-desc {
    margin: 0 auto;
  }

  .hero-visual {
    margin: 40px 0;
  }

  .hero-video-wrap {
    width: min(100%, 420px);
  }
  
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .roadmap-timeline {
    left: 40px;
  }
  
  .roadmap-step {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-left: 80px;
    direction: ltr !important;
  }
  
  .roadmap-step:nth-child(even) .step-content {
    text-align: left;
  }
  
  .step-node {
    left: 40px !important;
    transform: translate(-50%, -50%) !important;
  }
  
  .step-visual {
    justify-content: flex-start;
  }
  
  .options-container {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2.6rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .modal-sections {
    grid-template-columns: 1fr;
  }
  
  .recommendations {
    grid-template-columns: 1fr;
  }
  
  /* Ajustes responsivos para el video del hero */
  .hero-video-wrap {
    width: min(100%, 300px);
  }

  .hero-visual {
    margin: 24px 0;
  }

  .hero-enneagram-bg {
    width: 380px;
    height: 380px;
  }
  
  .mirror-container {
    width: 260px;
    height: 260px;
  }
}

/* Scroll Animation classes via JS */
.fade-in-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================
   ESTILOS ADICIONALES PARA EL ENEAGRAMA DE SANACIÓN MORAL
   ======================================================== */

.enneagram-wrapper {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 820px;
    margin: 3rem auto 0 auto;
}

/* SVG Container Styling */
.svg-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 440px;
    height: 440px;
    z-index: 2; /* Detrás de las tarjetas de contenido */
    pointer-events: none; /* El contenedor invisible no bloquea los clicks/hovers */
}

#enneagram-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

#enneagram-svg * {
    pointer-events: none; /* Desactivar eventos para líneas y círculos no interactivos */
}

#enneagram-svg .eneagram-sector,
#enneagram-svg .node-dot,
#enneagram-svg .node-num {
    pointer-events: auto; /* Activar eventos en sectores y puntos interactivos */
}

/* SVG Typography & Styles */
.svg-label-zero {
    font-family: var(--font-title);
    font-size: 12px;
    fill: var(--text-primary);
    font-weight: 700;
}

.svg-label-center {
    font-family: var(--font-title);
    font-size: 10px;
    fill: var(--primary-gold);
    font-weight: 600;
    letter-spacing: 1.5px;
}

.svg-sector-title {
    font-family: var(--font-title);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.blue-text {
    fill: #85c1e9;
}

.red-text {
    fill: #fda4af;
}

.green-text {
    fill: #82e0aa;
}

.node-dot {
    fill: var(--bg-darkest);
    stroke: var(--primary-gold);
    stroke-width: 2;
    cursor: pointer;
    transition: var(--transition-fast);
}

.node-dot:hover, .node-dot.active {
    fill: var(--primary-gold);
    r: 9px;
    filter: drop-shadow(0 0 8px var(--primary-gold));
}

.node-num {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 700;
    fill: var(--text-primary);
    cursor: pointer;
    user-select: none;
    transition: var(--transition-fast);
}

.enneagram-nodes g:hover .node-num, .node-num.active {
    fill: var(--primary-gold);
    font-size: 21px;
}

/* 9 Absolute positioned cards around the circle (Desktop) */
.enneagram-cards {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 5; /* Por encima de las líneas del eneagrama */
}

.type-card {
    position: absolute;
    width: 250px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: var(--transition-medium);
    text-align: left;
}

.type-card:hover, .type-card.highlighted {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.25);
}

/* Symmetrical Positions for Desktop Enneagram Map */
/* Top Center */
#card-9 {
    left: 50%;
    top: 2%;
    transform: translateX(-50%);
}

/* Symmetrical Right Side */
#card-1 { left: 77%; top: 10%; }
#card-2 { left: 81%; top: 38%; }
#card-3 { left: 79%; top: 60%; }
#card-4 { left: 58%; top: 81%; }

/* Symmetrical Left Side */
#card-8 { right: 77%; top: 10%; }
#card-7 { right: 81%; top: 38%; }
#card-6 { right: 79%; top: 60%; }
#card-5 { right: 58%; top: 81%; }

/* Card Header & Accents */
.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.type-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 700;
    color: #000;
}

.badge-blue {
    background-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.4);
}

.badge-red {
    background-color: var(--ruby);
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.4);
}

.badge-green {
    background-color: #2ecc71;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.4);
}

.card-header h4 {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.type-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.card-meta {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-gold);
    font-weight: 600;
}

.enneagram-cta-box {
    background-color: rgba(212, 175, 55, 0.03);
    border: 1px dashed rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    padding: 1.2rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Responsive adjustments for Enneagram */
@media (max-width: 1199px) {
    .enneagram-wrapper {
        max-width: 900px;
        height: 750px;
    }
    
    .type-card {
        width: 210px;
        padding: 0.9rem;
    }
    
    .svg-container {
        width: 360px;
        height: 360px;
    }
    
    #card-1 { left: 74%; top: 12%; }
    #card-2 { left: 78%; top: 38%; }
    #card-3 { left: 76%; top: 59%; }
    #card-4 { left: 57%; top: 80%; }
    
    #card-8 { right: 74%; top: 12%; }
    #card-7 { right: 78%; top: 38%; }
    #card-6 { right: 76%; top: 59%; }
    #card-5 { right: 57%; top: 80%; }
}

@media (max-width: 991px) {
    .enneagram-wrapper {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }
    
    .svg-container {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 380px;
        height: 380px;
        margin-bottom: 2rem;
    }
    
    .enneagram-cards {
        position: relative;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        width: 100%;
        height: auto;
    }
    
    .type-card {
        position: relative;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100%;
        height: auto;
    }
}

@media (max-width: 580px) {
    .enneagram-cards {
        grid-template-columns: 1fr;
    }
    
    .svg-container {
        width: 320px;
        height: 320px;
    }
}

/* ========================================================
   ESTILOS DE LA SECCIÓN DE SERVICIOS
   ======================================================== */
.services-section {
    padding: 4rem 0;
}

.service-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.4) !important;
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.15), 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .service-card {
        padding: 1.8rem !important;
    }
}

/* ========================================================
   ESTILOS DE LA SECCIÓN DE CONTACTO
   ======================================================== */
.contact-section {
    padding: 4rem 0;
}

.contact-section form input:focus,
.contact-section form textarea:focus {
    outline: none;
    border-color: var(--primary-gold) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15) !important;
}

.contact-section form input:hover,
.contact-section form textarea:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

/* Spinner loader for AJAX contact form submission */
.contact-spinner {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  animation: contact-spinner-rotate 2s linear infinite;
}

.contact-spinner circle {
  animation: contact-spinner-dash 1.5s ease-in-out infinite;
  stroke-dasharray: 1, 150;
  stroke-dashoffset: 0;
}

@keyframes contact-spinner-rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes contact-spinner-dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

/* ========================================================
   ESTILOS DE LA SECCIÓN DE PREGUNTAS FRECUENTES (FAQ)
   ======================================================== */
.faq-section {
    padding: 4rem 0;
}

.faq-item {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease !important;
}

.faq-item:hover {
    border-color: rgba(212, 175, 55, 0.3) !important;
    background-color: rgba(255, 255, 255, 0.02) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.faq-item.open {
    background-color: rgba(212, 175, 55, 0.02) !important;
    box-shadow: 0 4px 25px rgba(212, 175, 55, 0.05);
}
