/* ==========================================================
   Base
   ========================================================== */
:root {
  --color-primary: #2055a5;
  --color-text: #000000;
  --color-footer-bg: #f8f8f8;
  --color-footer-text: #4d4d4d;
  --color-muted: #767676;
  --color-white: #ffffff;
  --color-placeholder: #d9d9d9;
  --font-main: "Inter", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* ==========================================================
   Scroll animations (see animate.js)
   Only opacity/transform change, so the layout never moves.
   ========================================================== */
/* Slide-ins never cause sideways scrolling */
main {
  overflow-x: clip;
}

.anim-ready [data-anim] {
  opacity: 0;
  transition:
    opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) var(--anim-delay, 0s),
    transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) var(--anim-delay, 0s);
}

.anim-ready [data-anim="up"] {
  transform: translate3d(0, 40px, 0);
}

.anim-ready [data-anim="left"] {
  transform: translate3d(-60px, 0, 0);
}

.anim-ready [data-anim="right"] {
  transform: translate3d(60px, 0, 0);
}

.anim-ready [data-anim="zoom"] {
  transform: translate3d(0, 24px, 0) scale(0.92);
}

.anim-ready [data-anim].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 760px) {
  .anim-ready [data-anim="up"] {
    transform: translate3d(0, 24px, 0);
  }

  .anim-ready [data-anim="left"] {
    transform: translate3d(-32px, 0, 0);
  }

  .anim-ready [data-anim="right"] {
    transform: translate3d(32px, 0, 0);
  }
}

/* Desktop videos: light sharpening (filter defined in video.js) */
video.is-sharpened {
  filter: url("#video-sharpen");
}

/* ==========================================================
   Navbar
   ========================================================== */
.navbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 50px;
  height: 85px;
  padding: 2px 24px 2px 7px;
  background: var(--color-white);
}

/* The logo box is 743px wide in Figma and pushes the links to the right.
   It shrinks on narrower screens but never below the logo itself. */
.navbar__logo {
  position: relative;
  flex: 0 1 743px;
  min-width: 206px;
  height: 85px;
  overflow: hidden;
  border-radius: 5px;
}

.navbar__logo img {
  position: absolute;
  top: -72.65px;
  left: 0;
  width: 206px;
  height: 206px;
  max-width: none;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-left: auto;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 50px;
}

.navbar__link {
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
  color: var(--color-text);
}

.navbar__link:hover,
.navbar__link--active {
  text-decoration: underline;
  text-decoration-color: var(--color-primary);
  text-underline-position: from-font;
}

.navbar__lang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 137px;
  /* Content is centered; narrow side padding leaves room for "Português" */
  padding: 9px 10px;
  border: none;
  border-radius: 10px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
}

.navbar__lang img {
  flex-shrink: 0;
  width: 15px;
  height: 10px;
}

/* Language dropdown */
.lang {
  position: relative;
}

.navbar__lang img {
  transition: transform 0.2s ease;
}

.navbar__lang[aria-expanded="true"] img {
  transform: rotate(180deg);
}

.lang__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  width: 137px;
  padding: 6px;
  border-radius: 10px;
  background: var(--color-white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.lang__menu[hidden] {
  display: none;
}

.lang__option {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background: none;
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}

.lang__option:hover,
.lang__option:focus-visible {
  background: #eef3fb;
}

.lang__option[aria-current="true"] {
  color: var(--color-primary);
  font-weight: 700;
}

/* Hamburger (mobile only) */
.navbar__toggle {
  display: none;
}

.navbar__burger {
  display: none;
}

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative;
  /* 733px at the 1440px design width, growing in proportion on wider screens */
  height: max(733px, 100vw * 733 / 1440);
  overflow: hidden;
  background: var(--color-white);
}

/* Video (or its poster photo) at 65% opacity with a 60% black overlay on top, as in Figma */
.hero__bg {
  position: absolute;
  display: block;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000000;
  opacity: 0.6;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 42px;
  padding: max(158px, 100vw * 158 / 1440) 24px 0;
  color: var(--color-white);
}

.hero__title,
.hero__text {
  width: 100%;
  max-width: 1054px;
}

.hero__title {
  font-size: clamp(34px, 4.4445vw, 64px);
  font-weight: 800;
  line-height: normal;
  text-align: center;
}

