/* ======================================================================
   Main hero + overlapping experience card.
   Ported from the last working home clean layer; scoped to the production home page.
   Header/footer stay outside this stylesheet.
   ====================================================================== */
.r-home-page {
  --r-site-container: var(--r-container, 1200px);
  --r-site-gutter: var(--r-gutter, 40px);
  --r-geo-blue: var(--r-color-blue, #1f2530);
  --r-geo-white: #ffffff;
  --r-geo-gold: var(--r-color-gold, #c1a57a);
}

.r-home-page .r-geo-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 720px;
  padding: 0 18px 58px;
  overflow: visible;
  text-align: center;
  background: linear-gradient(180deg, #1f2530 0%, #171d27 72%, #111721 100%);
  color: var(--r-geo-white);
}

.r-home-page .r-geo-hero::before,
.r-home-page .r-geo-hero::after {
  content: none;
}

.r-home-page .r-geo-hero__shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--r-site-container, 1200px);
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.r-home-page .r-geo-hero__panel,
.r-home-page .r-geo-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.r-home-page .r-geo-hero__title {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto 28px;
  color: var(--r-geo-white);
  font-family: var(--r-font-heading);
  font-size: var(--r-size-h1);
  font-weight: var(--r-weight-h1);
  line-height: var(--r-lh-h1);
  letter-spacing: var(--r-letter-h1);
  text-shadow: none;
  overflow-wrap: normal;
  word-break: normal;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}

.r-home-page .r-geo-hero__title span {
  display: block;
}

.r-home-page .r-geo-hero__title-line--latam span {
  display: inline;
}

.r-home-page .r-geo-hero__gold-line {
  width: 60px;
  height: 1.5px;
  margin: 0 auto 24px;
  background: var(--r-geo-gold);
  box-shadow: 0 0 20px rgba(193, 165, 122, 0.55);
}

.r-home-page .r-geo-hero__description {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
  gap: 0 9px;
  width: auto;
  max-width: none;
  margin: 0 auto 48px;
  color: var(--r-geo-gold);
  font-family: var(--r-font-ui);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}

.r-home-page .r-geo-hero__description-item,
.r-home-page .r-geo-hero__description-sep {
  display: inline-block;
  flex: 0 0 auto;
}

.r-home-page .r-geo-hero__description-item {
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.r-home-page .r-geo-hero__description-sep {
  color: var(--r-geo-gold);
  opacity: 0.58;
  letter-spacing: 0;
  transform: translateY(-1px);
}

.r-home-page .r-geo-hero__actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 0 0 80px;
}

.r-home-page .r-geo-hero__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  min-height: 58px;
  padding: 0 44px;
  border: 1px solid rgba(193, 165, 122, 0.45);
  border-radius: 999px;
  background-color: rgba(193, 165, 122, 0.15);
  box-shadow: none;
  color: var(--r-geo-gold);
  font-family: var(--r-font-ui);
  font-size: var(--r-button-size);
  font-weight: var(--r-button-weight);
  line-height: 1;
  letter-spacing: var(--r-button-letter);
  text-transform: uppercase;
  text-decoration: none;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  transition: background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), color 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.r-home-page .r-geo-hero__button:hover,
.r-home-page .r-geo-hero__button:focus-visible {
  border-color: var(--r-geo-gold);
  background-color: var(--r-geo-gold);
  color: var(--r-geo-blue);
  box-shadow: 0 20px 50px rgba(193, 165, 122, 0.28);
}

.r-home-page .r-geo-hero__button--secondary {
  background-color: rgba(255, 255, 255, 0.025);
}

.r-home-page .rltm-main-countries {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 42px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 980px;
  margin: 34px auto 0;
}

