﻿

/* ============================================
       NAVBAR CON DESTELLOS DE LUZ
       ============================================ */
.mega-navbar-landing {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: linear-gradient(135deg, #0a0f1a 0%, #111827 50%, #0a0f1a 100%);
    border-bottom: 1px solid rgba(56, 189, 248, 0.08);
    padding: 0;
    overflow: hidden;
    margin-bottom: 25px !important;
    min-height: 70px;
}

/* Capa de destellos - DETRÁS del contenido */
.sparkles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* Destello de luz tipo lente/estrella */
.light-sparkle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: sparkleAnim 4s ease-in-out infinite;
}

    .light-sparkle:nth-child(1) {
        width: 6px;
        height: 6px;
        top: 30%;
        left: 25%;
        background: #38bdf8;
        box-shadow: 0 0 10px 4px rgba(56, 189, 248, 0.6), 0 0 30px 10px rgba(56, 189, 248, 0.2);
        animation-delay: 0s;
    }

    .light-sparkle:nth-child(2) {
        width: 4px;
        height: 4px;
        top: 60%;
        left: 55%;
        background: #22c55e;
        box-shadow: 0 0 8px 3px rgba(34, 197, 94, 0.5), 0 0 20px 6px rgba(34, 197, 94, 0.15);
        animation-delay: 1.2s;
        animation-duration: 3.5s;
    }

    .light-sparkle:nth-child(3) {
        width: 5px;
        height: 5px;
        top: 40%;
        left: 75%;
        background: #67e8f9;
        box-shadow: 0 0 12px 5px rgba(103, 232, 249, 0.5), 0 0 25px 8px rgba(103, 232, 249, 0.15);
        animation-delay: 2.5s;
        animation-duration: 4.2s;
    }

    .light-sparkle:nth-child(4) {
        width: 3px;
        height: 3px;
        top: 20%;
        left: 85%;
        background: #e0f2fe;
        box-shadow: 0 0 8px 3px rgba(224, 242, 254, 0.5), 0 0 20px 6px rgba(224, 242, 254, 0.1);
        animation-delay: 0.8s;
        animation-duration: 3.8s;
    }

    .light-sparkle:nth-child(5) {
        width: 7px;
        height: 7px;
        top: 50%;
        left: 40%;
        background: #0ea5e9;
        box-shadow: 0 0 15px 6px rgba(14, 165, 233, 0.5), 0 0 35px 12px rgba(14, 165, 233, 0.15);
        animation-delay: 3.1s;
        animation-duration: 4.5s;
    }

    .light-sparkle:nth-child(6) {
        width: 3px;
        height: 3px;
        top: 70%;
        left: 15%;
        background: #4ade80;
        box-shadow: 0 0 6px 2px rgba(74, 222, 128, 0.5);
        animation-delay: 1.8s;
        animation-duration: 3.2s;
    }

    .light-sparkle:nth-child(7) {
        width: 4px;
        height: 4px;
        top: 35%;
        left: 65%;
        background: #7dd3fc;
        box-shadow: 0 0 10px 4px rgba(125, 211, 252, 0.4);
        animation-delay: 0.4s;
        animation-duration: 4s;
    }

    .light-sparkle:nth-child(8) {
        width: 5px;
        height: 5px;
        top: 55%;
        left: 90%;
        background: #2dd4bf;
        box-shadow: 0 0 12px 5px rgba(45, 212, 191, 0.4);
        animation-delay: 2.1s;
        animation-duration: 3.6s;
    }

@keyframes sparkleAnim {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    20% {
        opacity: 1;
        transform: scale(1.2);
    }

    40% {
        opacity: 0.6;
        transform: scale(0.8);
    }

    60% {
        opacity: 1;
        transform: scale(1);
    }

    80% {
        opacity: 0.3;
        transform: scale(0.6);
    }

    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

/* Rayo de luz horizontal que pasa ocasionalmente */
.light-streak {
    position: absolute;
    top: 0;
    left: -200px;
    width: 200px;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.03) 30%, rgba(56, 189, 248, 0.08) 50%, rgba(34, 197, 94, 0.05) 70%, transparent 100%);
    transform: skewX(-20deg);
    animation: streakPass 8s ease-in-out infinite;
    pointer-events: none;
}

    .light-streak:nth-child(9) {
        animation-delay: 0s;
    }

    .light-streak:nth-child(10) {
        animation-delay: 4s;
        animation-duration: 10s;
    }

