@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Space+Grotesk:wght@400;700&display=swap');

:root {
    --space-dark: #040712;
    --space-light: #0a0f24;
    --neon-cyan: #00f0ff;
    --neon-purple: #b026ff;
    --neon-pink: #ff2a85;
    --text-main: #e2e8f0;
    --text-muted: #74839a;
    --glass-bg: rgba(10, 15, 36, 0.75);
    --glass-border: rgba(0, 240, 255, 0.2);
    --glass-card: rgba(255, 255, 255, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--space-dark);
    color: var(--text-main);
    /* 🚀 UNIVERSO VECTORIAL: Capas de nebulosas + capas de estrellas micro-calculadas */
    background-image:
    /* Capa 1 y 2: Tus nebulosas de fondo */
    radial-gradient(circle at 20% 30%, rgba(176, 38, 255, 0.12), transparent 50%), radial-gradient(circle at 80% 70%, rgba(0, 240, 255, 0.12), transparent 50%),
    /* Capas 3 a 8: Estrellas creadas matemáticamente (vectores puros) */
    radial-gradient(1px 1px at 25px 50px, #fff, transparent), radial-gradient(1.5px 1.5px at 150px 300px, rgba(255, 255, 255, 0.8), transparent), radial-gradient(2px 2px at 300px 100px, rgba(0, 240, 255, 0.9), transparent), /* Estrellas cian */
    radial-gradient(1px 1px at 400px 450px, #fff, transparent), radial-gradient(2px 2px at 550px 200px, rgba(255, 42, 133, 0.8), transparent), /* Estrellas rosa */
    radial-gradient(1.5px 1.5px at 700px 600px, #fff, transparent);
    /* Definimos el tamaño de cuadrícula para que las estrellas se repitan infinitamente sin deformarse */
    background-size: cover, cover, 550px 550px, 450px 450px, 600px 600px, 400px 400px, 700px 700px, 650px 650px;
    background-repeat: no-repeat, no-repeat, repeat, repeat, repeat, repeat, repeat, repeat;
    background-position: center, center, 0px 0px, 0px 0px, 0px 0px, 0px 0px, 0px 0px, 0px 0px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: 'Space Grotesk', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- NUEVA BARRA DE NAVEGACIÓN CON BUSCADOR INTEGRADO --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(4, 7, 18, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.8rem 4%;
    display: grid;
    grid-template-columns: 220px 1fr auto;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

/* Buscador en la cabecera */
.header-search-container {
    position: relative;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 30px;
    padding: 2px 6px 2px 16px;
    transition: all 0.3s ease;
}

    .search-wrapper:focus-within {
        border-color: var(--neon-cyan);
        box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
        background: rgba(4, 7, 18, 0.95);
    }

.search-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 8px 0;
}

    .search-input::placeholder {
        color: var(--text-muted);
    }

.search-btn {
    background: transparent;
    border: none;
    color: var(--neon-cyan);
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: rgba(6, 10, 26, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid var(--neon-cyan);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.7);
    display: none;
    flex-direction: column;
    z-index: 1100;
}

.autocomplete-item {
    padding: 12px 18px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

    .autocomplete-item:hover {
        background: rgba(0, 240, 255, 0.08);
        color: var(--neon-cyan);
    }

    .autocomplete-item .item-type {
        font-size: 0.7rem;
        padding: 3px 8px;
        border-radius: 20px;
        font-weight: bold;
        text-transform: uppercase;
    }

.right-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

    .nav-links a {
        font-weight: 600;
        transition: 0.3s;
        color: var(--text-main);
        font-size: 0.95rem;
    }

        .nav-links a:hover {
            color: var(--neon-cyan);
            text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
        }

.btn-neon {
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

    .btn-neon:hover {
        background: var(--neon-cyan);
        color: var(--space-dark);
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
    }

.btn-purple {
    border-color: var(--neon-purple);
    color: var(--neon-purple);
}

    .btn-purple:hover {
        background: var(--neon-purple);
        color: white;
        box-shadow: 0 0 20px rgba(176, 38, 255, 0.6);
    }

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--neon-cyan);
}

/* --- HERO BANNER SIN BUSCADOR --- */
.hero {
    margin-top: 68px;
    position: relative;
    height: 55vh;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .slide::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to top, rgba(4,7,18,1) 0%, rgba(4,7,18,0.4) 100%);
    }

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 850px;
    padding: 2rem;
}

    .slide-content h1 {
        font-size: 3.5rem;
        margin-bottom: 1rem;
        line-height: 1.15;
        font-weight: 800;
        text-shadow: 0 0 30px rgba(0,240,255,0.2);
    }

    .slide-content p {
        font-size: 1.2rem;
        color: #a0aec0;
        margin-bottom: 2rem;
    }

.carousel-btns {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: 0.3s;
}

    .dot.active {
        background: var(--neon-cyan);
        box-shadow: 0 0 12px var(--neon-cyan);
        width: 26px;
        border-radius: 8px;
    }

/* --- SECCIONES Y TARJETAS DE CURSOS --- */
.section {
    padding: 1rem 4%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

    .section-title span {
        background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 2.5rem;
}

.course-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .course-card:hover {
        transform: translateY(-6px);
        border-color: var(--neon-cyan);
        box-shadow: 0 15px 30px rgba(0,240,255,0.15);
    }

.course-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

    .badge.free {
        background: #00ff88;
        color: #000;
        box-shadow: 0 0 10px rgba(0,255,136,0.3);
    }

    .badge.paid {
        /* 1. Fondo transparente tipo vidrio */
        background: rgba(255, 255, 255, 0.02);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 215, 0, 0.5);
        /* 2. BRILLO HACIA AFUERA (Glow potente) */
        /* El drop-shadow proyecta el brillo de la forma del badge hacia afuera */
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5)) drop-shadow(0 0 20px rgba(255, 215, 0, 0.3));
        /* 3. Letras limpias (Sin brillo propio) */
        /* Solo aplicamos el color dorado sólido sin efectos de luz */
        color: #FFD700;
        text-shadow: none;
        /* 4. Propiedades de diseño */
        position: absolute;
        top: 12px;
        right: 12px;
        padding: 5px 14px;
        border-radius: 20px;
        font-size: 0.65rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1.2px;
        /* Aseguramos nitidez */
        z-index: 10;
    }

.course-info {
    /* 📐 Relleno interno: 32px arriba, 24px a los lados (izquierda/derecha), 24px abajo */
    padding: 32px 36px 24px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative; /* Mantiene el anclaje para la categoría absoluta */
}

.course-category {
    position: absolute;
    top: 14px;
    left: 24px; /* 🌟 Cambiado para que coincida exactamente con el padding del contenedor */
    color: var(--neon-cyan);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.course-info h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.course-info p {
    color: #a0aec0;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    padding-right: 1.5em;
    line-height: 1.5;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 16px; /* Solo espacio hacia arriba respecto a la línea divisoria */
    margin-top: auto; /* Empuja el footer siempre hacia el fondo de la tarjeta */
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
}

/* --- DETALLE DE CURSO GRATIS CON MUESTRA DE 3 VIDEOS --- */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    margin-top: 90px;
    padding: 3rem 4%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.detail-main h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.detail-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    color: #a0aec0;
    font-size: 0.9rem;
}

    .detail-meta span i {
        color: var(--neon-cyan);
        margin-right: 5px;
    }

