/* =========================================================
   JR NEWSLETTER 1.1.1
   Layout inspirado en la referencia enviada
   ========================================================= */

.jr-newsletter,
.jr-newsletter * {
  box-sizing: border-box;
}

.jr-newsletter {
  --jr-news-blue: #236bcf;
  --jr-news-white: #f5f2ea;
  --jr-news-copy: rgba(245, 242, 234, 0.98);
  --jr-news-copy-soft: rgba(245, 242, 234, 0.92);
  --jr-news-copy-faint: rgba(245, 242, 234, 0.78);
  --jr-news-max: 1450px;

  position: relative;
  overflow: hidden;
  background: var(--jr-news-blue);
  color: var(--jr-news-white);
  padding: clamp(64px, 8vw, 114px) 0 clamp(74px, 8vw, 118px);
  font-family: "Raleway", Arial, sans-serif;
}

.jr-newsletter a {
  color: inherit;
  text-decoration: none;
}


/* Fuerza Raleway en toda la sección, incluso si el tema de WordPress
   intenta aplicar otra tipografía a títulos, campos o botones. */
.jr-newsletter h1,
.jr-newsletter h2,
.jr-newsletter h3,
.jr-newsletter h4,
.jr-newsletter h5,
.jr-newsletter h6,
.jr-newsletter p,
.jr-newsletter a,
.jr-newsletter span,
.jr-newsletter strong,
.jr-newsletter em,
.jr-newsletter label,
.jr-newsletter input,
.jr-newsletter button {
  font-family: "Raleway", Arial, sans-serif !important;
}

.jr-newsletter__shell {
  width: min(calc(100% - 64px), var(--jr-news-max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(420px, 0.95fr);
  gap: clamp(46px, 6vw, 96px);
  align-items: start;
}

.jr-newsletter__title {
  margin: 0 !important;
  color: var(--jr-news-white) !important;
  font-size: clamp(72px, 9.5vw, 178px) !important;
  line-height: 0.83 !important;
  font-weight: 850 !important;
  letter-spacing: -0.075em !important;
  max-width: 4.5ch;
}

.jr-newsletter__title br {
  display: block;
}

.jr-newsletter__description {
  margin: clamp(26px, 2.6vw, 34px) 0 0 !important;
  max-width: 560px;
  color: var(--jr-news-copy-soft) !important;
  font-size: clamp(18px, 1.9vw, 26px) !important;
  line-height: 1.03 !important;
  font-weight: 400 !important;
  letter-spacing: -0.04em !important;
}

.jr-newsletter__form-wrap {
  padding-top: clamp(44px, 7vw, 110px);
}

.jr-newsletter__secondary {
  margin: 0 0 24px !important;
  color: var(--jr-news-copy) !important;
  font-size: clamp(14px, 1.15vw, 21px) !important;
  line-height: 1.15 !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase;
}

.jr-newsletter__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 12px;
  align-items: end;
}

.jr-newsletter__honeypot {
  position: absolute !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.jr-newsletter__field {
  display: block;
  min-width: 0;
}

.jr-newsletter__field input {
  width: 100%;
  height: clamp(52px, 4.6vw, 72px);
  padding: 0 22px;
  border: 1px solid rgba(245, 242, 234, 0.95);
  border-radius: 999px;
  outline: none;
  background: rgba(245, 242, 234, 0.95);
  color: #1e3b69;
  font-size: 16px;
  font-weight: 500;
  transition: box-shadow 220ms ease, transform 220ms ease, background-color 220ms ease;
}

.jr-newsletter__field input::placeholder {
  color: rgba(30, 59, 105, 0.5);
}

.jr-newsletter__field input:focus {
  box-shadow: 0 0 0 4px rgba(255,255,255,0.18);
  background: #ffffff;
}

.jr-newsletter__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(180px, 17vw, 250px);
  height: clamp(52px, 4.6vw, 72px);
  padding: 0 28px;
  border: 1px solid rgba(245, 242, 234, 0.95);
  border-radius: 999px;
  background: transparent;
  color: var(--jr-news-white);
  cursor: pointer;
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background-color 220ms ease, color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.jr-newsletter__button:hover,
.jr-newsletter__button:focus-visible {
  background: rgba(255,255,255,0.12);
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
  outline: none;
  transform: translateY(-1px);
}

.jr-newsletter__button.is-loading {
  opacity: .72;
  pointer-events: none;
}

.jr-newsletter__consent,
.jr-newsletter__feedback {
  grid-column: 1 / -1;
}

.jr-newsletter__consent {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 2px;
  color: rgba(245, 242, 234, 0.82);
  font-size: clamp(10px, 0.78vw, 12px);
  line-height: 1.45;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.jr-newsletter__consent input {
  width: 12px;
  height: 12px;
  margin: 2px 0 0;
  accent-color: #ffffff;
}

.jr-newsletter__consent a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.jr-newsletter__feedback {
  min-height: 18px;
  margin: 2px 0 0 !important;
  color: rgba(255,255,255,0.9) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

.jr-newsletter__feedback.is-error {
  color: #ffe2e2 !important;
}

.jr-newsletter__feedback.is-success {
  color: #defee8 !important;
}

[data-jr-newsletter-reveal] {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity 760ms cubic-bezier(.22,1,.36,1), transform 860ms cubic-bezier(.22,1,.36,1);
}

[data-jr-newsletter-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .jr-newsletter__shell {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .jr-newsletter__form-wrap {
    padding-top: 0;
    max-width: 760px;
  }
}

@media (max-width: 680px) {
  .jr-newsletter {
    padding: 44px 0 58px;
  }

  .jr-newsletter__shell {
    width: calc(100% - 28px);
    gap: 28px;
  }

  .jr-newsletter__title {
    max-width: none;
    font-size: clamp(60px, 17vw, 92px) !important;
  }

  .jr-newsletter__description {
    max-width: 100%;
    font-size: 16px !important;
    line-height: 1.1 !important;
  }

  .jr-newsletter__secondary {
    margin-bottom: 18px !important;
    font-size: 12px !important;
  }

  .jr-newsletter__form {
    grid-template-columns: 1fr;
  }

  .jr-newsletter__button {
    width: 100%;
  }

  .jr-newsletter__consent {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jr-newsletter *,
  .jr-newsletter *::before,
  .jr-newsletter *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  [data-jr-newsletter-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