@keyframes streakPass {
    0% {
        left: -200px;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    30% {
        left: calc(100% + 200px);
        opacity: 1;
    }

    31% {
        opacity: 0;
    }

    100% {
        left: -200px;
        opacity: 0;
    }
}

/* Línea pulsante inferior */
.energy-border-pulse {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.15) 20%, rgba(56, 189, 248, 0.4) 50%, rgba(34, 197, 94, 0.25) 70%, transparent 100%);
    background-size: 200% 100%;
    animation: borderPulse 3s ease-in-out infinite;
}

@keyframes borderPulse {
    0% {
        background-position: -100% 0;
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        background-position: 200% 0;
        opacity: 0.3;
    }
}

/* ============================================
       CONTENIDO DEL NAVBAR
       ============================================ */
.navbar-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

    .navbar-brand img {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        object-fit: cover;
        flex-shrink: 0;
    }

    .navbar-brand span {
        font-weight: 800;
        letter-spacing: 2px;
        font-size: 1.1rem;
        color: #ffffff;
        white-space: nowrap;
    }

        .navbar-brand span span {
            color: #38bdf8;
        }

.navbar-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

    .navbar-links a {
        color: rgba(255, 255, 255, 0.75);
        text-decoration: none;
        font-weight: 500;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
        transition: color 0.3s ease;
        position: relative;
        white-space: nowrap;
    }

        .navbar-links a::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 50%;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #38bdf8, #22c55e);
            transition: all 0.3s ease;
            transform: translateX(-50%);
            border-radius: 2px;
        }

        .navbar-links a:hover {
            color: #38bdf8;
        }

            .navbar-links a:hover::after {
                width: 70%;
            }

        .navbar-links a.active {
            color: #38bdf8;
        }

            .navbar-links a.active::after {
                width: 70%;
            }

/* ============================================
       BOTÓN INGRESAR - FIX: NO SE CORTA
       ============================================ */
.btn-ingresar {
    display: inline-block;
    background: transparent;
    color: #38bdf8;
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 1.5;
    min-width: 100px;
    text-align: center;
    cursor: pointer;
}

    .btn-ingresar:hover {
        color: #ffffff;
        border-color: #38bdf8;
        background: rgba(56, 189, 248, 0.1);
        box-shadow: 0 0 20px rgba(56, 189, 248, 0.3), inset 0 0 10px rgba(56, 189, 248, 0.1);
    }

/* ============================================
       PRELOADER (tus estilos originales)
       ============================================ */
.loading-screen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: #0f172a !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 999999 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0.6s ease !important;
}

.loading-content {
    background-color: #1e293b !important;
    padding: 40px 30px !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
    text-align: center !important;
    max-width: 360px !important;
    width: 90% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
}

.logo-container {
    width: 100px !important;
    height: 100px !important;
    margin: 0 auto 20px auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    animation: pulseMega 2s infinite ease-in-out !important;
}

    .logo-container img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }

.app-title {
    color: #ffffff !important;
    font-family: system-ui, -apple-system, sans-serif !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    margin: 0 0 10px 0 !important;
}

.loading-text {
    color: #94a3b8 !important;
    font-family: system-ui, -apple-system, sans-serif !important;
    font-size: 0.95rem !important;
    margin: 0 0 25px 0 !important;
}

@@keyframes pulseMega {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}



.fade-out-mega {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* 🔥 FIX: Barra de progreso del preloader */
.progress-track {
    width: 100%;
    height: 6px;
    background-color: #334155;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    display: block;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, #38bdf8, #22c55e);
    border-radius: 10px;
    animation: progressSlide 1.5s infinite ease-in-out;
}

@keyframes progressSlide {
    0% {
        left: -40%;
    }

    50% {
        width: 60%;
    }

    100% {
        left: 100%;
    }
}