.hero__text {
  font-size: clamp(18px, 1.875vw, 27px);
  font-weight: 600;
  line-height: 32px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

/* "Coming soon" store badges (the app is not released yet) */
.store-badge {
  display: flex;
  align-items: center;
  gap: 0.75em;
  width: 13.8125em;
  height: 4.5625em;
  padding: 0 0.75em 0 1.1em;
  font-size: 16px;
  color: var(--color-white);
  background: #000;
  border: 0.0625em solid #a6a6a6;
  border-radius: 0.75em;
  cursor: default;
  user-select: none;
}

.store-badge img {
  flex-shrink: 0;
  width: auto;
  height: 2.6em;
}

.store-badge__text {
  display: flex;
  flex-direction: column;
  font-size: 0.8125em;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
}

.store-badge__text strong {
  font-size: 1.85em;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}

/* ==========================================================
   Shared section titles
   ========================================================== */
.section-title {
  width: calc(100% - 48px);
  margin: 0 auto;
  font-size: clamp(32px, 4.4445vw, 64px);
  font-weight: 600;
  line-height: normal;
  color: var(--color-primary);
  text-align: center;
}

/* ==========================================================
   Comunicador / Actividades / Nuestra cultura (photo beside text)
   ========================================================== */
.split {
  display: flex;
  align-items: flex-start;
  max-width: 1440px;
  margin: 0 auto;
}

.split__image {
  display: block;
  flex: 0 1 665px;
  min-width: 0;
  height: auto;
  aspect-ratio: 665 / 389;
  border-radius: 20px;
  object-fit: cover;
}

.split__text {
  flex: 0 1 auto;
  min-width: 0;
}

.split__title {
  margin: 0;
  font-size: 48px;
  font-weight: 600;
  line-height: normal;
  color: var(--color-primary);
}

.split--comunicador {
  margin-top: 138.5px;
  padding-left: 41px;
}

/* Narrower photo, sitting lower than the heading */
.split--comunicador .split__image {
  flex-basis: 573px;
  margin-top: 54.5px;
  aspect-ratio: 573 / 389;
}

.split--comunicador .split__text {
  flex-basis: 712px;
  margin-left: 67px;
}

.split--cultura .split__text {
  flex-basis: 673px;
  margin-left: 61px;
}

.split--actividades {
  margin-top: 203.25px;
  padding-left: 74.5px;
}

.split--actividades .split__text {
  flex-basis: 556px;
  padding-top: 16px;
}

.split--actividades .split__image {
  margin-left: 79.5px;
}

.split__body {
  margin-top: 35.8px;
  font-size: 24px;
  line-height: 45px;
}

.steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Each step: round icon on the left, title + text on the right */
.steps-list li {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  column-gap: 23.5px;
  margin-top: 29.75px;
}

.steps-list li:first-child {
  margin-top: 28px;
}

.steps-list li:nth-child(3) {
  margin-top: 36.75px;
}

.steps-list__icon {
  grid-row: 1 / 3;
  width: 78px;
  height: 78px;
  margin: 4.5px 0 0 -2px;
}

.steps-list li:nth-child(3) .steps-list__icon {
  margin-top: 2.5px;
}

.steps-list__title,
.steps-list__text {
  grid-column: 2;
}

.steps-list__title {
  font-size: 32px;
  font-weight: 400;
  line-height: normal;
}

.steps-list__text {
  max-width: 610px;
  margin-top: 5.25px;
  font-size: 24px;
  line-height: 32px;
}

.steps-list li:nth-child(3) .steps-list__text {
  margin-top: 3.25px;
}

/* Nuestra cultura */
.split--cultura {
  margin-top: 232.5px;
  padding-left: 30px;
}

.split--cultura .split__image {
  margin-top: 7.5px;
}

.split__title--play {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.split__title--play img {
  flex-shrink: 0;
  width: 46px;
  height: 58px;
}

.split__title--icon {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding-left: 12px;
}

.split__title--icon img {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  margin-bottom: 1.5px;
}

.split__lead {
  margin-top: 34.3px;
  font-size: 24px;
  line-height: 45px;
}

/* ==========================================================
   ¿Por qué CONECTA?
   ========================================================== */
.why {
  margin-top: 569px;
}

.why__band {
  height: 561px;
  padding: 63px 24px 0;
  background: var(--color-primary);
  text-align: center;
}

.why__title {
  font-size: clamp(32px, 4.4445vw, 64px);
  font-weight: 600;
  line-height: normal;
  color: var(--color-white);
}

.why__intro {
  max-width: 1200px;
  margin: 34.4px auto 0;
  font-size: 32px;
  line-height: 50px;
  color: #cee1fd;
}

/* Cards overlap the bottom of the blue band */
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 382px));
  justify-content: center;
  gap: 79px;
  width: calc(100% - 48px);
  margin: -215px auto 0;
  padding: 0;
  list-style: none;
}