.detail-banner-img {
    width: 100%;
    height: 320px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--glass-border);
    margin-bottom: 2.5rem;
}

.detail-section {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 14px;
    margin-bottom: 2rem;
}

    .detail-section h2 {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--neon-cyan);
    }

    .detail-section p {
        line-height: 1.6;
        color: #cbd5e1;
    }

/* Organización de las 3 Clases/Videos de Ejemplo Gratis */
.free-lessons-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preview-lesson-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.2rem;
    background: rgba(4, 7, 18, 0.5);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 12px;
    border-radius: 12px;
    transition: 0.3s;
    align-items: center;
}

    .preview-lesson-card:hover {
        border-color: var(--neon-cyan);
        background: rgba(0,240,255,0.03);
    }

.preview-thumbnail {
    height: 80px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .preview-thumbnail::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        border-radius: 8px;
    }

    .preview-thumbnail i {
        position: relative;
        z-index: 2;
        color: var(--neon-cyan);
        font-size: 1.4rem;
        text-shadow: 0 0 8px var(--neon-cyan);
    }

.preview-text h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: white;
}

.preview-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.detail-sidebar {
    position: sticky;
    top: 100px;
    background: rgba(8,12,28,0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--neon-cyan);
    border-radius: 20px;
    padding: 2rem;
    height: fit-content;
    text-align: center;
}

.sidebar-price {
    font-size: 2.3rem;
    font-weight: 800;
    color: #00ff88;
    margin-bottom: 1rem;
}

.sidebar-features {
    text-align: left;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9rem;
    list-style: none;
}

    .sidebar-features li {
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .sidebar-features li i {
            color: var(--neon-cyan);
        }

/* --- AULA VIRTUAL COMPLETA CON SECCIÓN DE RECURSOS --- */
.classroom {
    display: grid;
    grid-template-columns: 1fr 380px;
    height: calc(100vh - 68px);
    margin-top: 68px;
}

.video-section {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.video-container-box {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
}

    .video-container-box iframe, .video-container-box video {
        width: 100%;
        height: 100%;
        border-radius: 16px;
    }

.video-placeholder-ui {
    position: absolute;
    text-align: center;
    color: white;
    cursor: pointer;
    z-index: 5;
}

    .video-placeholder-ui i {
        font-size: 4.5rem;
        color: var(--neon-cyan);
        text-shadow: 0 0 15px var(--neon-cyan);
        transition: 0.3s;
    }

        .video-placeholder-ui i:hover {
            transform: scale(1.1);
        }

.video-info {
    margin-top: 1.5rem;
}

    .video-info h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

/* Sistema Avanzado de Recursos Organizados */
.classroom-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 10px 16px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    position: relative;
    transition: 0.3s;
}

    .tab-btn.active {
        color: var(--neon-cyan);
    }

        .tab-btn.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 100%;
            height: 2px;
            background: var(--neon-cyan);
            box-shadow: 0 0 8px var(--neon-cyan);
        }

.tab-panel {
    display: none;
}

    .tab-panel.active {
        display: block;
    }

/* Organización limpia de Recursos por Carpetas / Bloques */
.resource-folder {
    background: rgba(255,255,255,0.01);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.folder-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--neon-purple);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    padding-bottom: 6px;
}

    .folder-header i {
        font-size: 1.1rem;
    }

