/* Toast Notifications */
.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.toast-contenedor {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
  max-width: 380px;
}

.toast {
  display: flex;
  align-items: stretch;
  min-height: 56px;
  padding: 0;
  border-radius: 16px;
  box-shadow: var(--sombra-lg);
  overflow: hidden;
  pointer-events: auto;
  animation: toast-enter 0.3s ease;
  opacity: 0;
  transform: translateX(400px) translateY(-100px);
  transition: all 0.3s ease;
}

.toast--visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translateX(400px) translateY(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

.toast-contenido {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  padding: 1rem 1.25rem;
  background: #fff;
}

.toast--exito .toast-contenido {
  background: linear-gradient(135deg, rgba(84, 186, 131, 0.95), rgba(76, 175, 123, 0.95));
  color: white;
}

.toast--error .toast-contenido {
  background: linear-gradient(135deg, rgba(255, 122, 70, 0.95), rgba(255, 107, 53, 0.95));
  color: white;
}

.toast--info .toast-contenido {
  background: linear-gradient(135deg, rgba(100, 150, 200, 0.95), rgba(80, 130, 180, 0.95));
  color: white;
}

.toast--calido .toast-contenido {
  background: linear-gradient(135deg, rgba(255, 179, 102, 0.95), rgba(255, 160, 80, 0.95));
  color: white;
}

.toast-icono {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  font-size: 1.4rem;
  font-weight: bold;
  flex-shrink: 0;
}

.toast-texto {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0;
}

.toast-cerrar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.toast-cerrar:hover {
  opacity: 1;
}

.toast-cerrar:focus {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: -2px;
}

@media (max-width: 480px) {
  .toast-contenedor {
    top: auto;
    right: 0;
    bottom: 1rem;
    left: 0;
    max-width: 100%;
    padding: 0 1rem;
    gap: 0.5rem;
  }

  .toast {
    min-height: 52px;
  }

  .toast-contenido {
    gap: 0.75rem;
    padding: 0.9rem 1rem;
  }

  .toast-texto {
    font-size: 0.9rem;
  }
}
