/* =====================================================
   MCMC & Arte del Camino - Estilos Principales
   Rediseño Visual basado en la Ontología Dual
   ===================================================== */

/* Variables CSS - Paleta basada en la dualidad ontológica */
:root {
  /* === COLORES PRIMARIOS (Dualidad Ontológica) === */

  /* MASA - Polo de Determinación (dorados/ámbar) */
  --color-mass: #c9a227;
  --color-mass-light: #dbb84a;
  --color-mass-dark: #a08020;
  --color-mass-glow: rgba(201, 162, 39, 0.3);

  /* ESPACIO - Polo de Apertura (azules/cyan) */
  --color-space: #4a9ead;
  --color-space-light: #6bb8c7;
  --color-space-dark: #1a4a5e;
  --color-space-glow: rgba(74, 158, 173, 0.3);

  /* === COLORES LEGACY (compatibilidad) === */
  --primary: #0a0a14;
  --secondary: #12122a;
  --tertiary: #1a1a3e;
  --accent: #e94560;
  --accent-glow: rgba(233, 69, 96, 0.4);
  --light: #f5f5f5;
  --gold: #c9a227; /* Actualizado a masa */
  --gold-glow: rgba(201, 162, 39, 0.3);
  --cyan: #4a9ead; /* Actualizado a espacio */
  --purple: #9b59b6;

  /* === FONDOS === */
  --bg-primary: #0a0a14;
  --bg-secondary: #0d0d1a;
  --bg-tertiary: #121220;
  --gradient: linear-gradient(135deg, #0a0a14 0%, #0d1020 25%, #101828 50%, #0d1020 75%, #0a0a14 100%);

  /* === TEXTOS === */
  --text-primary: #f5f5f5;
  --text-secondary: rgba(245, 245, 245, 0.75);
  --text-muted: rgba(245, 245, 245, 0.5);

  /* === LEGACY TEXTOS (compatibilidad) === */
  --border-color: #2a2a5e;
  --card-bg: rgba(18, 18, 42, 0.85);
  --card-bg-hover: rgba(26, 26, 62, 0.95);

  /* === TRANSICIONES === */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-elegant: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* === SOMBRAS === */
  --shadow-glow: 0 0 30px rgba(233, 69, 96, 0.15);
  --shadow-gold: 0 0 30px rgba(201, 162, 39, 0.15);
  --shadow-space: 0 0 30px rgba(74, 158, 173, 0.15);
  --shadow-elevated: 0 20px 40px rgba(0, 0, 0, 0.3);

  /* === TIPOGRAFÍA === */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.8;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Animated Stars Background */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s infinite ease-in-out;
}

.star::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: 50%;
  filter: blur(1px);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Nebula Effect */
.nebula {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(233, 69, 96, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(78, 205, 196, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(155, 89, 182, 0.05) 0%, transparent 60%);
  animation: nebulaPulse 15s infinite ease-in-out;
}

@keyframes nebulaPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 9999;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--cyan));
  transition: width 0.1s ease;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--light);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; color: var(--gold); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

a:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* Navegación */
.navbar {
  background: rgba(22, 33, 62, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
}

.nav-logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

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

.nav-link:hover {
  color: var(--gold);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 10px;
  margin: -10px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--light);
  transition: var(--transition);
  pointer-events: none;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(22, 33, 62, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.75rem 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(233, 69, 96, 0.1);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(5px);
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.dropdown-menu a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.dropdown-menu a:hover {
  background: rgba(233, 69, 96, 0.1);
  color: var(--gold);
  text-decoration: none;
  padding-left: 1.5rem;
}

.dropdown-menu a:hover::before {
  transform: scaleY(1);
}

/* Contenedor Principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.main-content {
  padding-top: 80px;
  min-height: 100vh;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 8rem 2rem 6rem;
  background:
    radial-gradient(ellipse at center top, rgba(233, 69, 96, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 70%, rgba(255, 215, 0, 0.08) 0%, transparent 40%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.1) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: heroGlow 8s infinite ease-in-out;
}

@keyframes heroGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--light) 0%, var(--gold) 50%, var(--accent) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 60px rgba(255, 215, 0, 0.3);
}

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

.hero .subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 2.5rem;
  position: relative;
  z-index: 1;
  line-height: 1.9;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* Hero Enhanced Styles */
.hero-enhanced {
  padding: 6rem 2rem 5rem;
}

.hero-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  opacity: 0.9;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--light) 0%, var(--gold) 50%, var(--accent) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
  position: relative;
  z-index: 1;
  line-height: 1.1;
}

.hero-quote {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text-secondary);
  margin: 0 auto 2rem;
  max-width: 600px;
  position: relative;
  z-index: 1;
  border: none;
  padding: 0;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
  line-height: 1.8;
}

/* Hero Duality Visualization */
.hero-duality {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 2.5rem auto;
  position: relative;
  z-index: 1;
}

.hero-pole {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 2rem;
  border-radius: 12px;
  transition: var(--transition);
  min-width: 120px;
}

.hero-pole-mass {
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.15), rgba(233, 69, 96, 0.05));
  border: 1px solid rgba(233, 69, 96, 0.3);
}

.hero-pole-mass:hover {
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.25), rgba(233, 69, 96, 0.1));
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.hero-pole-space {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.hero-pole-space:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 215, 0, 0.1));
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.pole-symbol {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.hero-pole-mass .pole-symbol {
  color: var(--accent);
}

.hero-pole-space .pole-symbol {
  color: var(--gold);
}

.pole-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
}

