/* Sistema de Notificaciones - Estilos Profesionales */

/* Contenedor de notificaciones - Posición fija en la esquina superior derecha */
.notificaciones-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

/* Notificación base */
.notificacion {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    max-width: 400px;
    pointer-events: all;
    transform: translateX(450px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
}

/* Animación de entrada */
.notificacion.show {
    transform: translateX(0);
    opacity: 1;
}

/* Animación de salida */
.notificacion.hide {
    transform: translateX(450px);
    opacity: 0;
}

/* Barra de progreso */
.notificacion::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    width: 100%;
    animation: progress 5s linear forwards;
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Icono de la notificación */
.notificacion-icono {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Contenido de la notificación */
.notificacion-contenido {
    flex: 1;
    color: #ffffff;
}

.notificacion-titulo {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.4;
}

.notificacion-mensaje {
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.5;
}

/* Botón de cerrar */
.notificacion-cerrar {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 20px;
    padding: 4px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notificacion-cerrar:hover {
    opacity: 1;
}

/* Tipos de notificaciones */

/* Éxito */
.notificacion.exito {
    border-left-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.notificacion.exito .notificacion-icono {
    color: #10b981;
}

.notificacion.exito::before {
    background: #10b981;
}

/* Error */
.notificacion.error {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.notificacion.error .notificacion-icono {
    color: #ef4444;
}

.notificacion.error::before {
    background: #ef4444;
}

/* Advertencia */
.notificacion.advertencia {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.notificacion.advertencia .notificacion-icono {
    color: #f59e0b;
}

.notificacion.advertencia::before {
    background: #f59e0b;
}

/* Info */
.notificacion.info {
    border-left-color: #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.notificacion.info .notificacion-icono {
    color: #3b82f6;
}

.notificacion.info::before {
    background: #3b82f6;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .notificaciones-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notificacion {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
    
    .notificacion {
        transform: translateY(-120px);
    }
    
    .notificacion.show {
        transform: translateY(0);
    }
    
    .notificacion.hide {
        transform: translateY(-120px);
    }
}

/* Hover effect */
.notificacion:hover::before {
    animation-play-state: paused;
}

/* Efecto de pulsación para nuevas notificaciones */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.notificacion.pulse {
    animation: pulse 0.5s ease;
}