/* Hero — typewriter (Flowbase / Typed.js)
   - El script inserta <span>texto</span><span class="typed-cursor">|</span>.
   - NO usar inline-block en el span de texto: el cursor queda después del "bloque" y baja a otra línea al haber wrap.
   - .subtitle.sections.styled usa text-fill transparent + background-clip:text; el cursor debe forzar color sólido o hereda "invisible".
   - No aplicar animaciones CSS con opacity:0 en el <span> padre (fb-typewriter): Typed corre "en invisible"
     y al revelarse el texto ya está escrito; la entrada es el propio tipeo + cursor. */

.hero-page > .subtitle.sections.styled.extrabig {
  display: block;
  text-align: center;
  box-sizing: border-box;
  min-height: calc(64px * 3);
  max-height: calc(64px * 3);
  overflow: hidden;
  max-width: 100%;
}

@supports (min-height: 3lh) {
  .hero-page > .subtitle.sections.styled.extrabig {
    min-height: 3lh;
    max-height: 3lh;
  }
}

@media screen and (min-width: 992px) {
  .hero-page > .subtitle.sections.styled.extrabig {
    min-height: calc(64px * 2);
    max-height: calc(64px * 3);
  }

  @supports (min-height: 2lh) {
    .hero-page > .subtitle.sections.styled.extrabig {
      min-height: 2lh;
      max-height: 3lh;
    }
  }
}

.hero-page > .subtitle.sections.styled.extrabig > span:not(.typed-cursor) {
  display: inline;
  word-break: break-word;
  overflow-wrap: anywhere;
  padding: 0 2px;
  box-sizing: border-box;
}

.hero-page > .subtitle.sections.styled.extrabig .typed-cursor {
  display: inline;
  color: #262626;
  -webkit-text-fill-color: currentColor;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  font-size: inherit;
  line-height: inherit;
  font-family: inherit;
  font-weight: inherit;
  vertical-align: baseline;
}

.hero-page > .subtitle.sections.styled.extrabig > div {
  box-sizing: border-box;
  padding: 0 2px;
}

@media screen and (max-width: 991px) {
  .hero-page .text-badge {
    white-space: normal;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    align-self: stretch;
  }

  .hero-page .text-badge .subtitle.sections.styled,
  .hero-page .text-badge .subtitle.sections.ia-gradient {
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
  }
}

.hero-page .header-badge {
  gap: 20px;
}

.hero-page .hero-page__primary-cta {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin-top: 4px;
}

.hero-page--stacked {
  align-items: center;
  text-align: center;
}

.hero-page--stacked .hero-page__badge {
  justify-content: center;
  margin-bottom: 8px;
}

.hero-page--stacked > h1.heading.sections {
  font-family: var(--cambiate-hero-title-font-family, Carmensans, "Carmen Sans", Arial, sans-serif);
  font-weight: var(--cambiate-hero-title-font-weight, 900);
  font-synthesis: none;
  font-size: var(--cambiate-hero-title-font-size, clamp(36px, 4.2vw, 56px));
  line-height: var(--cambiate-hero-title-line-height, 1.08);
  letter-spacing: var(--cambiate-hero-title-letter-spacing, -0.02em);
  max-width: 720px;
}

.hero-page .hero-page__title {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: #262626;
  -webkit-text-fill-color: #262626;
  background-image: none;
}

.hero-page .hero-page__title .ia-text {
  font-style: normal;
  font-weight: inherit;
}

.hero-page--stacked .hero-page__lead {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  color: #757575;
}

.hero-page--stacked .hero-page__lead p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.hero-page--stacked .hero-page__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 720px;
  margin: 8px auto 0;
}

.hero-page--stacked .hero-page__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(38, 38, 38, 0.12);
  background: rgba(255, 255, 255, 0.55);
  color: #757575;
  font-family: Roboto, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  box-sizing: border-box;
}

