/* ===================================================
   TU PORTAL DEL ALMA — ESTILO GLOBAL "CÁLIDO EDITORIAL"
   Identidad Digital Rider · inspiración layout MNTN
   =================================================== */

/* --- FUENTES --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- RESET --- */
html, body {
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box !important;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    background: #181715 !important;
    color: #f2efe9 !important;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background 0.4s ease !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
    letter-spacing: -0.02em;
}

/* --- FONDO CÁLIDO (sin animación galáctica) --- */
.global-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: #181715;
    background-image:
        radial-gradient(ellipse 60% 45% at 12% 8%, rgba(237, 183, 129, 0.06), transparent 60%),
        radial-gradient(ellipse 55% 45% at 88% 92%, rgba(173, 212, 217, 0.045), transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 120%, rgba(180, 201, 149, 0.04), transparent 65%);
}

/* --- "POLVO" SUTIL (reemplaza estrellas parpadeantes) --- */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

.star {
    position: absolute;
    background: rgba(237, 183, 129, 0.5);
    border-radius: 50%;
    opacity: 0.25;
    animation: driftDust var(--duration, 6s) ease-in-out infinite;
}

@keyframes driftDust {
    0%, 100% { opacity: 0.12; transform: translateY(0); }
    50% { opacity: 0.4; transform: translateY(-6px); }
}

/* --- NAVBAR --- */
.navbar {
    background: rgba(24, 23, 21, 0.92) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-bottom: 1px solid rgba(232, 230, 225, 0.09) !important;
    box-shadow: none !important;
    z-index: 1030 !important;
}

.navbar::before {
    content: '' !important;
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(237, 183, 129, 0.5), rgba(180, 201, 149, 0.4), transparent) !important;
}

.navbar-brand span {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    color: #f2efe9 !important;
    text-shadow: none !important;
}

/* --- NAV LINKS --- */
.navbar-nav .nav-link {
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    padding: 0.7rem 1rem !important;
    color: rgba(242, 239, 233, 0.7) !important;
    transition: color 0.2s ease, background 0.2s ease !important;
}

.navbar-nav .nav-link:hover {
    color: #f2efe9 !important;
    background: rgba(237, 183, 129, 0.1) !important;
    border-radius: 8px !important;
}

/* --- DROPDOWNS --- */
.dropdown-menu {
    background: rgba(38, 37, 34, 0.98) !important;
    backdrop-filter: blur(18px) !important;
    border: 1px solid rgba(232, 230, 225, 0.12) !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
    padding: 0.6rem !important;
}

.dropdown-item {
    color: rgba(242, 239, 233, 0.78) !important;
    border-radius: 8px !important;
    padding: 0.55rem 0.9rem !important;
    transition: background 0.18s ease, color 0.18s ease !important;
}

.dropdown-item:hover {
    background: rgba(237, 183, 129, 0.14) !important;
    color: #f2efe9 !important;
}

.dropdown-header {
    color: rgba(146, 141, 132, 0.9) !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.64rem !important;
}

.dropdown-divider {
    border-color: rgba(232, 230, 225, 0.1) !important;
}

/* --- CONTENEDORES (Blog, Cursos, etc.) --- */
.glass-panel {
    background: rgba(38, 37, 34, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(232, 230, 225, 0.1) !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28) !important;
}

/* --- BOTÓN "MÍSTICO" (legacy, ahora sobrio terracota) --- */
.btn-mistic {
    background: #cd734f !important;
    border: 1px solid #cd734f !important;
    color: #fff !important;
    border-radius: var(--radius-pill, 999px) !important;
    padding: 10px 26px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 6px 18px rgba(205, 115, 79, 0.3) !important;
}

.btn-mistic:hover {
    background: #b45f3d !important;
    border-color: #b45f3d !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 26px rgba(205, 115, 79, 0.42) !important;
}

/* --- RESPONSIVE --- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(24, 23, 21, 0.97) !important;
        margin: 10px -15px 0 -15px !important;
        padding: 20px !important;
        border-radius: 0 0 16px 16px !important;
        border: 1px solid rgba(232, 230, 225, 0.1) !important;
    }

    .dropdown-menu {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding-left: 1rem !important;
    }
}

/* ===================================================
   SELECTOR DE IDIOMA — ES / EN
   =================================================== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(232, 230, 225, 0.06);
    border: 1px solid rgba(232, 230, 225, 0.12);
    border-radius: 100px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.lang-btn {
    color: rgba(242, 239, 233, 0.45);
    text-decoration: none;
    padding: 2px 5px;
    border-radius: 100px;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: #f2efe9;
}

.lang-btn.lang-active {
    background: rgba(237, 183, 129, 0.2);
    color: #edb781;
    border-radius: 100px;
    padding: 2px 7px;
}

.lang-sep {
    color: rgba(242, 239, 233, 0.2);
    font-weight: 300;
    font-size: 0.8rem;
}

/* ===================================================
   SELECTOR VISTA — Básica / Completa
   =================================================== */
.vista-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 100px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.vista-btn {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 100px;
    transition: all 0.2s ease;
}

.vista-btn:hover {
    color: #fff;
}

.vista-btn.vista-active {
    background: rgba(255, 255, 255, 0.95);
    color: #d46628;
    padding: 2px 8px;
}

.vista-sep {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 300;
}