.material-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.material-item {
    background: rgba(4,7,18,0.4);
    border: 1px solid rgba(255,255,255,0.03);
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.material-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.material-icon {
    font-size: 1.3rem;
    color: var(--neon-pink);
}

.material-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.material-size {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.btn-download {
    background: rgba(0,240,255,0.08);
    border: 1px solid rgba(0,240,255,0.3);
    color: var(--neon-cyan);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: 0.3s;
}

    .btn-download:hover {
        background: var(--neon-cyan);
        color: var(--space-dark);
        border-color: var(--neon-cyan);
        box-shadow: 0 0 10px rgba(0,240,255,0.4);
    }

.course-modules {
    background: #060a1a;
    border-left: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modules-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.module-list {
    overflow-y: auto;
    flex-grow: 1;
    padding: 1.2rem;
}

.module-item {
    margin-bottom: 1.2rem;
}

.module-title {
    font-weight: 700;
    color: var(--neon-purple);
    margin-bottom: 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lesson {
    padding: 12px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

    .lesson:hover {
        background: rgba(255,255,255,0.03);
    }

    .lesson.active {
        background: rgba(0,240,255,0.07);
        border: 1px solid rgba(0,240,255,0.2);
        color: var(--neon-cyan);
        font-weight: 600;
    }

/* --- LOGIN PORTAL --- */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: radial-gradient(circle at center, #0b112c 0%, #03050f 100%);
}

.login-box {
    background: rgba(4, 7, 18, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

    .login-box h2 {
        margin-bottom: 1rem;
        font-size: 2rem;
    }

.input-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

    .input-group label {
        display: block;
        margin-bottom: 6px;
        color: var(--text-muted);
        font-size: 0.85rem;
        font-weight: 600;
    }

    .input-group input {
        width: 100%;
        padding: 12px 16px;
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 10px;
        color: white;
        font-family: inherit;
        font-size: 0.95rem;
        transition: 0.3s;
    }

        .input-group input:focus {
            outline: none;
            border-color: var(--neon-cyan);
            background: rgba(0,240,255,0.02);
            box-shadow: 0 0 10px rgba(0,240,255,0.2);
        }

/* --- STUDENT DASHBOARD --- */
.dashboard {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    padding-top: 68px;
}

.sidebar {
    background: rgba(5, 8, 22, 0.9);
    border-right: 1px solid var(--glass-border);
    padding: 2.5rem 1.5rem;
}

.user-profile {
    text-align: center;
    margin-bottom: 2.5rem;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--neon-purple);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    background: rgba(176,38,255,0.1);
    color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(176,38,255,0.2);
}

.sidebar-nav {
    list-style: none;
}

    .sidebar-nav li {
        margin-bottom: 8px;
    }

    .sidebar-nav a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        border-radius: 10px;
        transition: 0.3s;
        color: var(--text-muted);
        font-weight: 600;
        font-size: 0.95rem;
    }

        .sidebar-nav a:hover, .sidebar-nav a.active {
            background: rgba(0,240,255,0.06);
            color: var(--neon-cyan);
        }

.dash-content {
    padding: 3rem;
}

.progress-container {
    margin-top: 1.2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
}

/* --- PIE DE PÁGINA --- */
footer {
    background: #02040a;
    padding: 2rem 4%;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.04);
    margin-top: auto;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- RESPONSIVE ADAPTATIVO COMPLETO --- */
@media (max-width: 1100px) {
    .navbar {
        grid-template-columns: 180px 1fr auto;
        gap: 1rem;
    }

    .detail-layout, .classroom {
        grid-template-columns: 1fr;
        height: auto;
    }

    .course-modules {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--glass-border);
        height: 400px;
    }

    .detail-sidebar {
        position: static;
        margin-top: 2rem;
        width: 100%;
    }
}

@media (max-width: 850px) {
    .navbar {
        display: flex;
        justify-content: space-between;
        padding: 1rem 5%;
    }

    .header-search-container {
        display: none;
    }
    /* Ocultar buscador complejo en pantallas móviles pequeñas */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #040712;
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--glass-border);
        gap: 1.2rem;
    }

        .nav-links.show {
            display: flex;
        }

    .menu-toggle {
        display: block;
    }

    .slide-content h1 {
        font-size: 2.2rem;
    }

    .dashboard {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .dash-content {
        padding: 1.5rem;
    }
}


/* --- CONTENEDOR AJUSTADO PARA EL PRECIO --- */
.price-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    line-height: 1.2; /* Evita que el espaciado altere la altura del footer */
}

.price-label {
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: -2px; /* Acerca sutilmente el 'Desde' al precio */
}

/* Mantenemos intacto tu estilo original para que no pierda su tamaño */
.course-footer .price {
    font-size: 1.3rem;
    font-weight: 700;
}

/* Color neón opcional para el curso gratis */
.price.free-color {
    color: #00ff88 !important;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.85rem;
    color: #a0aec0;
    margin-bottom: 1rem;
}

/* Footer de la tarjeta */
.card-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #a0aec0;
}

/* Tag del Instructor */
.instructor-tag {
    font-size: 0.75rem;
    color: #00f0ff;
    background: rgba(0, 240, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}







/* Contenedor del Modal (Fondo oscuro) */
.modal-estelar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    /* Cuando se active la clase "show" */
    .modal-estelar.show {
        display: flex;
        opacity: 1;
    }

/* La ventana del modal */
.modal-contenido {
    background: var(--space-dark);
    border: 1px solid var(--neon-cyan);
    padding: 25px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-estelar.show .modal-contenido {
    transform: translateY(0);
}

.input-modal {
    width: 100%;
    background: #000;
    border: 1px solid #444;
    color: #fff;
    padding: 12px;
    margin: 15px 0;
    border-radius: 8px;
    box-sizing: border-box;
}

    .input-modal:focus {
        border-color: var(--neon-cyan);
        outline: none;
    }
/*MENU DE FORMA DINAMICA*/

@media (max-width: 850px) {
    /* 1. Convertimos la barra en un contenedor Flex para controlar el orden */
    .navbar {
        display: flex !important;
        flex-wrap: wrap; /* Permite que el buscador baje si no hay espacio */
        align-items: center;
        justify-content: space-between;
        padding: 0.8rem 4%;
    }

    /* 2. Logo primero */
    .logo {
        order: 1;
        flex: 0 1 auto;
    }

    /* 3. Buscador segundo (se expandirá para tomar el espacio disponible) */
    .header-search-container {
        order: 2;
        display: block !important; /* Aseguramos que se vea */
        flex: 1; /* Esto hace que el buscador ocupe el espacio central */
        margin: 0 15px; /* Espacio entre logo, buscador y menú */
        min-width: 120px; /* Evita que el buscador desaparezca en pantallas muy pequeñas */
    }

    /* 4. Menú Hamburguesa tercero */
    .right-menu {
        order: 3;
        display: flex;
        align-items: center;
    }

    /* Aseguramos que el botón del menú se vea */
    .menu-toggle {
        display: block !important;
    }
}

/* Ocultar el texto en pantallas pequeñas */
@media (max-width: 480px) {
    .logo-text {
        display: none;
    }

    /* Opcional: Si quieres que el logo no se vea muy vacío, 
       puedes ajustar el margen del icono */
    .logo {
        gap: 0;
    }
}

/* Ajuste de espacio para pantallas pequeñas */
@media (max-width: 768px) {
    .login-container {
        padding-top: 80px; /* Ajusta este valor según la altura real de tu navbar */
        padding-bottom: 40px; /* Agregamos un poco abajo también para que no se pegue al footer */
    }
}

/* Opcional: Si quieres que siempre tenga un poco de aire incluso en escritorio */
@media (min-width: 769px) {
    .login-container {
        padding-top: 50px;
    }
}

.course-info p {
    color: #a0aec0;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.5;
    /* 🚀 AQUÍ ESTÁ EL TRUCO PARA EL TEXTO JUSTIFICADO */
    text-align: justify;
    text-justify: inter-word; /* Distribuye el espacio de manera uniforme entre palabras */
    -webkit-hyphens: auto; /* Soporte para Safari */
    -ms-hyphens: auto; /* Soporte para IE/Edge antiguo */
    hyphens: auto; /* Rompe las palabras largas con un guion si es necesario */
}

/* Contenedor de las flechas (Centrado verticalmente) */
.carousel-nav-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 4%; /* Margen lateral */
    transform: translateY(-50%);
    z-index: 5;
    pointer-events: none; /* Permite clic a través del contenedor */
}

.nav-arrow {
    pointer-events: auto; /* Permite el clic solo en los botones */
    background: rgba(10, 15, 36, 0.6);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

    .nav-arrow:hover {
        background: var(--neon-cyan);
        color: var(--space-dark);
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    }

/* BADGE GRATIS - Mismo estilo que premium pero con color verde */
.badge.free {
    background: rgba(0, 255, 136, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 255, 136, 0.4);
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.2), inset 0 0 8px rgba(0, 255, 136, 0.05);
}

.price.free-color {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}


























/* --- HERO BANNER - SIN NINGÚN OVERLAY NEGRO --- */
.hero {
    margin-top: 68px;
    position: relative;
    height: 45vh;
    min-height: 380px;
    max-height: 500px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: contain; /* Imagen COMPLETA */
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end; /* Contenido abajo */
    justify-content: center;
    position: relative;
    background-color: #040712; /* Fondo espacial para bordes */
}

    /* 🔥 ELIMINAMOS COMPLETAMENTE EL OVERLAY NEGRO */
    .slide::after {
        display: none;
    }

/* Contenido del banner con fondo semitransparente solo en el texto */
.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    padding: 1.2rem 2rem;
    margin-bottom: 40px;
    background: rgba(4, 7, 18, 0.6); /* Solo el texto tiene fondo */
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(0, 240, 255, 0.3);
}

    .slide-content h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
        font-weight: 700;
        color: #ffffff;
        text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    }

    .slide-content p {
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.95);
        margin-bottom: 1rem;
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    }

    /* Botón */
    .slide-content .btn-neon {
        padding: 0.4rem 1.2rem;
        font-size: 0.8rem;
    }