.r-home-page .rltm-main-country {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.r-home-page .rltm-main-country-bar {
  width: 40px;
  height: 2px;
  border-radius: 2px;
  opacity: 0.72;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.r-home-page .rltm-main-country:hover .rltm-main-country-bar,
.r-home-page .rltm-main-country:focus-visible .rltm-main-country-bar {
  width: 64px;
  opacity: 1;
}

.r-home-page .rltm-main-country-name {
  color: rgba(238, 222, 190, 0.42);
  font-family: var(--r-font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.r-home-page .rltm-main-country:hover .rltm-main-country-name,
.r-home-page .rltm-main-country:focus-visible .rltm-main-country-name {
  color: rgba(238, 222, 190, 0.76);
}

.r-home-page .rltm-bar-ar { background-color: #1a6b9a; }
.r-home-page .rltm-bar-pa { background-color: #138a8a; }
.r-home-page .rltm-bar-ur { background-color: #0038a8; }
.r-home-page .rltm-bar-br { background-color: #319629; }
.r-home-page .rltm-bar-py { background-color: #8d0303; }
.r-home-page .rltm-bar-cr { background-color: #2d6a4f; }

.r-home-page .r-home-experience-layer {
  position: relative;
  z-index: 2;
  width: min(var(--r-site-container, 1200px), calc(100vw - (var(--r-site-gutter, 40px) * 2)));
  margin: -150px auto 0;
}

.r-home-page .r-home-experience {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  padding: 26px 30px 28px;
  border: 1px solid rgba(31, 37, 48, 0.08);
  border-radius: 30px;
  background: #ffffff;
  color: var(--r-color-blue, #1f2530);
  box-shadow: 0 28px 68px rgba(8, 12, 18, 0.3), 0 2px 10px rgba(8, 12, 18, 0.1);
}

.r-home-page .r-home-experience::before {
  content: "";
  display: block;
  height: 1px;
  margin: -26px 0 24px;
  background: rgba(193, 165, 122, 0.74);
}

.r-home-page .r-home-experience__grid {
  display: grid;
  gap: 20px;
}

.r-home-page .r-home-experience__intro :is(h2, p),
.r-home-page .r-home-work__item h3,
.r-home-page .r-home-work__item p {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.r-home-page .r-home-experience__intro .r-site-title {
  max-width: 440px;
  font-size: 40px;
  line-height: 46px;
  letter-spacing: -0.01em;
}

.r-home-page .r-home-experience__lead {
  max-width: 420px;
  margin-top: 14px;
  color: rgba(32, 36, 44, 0.78);
  font-size: 16px;
  line-height: 24px;
}

.r-home-page .r-home-work {
  display: grid;
  border-top: 1px solid rgba(31, 37, 48, 0.09);
}

.r-home-page .r-home-work__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  min-height: 0;
  padding: 11px 0;
  border-bottom: 1px solid rgba(31, 37, 48, 0.09);
  color: inherit;
  text-decoration: none;
}

.r-home-page .r-home-work__item h3 {
  margin: 0;
  font-family: var(--r-font-ui);
  font-size: 20px;
  font-weight: 650;
  line-height: 24px;
  letter-spacing: -0.01em;
}

.r-home-page .r-home-work__item p {
  margin: 4px 0 0;
  color: #7c8490;
  font-size: 15px;
  line-height: 19px;
}

.r-home-page .r-home-work__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  align-self: start;
  margin-top: 0;
  border: 1px solid rgba(193, 165, 122, 0.48);
  border-radius: 999px;
  color: rgba(193, 165, 122, 0.96);
  font-size: 13px;
}

@media (min-width: 760px) {
  .r-home-page .r-geo-hero__actions {
    margin-bottom: 20px;
  }

  .r-home-page .r-home-work {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 1px solid rgba(31, 37, 48, 0.09);
  }

  .r-home-page .r-home-work__item {
    padding: 13px 16px;
    border-right: 1px solid rgba(31, 37, 48, 0.09);
  }

  .r-home-page .r-home-work__item:first-child,
  .r-home-page .r-home-work__item:nth-child(2) {
    padding-top: 0;
  }
}

@media (min-width: 980px) {
  .r-home-page .r-home-experience__grid {
    grid-template-columns: minmax(350px, 0.39fr) minmax(640px, 1fr);
    gap: 34px;
    align-items: start;
  }

  .r-home-page .r-home-work {
    border-top: 0;
  }
}

@media (max-width: 768px) {
  .r-home-page .r-geo-hero {
    min-height: 700px;
    padding: 76px 18px 56px;
  }

  .r-home-page .r-geo-hero__copy {
    transform: translateY(-78px);
  }

  .r-home-page .r-geo-hero__title {
    max-width: 360px;
    font-size: 44px;
    line-height: 46px;
    letter-spacing: -0.01em;
  }

  .r-home-page .r-geo-hero__description {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 4px;
    padding-bottom: 2px;
    white-space: normal;
  }

  .r-home-page .r-geo-hero__actions {
    width: 100%;
    flex-direction: column;
    align-items: center;
    margin-bottom: 46px;
  }

  .r-home-page .r-geo-hero__button {
    width: min(100%, 340px);
    min-width: 0;
  }

  .r-home-page .r-home-experience-layer {
    width: min(calc(100% - 36px), var(--r-site-container, 1200px));
    margin-top: -126px;
  }

  .r-home-page .r-home-experience {
    border-radius: 22px;
    padding: 20px 20px 18px;
  }

  .r-home-page .r-home-experience::before {
    margin: -20px 0 18px;
  }

  .r-home-page .r-home-experience__intro .r-site-title {
    max-width: 410px;
    font-size: 32px;
    line-height: 36px;
  }
}

@media (max-width: 560px) {
  .r-home-page .rltm-main-countries {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px 18px;
    width: 100%;
    max-width: 360px;
    margin-top: 28px;
  }

  .r-home-page .rltm-main-country {
    gap: 10px;
  }

  .r-home-page .rltm-main-country-bar {
    width: 26px;
  }

  .r-home-page .rltm-main-country:hover .rltm-main-country-bar,
  .r-home-page .rltm-main-country:focus-visible .rltm-main-country-bar {
    width: 34px;
  }

  .r-home-page .rltm-main-country-name {
    font-size: 9px;
    letter-spacing: 0.08em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .r-home-page .rltm-main-country-bar,
  .r-home-page .rltm-main-country-name {
    transition: none;
  }
}

/* Main-page mobile hero CTA polish moved from rulatam-main-federal.css. */
@media (max-width: 680px) {
  .r-home-page .r-geo-hero__actions {
    width: min(100%, calc(100vw - 40px));
    margin-left: auto;
    margin-right: auto;
  }

  .r-home-page .r-geo-hero__button {
    box-sizing: border-box;
    width: 100%;
    max-width: 340px;
    padding-left: 20px;
    padding-right: 20px;
  }
}


/* 20260607 hero/overlap mobile polish */

@media (max-width: 560px) {
  .r-home-page .r-geo-hero__title {
    max-width: 350px;
    margin-bottom: 22px;
    font-size: 44px;
    line-height: 46px;
  }

  .r-home-page .r-geo-hero__title-line--latam span {
    display: block;
  }

  .r-home-page .r-geo-hero__description {
    max-width: 330px;
    margin-bottom: 34px;
    font-size: 11px;
    gap: 0 7px;
  }

  .r-home-page .r-geo-hero__actions {
    width: min(100%, 330px);
    margin-bottom: 34px;
  }

  .r-home-page .r-geo-hero__button {
    max-width: 330px;
    min-height: 56px;
  }

  .r-home-page .r-home-experience-layer {
    width: min(calc(100% - 28px), var(--r-site-container, 1200px));
    margin-top: -122px;
  }

  .r-home-page .r-home-experience {
    padding: 18px 18px 16px;
  }

  .r-home-page .r-home-experience__lead {
    display: none;
  }

  .r-home-page .r-home-work__item:nth-child(1) {
    order: 1;
  }

  .r-home-page .r-home-work__item:nth-child(2) {
    order: 4;
  }

  .r-home-page .r-home-work__item:nth-child(3) {
    order: 2;
  }

  .r-home-page .r-home-work__item:nth-child(4) {
    order: 6;
  }

  .r-home-page .r-home-work__item:nth-child(5) {
    order: 5;
  }

  .r-home-page .r-home-work__item:nth-child(6) {
    order: 3;
  }

  .r-home-page .r-home-work__item {
    grid-template-columns: minmax(0, 1fr) 24px;
    gap: 10px;
  }

  .r-home-page .r-home-work__item > span {
    min-width: 0;
  }

  .r-home-page .r-home-work__item p {
    overflow-wrap: anywhere;
  }
}
