.latam-featuredtextblock__title {
  width: max-content;
  position: relative;
  font-size: 48px;
  line-height: 88%;
  text-transform: uppercase;
  font-style: italic;
  font-weight: 800;
  color: var(--color-gray-light);

  @media (min-width: 768px) {
    font-size: 69px;
  }

  @media (min-width: 992px) {
    /* 992–1199 runs smaller so long titles fit the narrower container (QA 8/5) */
    font-size: 82px;
  }

  @media (min-width: 1200px) {
    font-size: 102px;
  }

  @media (min-width: 2000px) {
    font-size: 132px;
  }
}

.latam-featuredtextblock__title .text-base {
  position: relative;
  z-index: 1;
}

.latam-featuredtextblock__title .text-fill {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  color: var(--color-blue);
  /* LATAM: negative top/bottom insets so the reveal mask doesn't crop the accent
     marks (É, Ó…) on the blue layer — the tight line-height puts them above the
     box top, and the core inset(0 …) clipped them. JS animates to the same top/
     bottom (see module.js). */
  clip-path: inset(-0.3em 100% -0.08em 0);
  z-index: 2;
}

.latam-featuredtextblock__title.small_size {
    font-size: 32px;
  
    @media (min-width: 768px) {
      font-size: 42px;
    }

    @media (min-width: 992px) {
      font-size: 56px;
    }

    @media (min-width: 2000px) {
      font-size: 72px;
    }
}

.latam-featuredtextblock__title.small_size .text-fill{
  clip-path:inset(0 -3% 0 0);
  @media (min-width: 768px) {
    clip-path: inset(0 100% 0 0);
  }
}

.latam-featuredtextblock__basegap {
  gap: 10px;
  margin-bottom: 0px;

  @media (min-width: 768px) {
    gap: 15px;
    margin-bottom: 5px;
  }

  @media (min-width: 992px) {
    gap: 20px;
    margin-bottom: 10px;
  }
}

.latam-featuredtextblock__var4_titlecont {
  margin-left: -30px;
}

.latam-featuredtextblock__var4_bodycont {
  width: 60%;
}

.latam-featuredtextblock__var3_titlecont {
  margin-top: -20px;
}



/* LATAM targeted adjustment: wider text columns than core (ES copy runs longer).
   Caps at 90% from 992px up (core narrowed to 75/65/55/50%). */
.latam-featuredtextblock__item {
  width: 100%;
  padding-bottom: 24px;
  @media (min-width: 400px) { width: 80%; }
  @media (min-width: 500px) { width: 70%; }
  @media (min-width: 768px) { width: 100%; padding-bottom: 0px; }
  @media (min-width: 992px) { width: 90%; }
  @media (min-width: 1200px) { width: 70%; }  /* xl: cap line length on large screens */
}

.latam-featuredtextblock__item.small_size {
    @media (min-width: 768px) { width: 70%; }
    @media (min-width: 992px) { width: 60%; }
    @media (min-width: 1200px) { width: 50%; }
    @media (min-width: 1400px) { width: 40%; }
    @media (min-width: 2000px) { width: 35%; }
  }  
}

.latam-featuredtextblock__item.small_size.var1 .latam-featuredtextblock__body {
  padding-left: 0px;
}

.latam-featuredtextblock__item.small_size.var3 .latam-featuredtextblock__body {
  width: 100%;
}

.latam-featuredtextblock__item.small_size .latam-featuredtextblock__var1_titlecont {
  margin-left: 0%;
}

.latam-featuredtextblock__item.small_size .latam-featuredtextblock__var4_titlecont {
  margin-left: 0px;
}

.latam-featuredtextblock__item.small_size .latam-featuredtextblock__var4_bodycont {
  width: 100%;
}

@media (min-width: 768px) {
  .latam-featuredtextblock__item.small_size.var1 .latam-featuredtextblock__body {
    padding-left: 24px;
  }
  
  .latam-featuredtextblock__item.small_size.var3 .latam-featuredtextblock__body {
    width: 80%;
  }

  .latam-featuredtextblock__item.small_size .latam-featuredtextblock__var1_titlecont {
    margin-left: 25%;
  }

  .latam-featuredtextblock__item.small_size .latam-featuredtextblock__var4_titlecont {
    margin-left: -30px;
  }

  .latam-featuredtextblock__item.small_size .latam-featuredtextblock__var4_bodycont {
    width: 60%;
  }
}

.latam-featuredtextblock__item.small_size .latam-featuredtextblock__basegap {
  gap: 0px;
}

.latam-featuredtextblock__title,
.latam-featuredtextblock__body,
.latam-featuredtextblock__btn {
  opacity: 1;
  transform: translateX(0);
  @media (min-width: 768px) {
     opacity: 0;
  }
}

.smallspacer {
  width: 12px;
  height: 1px;
}

.latam-featuredtextblock__title.has-decoration {
  position: relative;
}

.latam-featuredtextblock__title.has-decoration .latam-featuredtextblock__decoration {
  position: absolute;
  top: -44%;
  left: 8%;
  width: 66%;
  height: auto;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.title--1 {
  position: relative;
  z-index: 1;
}

.title--2 {
  position: relative;
  z-index: 1;
}

.dnd-section{
  overflow: hidden;
}

#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity var(--transition-medium), visibility 0.3s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top-color: var(--color-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* LATAM targeted adjustment: description at 16px (core `text--lg` renders larger).
   Double class beats `.text--lg` regardless of stylesheet order. */
.latam-featuredtextblock__body.text--lg {
  font-size: 16px;
  line-height: 1.6;
}

/* LATAM mobile (<768px): centered title → title → body stack (matches the vendor
   mobile). The .__mobile block renders only <768px and module.js ignores it (not an
   __item), so reveal-driven states are set statically here. CTA is the shared
   d-md-none block below the item. */
@media (max-width: 767px) {
  .latam-featuredtextblock__mobile { width: 100%; }
  .latam-featuredtextblock__mobile .latam-featuredtextblock__basegap { gap: 4px; margin-bottom: 0; }
  .latam-featuredtextblock__mobile .latam-featuredtextblock__title { text-align: center; }
  .latam-featuredtextblock__mobile .text-fill { clip-path: inset(-0.3em 0 -0.08em 0); }        /* no scroll reveal on phones — show the blue fill statically */
  .latam-featuredtextblock__mobile .latam-featuredtextblock__decoration { opacity: 1; }         /* ring visible without the JS reveal */
  .latam-featuredtextblock__mobile .latam-featuredtextblock__body { margin-top: 12px; text-align: center; }
}

/* LATAM mobile: breathing room below each block's CTA before the next block. */
@media (max-width: 767px) {
  .latam-featuredtextblock__mobile-cta { margin-bottom: 56px; }
}
