/* ============================================================
   Variables LOCALES del layout público (dark premium theme)
   Las variables compartidas (--primary, --radius-*, etc.)
   se heredan de style.css via el archivo global si se carga.
   Este layout es standalone (no carga style.css del panel).
   ============================================================ */
:root {
    --bg-base:           #0B0F19;
    --accent-gold:       #D4AF37;
    --accent-gold-light: #FCE69C;
    --accent-gold-dark:  #A67C00;
    --text-main:         #FFFFFF;
    --text-muted:        #9CA3AF;

    --glass-bg:     rgba(15, 23, 42, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur:   blur(24px);

    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;

    --font-main:  'Plus Jakarta Sans', sans-serif;
    --transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-base);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; }

/* ---- Navbar Glassmorphism ---- */
.navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(11, 15, 25, 0.92);
    width: 100%;
    top: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: white;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.brand-icon {
    color: var(--accent-gold);
    font-size: 1.8rem;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #D1D5DB;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--accent-gold); }

/* Link especial visual en blanco */
.nav-link-white {
    color: #FFFFFF;
}

.btn-premium {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    color: #000;
    padding: 0.8rem 2rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}
.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
    pointer-events: none;
}
.btn-premium:hover::before { left: 150%; }
.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
    color: #000;
}

main { min-height: 100vh; }

/* ---- Hamburger ---- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1002;
    padding: 0.25rem;
    border-radius: 8px;
    transition: background 0.2s;
}
.menu-toggle:hover { background: rgba(255,255,255,0.08); }

/* ---- Overlay ---- */
.overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.overlay.active { display: block; opacity: 1; }

/* ---- Footer básico ---- */
footer {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--glass-border);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .navbar {
        width: 95%;
        padding: 0.8rem 1.2rem;
    }

    .brand    { font-size: 1.05rem; }
    .brand-icon { font-size: 1.4rem; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(280px, 85vw);
        height: 100vh;
        background: var(--bg-base);
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        padding: 2rem;
        transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
        z-index: 1001;
        border-left: 1px solid var(--glass-border);
        overflow-y: auto;
    }

    /* Estado visible del menú */
    .nav-links.active { right: 0; }

    /* Ítems del menú en móvil más grandes */
    .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }

    .btn-premium {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
    }

    .menu-toggle { display: block; }
}

/* ============================================================
   ESTILOS DE LA LANDING PAGE (landing.php)
   ============================================================ */
/* Utilidades de Animación */
.glass-reveal { opacity: 0; transform: translateY(50px) scale(0.95); transition: all 1s cubic-bezier(0.25, 1, 0.5, 1); }
.glass-visible { opacity: 1 !important; transform: translateY(0) scale(1) !important; }

/* ---- HERO BACKGROUND ---- */
.hero-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 5% 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 110%;
    background: url('https://images.pexels.com/photos/272337/pexels-photo-272337.jpeg') no-repeat center center/cover;
    z-index: -2;
    animation: smoothZoom 30s linear infinite alternate;
    filter: brightness(0.7);
}
@keyframes smoothZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

/* Overlay degradado */
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(11,15,25,0.2) 0%, rgba(11,15,25,0.9) 100%);
    z-index: -1;
}

/* Glass Card Principal */
.hero-glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 4rem;
    max-width: 900px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.hero-title span { color: var(--accent-gold); font-style: italic; }

.hero-desc {
    font-size: 1.15rem; color: #D1D5DB;
    margin: 0 auto 2.5rem; max-width: 600px;
    line-height: 1.8;
}

.btn-outline {
    background: transparent; color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.8rem 2rem; border-radius: 100px;
    font-weight: 600; font-size: 0.95rem; text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.5rem;
    transition: var(--transition);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* ---- SECCIÓN METODOLOGÍA (Glass Grid) ---- */
.features-section {
    padding: 6rem 5%;
    background: var(--bg-base);
    position: relative;
    overflow: hidden;
}
.features-section::before {
    content: ''; position: absolute; top: -200px; right: -200px;
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, rgba(11,15,25,0) 70%);
    z-index: 0; pointer-events: none;
}

.section-header { text-align: center; margin-bottom: 4rem; position: relative; z-index: 1; }
.section-title { font-size: 2.5rem; color: white; margin-bottom: 1rem; }
.section-subtitle { color: var(--accent-gold); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 0.85rem; }

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