/* Flechas de navegación */
.carousel-nav-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2%;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.nav-arrow {
    pointer-events: auto;
    background: rgba(4, 7, 18, 0.5);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

    .nav-arrow:hover {
        background: var(--neon-cyan);
        color: var(--space-dark);
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    }

/* Puntitos */
.carousel-btns {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: 0.3s;
}

    .dot.active {
        background: var(--neon-cyan);
        box-shadow: 0 0 10px var(--neon-cyan);
        width: 24px;
        border-radius: 10px;
    }

/* Responsive */
@media (max-width: 768px) {
    .hero {
        height: 35vh;
        min-height: 280px;
        max-height: 350px;
    }

    .slide-content {
        padding: 0.8rem 1.2rem;
        margin-bottom: 20px;
    }

        .slide-content h1 {
            font-size: 1.2rem;
        }

        .slide-content p {
            font-size: 0.7rem;
        }

    .nav-arrow {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}
/*-----------------------------------CAMPANITA----------------------------------------------------*/

/* ============================================
   NOTIFICACIONES ESTILO FACEBOOK
   ============================================ */

.notifications-container {
    position: relative;
    display: inline-block;
}

.notifications-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
}

    .notifications-btn:hover {
        background: rgba(0, 242, 254, 0.1);
        color: var(--neon-cyan);
    }

.notifications-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4d6d;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 0.65rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    animation: pulse 1s infinite;
}

.notifications-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    width: 380px;
    max-width: 90vw;
    background: linear-gradient(135deg, #0f1123, #151932);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

    .notifications-dropdown.show {
        display: block;
        animation: slideDown 0.3s ease;
    }

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .notifications-header h4 {
        margin: 0;
        font-size: 0.95rem;
        color: var(--neon-cyan);
    }

.mark-all-read {
    background: transparent;
    border: none;
    color: #a4abd4;
    font-size: 0.7rem;
    cursor: pointer;
    transition: color 0.2s;
}

    .mark-all-read:hover {
        color: var(--neon-cyan);
    }

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

    .notification-item:hover {
        background: rgba(0, 242, 254, 0.05);
    }

    .notification-item.unread {
        background: rgba(0, 242, 254, 0.08);
    }

        .notification-item.unread::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: var(--neon-cyan);
        }

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

    .notification-icon.pregunta {
        background: rgba(0, 242, 254, 0.2);
        color: #00f2fe;
    }

    .notification-icon.respuesta {
        background: rgba(0, 255, 136, 0.2);
        color: #00ff88;
    }

    .notification-icon.solucion {
        background: rgba(255, 204, 0, 0.2);
        color: #ffcc00;
    }

.notification-content {
    flex: 1;
}

.notification-message {
    font-size: 0.85rem;
    color: #e0e0e0;
    margin-bottom: 4px;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.65rem;
    color: #a4abd4;
}

    .notification-time i {
        margin-right: 4px;
    }

.notifications-footer {
    padding: 10px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

    .notifications-footer a {
        color: var(--neon-cyan);
        font-size: 0.75rem;
        text-decoration: none;
    }

        .notifications-footer a:hover {
            text-decoration: underline;
        }

.notifications-loading,
.notifications-empty {
    text-align: center;
    padding: 40px;
    color: #a4abd4;
    font-size: 0.8rem;
}

/* Animaciones */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Contenedor de preguntas pendientes */
.pendientes-container {
    position: relative;
}

.pendientes-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
}

    .pendientes-btn:hover {
        background: rgba(157, 78, 223, 0.1);
        color: var(--neon-purple);
    }

.pendientes-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4d6d;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 0.65rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Estilos para el botón de perfil - Fondo transparente */
.profile-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.profile-btn {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

    .profile-btn:hover {
        background: rgba(0, 242, 254, 0.15) !important;
        color: var(--neon-cyan) !important;
        transform: scale(1.05);
    }

    .profile-btn i {
        color: #ffffff;
        transition: color 0.3s ease;
    }

    .profile-btn:hover i {
        color: var(--neon-cyan);
    }


/* =============================================================================================================================================
   MODAL DE PERFIL - ESTILOS ESPACIALES
   ============================================================================================================================================= */

/* Tabs del perfil */
.tab-perfil-btn {
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
    position: relative;
}

    .tab-perfil-btn:hover {
        background: rgba(0, 242, 254, 0.08);
        color: var(--neon-cyan);
    }

    .tab-perfil-btn.active {
        color: var(--neon-cyan);
        border-bottom: 2px solid var(--neon-cyan);
        text-shadow: 0 0 8px rgba(0, 242, 254, 0.3);
    }

/* Contenido de los tabs */
.tab-perfil-content {
    animation: fadeIn 0.3s ease;
}

/* Animación fadeIn para tabs */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para los inputs dentro del modal */
.space-form-group {
    margin-bottom: 1rem;
}

    .space-form-group label {
        display: block;
        margin-bottom: 6px;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--text-muted);
    }

        .space-form-group label i {
            margin-right: 6px;
            color: var(--neon-cyan);
        }

.space-input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(4, 7, 18, 0.6);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 10px;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

    .space-input:focus {
        outline: none;
        border-color: var(--neon-cyan);
        box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
        background: rgba(4, 7, 18, 0.9);
    }

    .space-input[readonly],
    .space-input:disabled {
        opacity: 0.8;
        cursor: not-allowed;
        background: rgba(4, 7, 18, 0.3);
    }

/* Botón submit del modal */
.space-btn-submit {
    background: linear-gradient(135deg, var(--neon-cyan), #4facfe);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    color: var(--space-dark);
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .space-btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
    }

/* Avatar del usuario */
.avatar-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

    .avatar-circle i {
        font-size: 2.5rem;
        color: white;
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    }

/* Punto indicador de notificación no leída */
.notification-unread-dot {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #00f2fe;
    border-radius: 50%;
    box-shadow: 0 0 5px #00f2fe;
}

/* Scrollbar personalizado para el modal y dropdown */
.notifications-list::-webkit-scrollbar,
.modal-contenido::-webkit-scrollbar {
    width: 4px;
}

.notifications-list::-webkit-scrollbar-track,
.modal-contenido::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.notifications-list::-webkit-scrollbar-thumb,
.modal-contenido::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 10px;
}

/* ============================================
   MODAL DE PERFIL - CON SCROLL
   ============================================ */

/* Contenedor principal del modal */
.modal-perfil-container {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    width: 100%;
    max-width: 850px; /* ⭐ CAMBIADO DE 550px a 850px */
    margin: 0 auto;
    background: linear-gradient(135deg, #0f1123, #151932);
    border: 1px solid rgba(0, 242, 254, 0.4);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 242, 254, 0.2);
}

