/* Popup de suscripción: mismo lenguaje que el sitio (negro, rojo, Inter). */
.sh-sus {
  /* El reset de Tailwind del tema quita el margen automático que centra los <dialog>. */
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  box-sizing: border-box;
  width: min(92vw, 26rem);
  padding: 2rem 1.75rem 1.5rem;
  border: 1px solid #1f2937;
  border-radius: 1rem;
  background: #0b0b0b;
  color: #fff;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  box-shadow: 0 0 0 1px rgb(220 38 38 / 0.15), 0 24px 60px rgb(0 0 0 / 0.6), 0 0 48px rgb(220 38 38 / 0.18);
}
.sh-sus::backdrop {
  background: rgb(0 0 0 / 0.7);
  backdrop-filter: blur(3px);
}
.sh-sus[open] {
  animation: sh-sus-entrar 0.35s ease-out;
}
@keyframes sh-sus-entrar {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sh-sus[open] { animation: none; }
}
.sh-sus__cerrar {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  border: 0;
  background: none;
  color: #9ca3af;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}
.sh-sus__cerrar:hover { color: #fff; }
.sh-sus__etiqueta {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f87171;
}
.sh-sus__titulo {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}
.sh-sus__texto {
  margin: 0 0 1.25rem;
  color: #9ca3af;
  font-size: 0.95rem;
  line-height: 1.5;
}
.sh-sus__form { display: grid; gap: 0.75rem; }
.sh-sus__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.8rem 1rem;
  border: 1px solid #374151;
  border-radius: 0.6rem;
  background: #111827;
  color: #fff;
  font-size: 1rem;
}
.sh-sus__input:focus {
  outline: 2px solid #dc2626;
  outline-offset: 1px;
  border-color: transparent;
}
.sh-sus__acepto {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #9ca3af;
}
.sh-sus__acepto input { margin-top: 0.15rem; accent-color: #dc2626; }
.sh-sus__acepto a { color: #f87171; }
.sh-sus__boton {
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.sh-sus__boton:hover { background: #ef4444; box-shadow: 0 0 24px rgb(239 68 68 / 0.45); }
.sh-sus__boton:disabled { opacity: 0.6; cursor: wait; }
.sh-sus__mensaje { margin: 0; min-height: 1.2em; font-size: 0.85rem; color: #fca5a5; }
.sh-sus__mensaje.es-ok { color: #86efac; }
.sh-sus__no {
  display: block;
  margin: 0.75rem auto 0;
  border: 0;
  background: none;
  color: #6b7280;
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
}
.sh-sus__oculto,
.sh-sus__trampa {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Aviso informativo */
#sh-aviso .sh-sus__texto p { margin: 0 0 0.75rem; }
#sh-aviso .sh-sus__texto p:last-child { margin-bottom: 0; }
#sh-aviso .sh-sus__boton { display: block; width: 100%; margin-top: 1.25rem; }