.glass-feature {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    transition: var(--transition);
    text-align: center;
}
.glass-feature:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(212,175,55,0.3);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.gf-icon {
    width: 70px; height: 70px; margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(212,175,55,0.05));
    border: 1px solid rgba(212,175,55,0.2);
    color: var(--accent-gold); border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 2rem;
}
.gf-title { font-size: 1.3rem; margin-bottom: 1rem; color: white; }
.gf-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* ---- RUTAS DE APRENDIZAJE ---- */
.courses-section {
    padding: 6rem 5% 8rem;
    background: var(--bg-base);
    position: relative; overflow: hidden;
}

.ruta-container { max-width: 1000px; margin: 0 auto 6rem; }
.ruta-header { text-align: center; margin-bottom: 4rem; }
.ruta-title {
    font-size: 2.2rem; color: var(--accent-gold); margin-bottom: 0.5rem;
    display: flex; align-items: center; justify-content: center; gap: 0.8rem;
}
.ruta-desc { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

.learning-path { position: relative; padding: 2rem 0; }
.learning-path::before {
    content: ''; position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 4px; margin-left: -2px;
    background: linear-gradient(to bottom, transparent, rgba(212,175,55,0.5), transparent);
    border-radius: 10px; z-index: 1;
}

.path-node {
    display: flex; width: 100%;
    justify-content: flex-end; margin-bottom: 3rem; 
    position: relative; z-index: 2;
}
.path-node:nth-child(odd) { justify-content: flex-start; }

.node-icon {
    width: 60px; height: 60px;
    background: var(--bg-base); border: 3px solid rgba(212,175,55,0.8);
    border-radius: 50%; 
    position: absolute; left: 50%; top: 20px; 
    transform: translateX(-50%);
    display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem; color: var(--accent-gold);
    box-shadow: 0 0 0 6px var(--bg-base), 0 0 20px rgba(212,175,55,0.4);
    transition: var(--transition);
    z-index: 3;
}
.path-node:hover .node-icon {
    background: var(--accent-gold); color: black;
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 0 0 6px var(--bg-base), 0 0 30px rgba(212,175,55,0.8);
}

.course-glass-card {
    width: 45%;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: var(--transition);
    text-decoration: none;
}
.course-glass-card:hover {
    border-color: rgba(212,175,55,0.4);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    transform: translateY(-8px);
}

.cg-img { height: 220px; position: relative; overflow: hidden; }
.cg-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1s ease; filter: brightness(0.8);
}
.course-glass-card:hover .cg-img img { transform: scale(1.1); filter: brightness(1); }

.cg-badge {
    position: absolute; top: 1rem; right: 1rem;
    background: rgba(11,15,25,0.7); backdrop-filter: blur(5px);
    color: var(--accent-gold); padding: 0.4rem 1rem;
    border-radius: 100px; font-size: 0.75rem; font-weight: 700; letter-spacing: 1px;
    border: 1px solid rgba(212,175,55,0.3);
}

.cg-content { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; }
.cg-title { font-size: 1.4rem; color: white; margin-bottom: 0.8rem; }
.cg-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.cg-footer {
    margin-top: auto; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.05);
    display: flex; justify-content: space-between; align-items: center;
}
.cg-prof { color: #D1D5DB; font-size: 0.85rem; display: flex; align-items: center; gap: 0.5rem; }
.cg-btn {
    color: var(--accent-gold); text-decoration: none; font-weight: 700; font-size: 0.9rem;
    display: flex; align-items: center; gap: 0.5rem; transition: var(--transition);
}
.course-glass-card:hover .cg-btn { gap: 1rem; }

/* Utilidades adicionales y limpiezas de estilos inline */
.hero-icon-wrapper {
    display: inline-flex; justify-content: center; align-items: center; 
    width: 60px; height: 60px; background: rgba(212,175,55,0.1); 
    border: 1px solid rgba(212,175,55,0.2); border-radius: 50%; margin-bottom: 1.5rem;
}
.hero-icon-wrapper i { color: var(--accent-gold); font-size: 2rem; }
.btn-premium.btn-lg { padding: 1rem 3rem; }
.empty-glass-card { max-width: 800px; margin: 0 auto; padding: 5rem; }
.empty-glass-card i { font-size: 4rem; color: var(--accent-gold); margin-bottom: 1rem; }
.text-muted-italic { text-align: center; color: var(--text-muted); font-style: italic; }

@media (max-width: 900px) {
    .hero-glass-card { padding: 3rem 1.5rem; }
    .hero-title { font-size: 2.2rem; }
    
    .learning-path::before { left: 40px; }
    .path-node { justify-content: flex-end !important; }
    .node-icon { left: 40px !important; }
    .course-glass-card { width: calc(100% - 90px); }
}
