/* ===== SISTEMA DE NOTIFICACIONES ===== */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.notification {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    margin-bottom: 12px;
    min-width: 320px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid;
    transform: translateX(450px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    border-left-color: var(--success-color);
    background: linear-gradient(135deg, #ffffff 0%, #f8fff9 100%);
}

.notification.error {
    border-left-color: var(--danger-color);
    background: linear-gradient(135deg, #ffffff 0%, #fffafa 100%);
}

.notification.warning {
    border-left-color: var(--warning-color);
    background: linear-gradient(135deg, #ffffff 0%, #fffef8 100%);
}

.notification.info {
    border-left-color: var(--accent-color);
    background: linear-gradient(135deg, #ffffff 0%, #f8fcff 100%);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    background: linear-gradient(135deg, var(--success-color), #2ecc71);
}

.notification.error .notification-icon {
    background: linear-gradient(135deg, var(--danger-color), #e74c3c);
}

.notification.warning .notification-icon {
    background: linear-gradient(135deg, var(--warning-color), #f1c40f);
}

.notification.info .notification-icon {
    background: linear-gradient(135deg, var(--accent-color), #3498db);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.notification-message {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--success-color);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    transition: width linear;
}

.notification.error .notification-progress {
    background: var(--danger-color);
}

.notification.warning .notification-progress {
    background: var(--warning-color);
}

.notification.info .notification-progress {
    background: var(--accent-color);
}

/* Animaciones */
@keyframes notificationSlideIn {
    from {
        transform: translateX(450px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes notificationSlideOut {
    from {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateX(450px) scale(0.8);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .notification {
        min-width: auto;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    .notification-close {
        display: none;
    }
}

/* ===== ALERTA FLOTANTE EN HEADER ===== */
.alerta-header-wrapper {
    position: absolute;
    top: 14px;
    right: 20px;
    max-width: 320px;
    z-index: 100;
}

.alerta-header {
    background: rgba(255, 255, 255, 0.08);
    /* border: 1px solid rgba(243, 156, 18, 0.6); */
    border-left: 4px solid #f39c12;
    border-radius: var(--border-radius);
    backdrop-filter: blur(6px);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 1.2), 0 2px 8px rgba(243, 156, 18, 1);
}

.alerta-header-inner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alerta-header-icono {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f39c12, #f1c40f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.alerta-header-contenido {
    flex: 1;
}

.alerta-header-titulo {
    font-size: 12px;
    font-weight: 700;
    color: #f39c12;
    margin-bottom: 4px;
    line-height: 1.3;
}

.alerta-header-mensaje {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.alerta-header-mensaje strong {
    color: #ffffff;
}

.alerta-header-cerrar {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: var(--transition);
    flex-shrink: 0;
    line-height: 1;
}

.alerta-header-cerrar:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.alerta-header-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.alerta-header-btn-entendido {
    background: #f39c12;
    color: white;
    border: none;
    padding: 5px 14px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.alerta-header-btn-entendido:hover {
    background: #e67e22;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(243, 156, 18, 0.4);
}

/* Múltiples alertas apiladas */
.alerta-header-wrapper .alerta-header + .alerta-header {
    margin-top: 8px;
}

@media (max-width: 768px) {
    .alerta-header-wrapper {
        position: static;
        max-width: 100%;
        margin-top: 12px;
    }
}

/* ===== ALERTA PERSISTENTE DE ACTUALIZACION ===== */
.alerta-actualizacion {
    background: white;
    border-left: 5px solid #f39c12;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.alerta-actualizacion-inner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px 12px 20px;
}

.alerta-icono {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f39c12, #f1c40f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.alerta-contenido {
    flex: 1;
}

.alerta-titulo {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.alerta-mensaje {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.alerta-cerrar {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
    flex-shrink: 0;
}

.alerta-cerrar:hover {
    background: rgba(0,0,0,0.05);
    color: var(--text-dark);
}

.alerta-footer {
    padding: 10px 20px 14px 78px;
    border-top: 1px solid var(--border-color);
    background: #fafafa;
}

.alerta-btn-entendido {
    background: #f39c12;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.alerta-btn-entendido:hover {
    background: #e67e22;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}