/* ─────────────────────────────────────────────────────
   sections.css — Money2Travel
   Secciones en orden de aparición en la página:
   1. Hero
   2. Product intro  ("Más viajes. Menos comisiones.")
   3. Features       ("Una tarjeta pensada para viajar mejor.")
   4. How it works   ("Contrátala en 3 pasos desde la app.")
   5. Benefits       ("¿Aún no eres cliente?")
   6. FAQ
───────────────────────────────────────────────────── */

/* ── 1. Hero ──────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;

  @media (min-width: 920px) {
    height: 720px;
    padding: 70px var(--gutter-desktop);
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 1;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  text-align: center;
  z-index: 1;

  @media (min-width: 920px) {
    position: static;
    max-width: 554px;
    text-align: left;
  }
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: var(--color-white);

  @media (min-width: 920px) {
    gap: 32px;
  }
}

.hero__headline {
  font-family: "Rubik", sans-serif;
  font-size: 42px;
  font-weight: 900;

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

.hero__product {
  font-family: "Rubik", sans-serif;
  font-size: 24px;
  font-weight: 500;

  @media (min-width: 920px) {
    font-size: 40px;
  }
}

.hero__subheader {
  font-family: "Rubik", sans-serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--color-white);

  @media (min-width: 920px) {
    position: absolute;
    bottom: 94px;
    right: var(--gutter-desktop);
    font-size: 32px;
  }
}

.hero__cta-wrap {
  display: flex;
  justify-content: center;

  @media (min-width: 920px) {
    justify-content: flex-start;
  }
}

.hero .btn--cta {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 700;
}

/* ── 2. Product Intro ─────────────────────────────────── */
.product-intro {
  background: var(--color-white);
  padding: 48px 16px;

  @media (min-width: 920px) {
    padding: 96px var(--gutter-desktop);
  }
}

.product-intro__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.product-intro__layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;

  @media (min-width: 920px) {
    flex-direction: row;
  }
}

.product-intro__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.product-intro__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-dark);

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

.product-intro__card-wrap {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-intro__card-img {
  width: 100%;
  height: 301px;
  border-radius: 16px;
  object-fit: cover;
}

.product-intro__badge {
  display: flex;
  gap: 12px;
  color: var(--color-dark);
  font-size: 16px;
  font-weight: 600;

  @media (min-width: 920px) {
    font-size: 24px;
  }
}

.product-intro__badge-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #93e1ff;
  border-radius: 50%;
  color: #005f83;
  flex-shrink: 0;
}

/* ── 3. Features ──────────────────────────────────────── */
.features {
  padding: 48px 16px;

  @media (min-width: 920px) {
    padding: 96px var(--gutter-desktop);
  }
}

.features__header {
  display: flex;
  flex-direction: column;
  gap: 16px;

  @media (min-width: 920px) {
    text-align: center;
    gap: 32px;
    margin-bottom: 48px;
  }
}

.features__title {
  font-family: "Open Sans", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 120%;
  color: var(--color-dark);

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

.features__subtitle {
  font-size: 20px;
  color: var(--color-body);
  line-height: 140%;
  font-weight: 400;

  @media (min-width: 920px) {
    font-size: 32px;
  }
}

.features__layout {
  display: flex;
  flex-direction: column;
  gap: 16px;

  @media (min-width: 920px) {
    flex-direction: row;
    align-items: center;
  }
}

.features__list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 24px 16px;

  @media (min-width: 768px) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 4rem;
  }

  @media (min-width: 920px) {
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 48px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 8px;

  @media (min-width: 920px) {
    gap: 12px;
  }
}

.feature-item__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: #005f83;
  background: #93e1ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-item__icon svg {
  width: 20px;
  height: 20px;
  stroke: #005f83;
  fill: none;
}

.feature-item__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.feature-item__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-dark);

  @media (min-width: 920px) {
    font-size: 24px;
  }
}

.feature-item__desc {
  display: flex;
  gap: 8px;
  font-size: 16px;
  line-height: 140%;
  color: var(--color-body);

  @media (min-width: 920px) {
    margint-top: 4px;
    font-size: 20px;
  }
}

.features__img-wrap {
  margin: 0 auto;
  display: flex;
  justify-content: center;

  @media (min-width: 920px) {
    width: 40%;
    max-width: 539px;
  }
}

.features__img {
  width: auto;
  height: 500px;

  @media (min-width: 920px) {
    height: auto;
    width: 100%;
  }
}

/* ── 4. How it works ──────────────────────────────────── */
.how-works {
  background: #f5f7fa;
  padding: 48px 16px;

  @media (min-width: 920px) {
    padding: 96px var(--gutter-desktop);
  }
}

.how-works__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.how-works__copy {
  text-align: center;
  position: relative; /* contexto para superponer las tarjetas */
}

.how-works__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 120%;
  color: var(--color-dark);
  margin-bottom: 16px;

  @media (min-width: 920px) {
    font-size: 56px;
    margin-bottom: 32px;
  }
}

