/* ============================================================
   LEAD MAGNET V1 · ARTÍCULOS Y CATEGORÍAS DEL BLOG
   ============================================================ */

body.rl-lead-v1-open {
  overflow: hidden;
}

.rl-lead-v1[hidden] {
  display: none;
}

.rl-lead-v1,
.rl-lead-v1 *,
.rl-lead-v1 *::before,
.rl-lead-v1 *::after {
  box-sizing: border-box;
}

.rl-lead-v1 {
  --rl-lead-navy-1000: #010817;
  --rl-lead-navy-950: #020d21;
  --rl-lead-navy-900: #041631;
  --rl-lead-navy-800: #0a2850;
  --rl-lead-aqua: #20e6b4;
  --rl-lead-mint: #72f3d1;
  --rl-lead-gold: #e7bd5a;
  --rl-lead-white: #f8fbff;
  --rl-lead-copy: #d9e5f5;
  --rl-lead-muted: #aebdd2;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--rl-lead-copy);
  font-family: inherit;
  letter-spacing: 0;
}

.rl-lead-v1__backdrop {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(1, 8, 23, 0.84);
  backdrop-filter: blur(12px) saturate(0.86);
  transition: opacity 520ms ease;
}

.rl-lead-v1__dialog {
  position: relative;
  width: min(100%, 1120px);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(83, 231, 199, 0.58);
  border-radius: 26px;
  background: var(--rl-lead-navy-950);
  box-shadow:
    0 34px 110px rgba(0, 4, 18, 0.68),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset;
  opacity: 0;
  transform: translateY(30px) scale(0.975);
  transition:
    opacity 620ms ease,
    transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rl-lead-v1.is-visible .rl-lead-v1__backdrop,
.rl-lead-v1.is-visible .rl-lead-v1__dialog {
  opacity: 1;
}

.rl-lead-v1.is-visible .rl-lead-v1__dialog {
  transform: translateY(0) scale(1);
}

.rl-lead-v1__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  color: var(--rl-lead-white);
  font: inherit;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  border: 1px solid rgba(114, 243, 209, 0.42);
  border-radius: 14px;
  background: rgba(3, 24, 50, 0.88);
  box-shadow: 0 12px 30px rgba(0, 5, 20, 0.32);
  transition:
    color 320ms ease,
    border-color 320ms ease,
    background-color 320ms ease,
    transform 320ms ease;
}

.rl-lead-v1__close:hover {
  color: var(--rl-lead-mint);
  border-color: rgba(114, 243, 209, 0.78);
  background: #08274a;
  transform: translateY(-2px);
}

.rl-lead-v1__close:focus-visible,
.rl-lead-v1 a:focus-visible,
.rl-lead-v1 button:focus-visible,
.rl-lead-v1 input:focus-visible,
.rl-lead-v1 textarea:focus-visible,
.rl-lead-v1 select:focus-visible {
  outline: 3px solid var(--rl-lead-mint);
  outline-offset: 3px;
}

.rl-lead-v1__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  min-height: 620px;
}

.rl-lead-v1__intro,
.rl-lead-v1__form-panel {
  min-width: 0;
  padding: clamp(38px, 4.2vw, 56px);
}

.rl-lead-v1__intro {
  position: relative;
  overflow: hidden;
  border-radius: 25px 0 0 0;
  background:
    linear-gradient(152deg, rgba(11, 52, 91, 0.95), rgba(2, 18, 42, 0.98));
}

.rl-lead-v1__intro::after {
  content: "07";
  position: absolute;
  right: -0.04em;
  bottom: -0.22em;
  color: rgba(114, 243, 209, 0.045);
  font-size: clamp(150px, 17vw, 260px);
  font-weight: 900;
  line-height: 0.8;
  pointer-events: none;
}

.rl-lead-v1__logo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(230px, 70%);
  height: auto;
  margin: 0 0 28px;
}

.rl-lead-v1__eyebrow,
.rl-lead-v1__form-kicker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--rl-lead-mint);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.rl-lead-v1__eyebrow span {
  display: grid;
  width: 44px;
  aspect-ratio: 1;
  place-items: center;
  color: #03251f;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  background: linear-gradient(145deg, #83f8d9, #12d7a7);
  font-size: 10px;
}