.pole-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.hero-tension {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tension-line {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  opacity: 0.5;
  animation: tensionPulse 2s ease-in-out infinite;
}

.tension-symbol {
  font-size: 1.2rem;
  color: var(--text-secondary);
  animation: tensionPulse 2s ease-in-out infinite;
}

@keyframes tensionPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* Paths Section (¿Por dónde empezar?) */
.section-paths {
  background: linear-gradient(180deg, rgba(10, 10, 20, 0.8), rgba(18, 18, 42, 0.5));
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.paths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.path-card {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  text-align: center;
}

.path-card:hover {
  background: var(--card-bg-hover);
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.path-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.path-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.path-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.path-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  transition: var(--transition);
}

.path-card:hover .path-link {
  color: var(--gold);
}

/* Botones */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #c73e54 100%);
  color: var(--light);
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff5577 0%, var(--accent) 100%);
  color: var(--light);
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.1);
}

.btn-secondary:hover {
  background: var(--gold);
  color: var(--primary);
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.btn-tertiary {
  background: transparent;
  border: 2px solid var(--cyan);
  color: var(--cyan);
}

.btn-tertiary:hover {
  background: var(--cyan);
  color: var(--primary);
  transform: translateY(-3px);
}

/* Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--cyan));
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow), 0 20px 40px rgba(0, 0, 0, 0.3);
  background: var(--card-bg-hover);
}

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

.card-title {
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card ul {
  margin: 0;
  padding-left: 1.25rem;
}

.card li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* Special Card Variants */
.card.highlight {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.card.accent {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

/* Secciones */
.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 1rem auto 0;
}

/* Tablas */
.table-container {
  overflow-x: auto;
  margin: 1.5rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--secondary);
}

.table-container::-webkit-scrollbar {
  height: 8px;
}

.table-container::-webkit-scrollbar-track {
  background: var(--secondary);
  border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  line-height: 1.5;
}

td {
  font-size: 0.95rem;
}

th {
  background: var(--secondary);
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.9rem;
}

tr:hover {
  background: rgba(233, 69, 96, 0.1);
}

@media (max-width: 600px) {
  th, td {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }

  table {
    min-width: 400px;
  }
}

/* Bloques de Código */
.code-block {
  background: #0d0d1a;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

code {
  font-family: 'Fira Code', 'Consolas', monospace;
  background: rgba(233, 69, 96, 0.2);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

pre code {
  background: none;
  padding: 0;
}

/* Ecuaciones */
.equation {
  background: var(--card-bg);
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  text-align: center;
}

.equation-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Diagramas */
.diagram-container {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.duality-diagram {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.duality-pole {
  background: linear-gradient(135deg, var(--secondary), var(--tertiary));
  border: 2px solid var(--border-color);
  border-radius: 16px;
  width: 180px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
  position: relative;
  text-align: center;
  padding: 1.25rem 1rem;
}

.duality-pole strong {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.duality-pole span {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.duality-pole::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.duality-pole.mass {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(233, 69, 96, 0.2);
}

.duality-pole.space {
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
}

.duality-pole:hover {
  transform: scale(1.1);
}

.duality-pole:hover::before {
  opacity: 0.3;
}

.duality-connector {
  font-size: 2.5rem;
  color: var(--text-secondary);
  animation: pulse 2s infinite;
}

/* Download Button for Zenodo */
.btn-download {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-download:hover {
  background: linear-gradient(135deg, #27ae60, #229954);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
  color: white;
}

.btn-download::after {
  content: '↓';
  font-size: 1.2em;
}

/* Version Badge */
.version-badge {
  display: inline-block;
  background: var(--tertiary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  color: var(--cyan);
  margin-left: 0.5rem;
}

.version-badge.latest {
  background: rgba(46, 204, 113, 0.2);
  border-color: #2ecc71;
  color: #2ecc71;
}

/* Citas */
blockquote {
  background: var(--card-bg);
  border-left: 4px solid var(--gold);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-primary);
}

blockquote::before {
  content: '';
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50%;
}

.timeline-content {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 400px;
  margin: 0 2rem;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--primary);
}

/* Footer */
.footer {
  background: rgba(22, 33, 62, 0.95);
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb span {
  margin: 0 0.5rem;
}

/* Page Header */
.page-header {
  padding: 4rem 0 2rem;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(233, 69, 96, 0.1) 0%, transparent 70%);
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header .lead {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Content Layout */
.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 3rem;
  padding: 2rem 0;
}

.content-main {
  min-width: 0;
}

.content-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-nav {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
}

.sidebar-nav h4 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 0.5rem;
}

.sidebar-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: block;
  padding: 0.25rem 0;
}

.sidebar-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Charts Container */
.chart-container {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.chart-title {
  color: var(--gold);
  margin-bottom: 1rem;
  text-align: center;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none; }

/* Responsive Design */
@media (max-width: 992px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }

  .content-sidebar {
    display: none;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    padding-left: 50px;
    padding-right: 0;
    justify-content: flex-start;
  }

  .timeline-marker {
    left: 20px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  /* MENÚ PRINCIPAL - OCUPA TODA LA PANTALLA */
  .nav-menu {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #0a0f1a !important;
    flex-direction: column !important;
    padding: 80px 20px 20px 20px !important;
    gap: 5px !important;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 998 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    list-style: none !important;
  }

  .nav-menu.active {
    transform: translateX(0) !important;
  }

  .nav-menu > li {
    display: block !important;
    width: 100% !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none !important;
  }

  .nav-menu > li > .nav-link {
    display: block !important;
    padding: 12px 10px !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    width: 100% !important;
    text-decoration: none !important;
  }

  .nav-toggle {
    display: flex !important;
    z-index: 1001 !important;
  }

  /* Animación del botón hamburguesa */
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

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

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

  /* Submenú desplegable - oculto por defecto */
  .dropdown-menu {
    position: static !important;
    transform: none !important;
    border: none !important;
    padding: 0 !important;
    background: rgba(255, 215, 0, 0.08) !important;
    border-left: 3px solid #ffd700 !important;
    border-radius: 0 !important;
    margin: 5px 0 5px 15px !important;
    max-height: 0;
    overflow: hidden !important;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    box-shadow: none !important;
    display: block !important;
    min-width: auto !important;
  }

  /* Deshabilitar hover en móvil */
  .dropdown:hover > .dropdown-menu {
    max-height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  /* Submenú activo - se expande */
  .nav-menu .dropdown.active > .dropdown-menu {
    max-height: 800px !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 10px 0 !important;
  }

  .nav-menu .dropdown.active:hover > .dropdown-menu {
    max-height: 800px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Enlaces del submenú */
  .dropdown-menu a {
    display: block !important;
    padding: 10px 15px !important;
    font-size: 16px !important;
    color: #e0e0e0 !important;
    margin: 3px 0 !important;
    text-decoration: none !important;
  }

  .dropdown-menu a:hover,
  .dropdown-menu a:active {
    background: rgba(255, 215, 0, 0.15) !important;
    color: #ffd700 !important;
  }

  /* Indicador de desplegable */
  .dropdown > .nav-link::after {
    content: ' ▼' !important;
    font-size: 10px !important;
    opacity: 0.6;
    transition: transform 0.3s ease;
    display: inline-block !important;
  }

  .dropdown.active > .nav-link::after {
    transform: rotate(180deg);
  }

  .dropdown.active > .nav-link {
    color: #ffd700 !important;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .duality-diagram {
    flex-direction: column;
  }

  .duality-connector {
    transform: rotate(90deg);
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  /* Hero Enhanced Responsive */
  .hero-duality {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-tension {
    transform: rotate(90deg);
  }

  .hero-pole {
    min-width: 150px;
  }

  .hero-quote {
    font-size: 1.1rem;
  }
}

/* Three Dimensions Section */
.three-dimensions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.dimension-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.dimension-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.nucleo-card { border-top: 3px solid var(--purple); }
.mente-card { border-top: 3px solid var(--cyan); }
.cuerpo-card { border-top: 3px solid var(--gold); }

.dimension-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.dimension-subtitle {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.dimension-card ul {
  text-align: left;
  margin: 1rem 0;
  padding-left: 1.2rem;
}

.dimension-card li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.dimension-analogy {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* Social Layers Section */
.social-layers {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.layer-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  transition: var(--transition);
}

.layer-item:hover {
  border-color: var(--accent);
  transform: translateX(5px);
}

.layer-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.layer-individual .layer-number { background: var(--purple); color: white; }
.layer-familia .layer-number { background: var(--accent); color: white; }
.layer-comunidad .layer-number { background: var(--cyan); color: var(--bg); }
.layer-sociedad .layer-number { background: var(--gold); color: var(--bg); }
.layer-cosmos .layer-number { background: linear-gradient(135deg, var(--purple), var(--gold)); color: white; }

.layer-content h4 {
  margin: 0 0 0.25rem 0;
  color: var(--text-primary);
}

.layer-content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

@media (max-width: 992px) {
  .three-dimensions-grid {
    grid-template-columns: 1fr;
  }
}

/* Glosario Section */
.section-glossary {
  background: rgba(22, 33, 62, 0.5);
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 2rem;
}

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

.glossary-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.glossary-item dt {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.glossary-item dd {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

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

/* Las Tres Preguntas Section */
.section-questions {
  background: radial-gradient(ellipse at center, rgba(78, 205, 196, 0.08) 0%, transparent 70%);
}

.questions-grid {
  grid-template-columns: repeat(3, 1fr);
}

.question-card {
  text-align: center;
  padding: 2rem;
}

.question-card .card-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.question-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-style: italic;
}

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

/* Ley de Cronos Section */
.section-cronos {
  background: radial-gradient(ellipse at center, rgba(155, 89, 182, 0.1) 0%, transparent 70%);
}

.cronos-timeline {
  max-width: 900px;
  margin: 2rem auto;
}

.cronos-formula {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.cronos-formula .equation {
  margin-bottom: 0.5rem;
}

.cronos-formula .formula-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.cronos-stages {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 30px;
}

.cronos-stage {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
  padding: 1rem 0;
}

.stage-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.cronos-stage.s0 .stage-marker { background: var(--purple); box-shadow: 0 0 15px rgba(155, 89, 182, 0.6); }
.cronos-stage.s1 .stage-marker { background: var(--accent); box-shadow: 0 0 15px rgba(233, 69, 96, 0.6); }
.cronos-stage.s2 .stage-marker { background: var(--cyan); box-shadow: 0 0 15px rgba(78, 205, 196, 0.6); }
.cronos-stage.s3 .stage-marker { background: var(--gold); box-shadow: 0 0 15px rgba(255, 215, 0, 0.6); }
.cronos-stage.s4 .stage-marker { background: linear-gradient(135deg, var(--accent), var(--gold)); box-shadow: 0 0 15px rgba(255, 215, 0, 0.6); }

.cronos-connector {
  width: 2px;
  height: 20px;
  background: linear-gradient(180deg, var(--border-color), var(--accent));
  margin-left: 9px;
}

.stage-content {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  flex: 1;
  transition: var(--transition);
}

.stage-content:hover {
  border-color: var(--accent);
  transform: translateX(5px);
}

.stage-value {
  display: block;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.stage-name {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.stage-desc {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.cronos-insight {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(233, 69, 96, 0.1));
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem;
  margin-top: 2rem;
}

.cronos-insight p {
  margin: 0;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .cronos-stages {
    padding-left: 20px;
  }

  .stage-content {
    padding: 0.75rem 1rem;
  }

  .stage-value {
    font-size: 1rem;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary);
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold);
  color: var(--bg-primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .content-sidebar {
    display: none;
  }

  .main-content {
    padding-top: 0;
  }

  body {
    background: white;
    color: black;
  }

  a {
    color: black;
  }
}

/* =====================================================
   MEJORAS VISUALES - Enero 2026
   ===================================================== */

/* Path Cards Mejoradas */
.path-card {
  position: relative;
  overflow: hidden;
}

.path-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

.path-card:hover .path-icon {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* Question Cards Mejoradas */
.question-card {
  position: relative;
  overflow: hidden;
}

.question-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--gold);
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

.question-card:hover::after {
  width: 80%;
}

/* Improved Card Text Fitting */
.card p, .path-desc, .question-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Glossary Items Mejorados */
.glossary-item {
  transition: var(--transition);
  position: relative;
}

.glossary-item:hover {
  border-color: var(--accent);
  transform: translateX(5px);
}

.glossary-item dt {
  position: relative;
  padding-left: 0.75rem;
}

.glossary-item dt::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

/* Cronos Timeline Mejorada */
.cronos-stage {
  cursor: pointer;
}

.cronos-stage:hover .stage-marker {
  transform: scale(1.3);
  transition: transform 0.3s ease;
}

/* Hero Duality Animation Mejorada */
.hero-pole {
  cursor: pointer;
}

.hero-pole:active {
  transform: scale(0.98);
}

/* Table Rows Animation */
tbody tr {
  transition: var(--transition);
}

tbody tr:hover {
  background: rgba(233, 69, 96, 0.15);
  transform: translateX(3px);
}

/* Duality Diagram Mejorado */
.duality-pole span {
  display: block;
  margin: 0.2rem 0;
}

/* Section Transitions */
.section {
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

/* Improved Blockquote */
blockquote {
  position: relative;
  border-radius: 0 12px 12px 0;
  overflow: hidden;
}

blockquote::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--gold));
  opacity: 0.3;
}

/* Equation Box Mejorada */
.equation {
  border-radius: 0 8px 8px 0;
  position: relative;
}

.equation::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
  opacity: 0.3;
}

/* Card Title Icons */
.card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Footer Links Animation */
.footer-section a {
  position: relative;
  display: inline-block;
}

.footer-section a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.footer-section a:hover::after {
  width: 100%;
}

/* Improved Focus States for Accessibility */
.btn:focus,
.nav-link:focus,
.path-card:focus,
.card:focus {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Smooth Section Scrolling Highlight */
section:target {
  animation: highlightSection 1.5s ease;
}

@keyframes highlightSection {
  0% { background-color: rgba(255, 215, 0, 0.1); }
  100% { background-color: transparent; }
}

/* Mobile Dropdown Improvements - movido a la media query principal de 768px */

/* =====================================================
   MEJORAS VISUALES - Cabecera y Fondos Temáticos
   Implementación de estética cosmológica MCMC
   ===================================================== */

/* ===========================================
   1. REUBICACIÓN DEL TÍTULO MCMC A LA IZQUIERDA
   =========================================== */

/* Hacer el navbar container fluido para que el logo quede a la izquierda */
.navbar {
  padding: 1rem 1.5rem; /* Reducir padding para más espacio */
}

.nav-container {
  max-width: 100%; /* Container fluido */
  padding: 0 1rem;
}

/* Logo MCMC alineado a la izquierda con más presencia */
.nav-logo {
  margin-left: 0;
  padding-left: 0;
  font-size: 1.75rem;
  letter-spacing: 0.1em;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  position: relative;
}

.nav-logo::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  transition: width 0.3s ease;
}

.nav-logo:hover::before {
  width: 100%;
}

/* Asegurar que el menú no se superponga con el logo en móviles */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 0.5rem;
  }

  .nav-logo {
    font-size: 1.5rem;
    margin-right: auto;
  }

  .nav-toggle {
    margin-left: 1rem;
  }
}

/* ===========================================
   2. FONDO GENERAL - ESTÉTICA PRE-GEOMÉTRICA S₀
   Estado primordial: oscuro, nebuloso, amorfo
   =========================================== */

/* Redefinir el fondo del body con estética S₀ */
body {
  background:
    /* Nebulosa primordial difusa */
    radial-gradient(ellipse 80% 60% at 15% 25%, rgba(30, 20, 50, 0.8) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 85% 75%, rgba(20, 15, 40, 0.7) 0%, transparent 45%),
    radial-gradient(ellipse 100% 80% at 50% 50%, rgba(15, 10, 35, 0.6) 0%, transparent 60%),
    /* Imperfección primordial δ₀ - un leve destello asimétrico */
    radial-gradient(circle at 30% 40%, rgba(233, 69, 96, 0.04) 0%, transparent 30%),
    radial-gradient(circle at 70% 60%, rgba(255, 215, 0, 0.03) 0%, transparent 25%),
    /* Base oscura primordial */
    linear-gradient(180deg, #050508 0%, #0a0a14 30%, #0d0d1a 60%, #0a0a14 100%);
  background-attachment: fixed;
}

/* Nebula mejorada para estética S₀ */
.nebula {
  background:
    /* Remolinos sutiles sugiriendo imperfección primordial */
    radial-gradient(ellipse 40% 30% at 25% 30%, rgba(233, 69, 96, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 35% 25% at 75% 70%, rgba(78, 205, 196, 0.04) 0%, transparent 45%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(155, 89, 182, 0.03) 0%, transparent 55%),
    /* Turbulencia sutil - sugiere tensión Mp/Ep */
    radial-gradient(ellipse 30% 20% at 60% 20%, rgba(255, 215, 0, 0.025) 0%, transparent 40%),
    radial-gradient(ellipse 25% 35% at 35% 80%, rgba(78, 93, 148, 0.03) 0%, transparent 45%);
  animation: nebulaPrimordial 25s infinite ease-in-out;
}

@keyframes nebulaPrimordial {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1) rotate(0deg);
  }
  33% {
    opacity: 0.9;
    transform: scale(1.02) rotate(0.5deg);
  }
  66% {
    opacity: 0.8;
    transform: scale(0.98) rotate(-0.5deg);
  }
}

/* ===========================================
   3. FONDOS TEMÁTICOS POR SECCIÓN COSMOLÓGICA
   =========================================== */

/* --- 3.1 FASE S₀: Estado Primordial --- */
/* Oscuridad casi total con destello asimétrico mínimo */
.fase-s0,
.fase-primordial {
  position: relative;
  background:
    radial-gradient(ellipse at 45% 40%, rgba(233, 69, 96, 0.08) 0%, transparent 40%),
    radial-gradient(ellipse at 55% 60%, rgba(155, 89, 182, 0.05) 0%, transparent 35%),
    linear-gradient(135deg, #020204 0%, #0a0810 50%, #050508 100%);
  background-attachment: fixed;
}

.fase-s0::before,
.fase-primordial::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(255, 215, 0, 0.02) 0%, transparent 30%);
  pointer-events: none;
  animation: imperfeccionPrimordial 12s infinite ease-in-out;
}

@keyframes imperfeccionPrimordial {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* --- 3.2 FASE PRE-GEOMÉTRICA: Colapsos Ontológicos --- */
/* Texturas dinámicas, fractales oscuros, turbulencia */
.fase-pregeom,
.fase-pregeometrica {
  position: relative;
  background:
    /* Vórtice fractal oscuro */
    conic-gradient(from 180deg at 50% 50%,
      rgba(15, 10, 30, 0.9) 0deg,
      rgba(30, 20, 60, 0.7) 90deg,
      rgba(20, 15, 45, 0.8) 180deg,
      rgba(25, 18, 50, 0.7) 270deg,
      rgba(15, 10, 30, 0.9) 360deg),
    /* Destellos de energía liberándose */
    radial-gradient(ellipse at 30% 30%, rgba(155, 89, 182, 0.15) 0%, transparent 40%),
    radial-gradient(ellipse at 70% 70%, rgba(78, 93, 148, 0.12) 0%, transparent 35%),
    radial-gradient(ellipse at 50% 50%, rgba(233, 69, 96, 0.08) 0%, transparent 50%),
    /* Base turbulenta */
    linear-gradient(135deg, #070B34 0%, #0f0f2a 50%, #0a0820 100%);
  background-attachment: fixed;
}

/* Animación de turbulencia pre-geométrica */
.fase-pregeom::before,
.fase-pregeometrica::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-conic-gradient(
      from 0deg at 50% 50%,
      transparent 0deg 10deg,
      rgba(155, 89, 182, 0.02) 10deg 20deg
    );
  animation: turbulenciaPregeom 30s linear infinite;
  pointer-events: none;
}

@keyframes turbulenciaPregeom {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- 3.3 FASE GEOMÉTRICA: Universo Observable --- */
/* Claridad estructural, geometría suave - coherente con tema oscuro */
.fase-geom,
.fase-geometrica,
.fase-observable {
  position: relative;
  background:
    /* Cuadrícula suave sugiriendo geometría espacio-temporal */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 80px,
      rgba(78, 205, 196, 0.03) 80px,
      rgba(78, 205, 196, 0.03) 81px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 80px,
      rgba(78, 205, 196, 0.03) 80px,
      rgba(78, 205, 196, 0.03) 81px
    ),
    /* Gradiente de expansión cósmica - tonos más luminosos pero oscuros */
    radial-gradient(ellipse at 30% 30%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(107, 203, 119, 0.08) 0%, transparent 45%),
    /* Base oscura con tinte azul verdoso (universo en expansión) */
    linear-gradient(135deg, #0a1520 0%, #0f1f2a 30%, #142535 60%, #0a1520 100%);
  background-attachment: fixed;
  color: var(--text-primary);
}

/* Partículas de estrellas dispersas */
.fase-geom::before,
.fase-geometrica::before,
.fase-observable::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(2px 2px at 130px 80px, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 160px 30px, rgba(255, 255, 255, 0.3), transparent);
  background-size: 200px 100px;
  pointer-events: none;
  animation: estrellasBrillo 8s ease-in-out infinite;
}

@keyframes estrellasBrillo {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* --- 3.4 FASE ASINTÓTICA Y RETORNO --- */
/* Tonos oscuros con patrones cíclicos - simboliza el retorno al origen */
.fase-retorno,
.fase-asintotica {
  position: relative;
  background:
    /* Patrón de ondas concéntricas (ciclo cósmico) */
    repeating-radial-gradient(
      circle at 50% 50%,
      transparent 0px,
      transparent 60px,
      rgba(155, 89, 182, 0.04) 60px,
      rgba(155, 89, 182, 0.04) 62px
    ),
    /* Gradiente que sugiere ciclo/retorno */
    radial-gradient(ellipse at 50% 30%, rgba(155, 89, 182, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 70%, rgba(78, 93, 148, 0.08) 0%, transparent 40%),
    /* Base oscura coherente con el tema */
    linear-gradient(180deg, #0f0f1a 0%, #151525 50%, #0a0a14 100%);
  background-attachment: fixed;
  color: var(--text-primary);
}

/* Mantener colores de texto claros en fase retorno (tema oscuro) */
.fase-retorno h1, .fase-retorno h2, .fase-retorno h3,
.fase-asintotica h1, .fase-asintotica h2, .fase-asintotica h3 {
  color: var(--light);
}

.fase-retorno h2,
.fase-asintotica h2 {
  color: #9b59b6; /* Púrpura para h2 */
}

.fase-retorno p, .fase-retorno li,
.fase-asintotica p, .fase-asintotica li {
  color: var(--text-primary);
}

/* Espiral sutil de retorno cíclico */
.fase-retorno::before,
.fase-asintotica::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  transform: translate(-50%, -50%);
  background:
    conic-gradient(
      from 0deg at 50% 50%,
      transparent 0deg,
      rgba(100, 100, 120, 0.03) 60deg,
      transparent 120deg,
      rgba(100, 100, 120, 0.02) 180deg,
      transparent 240deg,
      rgba(100, 100, 120, 0.03) 300deg,
      transparent 360deg
    );
  animation: espiralRetorno 60s linear infinite;
  pointer-events: none;
}

@keyframes espiralRetorno {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===========================================
   4. ESTILOS ESPECÍFICOS PARA BLOQUES MCMC
   =========================================== */

/* Bloque 0: Primordial - Rojo/Negro */
.bloque-0-theme {
  --bloque-color: #ff6b6b;
  --bloque-bg: rgba(255, 107, 107, 0.08);
}

/* Bloque 1: Pre-geometría - Amarillo/Púrpura */
.bloque-1-theme {
  --bloque-color: #ffd93d;
  --bloque-bg: rgba(255, 217, 61, 0.08);
}

/* Bloque 2: Cosmología - Verde/Cyan */
.bloque-2-theme {
  --bloque-color: #6bcb77;
  --bloque-bg: rgba(107, 203, 119, 0.08);
}

/* Bloque 3: N-Body - Azul */
.bloque-3-theme {
  --bloque-color: #4d96ff;
  --bloque-bg: rgba(77, 150, 255, 0.08);
}

/* Bloque 4: Lattice - Púrpura */
.bloque-4-theme {
  --bloque-color: #9b59b6;
  --bloque-bg: rgba(155, 89, 182, 0.08);
}

/* ===========================================
   5. COHERENCIA ESTÉTICA - MOTIVOS DUALES
   =========================================== */

/* Patrón sutil de dualidad ◆◯ para fondos especiales */
.dualidad-pattern {
  position: relative;
}

.dualidad-pattern::after {
  content: '◆ ◯';
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 2rem;
  opacity: 0.05;
  letter-spacing: 0.5rem;
  color: var(--gold);
  pointer-events: none;
}

/* Líneas de Campo de Adrián - costura visual */
.campo-adrian-lines {
  position: relative;
}

.campo-adrian-lines::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 100px,
      rgba(255, 215, 0, 0.01) 100px,
      rgba(255, 215, 0, 0.01) 102px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 100px,
      rgba(233, 69, 96, 0.01) 100px,
      rgba(233, 69, 96, 0.01) 102px
    );
  pointer-events: none;
}

/* ===========================================
   6. TRANSICIONES ENTRE FASES
   Conectores visuales suaves
   =========================================== */

/* Transición de sección con gradiente inferior */
.seccion-transicion-oscura::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(10, 10, 20, 0.8));
  pointer-events: none;
}

.seccion-transicion-clara::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(200, 200, 210, 0.8));
  pointer-events: none;
}

/* ===========================================
   7. MEJORAS DE ACCESIBILIDAD Y LEGIBILIDAD
   =========================================== */

/* Overlay sutil para mejorar legibilidad sobre fondos complejos */
.text-overlay-dark {
  background: rgba(10, 10, 20, 0.7);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  padding: 2rem;
}

.text-overlay-light {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  padding: 2rem;
  color: #1a1a3e;
}

/* ===========================================
   8. RESPONSIVE PARA FONDOS TEMÁTICOS
   =========================================== */

@media (max-width: 768px) {
  /* Simplificar fondos complejos en móvil para rendimiento */
  .fase-pregeom::before,
  .fase-pregeometrica::before,
  .fase-geom::before,
  .fase-geometrica::before,
  .fase-observable::before,
  .fase-retorno::before,
  .fase-asintotica::before {
    display: none;
  }

  /* Desactivar background-attachment: fixed en móvil (no soportado en iOS) */
  body,
  .fase-s0,
  .fase-primordial,
  .fase-pregeom,
  .fase-pregeometrica,
  .fase-geom,
  .fase-geometrica,
  .fase-observable,
  .fase-retorno,
  .fase-asintotica {
    background-attachment: scroll;
  }
}

/* =====================================================
   REDISEÑO VISUAL COMPLETO - Febrero 2026
   Basado en la Ontología Dual del MCMC
   ===================================================== */

/* ===========================================
   9. TIPOGRAFÍA MEJORADA
   =========================================== */

/* Aplicar Cormorant Garamond a títulos */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
}

h1 {
  font-weight: 300;
  font-size: 2.75rem;
}

h2 {
  font-weight: 400;
}

/* Cuerpo con Inter */
body {
  font-family: var(--font-body);
  font-weight: 400;
}

/* Código y ecuaciones */
code, .formula, .data, .ecuacion-principal, .bloque-ecuacion {
  font-family: var(--font-mono);
}

/* Hero título con tipografía elegante */
.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.03em;
}

.hero-label {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
}

/* ===========================================
   10. FONDOS POR SECCIÓN ESPECÍFICA
   =========================================== */

/* --- 10.1 PÁGINA PRINCIPAL + ONTOLOGÍA --- */
/* Tensión primordial entre Masa y Espacio */
.section-home,
.section-ontology,
body.page-home,
body.page-ontologia {
  position: relative;
}

.section-home::before,
body.page-home main::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, var(--color-mass-glow) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, var(--color-space-glow) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* --- 10.2 SECCIÓN MCMC (Cosmología) --- */
/* Colapsos entrópicos, ondas concéntricas */
.section-mcmc,
body.page-mcmc {
  position: relative;
}

.section-mcmc::before,
body.page-mcmc main::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at center, #0d1b2a 0%, transparent 70%),
    radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
  animation: cosmicPulse 8s ease-in-out infinite;
}

@keyframes cosmicPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}

/* --- 10.3 SECCIÓN FILOSOFÍA --- */
/* Camino serpenteante, tonos cálidos */
.section-philosophy,
body.page-filosofia {
  position: relative;
}

.section-philosophy::before,
body.page-filosofia main::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, transparent 50%),
    linear-gradient(45deg, rgba(212, 165, 116, 0.05) 0%, transparent 30%),
    linear-gradient(-45deg, rgba(126, 184, 201, 0.05) 100%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* --- 10.4 SECCIÓN TAIJI --- */
/* Yin-Yang en movimiento */
.section-taiji,
body.page-taiji {
  position: relative;
}

.section-taiji::before,
body.page-taiji main::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at center, #1a1a1a 0%, #0d0d0d 50%, #000000 100%),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
    linear-gradient(to left, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* --- 10.5 SECCIÓN RECURSOS/IA --- */
/* Tech futurista, grid de datos */
.section-resources,
body.page-recursos,
body.page-asistentes {
  position: relative;
}

.section-resources::before,
body.page-recursos main::before,
body.page-asistentes main::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -1;
  animation: gridShift 20s linear infinite;
}

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

/* --- 10.6 SECCIÓN AUTOR --- */
/* Personal, cálido pero profesional */
.section-author,
body.page-autor {
  position: relative;
}

.section-author::before,
body.page-autor main::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, var(--color-mass-glow) 0%, transparent 50%),
    linear-gradient(135deg, #16213e 0%, #1a1a2e 50%, #1e1e3a 100%);
  pointer-events: none;
  z-index: -1;
}

/* ===========================================
   11. ANIMACIONES MINIMALISTAS
   =========================================== */

/* --- 11.1 Contenedor de Partículas de Tensión Masa-Espacio --- */
.tension-particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

#tension-canvas {
  width: 100%;
  height: 100%;
}

/* --- 11.2 Ondas de Colapso Entrópico --- */
.entropic-collapse-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.collapse-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 50%;
  animation: collapseExpand 8s ease-out infinite;
}

.collapse-wave:nth-child(1) { animation-delay: 0s; }
.collapse-wave:nth-child(2) { animation-delay: 1.6s; }
.collapse-wave:nth-child(3) { animation-delay: 3.2s; }
.collapse-wave:nth-child(4) { animation-delay: 4.8s; }
.collapse-wave:nth-child(5) { animation-delay: 6.4s; }

@keyframes collapseExpand {
  0% {
    width: 50px;
    height: 50px;
    opacity: 0.8;
    border-width: 2px;
  }
  100% {
    width: 1200px;
    height: 1200px;
    opacity: 0;
    border-width: 0.5px;
  }
}

/* --- 11.3 Símbolo Yin-Yang Rotatorio (Taiji) --- */
.taiji-background {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

.taiji-symbol {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: linear-gradient(to right, var(--light) 50%, #0d0d0d 50%);
  position: relative;
  animation: slowRotate 60s linear infinite;
}

.taiji-symbol::before,
.taiji-symbol::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
}

.taiji-symbol::before {
  top: 0;
  left: 100px;
  background: var(--light);
}

.taiji-symbol::after {
  bottom: 0;
  left: 100px;
  background: #0d0d0d;
}

/* Puntos internos del Taiji */
.taiji-symbol .dot-light,
.taiji-symbol .dot-dark {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.taiji-symbol .dot-dark {
  top: 80px;
  left: 180px;
  background: #0d0d0d;
}

.taiji-symbol .dot-light {
  bottom: 80px;
  left: 180px;
  background: var(--light);
}

@keyframes slowRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===========================================
   12. NAVEGACIÓN MEJORADA
   =========================================== */

/* Navbar con mejor efecto de scroll */
.navbar.scrolled {
  background: rgba(10, 10, 20, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  padding: 0.75rem 1.5rem;
}

/* Brand/Logo mejorado */
.nav-brand,
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: transform 0.3s var(--transition-elegant);
}

.nav-brand:hover,
.nav-logo:hover {
  transform: scale(1.02);
}

/* Símbolo de marca */
.brand-symbol {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-mass);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--text-primary);
}

/* Links de navegación mejorados */
.nav-link {
  position: relative;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: var(--transition-elegant);
  border-radius: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--color-mass);
  transition: all 0.3s;
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(201, 162, 39, 0.08);
  text-decoration: none;
}

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

.nav-link.active {
  color: var(--color-mass);
  background: rgba(201, 162, 39, 0.12);
}

.nav-link.active::after {
  width: 80%;
}

/* Iconos de navegación */
.nav-icon {
  margin-right: 0.5rem;
  font-size: 0.9em;
  opacity: 0.8;
}

/* ===========================================
   13. QUICK NAVIGATION CARDS
   =========================================== */

.quick-nav-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

.quick-nav-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2rem;
  text-decoration: none;
  transition: var(--transition-elegant);
  position: relative;
  overflow: hidden;
}

.quick-nav-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-mass), var(--color-space));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.quick-nav-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevated);
  text-decoration: none;
}

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

