/* assets/modal/login-cta.css
   Estilos para modal HL Auth CTA
*/

#hl-auth-cta-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.80); /* fondo más oscuro */
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.hl-auth-cta-modal {
  max-width: 720px;
  width: min(92%, 720px);
  background: #ffffff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  text-align: center;
  transform: translateY(0);
  transition: transform 240ms cubic-bezier(.2,.9,.2,1), opacity 180ms ease;
  outline: none;
}

/* Títulos y texto */
.hl-auth-cta-modal h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.2;
  color: #111;
}
.hl-auth-desc {
  margin: 8px 0 18px;
  color: #444;
  font-size: 0.98rem;
}

/* Botones */
.hl-auth-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 6px;
}
.hl-auth-cta-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  min-width: 140px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* estilos distintivos */
.hl-auth-cta-login {
  background: #0a8a44;
  color: #fff;
}
.hl-auth-cta-register {
  background: #f4f4f4;
  color: #222;
}

/* Ocultar cualquier botón de cerrar incorporado (por si tu tema lo añadiera) */
.hl-auth-cta-close {
  display: none !important;
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 20px;
}

/* Asegurar foco visible dentro del modal */
.hl-auth-cta-modal :focus {
  outline: 3px solid rgba(10,138,68,0.18);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Evitar scroll cuando modal abierto (clase añadida por JS) */
html.hl-auth-no-scroll, body.hl-auth-no-scroll {
  height: 100%;
  overflow: hidden !important;
  touch-action: none;
}

/* Ajustes móviles */
@media (max-width: 480px) {
  .hl-auth-cta-modal {
    padding: 18px;
    border-radius: 10px;
  }
  .hl-auth-cta-buttons a {
    min-width: 120px;
    padding: 10px 14px;
  }
}
