/* Ventana de suscripción al boletín (blog y artículos). Se inserta con newsletter-popup.js */
html.nl-lock { overflow: hidden; }
.nl-pop { position: fixed; inset: 0; z-index: 4000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(10, 30, 36, 0); font-family: 'Inter', Arial, 'Helvetica Neue', Helvetica, sans-serif; transition: background-color 280ms ease; }
.nl-pop.is-open { background: rgba(10, 30, 36, 0.62); }
.nl-pop__card { position: relative; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); width: min(900px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #FFFFFF; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38); opacity: 0; transform: translateY(18px) scale(0.985); transition: opacity 320ms ease, transform 420ms cubic-bezier(0.23, 1, 0.32, 1); }
.nl-pop.is-open .nl-pop__card { opacity: 1; transform: none; }
.nl-pop__x { position: absolute; z-index: 2; top: 12px; right: 12px; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.9); color: #111111; cursor: pointer; transition: background-color 160ms ease, transform 160ms ease; }
.nl-pop__x:hover { background: #E6F7F5; transform: rotate(90deg); }
.nl-pop__media { position: relative; min-height: 360px; background: linear-gradient(to top, rgba(20, 50, 59, 0.92), rgba(20, 50, 59, 0.25) 70%), url("../img/blog/lead-generation-b2b/img1.jpg") center / cover no-repeat; }
.nl-pop__badge { position: absolute; left: 24px; bottom: 24px; padding: 10px 14px; border-radius: 6px; background: #FFFFFF; color: #14323B; font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
.nl-pop__body { padding: clamp(28px, 3.4vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.nl-pop__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: #14323B; }
.nl-pop__eyebrow span { width: 9px; height: 9px; background: #14B8A6; }
.nl-pop__title { margin: 0; font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; line-height: 1.12; letter-spacing: -0.03em; color: #111111; }
.nl-pop__lead { margin: 12px 0 0; font-size: 16px; line-height: 1.5; color: #3A3F45; }
.nl-pop__form { margin-top: 20px; }
.nl-pop__topics { margin: 0 0 14px; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nl-pop__topics legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: #5D6168; }
.nl-chip { position: relative; cursor: pointer; }
.nl-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.nl-chip span { display: inline-block; padding: 8px 14px; border: 1px solid #D5D8DC; border-radius: 999px; font-size: 14px; font-weight: 500; color: #2A2F35; background: #FFFFFF; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.nl-chip:hover span { border-color: #14B8A6; }
.nl-chip input:checked + span { background: #E6F7F5; border-color: #14B8A6; color: #0D6B63; }
.nl-chip input:focus-visible + span { outline: 2px solid #14B8A6; outline-offset: 2px; }
.nl-pop__row { display: flex; gap: 8px; }
.nl-pop__input { flex: 1 1 auto; min-width: 0; padding: 14px 16px; border: 1px solid #C9CDD2; border-radius: 6px; font: 400 16px/1.2 inherit; font-family: inherit; color: #111111; background: #FFFFFF; transition: border-color 160ms ease, box-shadow 160ms ease; }
.nl-pop__input:focus { outline: none; border-color: #14B8A6; box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.22); }
.nl-pop__btn { flex: 0 0 auto; padding: 14px 22px; border: 0; border-radius: 6px; background: #14323B; color: #FFFFFF; font: 600 16px/1.2 inherit; font-family: inherit; cursor: pointer; transition: background-color 200ms ease, transform 200ms ease; }
.nl-pop__btn:hover { background: #0D6B63; }
.nl-pop__btn:active { transform: translateY(1px); }
.nl-pop__btn:disabled { opacity: 0.7; cursor: progress; }
.nl-pop__btn--solo { margin-top: 20px; align-self: flex-start; }
.nl-pop__trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nl-pop__msg { min-height: 0; margin: 8px 0 0; font-size: 14px; line-height: 1.4; }
.nl-pop__msg:not(:empty) { min-height: 20px; }
.nl-pop__msg[data-state="error"] { color: #B42318; }
.nl-pop__legal { margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: #6B7280; }
.nl-pop__legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.nl-pop__no { margin: 12px 0 0; padding: 4px 0; border: 0; background: transparent; font: 500 14px/1 inherit; font-family: inherit; color: #5D6168; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.nl-pop__no:hover { color: #111111; }
.nl-pop__ok[hidden], .nl-pop__form[hidden] { display: none; }

@media (max-width: 760px) {
  .nl-pop { align-items: flex-end; padding: 0; }
  .nl-pop__card { grid-template-columns: 1fr; width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; transform: translateY(40px); }
  .nl-pop__media { min-height: 110px; max-height: 110px; }
  .nl-pop__badge { left: 16px; bottom: 14px; padding: 7px 11px; font-size: 13px; }
  .nl-pop__body { padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); }
  .nl-pop__row { flex-direction: column; }
  .nl-pop__btn { width: 100%; }
  .nl-pop__lead { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .nl-pop, .nl-pop__card { transition: none; } .nl-pop__x:hover { transform: none; } }
