/* ── CSS Reset ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: 'myriad-variable', sans-serif;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

ul,
ol {
  list-style: none;
}

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

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 760px;
  background-color: #F6F3EB;
  color: #111;
  overflow: hidden;
}

/* ── Content (left) ─────────────────────────────────────── */
.hero__content {
  display: flex;
  flex-direction: column;
  padding: 80px;
  gap: 2rem;
}

.hero__logo {
  width: 250px;
  flex-shrink: 0;
}

.hero__bottom {
  display: flex;
  flex-direction: column;
  gap: 44px;
  flex: 1;
  justify-content: center;
}

.hero__text {
  display: flex;
}

.hero__heading {
  display: flex;
  flex-direction: column;
}

.hero__heading-italic {
  font-family: 'myriad-variable', sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 78px;
  line-height: 75px;
  letter-spacing: 0.28px;
}

.hero__heading-regular {
  font-family: 'the-seasons', serif;
  font-weight: 700;
  font-style: normal;
  font-size: 78px;
  line-height: 75px;
  letter-spacing: 0.28px;
}

/* ── Country selector ────────────────────────────────────── */
.country-selector {
  max-width: 340px;
  width: 100%;
}

.hero__selector {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem 0.75rem 1.4rem;
  border: 1.5px solid #111;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 0.825rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111;
  width: 100%;
  transition: background-color 0.2s ease;
}

.hero__selector:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Dropdown */
.country-dropdown {
  position: fixed;
  z-index: 9999;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.country-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.country-option__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  text-decoration: none;
  color: #222;
  font-family: 'myriad-variable', sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.country-option__link:hover {
  background-color: #f7f7f7;
}

.country-option--disabled .country-option__link {
  color: #b0b0b0;
  cursor: default;
  pointer-events: none;
}

.country-option__flag {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.country-option__name {
  flex: 1;
}

.country-option__soon {
  font-family: 'myriad-variable', sans-serif;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #aaa;
  background: #f0f0f0;
  padding: 3px 8px;
  border-radius: 99px;
}

.hero__selector-icon {
  flex-shrink: 0;
}

/* ── Media (right) ───────────────────────────────────────── */
.hero__media {
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: 100px;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
  }

  /* Video goes on top */
  .hero__media {
    order: -1;
    border-radius: 0 0 0 52px;
    aspect-ratio: 1 / 1;
  }

  .hero__video {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero__content {
    padding: 40px 15px;
    gap: 0;
  }

  .hero__logo {
    width: 180px;
  }

  .hero__bottom {
    align-items: flex-start;
    padding: 40px 0;
  }

  .hero__heading-italic,
  .hero__heading-regular {
    font-size: clamp(2.2rem, 10vw, 4.875rem);
    line-height: 0.96;
  }

  .hero__selector {
    max-width: 100%;
  }
}

/* ── Cómo funciona ──────────────────────────────────────── */
.how-it-works {
  background-color: #fff;
  padding: 100px 40px;
}

.how-it-works__container {
  max-width: 1400px;
  margin: 0 auto;
}

.how-it-works__title {
  font-family: 'the-seasons', serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  text-align: center;
  margin-bottom: 72px;
  color: #111;
}

.how-it-works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.how-it-works__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.how-it-works__icon {
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  color: #111;
}

.how-it-works__icon svg {
  width: 100%;
  height: 100%;
}

.how-it-works__item-title {
  font-family: 'myriad-variable', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  color: #111;
}

.how-it-works__item-desc {
  font-family: 'myriad-variable', sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #333;
  max-width: 320px;
}

@media (max-width: 768px) {
  .how-it-works {
    padding: 60px 20px;
  }

  .how-it-works__title {
    text-align: center;
    margin-bottom: 48px;
  }

  .how-it-works__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .how-it-works__item {
    align-items: center;
    text-align: center;
  }

  .how-it-works__item-desc {
    max-width: 100%;
  }
}

/* ── Features ───────────────────────────────────────────── */
.features {
  background-color: #fff;
  padding: 120px 200px 180px;
}

.features__container {
  max-width: 1040px;
  margin: 0 auto;
}

.features__list {
  display: flex;
  flex-direction: column;
}

.features__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 40px 0;
  border-bottom: 2px solid var(--color-foreground-10, #0101011A);
}

.features__item:first-child {
  border-top: 2px solid var(--color-foreground-10, #0101011A);
}

.features__left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1 1 auto;
}

.features__right {
  flex: 0 0 350px;
  text-align: right;
}

.features__icon {
  width: 90px;
  height: 90px;
  object-fit: contain;
  flex-shrink: 0;
}

.features__title {
  font-family: 'the-seasons', serif;
  font-weight: 700;
  font-size: 46px;
  line-height: 1.1;
  color: #111;
}

.features__desc {
  font-family: 'myriad-variable', sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #333;
}

@media (max-width: 768px) {
  .features {
    padding: 60px 15px 80px;
  }

  .features__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 32px 0;
  }

  .features__left {
    gap: 16px;
  }

  .features__right {
    flex: 0 0 auto;
    width: 100%;
    text-align: left;
  }

  .features__icon {
    width: 80px;
    height: 80px;
  }

  .features__title {
    font-size: 28px;
  }
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #F6F3EB;
  padding: 72px 80px 52px;
  overflow: hidden;
  min-height: 500px;
}

.footer__plane-bg {
  position: absolute;
  right: 20%;
  bottom: 0px;
  width: 400px;
  pointer-events: none;
}

.footer__container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.footer__logo {
  width: 500px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copyright {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'myriad-variable', sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  color: #111;
}

.footer__copyright strong {
  font-weight: 700;
}

.footer__copyright-link {
  color: inherit;
  text-decoration: none;
}

.footer__copyright-link:hover {
  text-decoration: underline;
}

.footer__copyright img {
  width: 24px;
  height: auto;
  flex-shrink: 0;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer__social-link img {
  width: 24px;
  height: 24px;
  display: block;
}

@media (max-width: 768px) {
  .footer {
    padding: 56px 20px 48px;
    min-height: 560px;
  }

  .footer__plane-bg {
    left: -40px;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
  }

  .footer__container {
    align-items: center;
    gap: 48px;
  }

  .footer__logo {
    width: 280px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }

  .footer__copyright {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer__social {
    gap: 32px;
  }
}