.hero-page--stacked .hero-page__chip-hl {
  color: #f97316;
  font-weight: 700;
}

.hero-page--stacked .hero-page__primary-cta {
  margin-top: 20px;
}

@media screen and (max-width: 767px) {
  .hero-page--stacked .hero-page__chips {
    gap: 8px;
  }

  .hero-page--stacked .hero-page__chip {
    font-size: 12px;
    padding: 5px 12px;
  }
}

@media screen and (max-width: 767px) {
  .hero-page .header-badge {
    gap: 16px;
  }
}

@media screen and (max-width: 479px) {
  .hero-page .text-badge.big.suite.opacity {
    padding-left: 12px;
    padding-right: 12px;
  }
}

.hero-page .text-badge .subtitle.sections.ia-gradient {
  font-size: 24px;
  line-height: 32px;
}

@media screen and (min-width: 992px) {
  .hero-page .header-badge .text-badge {
    white-space: normal;
    max-width: min(100%, 1080px);
  }

  .hero-page .header-badge .text-badge .subtitle.sections.styled,
  .hero-page .header-badge .text-badge .subtitle.sections.ia-gradient {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
  }
}

.hero-page-split {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.hero-page-split .hero-page-split__content.margintop {
  margin-top: 0;
}

.hero-page-split .hero-page-split__content {
  width: 100%;
}

.hero-page-split .hero-page-split__form.cta-form-section.section-5 {
  margin: 0;
  padding: 0 !important;
  max-width: 100%;
  width: 100%;
}

.hero-page-split .cta-form-section--compact .cta-form-section__copy {
  display: none !important;
}

.hero-page-split .cta-form-section .cta-form-layout > *:not(.form-block) {
  display: none !important;
}

@media screen and (min-width: 992px) {
  .hero-page-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(32px, 4vw, 64px);
    align-items: anchor-center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(24px, 4vw, 64px);
    box-sizing: border-box;
  }

  .hero-page-split .hero-page-split__content,
  .hero-page-split .hero-page-split__content.margintop {
    align-items: flex-start;
    justify-content: center;
    align-self: center;
    margin: 0;
    padding: 0;
    max-width: 100%;
    width: 100%;
  }

  .hero-page-split .hero-page-split__content > .subtitle.sections.styled.extrabig {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }

  .hero-page-split .hero-page-split__content .heading.sections,
  .hero-page-split .hero-page-split__content .heading.sections.textgradient.ia-text-title.roboto {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }

  .hero-page-split .hero-page-split__content .header-badge {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .hero-page-split .hero-page-split__content .hero-page__primary-cta {
    justify-content: flex-start;
    align-self: flex-start;
  }

  .hero-page-split .hero-page-split__content .text-badge .subtitle.sections.styled,
  .hero-page-split .hero-page-split__content .text-badge .subtitle.sections.ia-gradient {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }

  .hero-page-split .hero-page-split__form.cta-form-section.section-5 {
    align-self: start;
    position: sticky;
    top: clamp(80px, 10vh, 112px);
  }

  .hero-page-split .cta-form-section .cta-form-layout {
    flex-direction: column;
    gap: 0;
  }

  .hero-page-split .cta-form-section .form-block {
    padding: clamp(24px, 2.5vw, 32px) clamp(20px, 2.5vw, 32px) !important;
  }
}

@media screen and (max-width: 991px) {
  .hero-page-split .hero-page-split__form.cta-form-section.section-5 {
    padding-top: 0;
  }
}

.hrq-teaser {
  margin-top: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(0, 42, 109, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  max-width: 420px;
}

.hrq-teaser__title {
  font-family: Roboto, sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #002a6d;
  margin: 0 0 4px;
}

.hrq-teaser__lead {
  font-family: Roboto, sans-serif;
  font-size: 13px;
  color: #757575;
  line-height: 1.4;
  margin: 0 0 10px;
}

.hrq-teaser__btn {
  font-family: Carmensans, "Carmen Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #ff5d2c;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.hrq-teaser__btn:hover {
  text-decoration: underline;
}

@media screen and (max-width: 479px) {
  .hrq-teaser {
    max-width: 100%;
  }
}

.hrq-modal[hidden] {
  display: none;
}

.hrq-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hrq-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 20, 50, 0.45);
  backdrop-filter: blur(2px);
}

