/* Sistema de Alertas Flotantes */
.alerts-container {
  position: fixed;
  right: 20px;
  top: 80px;
  z-index: 9998;
  max-width: 400px;
}

.alert-floating {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

.alert-floating.closing {
  animation: slideOutRight 0.3s ease-out forwards;
}

/* Alert Success - Verde */
.alert-floating.success {
  background: #09ff00;
  border: none;
  color: #000000;
}

.alert-floating.success .alert-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Alert Error - Rojo */
.alert-floating.error {
  background: #ff6b6b;
  border: none;
  color: #000000;
}

.alert-floating.error .alert-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Alert Warning - Amarillo */
.alert-floating.warning {
  background: #ffc107;
  border: none;
  color: #000000;
}

.alert-floating.warning .alert-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.alert-message {
  font-size: 13px;
  font-weight: 500;
}

.alert-close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  margin: -5px -5px 0 0;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.alert-close:hover {
  transform: scale(1.2);
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
  .alerts-container {
    right: 10px;
    max-width: none;
    top: 70px;
  }

  .alert-floating {
    padding: 14px 16px;
  }

  .alert-title {
    font-size: 12px;
  }

  .alert-message {
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  .alerts-container {
    right: 5px;
    top: 60px;
  }

  .alert-floating {
    padding: 12px 14px;
  }

  .alert-close {
    font-size: 16px;
  }
}