.quick-nav-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quick-nav-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.quick-nav-card .card-arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--color-mass);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s;
}

.quick-nav-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ===========================================
   14. DUALIDAD VISUAL MASA-ESPACIO
   =========================================== */

/* Indicador de polo Masa */
.pole-mass,
.duality-pole.mass {
  border-color: var(--color-mass);
  color: var(--color-mass);
}

.pole-mass::before,
.duality-pole.mass::before {
  background: var(--color-mass-glow);
}

/* Indicador de polo Espacio */
.pole-space,
.duality-pole.space {
  border-color: var(--color-space);
  color: var(--color-space);
}

.pole-space::before,
.duality-pole.space::before {
  background: var(--color-space-glow);
}

/* Conector de tensión */
.tension-connector,
.duality-connector {
  background: linear-gradient(90deg, var(--color-mass), var(--color-space));
  opacity: 0.6;
}

/* Hero poles mejorados */
.hero-pole-mass {
  border-color: var(--color-mass);
}

.hero-pole-mass .pole-symbol {
  color: var(--color-mass);
  text-shadow: 0 0 20px var(--color-mass-glow);
}

.hero-pole-space {
  border-color: var(--color-space);
}

.hero-pole-space .pole-symbol {
  color: var(--color-space);
  text-shadow: 0 0 20px var(--color-space-glow);
}