.why__card {
  display: flex;
  flex-direction: column;
  min-height: 357px;
  padding: 43.5px 19px 25px;
  border-radius: 16px;
  background: var(--color-white);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.why__name {
  font-size: 48px;
  font-weight: 600;
  line-height: normal;
  color: var(--color-primary);
}

.why__tagline {
  font-size: 20px;
  font-weight: 600;
  line-height: normal;
  color: #408cff;
}

.why__text {
  margin-top: 31.2px;
  font-size: 16px;
  line-height: 30px;
}

.why__source {
  margin-top: auto;
  padding-top: 16px;
  font-size: 20px;
  font-weight: 600;
  line-height: normal;
}

/* ==========================================================
   Statistics
   ========================================================== */
.stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(100% - 10px);
  margin: 98px auto 0;
  padding: 58px 24px 74.9px;
  border-radius: 20px;
  background: #ecf3ff;
  text-align: center;
}

.stats__title {
  font-size: 64px;
  font-weight: 600;
  line-height: normal;
  color: var(--color-primary);
}

.stats__title span,
.stats__intro span {
  display: block;
}

.stats__intro {
  margin-top: 25px;
  font-size: 32px;
  font-weight: 500;
  line-height: 44.8px;
  color: #043174;
}

.stats__item--world {
  margin-top: 122.4px;
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stats__item--access {
  margin-top: 152.9px;
}

.stats__item--pr {
  margin-top: 118.9px;
}

/* The icons carry the box colour around them, so they sit seamlessly on it */
.stats__icon {
  display: block;
  height: auto;
}

.stats__item--world .stats__icon {
  width: 140px;
}

.stats__item--access .stats__icon {
  width: 150.67px;
}

.stats__item--pr .stats__icon {
  width: 175px;
}

.stats__number {
  margin-top: 23px;
  font-size: 64px;
  font-weight: 600;
  line-height: normal;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}

.stats__item--access .stats__number {
  margin-top: 44.7px;
}

.stats__item--pr .stats__number {
  margin-top: 33px;
}

.stats__number + .stats__text {
  margin-top: 1.2px;
}

.stats__text {
  max-width: 660px;
  font-size: 32px;
  line-height: 50px;
  color: #062450;
}

.stats__text--accent {
  color: var(--color-primary);
}

.stats__source {
  margin-top: 13.4px;
  font-size: 16px;
  line-height: normal;
  color: #0a306a;
}

/* ==========================================================
   Premios (photo + award details in one rounded panel)
   ========================================================== */
.awards {
  margin-top: 132px;
}

.awards__intro {
  margin: 23.6px auto 0;
  padding: 0 24px;
  font-size: 32px;
  font-weight: 500;
  line-height: normal;
  color: #043174;
  text-align: center;
}

.awards__list {
  display: flex;
  flex-direction: column;
  gap: 72px;
  width: calc(100% - 126px);
  max-width: 1314px;
  margin: 77.9px auto 0;
  padding: 0;
  list-style: none;
}

.awards__panel {
  display: flex;
  height: 440px;
  border-radius: 20px;
  background: #e3eeff;
  overflow: hidden;
}

.awards__panel--reverse {
  flex-direction: row-reverse;
}

.awards__photo {
  display: block;
  flex: 1 1 804px;
  min-width: 0;
  height: 100%;
  object-fit: cover;
}

.awards__info {
  display: flex;
  flex-direction: column;
  flex: 0 0 510px;
  padding: 123.5px 41.7px 0 41px;
}

.awards__panel--reverse .awards__info {
  padding-left: 51px;
}

.awards__name {
  font-size: 45px;
  font-weight: 600;
  line-height: 54px;
  color: var(--color-primary);
}

/* Yellow rule under the award name */
.awards__name::after {
  content: "";
  display: block;
  width: calc(100% - 7.3px);
  height: 3px;
  margin-top: 25.3px;
  background: #ffc106;
}

.awards__panel--reverse .awards__name::after {
  width: calc(100% - 9.3px);
}

.awards__date {
  margin-top: 27px;
  font-size: 32px;
  font-weight: 600;
  line-height: normal;
  color: #3d5f92;
  text-align: right;
}

/* Laptops: the text column narrows before the photo gets too small */
@media (max-width: 1300px) {
  .awards__list {
    width: calc(100% - 48px);
  }

  .awards__panel {
    height: auto;
    min-height: 360px;
  }

  .awards__photo {
    height: auto;
    align-self: stretch;
  }

  .awards__info {
    flex: 0 0 42%;
    justify-content: center;
    padding: 40px 32px;
  }

  .awards__panel--reverse .awards__info {
    padding-left: 32px;
  }

  .awards__name {
    font-size: clamp(28px, 3.2vw, 45px);
    line-height: 1.2;
  }

  .awards__name::after,
  .awards__panel--reverse .awards__name::after {
    width: 100%;
    margin-top: 20px;
  }

  .awards__date {
    margin-top: 20px;
    font-size: clamp(20px, 2.4vw, 32px);
  }
}

/* Tablets and phones: photo on top, details underneath */
@media (max-width: 800px) {
  .awards__intro {
    font-size: 22px;
  }

  .awards__list {
    gap: 32px;
    width: calc(100% - 32px);
    margin-top: 40px;
  }

  .awards__panel,
  .awards__panel--reverse {
    flex-direction: column;
    min-height: 0;
  }

  .awards__photo {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 804 / 440;
  }

  .awards__info,
  .awards__panel--reverse .awards__info {
    flex: none;
    padding: 24px 20px 28px;
  }
}

/* ==========================================================
   Testimonios
   ========================================================== */
.testimonials {
  margin-top: 436.5px;
}

.testimonials__box {
  width: calc(100% - 48px);
  max-width: 1171px;
  position: relative;
  aspect-ratio: 1171 / 657;
  margin: 33px auto 0;
  overflow: hidden;
  background: #1a1a1a;
}

/* Portrait video centered on a blurred copy of its first frame */
.testimonials__box::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: url("images/testimonio-poster.webp") center / cover;
  filter: blur(30px) brightness(0.55);
}

