/* ==========================================================================
   DHAMMAPADA • IDENTIDAD VISUAL ZEN & CÓSMICA
   Dedicado a Janvier Recart • Nueva Dirección Artística
   ========================================================================== */

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

:root {
  --bg-deep-space: #030612;
  --color-cyan-glow: #38bdf8;
  --color-violet-glow: #a855f7;
  --color-jade: #10b981;
  --color-pearl: #f8fafc;
  --glass-bg-card: rgba(6, 12, 28, 0.25);
  --glass-bg-panel: rgba(4, 9, 22, 0.35);
  --glass-border: rgba(56, 189, 248, 0.22);
  --glass-blur: 8px;
}

/* Modos de Transparencia */
body.theme-crystal {
  --glass-bg-card: rgba(4, 8, 20, 0.16);
  --glass-bg-panel: rgba(4, 8, 20, 0.24);
  --glass-blur: 5px;
}
body.theme-balanced {
  --glass-bg-card: rgba(6, 12, 28, 0.35);
  --glass-bg-panel: rgba(5, 10, 24, 0.45);
  --glass-blur: 10px;
}
body.theme-contrast {
  --glass-bg-card: rgba(6, 12, 28, 0.72);
  --glass-bg-panel: rgba(4, 8, 20, 0.82);
  --glass-blur: 16px;
}

/* Estructura Universal & Scroll Vertical Suave */
* {
  box-sizing: border-box;
}

html {
  background-color: var(--bg-deep-space);
  color: var(--color-pearl);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.5) rgba(3, 6, 18, 0.95);
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-deep-space);
  color: var(--color-pearl);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Barra de Scroll Vertical Zen Cósmica (Elegante, visible y arrastrable en PC) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: rgba(3, 6, 18, 0.95);
  border-left: 1px solid rgba(56, 189, 248, 0.15);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.6), rgba(168, 85, 247, 0.6));
  border-radius: 9999px;
  border: 2px solid rgba(3, 6, 18, 0.95);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #38bdf8, #c084fc);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
}

h1, h2, h3, h4, .font-serif, .font-philosopher {
  font-family: 'Philosopher', Georgia, serif;
}

/* Glassmorphism Zen */
.glass-zen {
  background: var(--glass-bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-zen:hover {
  border-color: rgba(56, 189, 248, 0.45);
}

.glass-panel-zen {
  background: var(--glass-bg-panel);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(56, 189, 248, 0.30);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.glass-verse-card {
  background: rgba(3, 8, 22, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.5);
}

/* Sombra y Relieve de Cristal para Versos */
.text-crystal-verse {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95), 0 0 25px rgba(0, 0, 0, 0.9), 0 0 10px rgba(56, 189, 248, 0.35);
}

.text-glow-cyan {
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.55), 0 2px 8px rgba(0, 0, 0, 0.9);
}

.text-glow-violet {
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.55), 0 2px 8px rgba(0, 0, 0, 0.9);
}

.bg-radial-vignette {
  background: radial-gradient(circle at 50% 35%, rgba(3, 6, 18, 0.04) 0%, rgba(3, 6, 18, 0.30) 60%, rgba(3, 6, 18, 0.65) 100%);
}

/* Barra de Navegación */
.nav-zen {
  background: rgba(3, 7, 20, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.20);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: 0.75rem;
  font-size: 0.825rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s ease;
  color: #cbd5e1;
  text-decoration: none;
  border: 1px solid transparent;
}
.nav-link:hover {
  color: #38bdf8;
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(56, 189, 248, 0.25);
}
.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(168, 85, 247, 0.35));
  border-color: rgba(56, 189, 248, 0.6);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.25);
}

/* Utilidad sin scrollbars */
.no-scrollbar {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Animaciones */
@keyframes pulseSubtle {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}
.anim-pulse-subtle {
  animation: pulseSubtle 4s ease-in-out infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-spin-slow {
  animation: spinSlow 35s linear infinite;
}

@keyframes breathePulse {
  0% { transform: scale(1); opacity: 0.85; box-shadow: 0 0 25px rgba(56, 189, 248, 0.3); }
  40% { transform: scale(1.35); opacity: 1; box-shadow: 0 0 65px rgba(56, 189, 248, 0.7); }
  60% { transform: scale(1.35); opacity: 1; box-shadow: 0 0 65px rgba(56, 189, 248, 0.7); }
  100% { transform: scale(1); opacity: 0.85; box-shadow: 0 0 25px rgba(56, 189, 248, 0.3); }
}
.anim-breathe {
  animation: breathePulse 12s ease-in-out infinite;
}