/* ====================================== CSS del Menú - Vulcano.dev ===================================== */

/* Estilos para el menú de usuario - FORZADOS CON !IMPORTANT */
.user-menu {
    position: relative !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 9999 !important;
}

.user-button {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    color: #fff !important;
    font-size: 20px !important;
    cursor: pointer !important;
    padding: 8px 12px !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10000 !important;
}

.user-button:hover {
    background: linear-gradient(90deg, #2d9ad7 0%, #00FFB1 100%) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 0 25px rgba(45, 154, 215, 0.6) !important;
    color: #fff !important;
}

.user-dropdown {
    position: relative;
}

.user-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    border-radius: 12px;
    z-index: 1000;
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    visibility: visible !important;
    opacity: 1 !important;
}

.user-dropdown-content.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.user-info {
    padding: 15px;
    border-bottom: 1px solid #333;
}

.user-name {
    color: #00FFB1;
    font-weight: 600;
    font-size: 16px;
    text-shadow: 0 0 10px rgba(0, 255, 177, 0.3);
    visibility: visible !important;
    opacity: 1 !important;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 10px 0;
}

.dropdown-item {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    margin: 5px 10px;
    visibility: visible !important;
    opacity: 1 !important;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, #2d9ad7 0%, #5C33FF 100%) !important;
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(45, 154, 215, 0.3) !important;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    color: #ffffff !important;
}

/* Overlay para el menú móvil */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Header y navegación */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
    padding: 20px 0;
}

/* Espaciado para el contenido debajo del menú fijo */
body {
    padding-top: 100px; /* Ajusta este valor según la altura de tu menú */
}

.top-navbar.fixed {
    background: rgba(23, 27, 34, 0.3);
    backdrop-filter: blur(12.5px);
    -webkit-backdrop-filter: blur(12.5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding: 15px 0;
}

.top-navbar nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
}

/* Logo */
.logo {
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Icono del menú móvil */
.menu-icon {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-icon img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

/* Navegación principal */
.nav-links-mn {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
    justify-content: space-between;
}

/* Contenedor de navegación con flechas */
.nav-links-container {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    width: clamp(300px, 45vw, 600px); /* Sistema inteligente que se adapta */
    overflow: visible; /* Permitir que el ::after se vea */
}

/* Estilos para las flechas de navegación */
.nav-arrow {
    background: none;
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
    opacity: 0.8;
}

.nav-arrow:hover {
    opacity: 1;
    transform: scale(1.1);
}

.nav-arrow:active {
    transform: scale(0.95);
}

.nav-arrow i {
    font-size: 18px;
    color: white;
}

/* Ocultar flechas en móvil */
@media (max-width: 768px) {
    .nav-arrow {
        display: none !important;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0 0 -10px 0;
    padding: 0;
    gap: clamp(15px, 2vw, 30px); /* Gap más inteligente */
    align-items: center;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    flex: 1;
    min-width: 0; /* Permite que se reduzca */
    padding-bottom: 10px; /* Espacio para el ::after */
}

/* Ocultar scrollbar en WebKit browsers */
.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-links li {
    margin: 0;
}

.nav-links .a-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-links .a-link:hover {
    color: #00FFB1;
}

.nav-links .a-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #5C33FF 0%, #00FFB1 100%);
    transition: width 0.3s ease;
    z-index: 1;
}

.nav-links .a-link:hover::after {
    width: 100%;
}

/* Logo del menú lateral */
.side-menu-logo {
    display: none;
    text-decoration: none;
    margin-bottom: 20px;
}

/* Botones del header */
.header-buttons-main {
    display: flex;
    gap: 15px;
    align-items: center;
    position: relative;
    z-index: 1001;
}

/* Asegurar que el menú de usuario sea visible */
.header-buttons-main .user-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1002;
}

.guest-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.button2 {
    position: relative;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: conic-gradient(from var(--r) at var(--x) 50%, #222 0%, #00FFB1 20%, #1A1A1A 25%);
    animation: rotateAnimation 5s linear infinite, moveX 5s ease-in-out infinite alternate;
    padding: 12px 24px;
    color: #FFF;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
}

.button2:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 255, 177, 0.4);
    text-decoration: none;
}

/* Variables CSS para las animaciones */
.button2 {
    --x: 50%;
    --r: 0deg;
}

