:root {
  /* --- VARIABLES BASE --- */
  --primary: #8b5cf6;
  --glass-bg: rgba(15, 23, 42, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.15);
  --glass-shadow: rgba(0, 0, 0, 0.4);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --bg-color: #020617;
  --nav-bg: #0f172a;
  
  /* --- VARIABLES PREMIUM --- */
  --active-gradient: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  --primary-glow: rgba(139, 92, 246, 0.5);
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
  padding-bottom: 110px;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.03) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(255,255,255,0.03) 0%, transparent 20%);
}

/* Fondo Ambiental */
.ambient-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -1;
  background: radial-gradient(circle at 50% 50%, var(--primary-glow) 0%, transparent 60%);
  opacity: 0.25;
  pointer-events: none;
  transition: all 0.5s ease;
  filter: blur(40px);
}

/* --- ESTILO GLASSMORPHISM REALISTA (3D) --- */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-highlight);
  border-bottom: 1px solid rgba(0,0,0,0.3);
  border-left: 1px solid var(--glass-border);
  border-right: 1px solid var(--glass-border);
  box-shadow: 
    0 10px 40px -10px var(--glass-shadow),
    inset 0 0 20px rgba(255,255,255,0.02);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.glass-button:active, .btn-primary:active { 
    transform: scale(0.95) translateY(2px); 
    box-shadow: 0 0 0 rgba(0,0,0,0);
}

.theme-glow .glass-panel { 
    box-shadow: 0 0 25px -5px var(--primary-glow), inset 0 0 20px rgba(255,255,255,0.02);
    border-color: var(--primary); 
}

.theme-card { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.theme-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.theme-card.active { ring: 2px solid var(--primary); transform: scale(1.02); }

.btn-primary {
    background: var(--active-gradient) !important;
    box-shadow: 0 8px 20px -5px var(--primary-glow);
    color: white;
    border-top: 1px solid rgba(255,255,255,0.2);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.font-bible { font-family: 'Merriweather', serif; line-height: 1.8; }

input, select, textarea {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  border-radius: 16px;
  padding: 14px;
  outline: none;
  transition: all 0.3s;
  width: 100%;
  box-sizing: border-box;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow), inset 0 2px 4px rgba(0,0,0,0.2);
  background: rgba(0,0,0,0.3);
}

input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: 0.6; }
select option { background-color: var(--nav-bg); color: var(--text-main); }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.selected-verse {
    background: rgba(var(--primary), 0.1);
    border-radius: 12px;
    border: 1px solid var(--primary);
    box-shadow: 0 0 25px var(--primary-glow) inset;
}

@keyframes fadeIn { from{opacity:0; transform:translateY(15px)} to{opacity:1; transform:none} }
.animate-enter { animation: fadeIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

/* Dock Nav */
.dock-nav {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255,255,255,0.05);
    border-top: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.nav-icon-active {
    color: white !important;
    transform: translateY(-12px) scale(1.15);
    filter: drop-shadow(0 8px 12px var(--primary-glow));
}

.nav-item-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50px;
}

.nav-dot {
    width: 5px; height: 5px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    bottom: -8px;
    opacity: 0;
    transition: all 0.3s;
    box-shadow: 0 0 8px var(--primary);
}
.nav-icon-active + .nav-dot { opacity: 1; bottom: 0; }

.fab-button {
    background: var(--active-gradient);
    box-shadow: 
        0 10px 25px -5px var(--primary-glow), 
        0 5px 10px rgba(0,0,0,0.3),
        inset 0 3px 5px rgba(255,255,255,0.4), 
        inset 0 -3px 5px rgba(0,0,0,0.2); 
}