/* Sistema de Alertas Moderno */

/* Overlay */
.alert-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.alert-overlay.active {
  display: block;
  opacity: 1;
}

/* Alert Container */
.alert-container {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 9999;
  width: 90%;
  max-width: 400px;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.alert-container.active {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Alert Box */
.alert-box {
  background-color: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
}

/* Alert Icon */
.alert-icon {
  margin-bottom: 20px;
}

.alert-icon ion-icon {
  font-size: 64px;
}

.alert-box.success .alert-icon ion-icon {
  color: #2e7d32;
}

.alert-box.error .alert-icon ion-icon {
  color: #d32f2f;
}

.alert-box.warning .alert-icon ion-icon {
  color: #f57c00;
}

.alert-box.info .alert-icon ion-icon {
  color: #007aff;
}

/* Alert Content */
.alert-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1d1d1f;
}

.alert-message {
  font-size: 1rem;
  color: #6e6e73;
  margin-bottom: 25px;
  line-height: 1.5;
}

/* Alert Buttons */
.alert-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.alert-btn {
  flex: 1;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
}

.alert-btn-primary {
  background-color: #007aff;
  color: white;
}

.alert-btn-primary:hover {
  background-color: #0056cc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.alert-btn-secondary {
  background-color: #f5f5f7;
  color: #1d1d1f;
}

.alert-btn-secondary:hover {
  background-color: #e8e8ed;
}

.alert-btn:active {
  transform: translateY(0);
}

/* Animations */
.alert-overlay.hiding {
  opacity: 0;
}

.alert-container.hiding {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.95);
}

/* Responsive */
@media (max-width: 480px) {
  .alert-container {
    width: 95%;
    max-width: none;
  }
  
  .alert-box {
    padding: 25px 20px;
  }
  
  .alert-icon ion-icon {
    font-size: 56px;
  }
  
  .alert-title {
    font-size: 1.3rem;
  }
  
  .alert-message {
    font-size: 0.95rem;
  }
}