/* Modal de Bienvenida para Usuarios No Registrados */

.welcome-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.welcome-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.welcome-modal {
    background: var(--blanco);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideUp 0.4s ease-out;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header del modal */
.welcome-modal-header {
    background: linear-gradient(135deg, var(--naranja) 0%, var(--rojo) 100%);
    padding: 30px 24px;
    text-align: center;
    color: var(--blanco);
    position: relative;
}

.welcome-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--blanco);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.welcome-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.welcome-modal-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.welcome-modal-header h2 {
    margin: 0 0 8px 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.welcome-modal-header p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.95;
}

/* Body del modal */
.welcome-modal-body {
    padding: 32px 24px;
}

.welcome-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.welcome-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 0.95rem;
    color: var(--gris-oscuro);
}

.welcome-benefits li i {
    color: var(--naranja);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* Botones del modal */
.welcome-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-welcome {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-welcome-primary {
    background: linear-gradient(135deg, var(--naranja) 0%, var(--rojo) 100%);
    color: var(--blanco);
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
}

.btn-welcome-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
}

.btn-welcome-secondary {
    background: var(--gris-claro);
    color: var(--gris-oscuro);
}

.btn-welcome-secondary:hover {
    background: #E0E0E0;
}

/* Checkbox de no mostrar */
.welcome-modal-footer {
    padding: 0 24px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.welcome-modal-footer input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.welcome-modal-footer label {
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
    user-select: none;
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-modal {
        max-width: 90%;
    }
    
    .welcome-modal-header {
        padding: 24px 20px;
    }
    
    .welcome-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .welcome-modal-body {
        padding: 24px 20px;
    }
    
    .welcome-benefits li {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .welcome-modal {
        width: 95%;
    }
    
    .welcome-modal-actions {
        flex-direction: column;
    }
    
    .btn-welcome {
        width: 100%;
    }
    
    .welcome-modal-icon {
        font-size: 2.5rem;
    }
    
    .welcome-modal-header h2 {
        font-size: 1.3rem;
    }
}