.testimonials__video {
  position: relative;
  display: block;
  width: auto;
  height: 100%;
  margin: 0 auto;
  background: #000;
}

/* The design places these a few px off-center at 1440px */
@media (min-width: 1300px) {
  .why__grid {
    translate: -9px 0;
  }

  .stats {
    translate: 5px 0;
  }

  .stats__item {
    translate: -10.5px 0;
  }

  .stats__item--pr {
    translate: -15.5px 0;
  }

  .stats__item--pr .stats__text:last-child {
    translate: 5.5px 0;
  }

  .testimonials .section-title {
    translate: -19px 0;
  }

  .testimonials__box {
    translate: -18.5px 0;
  }
}

/* Tablets: photo and text share the width */
@media (max-width: 1300px) {
  .split--comunicador,
  .split--actividades,
  .split--cultura {
    gap: 40px;
    padding: 0 24px;
  }

  .split--comunicador .split__text,
  .split--cultura .split__text,
  .split--actividades .split__image {
    margin-left: 0;
  }

  /* Equal halves (overrides the fixed desktop column widths) */
  .split .split__image,
  .split .split__text {
    flex: 1 1 0;
  }

  .split__title {
    font-size: 40px;
  }

  .split__title--icon img {
    width: 42px;
    height: 42px;
  }

  .steps-list__title {
    font-size: 26px;
  }

  .steps-list li {
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 20px;
  }

  .steps-list__icon {
    width: 64px;
    height: 64px;
    margin-left: 0;
  }

  .steps-list__text,
  .split__lead {
    margin-top: 16px;
    font-size: 20px;
    line-height: 1.5;
  }

  .split__body {
    font-size: 20px;
    line-height: 1.8;
  }

  .split--cultura,
  .why,
  .stats,
  .awards,
  .testimonials {
    margin-top: 200px;
  }

  .stats {
    padding: 72px 24px 96px;
  }

  .stats__title {
    font-size: clamp(30px, 5.5vw, 64px);
  }

  .stats__intro {
    font-size: clamp(18px, 2.6vw, 32px);
    line-height: 1.5;
  }

  .stats__item--world {
    margin-top: 80px;
  }

  .why__band {
    height: auto;
    padding-bottom: 240px;
  }

  .why__intro {
    font-size: 24px;
    line-height: 1.6;
  }

  .why__grid {
    gap: 24px;
  }

  .why__name {
    font-size: 40px;
  }

}