.how-works__img-wrap {
  position: relative;
  z-index: 1; /* la imagen queda DETRÁS */
  margin: 0 auto;
  width: 170px;
  height: 311px;
  border-radius: 21px;
  border: 4px solid #000;
  overflow: hidden;
  background: #fff;

  @media (min-width: 920px) {
    width: 311px;
    height: 567px;
    border-radius: 39px;
    border-width: 8px;
  }
}

.how-works__img {
  width: 100%;
  height: auto;
}

/* ── MOBILE: swiper horizontal superpuesto ── */
.how-works__steps {
  display: flex;
  gap: 16px;
  position: relative;
  z-index: 2; /* las tarjetas van ENCIMA */
  margin: -72px -16px 0; /* sube y solapa la parte baja de la imagen */
  padding: 0 16px 4px; /* inset + aire inferior */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-padding-inline: 16px; /* el snap respeta el inset */
}

.how-works__steps::-webkit-scrollbar {
  display: none;
}

/* tarjeta con efecto cristal reforzado */
.how-works__step {
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  text-align: left;
  flex: 0 0 280px; /* ancho fijo en el swiper, no se comprime */
}

/* ── DESKTOP (≥920): restaura el diseño original ── */
@media (min-width: 920px) {
  .how-works__steps {
    flex-wrap: wrap;
    justify-content: center;
    margin: -140px auto 0; /* mayor solape sobre la imagen */
    padding: 0;
    overflow: visible;
    scroll-snap-type: none; /* anula el snap heredado de scrollable-container */
  }

  .how-works__step {
    flex: 1 1 390px;
    max-width: 376px;
  }

  .how-works .scroll-controls {
    display: none; /* sin scroll en desktop → flechas ocultas */
  }
}

.how-works__step-badge {
  width: 40px;
  height: 40px;
  background: #93e1ff;
  border-radius: 50%;
  color: #005f83;
  font-size: 25px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 12px;

  @media (min-width: 920px) {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}

.how-works__step-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 140%;

  @media (min-width: 920px) {
    font-size: 24px;
  }
}
/* Steps */
.steps {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  margin-top: 1.5rem;
  max-width: 100vw;
}

@media (min-width: 920px) {
  .steps {
    max-width: 80vw;
  }
}

@media (min-width: 1200px) {
  .steps {
    max-width: 100%;
  }
}

.step {
  background: var(--color-bg-page);
  border-radius: var(--radius-lg);
  display: flex;
  min-width: 300px;
  padding: 1.5rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
  flex-shrink: 0;
}

@media (min-width: 1200px) {
  .step {
    min-width: 340px;
  }
}

.step__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 700;
  min-width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.step__body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.step__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-dark);
}

.step__desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-body);
}

/* ── 5. Benefits (¿Aún no eres cliente?) ─────────────── */
.benefits {
  display: block;
  background: var(--color-white);
  padding: 5rem var(--gutter-mobile);
}

.benefits__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.benefits__title {
  font-family: "Open Sans", sans-serif;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
}

.benefits__scroll-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  min-width: 0;
  align-self: stretch;
}

.benefits .scrollable-container {
  display: flex;
  gap: 1.5rem;
  margin-inline: calc(-1 * var(--gutter-mobile));
  padding-inline: var(--gutter-mobile);
  scroll-padding-inline: var(--gutter-mobile);
}

/* Cuando las 4 cards caben holgadas, se centran y ocultamos las flechas */
@media (min-width: 1280px) {
  .benefits .scrollable-container {
    justify-content: center;
  }
  .benefits .scroll-controls {
    display: none;
  }
}

.benefits__desc {
  font-family: "Open Sans", sans-serif;
  font-size: clamp(0.9375rem, 2vw, 1.25rem);
  line-height: 1.4;
  color: var(--color-dark);
  max-width: 62ch;
}

.benefit-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 240px;
  flex-shrink: 0;
  text-align: left;
}

.benefit-card__icon-wrap {
  background: var(--color-bg-icon);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.625rem;
}

.benefit-card__icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.benefit-card__title {
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-dark);
}

.benefit-card__desc {
  font-family: "Open Sans", sans-serif;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--color-dark);
}

@media (min-width: 900px) {
  .benefits {
    padding: 5rem var(--gutter-desktop);
  }
}

/* ── 6. FAQ ───────────────────────────────────────────── */
.faq {
  background: var(--color-white);
  padding: 5rem var(--gutter-mobile);
}

.faq__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq__title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
  letter-spacing: -0.02em;
}

.faq__subtitle {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--color-dark);
  margin-top: -0.5rem;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 0;
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.4;
  background: none;
  border: none;
  cursor: pointer;
}

.faq__chevron {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-dark);
  transition: transform var(--transition);
}

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

.faq__answer {
  padding-bottom: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-body);
  overflow: hidden;
}

.faq__answer[hidden] {
  display: none;
}

@media (min-width: 920px) {
  .faq {
    padding: 5rem var(--gutter-desktop);
  }

  .faq__title {
    font-size: 3rem;
  }
}