.hero-tension .tension-symbol {
  color: var(--text-muted);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* ===========================================
   15. MEJORAS RESPONSIVE COMPLETAS
   =========================================== */

/* Tablet */
@media (max-width: 900px) {
  .navbar {
    flex-wrap: wrap;
  }

  .hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
  }

  .hero-duality {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-tension {
    transform: rotate(90deg);
  }

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

  .taiji-symbol {
    width: 300px;
    height: 300px;
  }

  .taiji-symbol::before,
  .taiji-symbol::after {
    width: 150px;
    height: 150px;
    left: 75px;
  }
}

/* Mobile - pantallas pequeñas */
@media (max-width: 600px) {
  .navbar {
    padding: 0.75rem 1rem;
  }

  .quick-nav-section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .quick-nav-card {
    padding: 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  /* Desactivar animaciones pesadas en móvil */
  .entropic-collapse-container,
  .taiji-background,
  .tension-particles-container {
    display: none;
  }

  /* Simplificar fondos */
  .section-mcmc::before,
  .section-philosophy::before,
  .section-taiji::before,
  .section-resources::before,
  .section-author::before {
    display: none;
  }
}

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

/* ===========================================
   16. ANIMACIONES DE SCROLL
   =========================================== */

/* Fade in on scroll */
.fade-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Slide in from sides */
.slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-left.visible,
.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===========================================
   17. EFECTOS HOVER MEJORADOS
   =========================================== */

/* Efecto glow en hover para elementos interactivos */
.glow-on-hover {
  transition: var(--transition-elegant);
}

.glow-on-hover:hover {
  box-shadow:
    0 0 20px var(--color-mass-glow),
    0 0 40px rgba(201, 162, 39, 0.1);
}

/* Efecto de escala suave */
.scale-on-hover {
  transition: transform 0.3s ease;
}

.scale-on-hover:hover {
  transform: scale(1.02);
}

/* ===========================================
   18. ESTADOS DE CARGA Y TRANSICIONES
   =========================================== */

/* Skeleton loader */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Page transition */
.page-transition {
  animation: pageIn 0.4s ease-out;
}

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