/* Header fijo */
.modal-perfil-header {
    background: linear-gradient(135deg, #0f1123, #151932);
    padding: 20px;
    border-bottom: 1px solid rgba(0, 242, 254, 0.2);
    flex-shrink: 0;
}

/* Tabs fijos */
.modal-perfil-tabs {
    display: flex;
    border-bottom: 1px solid rgba(0, 242, 254, 0.2);
    background: #0a0c16;
    flex-shrink: 0;
}

/* Cuerpo del modal con scroll */
.modal-perfil-body {
    padding: 20px;
    background: #0d0f1a;
    overflow-y: auto;
    max-height: calc(90vh - 120px); /* Ajusta según altura del header + tabs */
    flex: 1;
}

    /* Scrollbar personalizado para el cuerpo */
    .modal-perfil-body::-webkit-scrollbar {
        width: 6px;
    }

    .modal-perfil-body::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }

    .modal-perfil-body::-webkit-scrollbar-thumb {
        background: var(--neon-cyan);
        border-radius: 10px;
    }

        .modal-perfil-body::-webkit-scrollbar-thumb:hover {
            background: var(--neon-purple);
        }

/* Tabs del perfil */
.tab-perfil-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .tab-perfil-btn:hover {
        background: rgba(0, 242, 254, 0.08);
        color: var(--neon-cyan);
    }

    .tab-perfil-btn.active {
        color: var(--neon-cyan);
        border-bottom: 2px solid var(--neon-cyan);
    }

/* Contenido de los tabs */
.tab-perfil-content {
    animation: fadeIn 0.3s ease;
}

/* Avatar del usuario */
.avatar-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

    .avatar-circle i {
        font-size: 2.5rem;
        color: white;
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    }

/* Grupos de formulario */
.space-form-group {
    margin-bottom: 1rem;
}

    .space-form-group label {
        display: block;
        margin-bottom: 6px;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--text-muted);
    }

        .space-form-group label i {
            margin-right: 6px;
            color: var(--neon-cyan);
        }

.space-input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(4, 7, 18, 0.6);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 10px;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

    .space-input:focus {
        outline: none;
        border-color: var(--neon-cyan);
        box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
        background: rgba(4, 7, 18, 0.9);
    }

    .space-input[readonly],
    .space-input:disabled {
        opacity: 0.8;
        cursor: not-allowed;
        background: rgba(4, 7, 18, 0.3);
    }

/* Botón submit */
.space-btn-submit {
    background: linear-gradient(135deg, var(--neon-cyan), #4facfe);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    color: var(--space-dark);
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .space-btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
    }

/* Animación */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/*************************************************************************/

/* Enlace de Promociones con efecto llamativo */
.nav-link-promocion {
    position: relative;
    background: linear-gradient(135deg, #ff4d6d, #ff6b8a);
    color: #fff !important;
    border-radius: 30px;
    padding: 8px 20px !important;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(255, 77, 109, 0.5);
    transition: all 0.3s ease;
    animation: pulsePromocion 1.5s infinite;
}

    .nav-link-promocion:hover {
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(255, 77, 109, 0.8);
        animation: none;
    }

    /* Badge de "NUEVO" */
    .nav-link-promocion .badge-nuevo {
        position: absolute;
        top: -8px;
        right: -10px;
        background: #00ff88;
        color: #000;
        font-size: 0.65rem;
        font-weight: bold;
        padding: 2px 6px;
        border-radius: 20px;
        box-shadow: 0 0 10px #00ff88;
        animation: bounce 1s ease infinite;
    }

/* Animación de pulsación */
@keyframes pulsePromocion {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 77, 109, 0.5);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 77, 109, 0.9);
        transform: scale(1.02);
    }
}

/* Animación de rebote para el badge */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}


/* ============================================
   ENLACE CURSOS GRATIS EN EL NAVBAR
   ============================================ */

.nav-link-gratis {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #00ff88;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.15);
    position: relative;
}

    .nav-link-gratis i {
        font-size: 1rem;
        color: #00ff88;
        transition: transform 0.3s ease;
    }

    .nav-link-gratis:hover {
        background: rgba(0, 255, 136, 0.15);
        border-color: rgba(0, 255, 136, 0.4);
        box-shadow: 0 0 30px rgba(0, 255, 136, 0.15);
        transform: translateY(-1px);
    }

        .nav-link-gratis:hover i {
            transform: scale(1.1) rotate(-5deg);
        }

    .nav-link-gratis:active {
        transform: scale(0.97);
    }
/*********************************************************************************************************/
/* ============================================
   NAV LINK - ADELANTO PUCP (ESTILO PREMIUM)
   ============================================ */

/* ============================================
   NAV LINK - ADELANTO PUCP (VERSIÓN BRILLANTE)
   ============================================ */

/* ============================================
   NAV LINK - ADELANTO PUCP (ESTILO ÉPICO)
   ============================================ */

