/* Secciones de contenido: "Cómo funciona" y FAQs */
.section {
  padding-block: 4.5rem;
}

.section--muted {
  background-color: hsl(var(--secondary) / 0.55);
}

.section__head {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin-bottom: 2.5rem;
  text-align: center;
}

.section__head .section-title {
  margin-top: 1rem;
}

/* ── Cómo funciona ────────────────────────────────────────────────────────── */

.steps {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.step-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem;
  position: relative;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.step-card:hover {
  border-color: hsl(var(--accent) / 0.45);
  box-shadow: 0 20px 40px -30px hsl(var(--accent) / 0.9);
  transform: translateY(-2px);
}

.step-card__number {
  align-items: center;
  background-image: linear-gradient(
    130deg,
    hsl(var(--accent-light)),
    hsl(var(--accent))
  );
  border-radius: 0.85rem;
  color: hsl(var(--accent-foreground));
  display: flex;
  font-family: Outfit, Inter, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  height: 2.5rem;
  justify-content: center;
  width: 2.5rem;
}

.step-card__title {
  font-size: 1.05rem;
  font-weight: 700;
}

.step-card__text {
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Hero de página (sobre nosotros) ──────────────────────────────────────── */

/* Franja oscura de apertura: misma voz que el hero de la landing, pero sin el
   panel de tasación. Deja lugar al header fijo y presenta el texto de marca
   junto a las cifras. */
.page-hero {
  overflow: hidden;
  padding-block: 7rem 4.5rem;
  position: relative;
}

.page-hero__backdrop {
  inset: 0;
  position: absolute;
}

.page-hero__backdrop::before,
.page-hero__backdrop::after {
  content: "";
  inset: 0;
  position: absolute;
}

.page-hero__backdrop::before {
  background: radial-gradient(
    36rem 24rem at 78% 30%,
    hsl(var(--accent) / 0.18),
    transparent 68%
  );
}

.page-hero__backdrop::after {
  background-image: repeating-linear-gradient(
    115deg,
    hsl(0 0% 100% / 0.04) 0 1px,
    transparent 1px 13px
  );
  mask-image: linear-gradient(to bottom, #000 0%, transparent 55%);
}

.page-hero > .container {
  position: relative;
  z-index: 1;
}

.page-hero__title {
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 16ch;
}

.page-hero__title em {
  color: hsl(var(--accent-light));
  font-style: normal;
}

.page-hero .about__lead {
  color: hsl(var(--primary-foreground) / 0.7);
}

.page-hero .about__text .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* Sobre fondo oscuro las tarjetas de cifras pasan a vidrio esmerilado */
.page-hero .stat {
  background-color: hsl(0 0% 100% / 0.05);
  border-color: hsl(0 0% 100% / 0.12);
}

.page-hero .stat__label {
  color: hsl(var(--primary-foreground) / 0.65);
}

@media (min-width: 1024px) {
  .page-hero {
    padding-block: 8rem 5.5rem;
  }
}

/* ── Sobre nosotros ───────────────────────────────────────────────────────── */

.about {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about__lead {
  color: hsl(var(--muted-foreground));
  font-size: 0.975rem;
  line-height: 1.7;
}

.about__stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.stat {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1.1rem;
  padding: 1.35rem;
}

.stat__value {
  color: hsl(var(--accent));
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}

.stat__label {
  color: hsl(var(--muted-foreground));
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

@media (min-width: 900px) {
  .about {
    align-items: center;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
  }
}

/* ── FAQs ─────────────────────────────────────────────────────────────────── */

.faq-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.faq-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.faq-list .section-title {
  margin-bottom: 1.5rem;
}

.faq {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1.1rem;
  padding-inline: 1.25rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.faq[open] {
  border-color: hsl(var(--accent) / 0.4);
  box-shadow: 0 18px 36px -30px hsl(var(--accent) / 0.9);
}

.faq__summary {
  align-items: center;
  display: flex;
  font-family: Outfit, Inter, sans-serif;
  font-weight: 700;
  gap: 1rem;
  justify-content: space-between;
  padding-block: 1.15rem;
}

.faq__summary svg {
  flex-shrink: 0;
  height: 1rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 1rem;
}

.faq[open] .faq__summary svg {
  color: hsl(var(--accent));
  transform: rotate(180deg);
}

.faq__answer {
  animation: fade-slide-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
  line-height: 1.65;
  padding-bottom: 1.15rem;
}

/* Panel lateral con el resumen de la tasación */
.faq-aside {
  background-color: hsl(var(--primary));
  border-radius: 1.5rem;
  color: hsl(var(--primary-foreground));
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow: hidden;
  padding: 2rem;
  position: relative;
}

.faq-aside::after {
  background: radial-gradient(
    24rem 18rem at 100% 0%,
    hsl(var(--accent) / 0.35),
    transparent 65%
  );
  content: "";
  inset: 0;
  position: absolute;
}

.faq-aside > * {
  position: relative;
  z-index: 1;
}

.faq-aside__title {
  font-size: 1.35rem;
  font-weight: 800;
}

.faq-aside__text {
  color: hsl(var(--primary-foreground) / 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
}

.faq-aside__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-aside__item {
  align-items: center;
  color: hsl(var(--primary-foreground) / 0.85);
  display: flex;
  font-size: 0.875rem;
  gap: 0.65rem;
}

.faq-aside__item svg {
  color: hsl(var(--accent-light));
  flex-shrink: 0;
  height: 1.1rem;
  width: 1.1rem;
}

@media (min-width: 1024px) {
  .faq-layout {
    align-items: flex-start;
    flex-direction: row;
  }

  .faq-aside {
    flex-shrink: 0;
    position: sticky;
    top: 2rem;
    width: 22rem;
  }
}

/* ── Ubicación y redes (sobre nosotros) ───────────────────────────────────── */

.location {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.location__map {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1.5rem;
  overflow: hidden;
}

.location__map iframe {
  border: 0;
  display: block;
  height: 100%;
  min-height: 20rem;
  width: 100%;
}

.location__card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}

.location__title {
  font-size: 1.2rem;
  font-weight: 800;
}

.location__text {
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
  line-height: 1.65;
}

.location__card .btn {
  align-self: flex-start;
  margin-top: auto;
}

@media (min-width: 900px) {
  .location {
    align-items: stretch;
    grid-template-columns: 1.4fr 1fr;
  }
}
