/* ===== SISTEMA DE NOTIFICACIONES 2025 ===== */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    width: 100%;
}

.notification {
    position: relative;
    padding: 20px 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    pointer-events: all;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

/* Tipos de notificación */
.notification.success {
    background: linear-gradient(135deg, 
        rgba(76, 175, 80, 0.2) 0%, 
        rgba(139, 195, 74, 0.2) 100%);
    border-color: rgba(76, 175, 80, 0.3);
}

.notification.error {
    background: linear-gradient(135deg, 
        rgba(244, 67, 54, 0.2) 0%, 
        rgba(233, 30, 99, 0.2) 100%);
    border-color: rgba(244, 67, 54, 0.3);
}

.notification.warning {
    background: linear-gradient(135deg, 
        rgba(255, 152, 0, 0.2) 0%, 
        rgba(255, 193, 7, 0.2) 100%);
    border-color: rgba(255, 152, 0, 0.3);
}

.notification.info {
    background: linear-gradient(135deg, 
        rgba(33, 150, 243, 0.2) 0%, 
        rgba(103, 58, 183, 0.2) 100%);
    border-color: rgba(33, 150, 243, 0.3);
}

/* Contenido de la notificación */
.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.notification-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}

.notification-text {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: scale(1.1);
}

/* Barra de progreso */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.notification-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(255, 255, 255, 0.4) 100%);
    transform: translateX(-100%);
    transition: transform linear;
}

/* Efectos de fondo animados */
.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.notification:hover::before {
    transform: translateX(100%);
}

/* Partículas flotantes */
.notification-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.notification-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 3s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    50% { 
        transform: translateY(-20px) scale(1.5);
        opacity: 1;
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .notification-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .notification {
        padding: 16px 20px;
        font-size: 13px;
    }
    
    .notification-title {
        font-size: 14px;
    }
}

/* Animaciones de entrada personalizadas */
.notification.bounce-in {
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification.slide-in {
    animation: slideIn 0.5s ease-out;
}

.notification.fade-in {
    animation: fadeIn 0.4s ease-in;
}

@keyframes bounceIn {
    0% {
        transform: translateX(100%) scale(0.3);
        opacity: 0;
    }
    50% {
        transform: translateX(-10%) scale(1.05);
    }
    70% {
        transform: translateX(5%) scale(0.9);
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}