/* ============================================================
   ESTILOS PARA EL MODAL DE BIENVENIDA (UNA SOLA VEZ)
   ============================================================ */

/* Overlay del modal con efecto blur */
#modalWelcomeOnce .modal-backdrop {
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.7);
}

/* Contenedor del modal */
#modalWelcomeOnce .modal-dialog {
    max-width: 600px;
    margin: 1.75rem auto;
}

/* Contenido del modal */
#modalWelcomeOnce .modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Contenedor de la imagen */
#welcomeImageContainer {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Efecto hover en la imagen */
#welcomeImageContainer:hover {
    transform: scale(1.02);
}

/* Imagen principal */
#welcomeImage {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* Efecto hover en la imagen */
#welcomeImage:hover {
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.4);
}

/* Botón de cerrar personalizado */
#modalWelcomeOnce .close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modalWelcomeOnce .close:hover {
    background: rgba(255, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.8);
    opacity: 1;
    transform: rotate(90deg);
}

/* Indicador visual de que es clickeable */
#welcomeImageContainer::after {
    content: '👆 Click para continuar';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    animation: pulseIndicator 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseIndicator {
    0%, 100% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Mostrar indicador después de 2 segundos */
#modalWelcomeOnce.show #welcomeImageContainer::after {
    animation-delay: 2s;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    #modalWelcomeOnce .modal-dialog {
        max-width: 95%;
        margin: 0.5rem auto;
    }
    
    #welcomeImage {
        border-radius: 10px;
    }
    
    #modalWelcomeOnce .close {
        width: 30px;
        height: 30px;
        font-size: 20px;
        top: 5px;
        right: 5px;
    }
    
    #welcomeImageContainer::after {
        font-size: 12px;
        padding: 8px 15px;
        bottom: 15px;
    }
}

/* Responsive - Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    #modalWelcomeOnce .modal-dialog {
        max-width: 80%;
    }
}

/* Animación de entrada del modal */
#modalWelcomeOnce.show .modal-dialog {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translate3d(0, 100%, 0);
        opacity: 0;
    }
    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

/* Efecto de brillo al pasar el mouse */
#welcomeImageContainer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
    pointer-events: none;
    border-radius: 15px;
}

#welcomeImageContainer:hover::before {
    left: 100%;
}

/* Badge de "Nuevo" o "Especial" (opcional) */
.welcome-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 11;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Loader mientras carga la imagen */
#welcomeImage.loading {
    opacity: 0.5;
    filter: blur(5px);
}
/* Versión oscura del modal (opcional) */
#modalWelcomeOnce.dark-mode {
    background: rgba(0, 0, 0, 0.95);
}
#modalWelcomeOnce.dark-mode .modal-content {
    background: #1a1a1a;
    border-radius: 15px;
    padding: 20px;
}