/* Animaciones para el efecto de luz giratoria */
@keyframes rotateAnimation {
    0% {
        --r: 0deg;
    }
    100% {
        --r: 360deg;
    }
}

@keyframes moveX {
    0% {
        --x: 0%;
    }
    100% {
        --x: 100%;
    }
}



.button {
    background: linear-gradient(90deg, #5C33FF 0%, #00FFB1 100%);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.button:hover {
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(92, 51, 255, 0.4);
}

.hoverEffect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #00FFB1 0%, #5C33FF 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.button:hover .hoverEffect {
    opacity: 1;
}

/* Modal de login/signup */
.modal-dialog-form {
    max-width: 800px;
}

.form-modal-body {
    padding: 0;
}

.container-demo {
    position: relative;
    width: 100%;
    height: 500px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.user {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: all 0.6s ease-in-out;
}

.signinBx {
    left: 0;
    z-index: 2;
}

.signupBx {
    left: 100%;
    z-index: 1;
}

.container-demo.active .signinBx {
    left: -100%;
}

.container-demo.active .signupBx {
    left: 0;
    z-index: 2;
}

.imgBx {
    position: relative;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, #5C33FF 0%, #00FFB1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.imgBx img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.formBx {
    position: relative;
    width: 50%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}

.formBx h2 {
    margin: 0 0 30px;
    color: #333;
    font-size: 1.5em;
    font-weight: 600;
    text-align: center;
}

.formBx form {
    width: 100%;
}

.formBx input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.formBx input:focus {
    border-color: #5C33FF;
}

.formBx .button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, #5C33FF 0%, #00FFB1 100%);
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.formBx .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(92, 51, 255, 0.4);
}

.signup {
    margin-top: 20px;
    text-align: center;
    color: #666;
}

.signup a {
    color: #5C33FF;
    text-decoration: none;
    font-weight: 600;
}

.signup a:hover {
    text-decoration: underline;
}

/* Botón de cerrar modal */
.form-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1002;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Responsive - Sistema automático con vw */
@media (max-width: 1200px) and (min-width: 769px) {
    .nav-links-mn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        right: auto !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 !important;
        transition: none !important;
        z-index: auto !important;
        margin-top: 0 !important;
        border: none !important;
        flex: 1 !important;
    }
    
    .nav-links-container {
        width: clamp(280px, 40vw, 500px) !important; /* Más inteligente para pantallas medianas */
        margin: 0 auto !important;
    }
    
    .nav-links {
        display: flex !important;
        flex-direction: row !important;
        gap: clamp(12px, 1.5vw, 25px) !important; /* Gap más inteligente */
        align-items: center !important;
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    .header-buttons-main {
        display: flex !important;
        flex-direction: row !important;
        gap: 15px !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }
    
    .button2, .button {
        font-size: clamp(13px, 1.5vw, 16px) !important; /* Tamaño automático */
        padding: clamp(8px, 1.5vw, 12px) clamp(15px, 2.5vw, 24px) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: clamp(100px, 15vw, 150px) !important;
        min-width: 0 !important;
    }
    
    .menu-icon {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }
    
    .nav-links-mn {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(12.5px);
        -webkit-backdrop-filter: blur(12.5px);
        border: 1px solid rgba(255, 255, 255, 0.18);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .nav-links-mn.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        margin-bottom: 30px;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links .a-link {
        display: block;
        padding: 15px;
        border-radius: 10px;
        transition: all 0.3s ease;
    }
    
    .nav-links .a-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .side-menu-logo {
        display: block;
    }
    
    .header-buttons-main {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .button2, .button {
        width: 100%;
        text-align: center;
    }
    
    /* Modal responsive */
    .modal-dialog-form {
        max-width: 95%;
        margin: 10px;
    }
    
    .container-demo {
        height: auto;
        min-height: 400px;
    }
    
    .user {
        flex-direction: column;
    }
    
    .imgBx, .formBx {
        width: 100%;
        height: auto;
    }
    
    .imgBx {
        height: 200px;
    }
    
    .formBx {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .top-navbar {
        padding: 15px 0;
    }
    
    .logo img {
        width: 120px;
    }
    
    .nav-links-mn {
        width: 100%;
        right: -100%;
    }
    
    .container-demo {
        min-height: 350px;
    }
    
    .formBx {
        padding: 20px 15px;
    }
}