/* Tablets and phones: photo on top, then heading and text */
@media (max-width: 1100px) {
  .split--comunicador,
  .split--actividades,
  .split--cultura {
    flex-direction: column;
    gap: 32px;
  }

  .split .split__image,
  .split .split__text {
    flex: none;
    width: 100%;
  }

  .split--actividades .split__image {
    order: -1;
  }

  .split__text,
  .split--actividades .split__text,
  .split--comunicador .split__text {
    margin-top: 0;
    padding-top: 0;
  }

  .split--cultura .split__image,
  .split--comunicador .split__image {
    margin-top: 0;
  }

  .split__title--icon {
    padding-left: 0;
  }

  .split--comunicador {
    margin-top: 120px;
  }

  .split--actividades,
  .split--cultura {
    margin-top: 100px;
  }

  /* Cards stack under the band */
  .why__band {
    padding-bottom: 64px;
  }

  .why__grid {
    grid-template-columns: minmax(0, 560px);
    gap: 24px;
    margin-top: -32px;
  }

  .why__card {
    min-height: 0;
  }

  .why__source {
    padding-top: 24px;
  }

  .stats__number {
    font-size: clamp(44px, 8vw, 64px);
  }

  .stats__text {
    font-size: clamp(20px, 3.4vw, 32px);
    line-height: 1.5;
  }
}

/* Phones: tighter spacing and smaller type */
@media (max-width: 760px) {
  .split--comunicador,
  .split--actividades,
  .split--cultura {
    gap: 24px;
    padding: 0 16px;
  }

  .split--comunicador {
    margin-top: 80px;
  }

  .split--actividades,
  .split--cultura {
    margin-top: 72px;
  }

  .split__title {
    font-size: 32px;
  }

  .split__title--icon img {
    width: 34px;
    height: 34px;
  }

  .steps-list li {
    margin-top: 24px;
  }

  .steps-list li:first-child {
    margin-top: 16px;
  }

  .steps-list__title {
    font-size: 22px;
  }

  .steps-list li {
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 14px;
  }

  .steps-list__icon,
  .steps-list li:nth-child(3) .steps-list__icon {
    width: 52px;
    height: 52px;
    margin-top: 0;
  }

  .split__title--play img {
    width: 30px;
    height: 38px;
  }

  .steps-list__text,
  .split__lead {
    margin-top: 8px;
    font-size: 18px;
  }

  .split__body {
    margin-top: 16px;
    font-size: 18px;
    line-height: 1.7;
  }

  .why,
  .stats,
  .awards,
  .testimonials {
    margin-top: 100px;
  }

  .why__band {
    padding: 48px 16px 56px;
  }

  .why__intro {
    margin-top: 16px;
    font-size: 19px;
  }

  .why__grid {
    width: calc(100% - 32px);
  }

  .why__card {
    padding: 28px 18px 22px;
  }

  .why__name {
    font-size: 34px;
  }

  .why__text {
    margin-top: 16px;
  }

  .stats {
    padding: 48px 16px 64px;
  }

  .stats__title span,
  .stats__intro span {
    display: inline;
  }

  .stats__intro {
    margin-top: 16px;
  }

  .stats__item--world {
    margin-top: 48px;
  }

  .stats__item--access,
  .stats__item--pr {
    margin-top: 72px;
  }

  .stats__item .stats__icon {
    width: auto;
    height: 100px;
  }

  .stats__item .stats__number {
    margin-top: 16px;
    font-size: clamp(30px, 9vw, 44px);
  }

  .stats__number + .stats__text {
    margin-top: 8px;
  }

  .stats__source {
    margin-top: 24px;
  }

  .testimonials__box {
    width: calc(100% - 32px);
    max-width: 400px;
    aspect-ratio: 9 / 16;
    margin-top: 24px;
  }

  .testimonials__video {
    width: 100%;
  }
}

/* ==========================================================
   Partner logos marquee
   ========================================================== */
.partners {
  --logo: 162px;
  --logo-wide: 176px;
  --logo-gap: 40px;
  /* Same speed as the Figma prototype (85.7px/s): one loop = two rows
     = 2 x (6 x 162 + 2 x 176 + 8 x 40) = 3288px -> 38.4s */
  --marquee-time: 38.38s;

  display: flex;
  align-items: center;
  height: 215px;
  margin-top: 393px;
  padding: 19.5px 0 10px;
  border-top: 1px solid #ededed;
  overflow: hidden;
}

