/* ══════════════════════════════════════
   MODAL OVERLAY
══════════════════════════════════════ */
.modal-fondo {
  position: fixed;
  inset: 0;
  background: rgba(5, 14, 26, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

/* ══════════════════════════════════════
   MODAL BOX
══════════════════════════════════════ */
.modal {
  background: var(--fondo-card);
  border: 1px solid var(--borde);
  border-radius: var(--radio-lg);
  padding: 40px 36px 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--sombra-neon), var(--sombra);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  animation: modal-aparecer 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--acento), transparent);
}

@keyframes modal-aparecer {
  from { transform: scale(0.85) translateY(16px); opacity: 0; }
  to   { transform: scale(1)    translateY(0);    opacity: 1; }
}

/* ══════════════════════════════════════
   ICONO
══════════════════════════════════════ */
.modal-icono {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--acento-glow);
  border: 1px solid var(--borde);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 4px;
  box-shadow: 0 0 24px var(--acento-glow);
}

.modal-icono.peligro {
  background: var(--peligro-bg);
  border-color: var(--peligro-borde);
  box-shadow: 0 0 24px rgba(255, 77, 106, 0.2);
}

/* ══════════════════════════════════════
   TEXTO
══════════════════════════════════════ */
.modal-titulo {
  font-size: 18px;
  font-weight: 800;
  color: var(--texto);
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.modal-texto {
  font-size: 14px;
  color: var(--texto-2);
  line-height: 1.7;
  max-width: 300px;
}

/* ══════════════════════════════════════
   BOTONES
══════════════════════════════════════ */
.modal-botones {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  width: 100%;
  justify-content: center;
}

.modal-botones .boton,
.modal-botones .boton2 {
  flex: 1;
  max-width: 160px;
}