.nav-link-adelanto {
    position: relative;
    background: linear-gradient(135deg, #ffd700, #f7971e);
    color: #1a1a2e !important;
    border-radius: 30px;
    padding: 8px 20px !important;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
    animation: pulseAdelanto 1.5s ease-in-out infinite;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

    .nav-link-adelanto:hover {
        transform: scale(1.05);
        box-shadow: 0 0 35px rgba(255, 215, 0, 0.8);
        animation: none;
    }

    /* Badge de "POPULAR" */
    .nav-link-adelanto .badge-popular {
        position: absolute;
        top: -10px;
        right: -12px;
        background: linear-gradient(135deg, #ff6b35, #ff2a00);
        color: #fff;
        font-size: 0.55rem;
        font-weight: 900;
        padding: 2px 10px;
        border-radius: 20px;
        box-shadow: 0 0 15px rgba(255, 69, 0, 0.6);
        animation: bounceAdelanto 1.2s ease-in-out infinite;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Ícono */
    .nav-link-adelanto i {
        color: #1a1a2e;
        font-size: 0.9rem;
        transition: transform 0.3s ease;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    }

    .nav-link-adelanto:hover i {
        transform: rotate(-15deg) scale(1.1);
    }

/* Animación de pulsación */
@keyframes pulseAdelanto {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 35px rgba(255, 215, 0, 0.8);
        transform: scale(1.02);
    }
}

/* Animación de rebote para el badge */
@keyframes bounceAdelanto {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-4px) scale(1.05);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .nav-link-adelanto {
        padding: 6px 16px !important;
        font-size: 0.8rem;
    }

        .nav-link-adelanto .badge-popular {
            font-size: 0.45rem;
            padding: 2px 8px;
            top: -8px;
            right: -10px;
        }
}

@media (max-width: 768px) {
    .nav-link-adelanto {
        padding: 5px 12px !important;
        font-size: 0.7rem;
        gap: 5px;
    }

        .nav-link-adelanto i {
            font-size: 0.7rem;
        }

        .nav-link-adelanto .badge-popular {
            font-size: 0.4rem;
            padding: 1px 6px;
            top: -6px;
            right: -8px;
        }
}

@media (max-width: 480px) {
    .nav-link-adelanto {
        padding: 4px 10px !important;
        font-size: 0.6rem;
        gap: 4px;
        border-radius: 20px;
    }

        .nav-link-adelanto i {
            font-size: 0.6rem;
        }

        .nav-link-adelanto .badge-popular {
            font-size: 0.35rem;
            padding: 1px 5px;
            top: -5px;
            right: -6px;
        }
}

/***************************************************************/

/* ============================================
   DROPDOWN - ADELANTO PUCP
   ============================================ */
/* ============================================
   DROPDOWN - ADELANTO PUCP (SIN ESPACIO)
   ============================================ */
/* ============================================
   DROPDOWN - ADELANTO PUCP (VERSIÓN MEJORADA)
   ============================================ */

.nav-dropdown-container {
    position: relative;
    display: inline-block;
}

/* Botón principal - Tamaño base */
.nav-link-adelanto {
    position: relative;
    background: linear-gradient(135deg, #ffd700, #f7971e);
    color: #1a1a2e !important;
    border-radius: 30px;
    padding: 8px 20px !important;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
    animation: pulseAdelanto 1.5s ease-in-out infinite;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    z-index: 2;
    white-space: nowrap; /* Evita que el texto se rompa */
}

    .nav-link-adelanto:hover {
        transform: scale(1.02);
        box-shadow: 0 0 35px rgba(255, 215, 0, 0.8);
        animation: none;
    }

    /* Flecha del dropdown */
    .nav-link-adelanto .dropdown-arrow {
        font-size: 0.6rem;
        margin-left: 2px;
        transition: transform 0.3s ease;
        color: #1a1a2e;
    }

.nav-dropdown-container:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Badge POPULAR */
.nav-link-adelanto .badge-popular {
    position: absolute;
    top: -10px;
    right: -12px;
    background: linear-gradient(135deg, #ff6b35, #ff2a00);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 900;
    padding: 2px 10px;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.6);
    animation: bounceAdelanto 1.2s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Menú desplegable */
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(4, 7, 18, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 0 0 16px 16px;
    padding: 8px;
    padding-top: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
    pointer-events: none;
    margin-top: -1px;

}

/* Puente invisible para hover */
.nav-dropdown-container::after {
    content: '';
    position: absolute;
    top: calc(100% - 5px);
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
    z-index: 1;
    pointer-events: auto;
}

.nav-dropdown-container:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Items del dropdown */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

    .dropdown-item:hover {
        background: rgba(255, 215, 0, 0.1);
        color: #ffd700;
        transform: translateX(4px);
    }

    .dropdown-item i {
        color: #ffd700;
        font-size: 0.8rem;
        width: 20px;
        text-align: center;
        transition: transform 0.3s ease;
    }

    .dropdown-item:hover i {
        transform: scale(1.2);
    }

    .dropdown-item:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 16px;
        right: 16px;
        height: 1px;
        background: rgba(255, 215, 0, 0.1);
    }

/* Animación items */
.dropdown-item {
    opacity: 0;
    animation: fadeInItem 0.3s ease forwards;
}

    .dropdown-item:nth-child(1) {
        animation-delay: 0.05s;
    }

    .dropdown-item:nth-child(2) {
        animation-delay: 0.1s;
    }

    .dropdown-item:nth-child(3) {
        animation-delay: 0.15s;
    }

    .dropdown-item:nth-child(4) {
        animation-delay: 0.2s;
    }

@keyframes fadeInItem {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hover en botón - borde inferior redondeado */
.nav-dropdown-container:hover .nav-link-adelanto {
    border-radius: 30px 30px 0 0;
}

/* Animaciones */
@keyframes pulseAdelanto {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 35px rgba(255, 215, 0, 0.8);
        transform: scale(1.02);
    }
}

@keyframes bounceAdelanto {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-4px) scale(1.05);
    }
}

/* ============================================
   RESPONSIVE - DROPDOWN
   ============================================ */

@media (max-width: 992px) {
    .nav-dropdown-menu {
        min-width: 180px;
        left: -10px;
    }

    .dropdown-item {
        font-size: 0.8rem;
        padding: 8px 14px;
    }
}

@media (max-width: 768px) {
    /* El contenedor se mantiene inline-block, no ocupa todo el ancho */
    .nav-dropdown-container {
        display: inline-block;
        width: auto; /* Asegura que no se estire */
    }

    .nav-link-adelanto {
        /* Mantiene el tamaño inline, sin width: 100% */
        padding: 6px 14px !important;
        font-size: 0.75rem;
        gap: 5px;
        white-space: nowrap;
    }

        .nav-link-adelanto i {
            font-size: 0.7rem;
        }

        .nav-link-adelanto .badge-popular {
            font-size: 0.4rem;
            padding: 1px 6px;
            top: -8px;
            right: -8px;
        }

    /* El menú desplegable se posiciona absoluto pero alineado a la izquierda */
    .nav-dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 180px;
        width: auto;
        border-radius: 0 0 12px 12px;
        display: block;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        margin-top: -1px;
        padding-top: 12px;
        background: rgba(4, 7, 18, 0.98);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 215, 0, 0.3);
        border-top: none;
        z-index: 9999 !important; /* Prioridad máxima por encima de tarjetas y banners */
    }

    /* Mostrar el dropdown en hover */
    .nav-dropdown-container:hover .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-dropdown-container:hover .nav-link-adelanto {
        border-radius: 30px 30px 0 0;
    }

    .dropdown-item {
        justify-content: flex-start;
        padding: 10px 14px;
        font-size: 0.75rem;
    }

        .dropdown-item::after {
            left: 14px;
            right: 14px;
        }
}

@media (max-width: 480px) {
    .nav-link-adelanto {
        padding: 5px 10px !important;
        font-size: 0.65rem;
        gap: 4px;
        border-radius: 20px;
    }

        .nav-link-adelanto i {
            font-size: 0.6rem;
        }

        .nav-link-adelanto .badge-popular {
            font-size: 0.35rem;
            padding: 1px 5px;
            top: -6px;
            right: -6px;
        }

    .nav-dropdown-menu {
        min-width: 160px;
        left: 0;
    }

    .dropdown-item {
        font-size: 0.65rem;
        padding: 8px 12px;
    }
}
/**************************************************************************************************************/

/* ============================================
   CURSOS GRATIS - DROPDOWN CON CICLOS
   ============================================ */

/* Contenedor del dropdown */
.nav-dropdown-gratis {
    position: relative;
    display: inline-block;
}

/* Botón principal - Cursos Gratis */
.nav-link-gratis-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #00ff88;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.2);
    cursor: pointer;
    z-index: 2;
    white-space: nowrap;
}

    .nav-link-gratis-dropdown i {
        color: #00ff88;
        font-size: 0.9rem;
        transition: transform 0.3s ease;
    }

    .nav-link-gratis-dropdown .dropdown-arrow {
        font-size: 0.6rem;
        margin-left: 2px;
        transition: transform 0.3s ease;
        color: #00ff88;
    }

    .nav-link-gratis-dropdown:hover {
        background: rgba(0, 255, 136, 0.18);
        border-color: rgba(0, 255, 136, 0.5);
        box-shadow: 0 0 30px rgba(0, 255, 136, 0.15);
        transform: translateY(-1px);
    }

        .nav-link-gratis-dropdown:hover i {
            transform: scale(1.1) rotate(-5deg);
        }