.partners__track {
  display: flex;
  flex-shrink: 0;
  width: max-content;
  animation: partners-scroll var(--marquee-time) linear infinite;
  will-change: transform;
}

/* Every row ends with the same gap that sits between logos, so the
   copies line up with no seam */
.partners__row {
  display: flex;
  flex-shrink: 0;
  align-items: flex-start;
  gap: var(--logo-gap);
  height: var(--logo-wide);
  margin: 0;
  padding: 0 var(--logo-gap) 0 0;
  list-style: none;
}

.partners__row li {
  flex-shrink: 0;
  width: var(--logo);
  height: var(--logo);
  border: 1px solid var(--color-white);
}

.partners__row .partners__item--wide {
  width: var(--logo-wide);
  height: var(--logo-wide);
  border: none;
}

/* Wide horizontal logo, centered in the row */
.partners__row .partners__item--banner {
  align-self: center;
  width: var(--logo-wide);
  height: calc(var(--logo-wide) * 372 / 704);
  border: none;
}

.partners__row img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partners__row .partners__item--banner img {
  object-fit: contain;
}

/* Moves right by exactly half the track (two rows) per loop */
@keyframes partners-scroll {
  from {
    transform: translate3d(-50%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

/* ==========================================================
   Footer
   ========================================================== */
.footer {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 513px;
  padding: 64px 64px 32px;
  background: var(--color-footer-bg);
  overflow: hidden;
}

.footer__content {
  display: flex;
  align-items: flex-start;
  /* starts at the left padding when the row is wider than the screen (1440), centered on wider screens */
  justify-content: safe center;
  gap: 50px;
  min-height: 320px;
}

/* Brand */
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  width: 293px;
}

.footer__logo {
  width: 228px;
  height: 192px;
  object-fit: cover;
}

.footer__mission {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-muted);
}

/* Navigation columns */
.footer__nav {
  display: flex;
  align-items: flex-start;
  gap: 64px;
  flex-shrink: 0;
}

.footer__group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-width: 150px;
  color: var(--color-footer-text);
}

.footer__group--support {
  width: 134px;
  min-width: 0;
}

/* Longer translated labels ("Política de Privacidad") wrap instead of overflowing */
.footer__group--support .footer__links a {
  white-space: normal;
}

.footer__heading {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-footer-text);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a,
.footer__social {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  color: var(--color-footer-text);
}

.footer__links a:hover,
.footer__social:hover span {
  text-decoration: underline;
}

.footer__social {
  display: flex;
  align-items: center;
  height: 37px;
  overflow: hidden;
}

.footer__icon {
  flex-shrink: 0;
  max-width: none;
  object-fit: contain;
}

.footer__icon--facebook {
  width: 36px;
  height: 64px;
}

.footer__icon--instagram {
  width: 36px;
  height: 49px;
}

/* Vertical divider line */
.footer__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 0;
  height: 255px;
  margin-right: 3px;
}

.footer__divider img {
  flex: none;
  width: 255px;
  max-width: none;
  height: 1px;
  transform: rotate(90deg);
}

/* Download links */
.footer__download {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  flex-shrink: 0;
  width: 322px;
}

.footer__heading--download {
  width: 238px;
}

/* Legal: lines up with the left edge of the footer row */
.footer__legal {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1349px;
  height: 32px;
  margin: 0 auto;
}

.footer__legal p {
  font-size: 13px;
  font-weight: 400;
  line-height: normal;
  color: var(--color-muted);
}

/* ==========================================================
   Privacy policy pop-up (built by privacy.js)
   ========================================================== */
html.privacy-open {
  overflow: hidden;
}

.privacy {
  width: min(760px, calc(100% - 32px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: none;
  background: transparent;
  overflow: visible;
}

.privacy::backdrop {
  background: rgba(6, 36, 80, 0.55);
}

.privacy__window {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  border-radius: 20px;
  background: var(--color-white);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.privacy[open] .privacy__window {
  animation: privacy-in 0.25s ease-out;
}

@keyframes privacy-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
}

.privacy__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 20px 32px;
  border-bottom: 1px solid #e3eeff;
}

.privacy__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}

.privacy__x {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #ecf3ff;
  color: var(--color-primary);
  cursor: pointer;
}