.rl-lead-v1__title {
  position: relative;
  z-index: 1;
  max-width: 19ch;
  margin: 0;
  color: var(--rl-lead-white);
  font-size: clamp(36px, 3.3vw, 48px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
}

.rl-lead-v1__title span {
  display: block;
  margin-top: 9px;
  color: var(--rl-lead-aqua);
}

.rl-lead-v1__description {
  position: relative;
  z-index: 1;
  max-width: 46ch;
  margin: 22px 0 0;
  color: var(--rl-lead-copy);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.58;
}

.rl-lead-v1__reinforcement {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 24px 0 0;
  padding: 16px 18px;
  color: #eef6ff;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid rgba(114, 243, 209, 0.28);
  border-radius: 12px;
  background: rgba(2, 23, 47, 0.6);
}

.rl-lead-v1__reinforcement > span {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  aspect-ratio: 1;
  place-items: center;
  color: #02251e;
  font-size: 14px;
  border-radius: 50%;
  background: var(--rl-lead-mint);
}

.rl-lead-v1__reinforcement strong {
  font-weight: 780;
}

.rl-lead-v1__form-panel {
  padding-right: clamp(42px, 4.6vw, 62px);
  background:
    linear-gradient(155deg, rgba(7, 32, 66, 0.94), rgba(2, 13, 33, 0.99));
}

.rl-lead-v1__form-panel h3 {
  margin: 0;
  padding-right: 40px;
  color: var(--rl-lead-white);
  font-size: clamp(27px, 2.8vw, 38px);
  font-weight: 880;
  line-height: 1.08;
  letter-spacing: 0;
}

.rl-lead-v1__email-note {
  margin: 16px 0 24px;
  color: var(--rl-lead-muted);
  font-size: 15px;
  line-height: 1.6;
}

.rl-lead-v1__plugin-form,
.rl-lead-v1__plugin-form .wrap,
.rl-lead-v1__plugin-form .pdb-signup,
.rl-lead-v1__plugin-form form {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  color: inherit;
  background: transparent;
}

.rl-lead-v1__plugin-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.rl-lead-v1__plugin-form legend {
  margin: 0 0 14px;
  color: var(--rl-lead-white);
  font-size: 16px;
  font-weight: 800;
}

.rl-lead-v1__plugin-form .control-group {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
}

.rl-lead-v1__plugin-form .controls {
  width: 100%;
  margin: 0;
}

.rl-lead-v1__plugin-form label,
.rl-lead-v1__plugin-form .control-label {
  display: block;
  width: auto;
  margin: 0;
  color: #dce9f8;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
  text-align: left;
}

.rl-lead-v1__plugin-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.rl-lead-v1__plugin-form textarea,
.rl-lead-v1__plugin-form select {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 11px 13px;
  color: var(--rl-lead-white);
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  border: 1px solid rgba(122, 175, 215, 0.34);
  border-radius: 10px;
  background: rgba(1, 13, 34, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition:
    border-color 320ms ease,
    background-color 320ms ease,
    box-shadow 320ms ease;
}

.rl-lead-v1__plugin-form textarea {
  min-height: 82px;
  resize: vertical;
}

.rl-lead-v1__plugin-form input::placeholder,
.rl-lead-v1__plugin-form textarea::placeholder {
  color: #7f91aa;
  opacity: 1;
}

.rl-lead-v1__plugin-form input:not([type="submit"]):focus,
.rl-lead-v1__plugin-form textarea:focus,
.rl-lead-v1__plugin-form select:focus {
  border-color: rgba(114, 243, 209, 0.82);
  background: rgba(3, 24, 50, 0.94);
  box-shadow: 0 0 0 4px rgba(32, 230, 180, 0.11);
}

.rl-lead-v1__plugin-form input[type="checkbox"],
.rl-lead-v1__plugin-form input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0 8px 0 0;
  accent-color: var(--rl-lead-aqua);
}

.rl-lead-v1__plugin-form .help-block,
.rl-lead-v1__plugin-form .description {
  display: block;
  margin-top: 5px;
  color: #91a5bf;
  font-size: 12px;
  line-height: 1.45;
}

.rl-lead-v1__plugin-form .required,
.rl-lead-v1__plugin-form .error,
.rl-lead-v1__plugin-form .alert-error,
.rl-lead-v1__plugin-form .alert-danger {
  color: #ffd28a;
}

.rl-lead-v1__plugin-form .alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  color: #fff2d6;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid rgba(231, 189, 90, 0.48);
  border-radius: 10px;
  background: rgba(92, 60, 9, 0.28);
}

.rl-lead-v1__plugin-form #submit-button {
  display: block;
  margin-top: 6px;
}