.nav-dropdown-gratis:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Menú desplegable - Cursos Gratis */
.nav-dropdown-menu-gratis {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(4, 7, 18, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 0 0 16px 16px;
    padding: 8px;
    padding-top: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
    pointer-events: none;
    margin-top: -1px;
}

/* Puente invisible para hover */
.nav-dropdown-gratis::after {
    content: '';
    position: absolute;
    top: calc(100% - 5px);
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
    z-index: 1;
    pointer-events: auto;
}

.nav-dropdown-gratis:hover .nav-dropdown-menu-gratis {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-dropdown-gratis:hover .nav-link-gratis-dropdown {
    border-radius: 30px 30px 0 0;
}

/* Items del dropdown - Cursos Gratis */
.dropdown-item-gratis {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

    .dropdown-item-gratis:hover {
        background: rgba(0, 255, 136, 0.1);
        color: #00ff88;
        transform: translateX(4px);
    }

    .dropdown-item-gratis i {
        color: #00ff88;
        font-size: 0.8rem;
        width: 20px;
        text-align: center;
        transition: transform 0.3s ease;
    }

    .dropdown-item-gratis:hover i {
        transform: scale(1.2);
    }

    .dropdown-item-gratis:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 16px;
        right: 16px;
        height: 1px;
        background: rgba(0, 255, 136, 0.1);
    }

/* Animación items - Cursos Gratis */
.dropdown-item-gratis {
    opacity: 0;
    animation: fadeInItemGratis 0.3s ease forwards;
}

    .dropdown-item-gratis:nth-child(1) {
        animation-delay: 0.05s;
    }

    .dropdown-item-gratis:nth-child(2) {
        animation-delay: 0.1s;
    }

    .dropdown-item-gratis:nth-child(3) {
        animation-delay: 0.15s;
    }

    .dropdown-item-gratis:nth-child(4) {
        animation-delay: 0.2s;
    }

@keyframes fadeInItemGratis {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   RESPONSIVE - CURSOS GRATIS DROPDOWN
   ============================================ */

@media (max-width: 992px) {
    .nav-dropdown-menu-gratis {
        min-width: 180px;
        left: -10px;
    }

    .dropdown-item-gratis {
        font-size: 0.8rem;
        padding: 8px 14px;
    }
}

@media (max-width: 768px) {
    .nav-dropdown-gratis {
        display: inline-block;
        width: auto;
    }

    .nav-link-gratis-dropdown {
        padding: 6px 14px !important;
        font-size: 0.75rem;
        gap: 5px;
    }

        .nav-link-gratis-dropdown i {
            font-size: 0.7rem;
        }

    .nav-dropdown-menu-gratis {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 180px;
        width: auto;
        border-radius: 0 0 12px 12px;
        display: block;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        margin-top: -1px;
        padding-top: 12px;
        background: rgba(4, 7, 18, 0.98);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(0, 255, 136, 0.2);
        border-top: none;
    }

    .nav-dropdown-gratis:hover .nav-dropdown-menu-gratis {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-dropdown-gratis:hover .nav-link-gratis-dropdown {
        border-radius: 30px 30px 0 0;
    }

    .dropdown-item-gratis {
        justify-content: flex-start;
        padding: 10px 14px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .nav-link-gratis-dropdown {
        padding: 5px 10px !important;
        font-size: 0.65rem;
        gap: 4px;
        border-radius: 20px;
    }

        .nav-link-gratis-dropdown i {
            font-size: 0.6rem;
        }

    .nav-dropdown-menu-gratis {
        min-width: 160px;
        left: 0;
    }

    .dropdown-item-gratis {
        font-size: 0.65rem;
        padding: 8px 12px;
    }
}
/********************************************************************************/
/* ============================================
   PROMOCIONES - DROPDOWN CON CICLOS
   ============================================ */

/* Contenedor del dropdown */
.nav-dropdown-promociones {
    position: relative;
    display: inline-block;
}

/* Botón principal - Promociones */
.nav-link-promocion-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff4d6d, #ff6b8a);
    color: #fff !important;
    border-radius: 30px;
    padding: 8px 20px !important;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 0 15px rgba(255, 77, 109, 0.5);
    transition: all 0.3s ease;
    animation: pulsePromocion 1.5s infinite;
    text-decoration: none;
    cursor: pointer;
    z-index: 2;
    white-space: nowrap;
    border: none;
}

    .nav-link-promocion-dropdown i {
        color: #fff;
        font-size: 0.9rem;
        transition: transform 0.3s ease;
    }

    .nav-link-promocion-dropdown .dropdown-arrow {
        font-size: 0.6rem;
        margin-left: 2px;
        transition: transform 0.3s ease;
        color: #fff;
    }

    .nav-link-promocion-dropdown:hover {
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(255, 77, 109, 0.8);
        animation: none;
    }

    .nav-link-promocion-dropdown .badge-nuevo {
        position: absolute;
        top: -8px;
        right: -10px;
        background: #00ff88;
        color: #000;
        font-size: 0.55rem;
        font-weight: 900;
        padding: 2px 8px;
        border-radius: 20px;
        box-shadow: 0 0 10px #00ff88;
        animation: bouncePromocion 1s ease infinite;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

.nav-dropdown-promociones:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Menú desplegable - Promociones */
.nav-dropdown-menu-promociones {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(4, 7, 18, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 77, 109, 0.3);
    border-radius: 0 0 16px 16px;
    padding: 8px;
    padding-top: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
    pointer-events: none;
    margin-top: -1px;
}

/* Puente invisible para hover */
.nav-dropdown-promociones::after {
    content: '';
    position: absolute;
    top: calc(100% - 5px);
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
    z-index: 1;
    pointer-events: auto;
}

.nav-dropdown-promociones:hover .nav-dropdown-menu-promociones {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-dropdown-promociones:hover .nav-link-promocion-dropdown {
    border-radius: 30px 30px 0 0;
}

/* Items del dropdown - Promociones */
.dropdown-item-promocion {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

    .dropdown-item-promocion:hover {
        background: rgba(255, 77, 109, 0.15);
        color: #ff6b8a;
        transform: translateX(4px);
    }

    .dropdown-item-promocion i {
        color: #ff6b8a;
        font-size: 0.8rem;
        width: 20px;
        text-align: center;
        transition: transform 0.3s ease;
    }

    .dropdown-item-promocion:hover i {
        transform: scale(1.2);
    }

    .dropdown-item-promocion:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 16px;
        right: 16px;
        height: 1px;
        background: rgba(255, 77, 109, 0.1);
    }

/* Animación items - Promociones */
.dropdown-item-promocion {
    opacity: 0;
    animation: fadeInItemPromocion 0.3s ease forwards;
}

    .dropdown-item-promocion:nth-child(1) {
        animation-delay: 0.05s;
    }

    .dropdown-item-promocion:nth-child(2) {
        animation-delay: 0.1s;
    }

    .dropdown-item-promocion:nth-child(3) {
        animation-delay: 0.15s;
    }

    .dropdown-item-promocion:nth-child(4) {
        animation-delay: 0.2s;
    }

@keyframes fadeInItemPromocion {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animación de pulsación para Promociones */
@keyframes pulsePromocion {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 77, 109, 0.5);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 77, 109, 0.9);
        transform: scale(1.02);
    }
}

/* Animación de rebote para el badge NUEVO */
@keyframes bouncePromocion {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-3px) scale(1.05);
    }
}

/* ============================================
   RESPONSIVE - PROMOCIONES DROPDOWN
   ============================================ */

@media (max-width: 992px) {
    .nav-dropdown-menu-promociones {
        min-width: 180px;
        left: -10px;
    }

    .dropdown-item-promocion {
        font-size: 0.8rem;
        padding: 8px 14px;
    }

    .nav-link-promocion-dropdown {
        padding: 6px 16px !important;
        font-size: 0.8rem;
    }

        .nav-link-promocion-dropdown .badge-nuevo {
            font-size: 0.45rem;
            padding: 1px 6px;
            top: -6px;
            right: -8px;
        }
}

@media (max-width: 768px) {
    .nav-dropdown-promociones {
        display: inline-block;
        width: auto;
    }

    .nav-link-promocion-dropdown {
        padding: 6px 14px !important;
        font-size: 0.75rem;
        gap: 5px;
    }

        .nav-link-promocion-dropdown i {
            font-size: 0.7rem;
        }

        .nav-link-promocion-dropdown .badge-nuevo {
            font-size: 0.4rem;
            padding: 1px 6px;
            top: -8px;
            right: -8px;
        }

    .nav-dropdown-menu-promociones {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 180px;
        width: auto;
        border-radius: 0 0 12px 12px;
        display: block;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        margin-top: -1px;
        padding-top: 12px;
        background: rgba(4, 7, 18, 0.98);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 77, 109, 0.3);
        border-top: none;
    }

    .nav-dropdown-promociones:hover .nav-dropdown-menu-promociones {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-dropdown-promociones:hover .nav-link-promocion-dropdown {
        border-radius: 30px 30px 0 0;
    }

    .dropdown-item-promocion {
        justify-content: flex-start;
        padding: 10px 14px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .nav-link-promocion-dropdown {
        padding: 5px 10px !important;
        font-size: 0.65rem;
        gap: 4px;
        border-radius: 20px;
    }

        .nav-link-promocion-dropdown i {
            font-size: 0.6rem;
        }

        .nav-link-promocion-dropdown .badge-nuevo {
            font-size: 0.35rem;
            padding: 1px 5px;
            top: -6px;
            right: -6px;
        }

    .nav-dropdown-menu-promociones {
        min-width: 160px;
        left: 0;
        z-index: 9999 !important; /* Prioridad máxima por encima de tarjetas y banners */
    }

    .dropdown-item-promocion {
        font-size: 0.65rem;
        padding: 8px 12px;
    }
}
/*********************************************************************/
/*****************************************************************************/

/* ============================================
   BOTÓN FLOTANTE DE WHATSAPP
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    animation: pulseWhatsApp 2s infinite;
}

    .whatsapp-float:hover {
        transform: scale(1.1);
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7);
        color: white;
    }

    .whatsapp-float i {
        font-size: 2.5rem;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    }

/* Tooltip */
.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Animación de pulso */
@keyframes pulseWhatsApp {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 4px 35px rgba(37, 211, 102, 0.8);
        transform: scale(1.05);
    }
}

/* Animación de entrada */
@keyframes slideUpWhatsApp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.whatsapp-float {
    animation: pulseWhatsApp 2s infinite, slideUpWhatsApp 0.5s ease-out;
}

/* Ocultar en móviles muy pequeños */
@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.5rem;
    }

        .whatsapp-float i {
            font-size: 2rem;
        }
}

