/* ==========================================================================
   Home page
   ========================================================================== */

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-sand);
}

/* The map is drawn on a fixed 1920×772 canvas, centered, so the streets and
   markers stay aligned at every screen width (the sides just get cropped). */
.hero__map {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1920px;
  height: 772px;
  margin-left: -960px;
  pointer-events: none;
}

.hero__map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 240px, rgba(0, 0, 0, 0.12) 787px, #000 1133px);
  mask-image: linear-gradient(90deg, transparent 240px, rgba(0, 0, 0, 0.12) 787px, #000 1133px);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 676px) 520px;
  justify-content: space-between;
  column-gap: 48px;
  min-height: 772px;
  /* The card sits 64px from the right edge (16px into the gutter) */
  padding-right: calc(var(--gutter) - 16px);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  padding-block: 99px 60px;
}

.hero__title {
  font-size: clamp(40px, 5.15vw, 74px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.hero__lead {
  max-width: 560px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--color-ink-soft);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-ink-soft);
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
}

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

/* Red pin sits on the map, tucked just behind the card's left edge */
.hero__pin {
  position: absolute;
  top: 334px;
  right: calc(100% - 4px);
}

@media (max-width: 1199px) {
  .hero__map {
    top: auto;
    bottom: 0;
  }

  .hero__map-svg {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 55%);
    mask-image: linear-gradient(180deg, transparent 0, #000 55%);
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 56px;
    min-height: 0;
    padding-right: var(--gutter);
    padding-bottom: 96px;
  }

  .hero__content {
    padding-block: 72px 0;
  }

  .hero__visual {
    justify-content: center;
  }

  .hero__pin {
    display: none;
  }
}

@media (max-width: 767px) {
  .hero__content {
    padding-top: 48px;
    gap: 24px;
  }

  .hero__lead {
    font-size: 17px;
  }

  .hero__note {
    align-items: flex-start;
  }

  .hero__note svg {
    margin-top: 2px;
    flex: 0 0 auto;
  }
}

/* ---------- La importancia de la valoración ---------- */

.importance .feature-grid {
  margin-top: 64px;
}

/* ---------- ¿Qué hacemos? ---------- */

.results {
  padding-top: 150px;
  padding-bottom: 80px;
}

.results-panel {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 1288px;
  margin: 40px auto 0;
  padding: 48px 56px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
}

.results-panel__place {
  flex: 0 0 460px;
}

.results-panel__separator {
  align-self: stretch;
  width: 1px;
  background: var(--color-border);
}

.results-panel__charts {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
}

.results .floor-plan {
  margin-top: 66px;
}

@media (max-width: 1099px) {
  .results-panel {
    flex-direction: column;
    align-items: stretch;
    gap: 36px;
    max-width: 640px;
  }

  .results-panel__place {
    flex-basis: auto;
  }

  .results-panel__separator {
    width: auto;
    height: 1px;
  }
}

@media (max-width: 767px) {
  .results {
    padding-top: 72px;
  }

  .results-panel {
    padding: 28px 20px;
    border-radius: var(--radius-lg);
  }
}

/* ---------- ¿Cómo lo hacemos? ---------- */

.how {
  padding-top: 64px;
  padding-bottom: 100px;
  scroll-margin-top: 24px;
}

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

.how .steps {
  margin-top: 16px;
}

.how__cta {
  margin-top: 36px;
}

/* ---------- Testimonios ---------- */

.testimonials {
  padding-block: 88px;
}

.testimonials .section-header__title {
  max-width: 620px;
  line-height: 1.15;
}

.testimonials .carousel {
  margin-top: 48px;
}