.hrq-modal__panel {
  position: relative;
  z-index: 1;
  width: min(560px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 24px;
  padding: clamp(28px, 4vw, 40px);
  box-shadow: 0 24px 64px rgba(0, 20, 60, 0.24);
}

.hrq-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 42, 109, 0.06);
  color: #002a6d;
  font-size: 14px;
  cursor: pointer;
}

.hrq-view[hidden] {
  display: none;
}

.hrq-eyebrow {
  font-family: Roboto, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background-image: linear-gradient(90deg, #ff66a1, #ff5d2c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 8px;
}

.hrq-title {
  font-family: "Roboto Condensed", Roboto, sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.2;
  color: #002a6d;
  margin: 0 0 12px;
}

.hrq-title--result {
  font-size: clamp(19px, 2.6vw, 23px);
}

.hrq-lead {
  font-family: Roboto, sans-serif;
  font-size: 14px;
  color: #757575;
  line-height: 1.5;
  margin: 0 0 24px;
}

.hrq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: Carmensans, "Carmen Sans", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  border: none;
  border-radius: 80px;
  padding: 16px 28px;
  cursor: pointer;
  text-decoration: none;
}

.hrq-btn--primary {
  background: radial-gradient(circle, #ff5d2c 62%, #ffb10f);
  color: #ffffff;
  font-weight: 900;
}

.hrq-btn--ghost {
  background: none;
  color: #757575;
  font-size: 13px;
  padding: 8px 12px;
  text-decoration: underline;
}

.hrq-progress {
  margin-bottom: 24px;
}

.hrq-progress__track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 42, 109, 0.08);
  overflow: hidden;
  margin-bottom: 8px;
}

.hrq-progress__fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff66a1, #ff5d2c);
  transition: width 0.25s ease;
}

.hrq-progress__label {
  font-family: Roboto, sans-serif;
  font-size: 12px;
  color: #757575;
  margin: 0;
}

.hrq-step[hidden] {
  display: none;
}

.hrq-question {
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #262626;
  line-height: 1.5;
  margin: 0 0 24px;
  min-height: 96px;
}

.hrq-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hrq-opt {
  flex: 1;
  min-width: 96px;
  font-family: Roboto, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #002a6d;
  background: #ecf1f9;
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.hrq-opt:hover {
  border-color: rgba(255, 93, 44, 0.3);
}

.hrq-opt.is-selected {
  background: linear-gradient(45deg, rgba(255, 102, 161, 0.16), rgba(255, 93, 44, 0.16));
  border-color: #ff5d2c;
  color: #ff5d2c;
}

@media screen and (max-width: 767px) {
  .hrq-modal__panel {
    width: 100vw;
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
  }

  .hrq-options {
    flex-direction: column;
  }

  .hrq-opt {
    min-width: 0;
  }
}

.hrq-result__count {
  font-family: Roboto, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #ff5d2c;
  margin: 0 0 4px;
}

.hrq-closing {
  font-family: Roboto, sans-serif;
  font-size: 14px;
  color: #757575;
  line-height: 1.5;
  background: #ecf1f9;
  border-radius: 16px;
  padding: 16px 18px;
  margin: 16px 0 24px;
}

.hrq-closing strong {
  color: #002a6d;
}

.hrq-tagline {
  font-family: Roboto, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #757575;
  letter-spacing: 0.02em;
  margin: 12px 0 4px;
}

body.hrq-modal-open {
  overflow: hidden;
}