/*****************************************************************************************/


.perfil-subseccion {
    background: rgba(4, 7, 18, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 240, 255, 0.05);
}

    .perfil-subseccion h4 {
        color: var(--neon-cyan);
        margin-bottom: 12px;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.perfil-grid-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 40px;
    padding: 4px 0;
    margin-bottom: 10px;
}


.perfil-item-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 20px;
    padding: 4px 12px 4px 14px;
    font-size: 0.8rem;
    color: var(--text-main);
    transition: all 0.3s ease;
    animation: fadeInTag 0.3s ease;
}

    .perfil-item-tag:hover {
        border-color: var(--neon-cyan);
        background: rgba(0, 240, 255, 0.12);
    }

    .perfil-item-tag .tag-text {
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .perfil-item-tag .btn-remove {
        background: transparent;
        border: none;
        color: rgba(255, 255, 255, 0.3);
        cursor: pointer;
        font-size: 0.7rem;
        padding: 2px 4px;
        border-radius: 50%;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .perfil-item-tag .btn-remove:hover {
            color: #ff4d6d;
            background: rgba(255, 77, 109, 0.15);
            transform: scale(1.1);
        }

@keyframes fadeInTag {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


.perfil-add-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

    .perfil-add-row .space-input {
        flex: 1;
        min-width: 150px;
        padding: 8px 14px;
        background: rgba(4, 7, 18, 0.6);
        border: 1px solid rgba(0, 240, 255, 0.15);
        border-radius: 8px;
        color: var(--text-main);
        font-family: 'Outfit', sans-serif;
        font-size: 0.85rem;
        transition: all 0.3s ease;
    }

        .perfil-add-row .space-input:focus {
            outline: none;
            border-color: var(--neon-cyan);
            box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
        }

        .perfil-add-row .space-input::placeholder {
            color: var(--text-muted);
            opacity: 0.6;
        }


.btn-add-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--neon-cyan), #4facfe);
    border: none;
    color: var(--space-dark);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Space Grotesk', sans-serif;
}

    .btn-add-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
    }

    .btn-add-item:active {
        transform: scale(0.95);
    }


.perfil-error-msg {
    color: #ff4d6d;
    font-size: 0.75rem;
    margin-top: 6px;
    padding: 4px 8px;
    background: rgba(255, 77, 109, 0.08);
    border-radius: 6px;
    border-left: 3px solid #ff4d6d;
}


.perfil-empty-state {
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 8px 12px;
    width: 100%;
    text-align: center;
    opacity: 0.6;
    font-style: italic;
}


@media (max-width: 768px) {
    .perfil-add-row {
        flex-direction: column;
        align-items: stretch;
    }

        .perfil-add-row .space-input {
            min-width: 100%;
        }

    .perfil-item-tag .tag-text {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .perfil-subseccion {
        padding: 10px;
    }

    .perfil-item-tag {
        font-size: 0.7rem;
        padding: 3px 10px 3px 12px;
    }

        .perfil-item-tag .tag-text {
            max-width: 80px;
        }

    .btn-add-item {
        font-size: 0.7rem;
        padding: 6px 14px;
        justify-content: center;
    }
}