.rl-lead-v1__plugin-form input[type="submit"],
.rl-lead-v1__plugin-form button[type="submit"] {
  display: flex;
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 14px 20px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  border: 1px solid rgba(152, 255, 225, 0.82);
  border-radius: 12px;
  background: linear-gradient(112deg, #4fe0bf, #0bd2a3 48%, #00bb8f);
  box-shadow:
    0 16px 34px rgba(0, 206, 157, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transition:
    filter 320ms ease,
    transform 320ms ease,
    box-shadow 320ms ease;
}

.rl-lead-v1__plugin-form input[type="submit"]:hover,
.rl-lead-v1__plugin-form button[type="submit"]:hover {
  filter: brightness(1.06) saturate(1.06);
  transform: translateY(-2px);
  box-shadow:
    0 20px 42px rgba(0, 206, 157, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.rl-lead-v1__plugin-form #submit-button > a,
.rl-lead-v1__plugin-form .pdb-retrieve-link {
  display: none;
}

.rl-lead-v1__plugin-form .signup-thanks {
  margin-top: 20px;
  padding: 20px;
  color: #eafff8;
  font-size: 16px;
  line-height: 1.6;
  border: 1px solid rgba(114, 243, 209, 0.5);
  border-radius: 12px;
  background: rgba(22, 173, 137, 0.12);
}

.rl-lead-v1__microcopy {
  display: flex;
  margin: 13px 0 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #dce8f6;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
  text-align: center;
}

.rl-lead-v1__microcopy span {
  color: var(--rl-lead-mint);
}

.rl-lead-v1__privacy,
.rl-lead-v1__contact {
  margin: 14px 0 0;
  color: #8fa2bb;
  font-size: 11.5px;
  line-height: 1.55;
}

.rl-lead-v1__contact {
  margin-top: 7px;
}

.rl-lead-v1__privacy a,
.rl-lead-v1__privacy a:visited,
.rl-lead-v1__contact a,
.rl-lead-v1__contact a:visited {
  color: var(--rl-lead-mint);
  text-decoration-color: rgba(114, 243, 209, 0.52);
  text-underline-offset: 0.16em;
}

.rl-lead-v1__footer {
  display: flex;
  min-height: 68px;
  padding: 16px clamp(28px, 4vw, 52px);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #9fb1c9;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.4;
  border-top: 1px solid rgba(94, 160, 203, 0.2);
  border-radius: 0 0 25px 25px;
  background: #020d21;
}

.rl-lead-v1__trust,
.rl-lead-v1__counter {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.rl-lead-v1__trust > span {
  color: var(--rl-lead-mint);
  font-size: 17px;
}

.rl-lead-v1__counter {
  flex: 0 0 auto;
  color: var(--rl-lead-gold);
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .rl-lead-v1 {
    padding: 16px;
  }

  .rl-lead-v1__dialog {
    max-height: calc(100dvh - 32px);
    border-radius: 22px;
  }

  .rl-lead-v1__layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .rl-lead-v1__intro,
  .rl-lead-v1__form-panel {
    padding: 38px clamp(26px, 7vw, 48px);
  }

  .rl-lead-v1__intro {
    border-radius: 21px 21px 0 0;
  }

  .rl-lead-v1__logo {
    width: min(210px, 62%);
    margin-bottom: 30px;
  }

  .rl-lead-v1__title {
    max-width: 14ch;
    font-size: clamp(34px, 8vw, 48px);
  }

  .rl-lead-v1__description {
    max-width: 54ch;
  }

  .rl-lead-v1__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    border-radius: 0 0 21px 21px;
  }
}

@media (max-width: 480px) {
  .rl-lead-v1 {
    padding: 8px;
  }

  .rl-lead-v1__dialog {
    max-height: calc(100dvh - 16px);
    border-radius: 18px;
  }

  .rl-lead-v1__close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .rl-lead-v1__intro,
  .rl-lead-v1__form-panel {
    padding: 30px 22px;
  }

  .rl-lead-v1__intro {
    border-radius: 17px 17px 0 0;
  }

  .rl-lead-v1__logo {
    width: 180px;
    margin-bottom: 26px;
  }

  .rl-lead-v1__eyebrow {
    padding-right: 48px;
    font-size: 11px;
  }

  .rl-lead-v1__title {
    font-size: 34px;
    line-height: 1.02;
  }

  .rl-lead-v1__description {
    margin-top: 22px;
    font-size: 15px;
  }

  .rl-lead-v1__reinforcement {
    margin-top: 22px;
  }

  .rl-lead-v1__form-panel h3 {
    padding-right: 0;
    font-size: 27px;
  }

  .rl-lead-v1__plugin-form input[type="submit"],
  .rl-lead-v1__plugin-form button[type="submit"] {
    padding-right: 10px;
    padding-left: 10px;
    font-size: 13px;
  }

  .rl-lead-v1__footer {
    padding: 15px 22px;
    border-radius: 0 0 17px 17px;
  }
}

@media (max-width: 340px) {
  .rl-lead-v1__form-panel {
    padding-right: 16px;
    padding-left: 16px;
  }

  .rl-lead-v1__plugin-form input[type="submit"],
  .rl-lead-v1__plugin-form button[type="submit"] {
    font-size: 11.5px;
  }
}

@media (max-height: 960px) and (min-width: 821px) {
  .rl-lead-v1__layout {
    min-height: 0;
  }

  .rl-lead-v1__intro,
  .rl-lead-v1__form-panel {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .rl-lead-v1__logo {
    width: 190px;
    margin-bottom: 22px;
  }

  .rl-lead-v1__title {
    font-size: 42px;
  }

  .rl-lead-v1__description {
    margin-top: 20px;
  }

  .rl-lead-v1__reinforcement {
    margin-top: 20px;
  }

  .rl-lead-v1__footer {
    min-height: 58px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rl-lead-v1__backdrop,
  .rl-lead-v1__dialog,
  .rl-lead-v1__close,
  .rl-lead-v1__plugin-form input,
  .rl-lead-v1__plugin-form button {
    scroll-behavior: auto;
    transition-duration: 1ms;
  }
}