.privacy__x:hover {
  background: #d6e5ff;
}

.privacy__x:focus-visible,
.privacy__button:focus-visible,
.privacy__body:focus-visible {
  outline: 3px solid #ffc106;
  outline-offset: 2px;
}

.privacy__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 24px 32px 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
  font-size: 17px;
  line-height: 1.6;
  color: #062450;
}

.privacy__updated {
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--color-muted);
}

.privacy__content p + p,
.privacy__content ul + p {
  margin-top: 10px;
}

.privacy__content h3 {
  margin: 28px 0 8px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-primary);
}

.privacy__content ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.privacy__content li + li {
  margin-top: 6px;
}

.privacy__content a {
  color: var(--color-primary);
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.privacy__footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 32px;
  border-top: 1px solid #e3eeff;
}

.privacy__button {
  min-width: 140px;
  padding: 12px 28px;
  border: none;
  border-radius: 10px;
  background: var(--color-primary);
  font: 600 16px var(--font-main);
  color: var(--color-white);
  cursor: pointer;
}

.privacy__button:hover {
  background: #17468c;
}

/* Phones: slides up from the bottom like a sheet */
@media (max-width: 600px) {
  .privacy {
    width: 100%;
    margin: auto 0 0;
  }

  .privacy__window {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 20px 20px 0 0;
  }

  .privacy__header {
    padding: 16px 16px 16px 20px;
  }

  .privacy__title {
    font-size: 22px;
  }

  .privacy__body {
    padding: 20px 20px 24px;
    font-size: 16px;
  }

  .privacy__footer {
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  }

  .privacy__button {
    width: 100%;
  }
}

/* ==========================================================
   Responsive
   ========================================================== */

/* Laptops / tablets: footer columns wrap instead of overflowing */
@media (max-width: 1399px) {
  .footer {
    padding: 64px 48px 32px;
  }

  .footer__content {
    flex-wrap: wrap;
    row-gap: 48px;
  }
}

/* Below the design width: shrink the empty space above the logos */
@media (max-width: 1339px) {
  .partners {
    margin-top: 240px;
  }
}

/* Tablets & phones: hamburger menu */
@media (max-width: 900px) {
  .hero {
    height: auto;
  }

  .hero__content {
    gap: 28px;
    padding: 80px 16px 72px;
  }

  .hero__text {
    line-height: 1.5;
  }

  .partners {
    margin-top: 160px;
  }

  .navbar {
    justify-content: space-between;
    padding: 2px 16px 2px 7px;
  }

  .navbar__logo {
    flex: 0 0 206px;
  }

  .navbar__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
  }

  .navbar__burger span {
    display: block;
    height: 3px;
    border-radius: 2px;
    background: var(--color-primary);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .navbar__toggle:checked + .navbar__burger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .navbar__toggle:checked + .navbar__burger span:nth-child(2) {
    opacity: 0;
  }

  .navbar__toggle:checked + .navbar__burger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .navbar__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 24px 16px 32px;
    background: var(--color-white);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  }

  .navbar__toggle:checked ~ .navbar__menu {
    display: flex;
  }

  .navbar__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .navbar__link {
    font-size: 18px;
  }

  .lang {
    align-self: flex-start;
  }

  .lang__menu {
    right: auto;
    left: 0;
  }
}

/* Phones: stack the footer */
@media (max-width: 700px) {
  .hero__badges {
    gap: 16px;
  }

  .hero__badges .store-badge {
    font-size: 11.6px;
  }

  .partners {
    --logo: 100px;
    --logo-wide: 109px;
    --logo-gap: 24px;
    /* same speed as desktop: two rows = 2 x (6x100 + 2x109 + 8x24) = 2020px */
    --marquee-time: 23.58s;

    height: 140px;
    margin-top: 120px;
  }

  .footer {
    padding: 48px 16px 24px;
    min-height: 0;
  }

  .footer__content {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
  }

  .footer__brand,
  .footer__nav,
  .footer__download {
    align-items: center;
    width: 100%;
  }

  .footer__nav {
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 40px 48px;
  }

  .footer__group {
    align-items: center;
  }

  .footer__links {
    align-items: center;
  }

  .footer__divider {
    display: none;
  }

  .footer__heading {
    font-size: 24px;
  }

  .footer__heading--download {
    width: auto;
  }

  .footer__legal {
    justify-content: center;
    height: auto;
  }
}
