/* Sirena de Alerta - Estilo Ambulancia */

.siren-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  background: linear-gradient(135deg, #ff0000 0%, #ff6b00 100%);
  color: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(255, 0, 0, 0.6);
  min-width: 320px;
  max-width: 400px;
  animation: siren-shake 0.5s ease-in-out infinite;
  transition: all 0.3s ease;
}

.siren-alert.hidden {
  display: none;
}

.siren-alert.active {
  display: block;
}

/* Luz parpadeante */
.siren-light {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 48px;
  height: 48px;
  background: #ff0000;
  border-radius: 50%;
  animation: siren-pulse 0.6s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.9);
}

/* Contenido de la sirena */
.siren-content {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.siren-icon {
  font-size: 40px;
  animation: siren-rotate 2s linear infinite;
  flex-shrink: 0;
}

.siren-message {
  flex: 1;
}

.siren-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.siren-table {
  font-size: 16px;
  opacity: 0.9;
}

/* Botón de atender */
.siren-dismiss {
  width: 100%;
  padding: 14px;
  background: white;
  color: #ff0000;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.siren-dismiss:hover {
  background: #f0f0f0;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.siren-dismiss:active {
  transform: scale(0.98);
}

/* Animaciones */
@keyframes siren-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.3);
  }
}

@keyframes siren-shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px) rotate(-1deg);
  }
  75% {
    transform: translateX(4px) rotate(1deg);
  }
}

@keyframes siren-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .siren-alert {
    top: 10px;
    right: 10px;
    left: 10px;
    min-width: unset;
    max-width: unset;
  }

  .siren-content {
    gap: 12px;
  }

  .siren-icon {
    font-size: 32px;
  }

  .siren-title {
    font-size: 16px;
  }

  .siren-table {
    font-size: 14px;
  }
}
