:root {
  --base-font-size: 16px;
}

#newsletter-anchor {
  scroll-margin-top: 80px;
}

.wil-banner-v2 {
  position: relative;
  width: 100%;
  max-width: 75rem;
  height: 14.75rem;
  margin: 0 auto;
  background-image: url("https://4272053.fs1.hubspotusercontent-na1.net/hubfs/4272053/newsletter-wil-banner.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  font-family: inherit;
  overflow: hidden;
}

.wil-banner-v2__overlay {
  display: none;
}

/* LOGOS */
/*.wil-banner-v2__logo {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wil-banner-v2__logo img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Logo superior izquierdo - WIL */
/*.wil-banner-v2__logo--top-left {
  top: 0.5rem;
  left: 0.5rem;
  width: 9rem;
  height: 9rem;
}

.wil-banner-v2__logo--top-left img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}*/

/* Logo inferior derecho - ManpowerGroup */
/*.wil-banner-v2__logo--bottom-right {
  bottom: -0.1rem;
  right: 1rem;
  width: 14rem;
  height: auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.wil-banner-v2__logo--bottom-right img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
*/

.wil-banner-v2__content {
  height: 100%;
  padding: 1.75rem 1.25rem 1.75rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.625rem;
  position: relative;
  z-index: 1;
}

.wil-banner-v2__subtitle {
  font-size: 1.44rem;
  line-height: 1.4;
  font-weight: 300;
  margin: 0;
  color: #ffffff;
  max-width: 35rem;
  word-wrap: break-word;
}

.wil-banner-v2__subtitle strong {
  font-size: 1.44rem;
  font-weight: 700;
}

.wil-banner-v2__title {
  position: absolute;
  top: 1.75rem;
  right: 3rem;

  font-size: 2.56rem;
  font-weight: 300; /* fuente más fina */
  line-height: 1.25;

  color: #ffffff;

  max-width: 14rem;
  text-align: right;
  margin: 0;
}
.wil-banner-v2__title span {
  font-size: inherit;
  line-height: inherit;
  font-weight: 700;
  color: inherit;
}

/* ---------- FORM HUBSPOT ---------- */

/* Form en GRID */
.wil-banner-v2__form-wrapper .hbspt-form form {
  display: grid;
  grid-template-columns: 1fr 7.5rem;
  grid-template-rows: auto auto;
  gap: 0 0.5rem;
  align-items: start;
  max-width: 34.375rem;
  margin-top: 0.5rem;
}

/* INPUT */
.wil-banner-v2__form-wrapper .hs_email {
  grid-column: 1;
  grid-row: 1;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.wil-banner-v2__form-wrapper .hs_email .input {
  width: 100%;
  margin: 0 !important;
  order: 1;
}

.wil-banner-v2__form-wrapper .hs_email .input input {
  padding: 0.5rem 0.875rem;
  border: 1px solid #e0e0e0;
  border-radius: 0.25rem;
  background: #fff;
  color: #333;
  font-size: 0.9375rem;
  width: 100%;
  height: 2.25rem;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease;
}

.wil-banner-v2__form-wrapper .hs_email .input input::placeholder {
  color: #999;
}

.wil-banner-v2__form-wrapper .hs_email .input input:focus {
  border-color: #3893CD;
}

/* ERRORES */
.wil-banner-v2__form-wrapper .hs-error-msgs {
  margin: 0.25rem 0 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
  order: 2;
  width: 100%;
}

.wil-banner-v2__form-wrapper .hs-error-msgs li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wil-banner-v2__form-wrapper .hs-error-msg {
  font-size: 0.75rem !important;
  color: #ff6b6b !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block;
}

/* BOTÓN */
.wil-banner-v2__form-wrapper .hs_submit {
  grid-column: 2;
  grid-row: 1;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wil-banner-v2__form-wrapper .hs_submit .actions {
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  width: 100%;
}

.wil-banner-v2__form-wrapper .hs_submit .hs-button {
  padding: 0.5rem 1.125rem;
  border-radius: 2rem;
  background: #ff7a12;
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  height: 2.25rem;
  box-sizing: border-box;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.1s ease;
  text-transform: uppercase;
  letter-spacing: 0.03125rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wil-banner-v2__form-wrapper .hs_submit .hs-button:hover {
  background-color: #C25700;
}

.wil-banner-v2__form-wrapper .hs_submit .hs-button:active {
  transform: translateY(0);
}

/* TEXTO LEGAL */
.wil-banner-v2__form-wrapper > div > div:nth-child(2) {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 0.375rem !important;
  padding: 0 !important;
}

.wil-banner-v2__form-wrapper .hs-richtext {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.95);
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.5;
}

.wil-banner-v2__form-wrapper .hs-richtext p {
  margin: 0 !important;
  margin-top: 10px !important;
  padding: 0 !important;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #282a32 !important;
}

.wil-banner-v2__form-wrapper .hs-richtext a {
  color: #282a32 !important;
  text-decoration: underline !important;
  font-weight: 700 !important;
  transition: color 0.2s ease;
}

.wil-banner-v2__form-wrapper .hs-richtext a:hover {
  color: #fff;
  text-decoration: underline;
}

/* RESET HUBSPOT */
.wil-banner-v2__form-wrapper .hs-form-field,
.wil-banner-v2__form-wrapper .field {
  margin: 0 !important;
  padding: 0 !important;
}

.wil-banner-v2__form-wrapper .hs-form-field > label {
  display: none !important;
}
.wil-banner-v2__form-wrapper .hs_error_rollup {
  display: none !important;
}


/* ------------------ MÓVIL ------------------ */
@media (max-width: 768px) {

  .wil-banner-v2 {
    background-image: url("https://4272053.fs1.hubspotusercontent-na1.net/hubfs/4272053/newsletter-wil-banner-mobile.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: calc(100% - 40px);
    margin: 20px auto 30px auto;
    border-radius: 8px;
    padding: 30px 20px 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
  }

  /* Logos 
  .wil-banner-v2__logo--top-left {
    position: absolute;
    top: 15px;
    left: 10px;
    width: 120px;
    height: 120px;
  }

  .wil-banner-v2__logo--bottom-right {
    position: absolute;
    top: 15px;
    right: 8px;
    width: 160px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
  }*/

  /* Contenido */
  .wil-banner-v2__content {
    position: static;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin-top: 20px;
    text-align: left;
  }

  .wil-banner-v2__subtitle {
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 12px;
  }

  .wil-banner-v2__subtitle strong {
    font-weight: 700;
    font-size: inherit;
    line-height: inherit;
  }

.wil-banner-v2__title {
  position: static; /* vuelve al flujo normal */
  font-size: 36px;
  line-height: 1.1;
  max-width: 100%;
  margin: 0 0 18px 0;
  text-align: left;
}

  /* Formulario */
  .wil-banner-v2__form-wrapper .hbspt-form form {
    display: block !important;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
  }

  .wil-banner-v2__form-wrapper .hs_email {
    width: 100%;
    margin-bottom: 12px !important;
  }

  .wil-banner-v2__form-wrapper .hs_email .input input {
    width: 100%;
    height: 2.8rem;
    font-size: 1rem;
    padding: 0 0.8rem;
  }

  .wil-banner-v2__form-wrapper .hs_submit {
    width: 80%;
    margin: 0 auto !important;
  }

  .wil-banner-v2__form-wrapper .hs_submit .hs-button {
    width: 80%;
    height: 2.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 26px;
    background: #FF7A12;
    margin: 0 auto;
  }

  .wil-banner-v2__form-wrapper .hs-richtext {
    font-size: 10px;
    margin: 10px 0 25px 0 !important;
  }
}

/* ------------------ TABLET ------------------ */
@media (min-width: 769px) and (max-width: 1024px) {

  .wil-banner-v2__subtitle {
    font-size: 1.15rem;
    max-width: 50%;
  }

  .wil-banner-v2__subtitle strong {
    font-size: 1.15rem;
  }

  .wil-banner-v2__title {
    font-size: 2.1rem;
  }

  .wil-banner-v2__form-wrapper .hs_email .input input {
    height: 2.2rem;
    font-size: 0.9rem;
  }

  .wil-banner-v2__form-wrapper .hs_submit .hs-button {
    height: 2.2rem;
    font-size: 0.9rem;
  }
  .wil-banner-v2__form-wrapper .hbspt-form form {
    max-width: 25rem;
    grid-template-columns: 1fr 6.5rem;
  }
}