/* ==========================================================================
   Home (index.html) — Figma frame "Prototipo Diseño" (71:12)
   ========================================================================== */

/* ----- Hero ----- */
.hero {
  position: relative;
  color: var(--c-bg-soft);
  background: var(--c-teal) url("../../img/hero-home.jpg") right center / cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(14,56,59,.2) 0%, rgba(47,107,61,.2) 16%, rgba(101,189,63,.11) 34%, rgba(101,189,63,0) 57%),
    linear-gradient(90deg, rgb(14,56,59) 10%, rgba(47,107,61,.93) 28%, rgba(101,189,63,0) 46%);
}
.hero__inner { display: flex; align-items: center; min-height: 620px; padding-block: 80px; }
.hero__content { max-width: 560px; }
.hero h1 { display: block; }
.hero__h1-main {
  display: block;
  font-family: var(--font-head); font-weight: var(--fw-bold);
  font-size: var(--fs-display); line-height: 1.02; letter-spacing: -.015em;
  color: var(--c-bg-soft);
}
.hero__h1-main .accent-blue { font-weight: var(--fw-extrabold); color: var(--c-blue); }
.hero__h1-sub {
  display: block; margin-top: 16px; max-width: 480px;
  font-family: var(--font-alt); font-weight: var(--fw-semibold);
  font-size: clamp(1.0625rem, .95rem + .5vw, 1.3125rem); line-height: 1.35; letter-spacing: -.005em;
  color: rgba(255, 255, 255, .92);
}
.hero p { font-family: var(--font-alt); font-size: 1rem; line-height: 1.5; max-width: 448px; margin: 20px 0 28px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--ghost-light {
  --btn-bg: transparent; --btn-fg: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); }

.hero__proof {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  margin: 24px 0 0;
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: var(--fw-medium);
  color: rgba(255, 255, 255, .82);
}
.hero__proof li { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.hero__proof .icon { width: 16px; height: 16px; color: var(--c-green); flex-shrink: 0; }

/* ----- Audiencia ----- */
.audience__title {
  font-family: var(--font-body); font-weight: var(--fw-semibold);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem); line-height: 1.25; letter-spacing: -.01em;
  color: var(--c-heading); text-align: center; margin-bottom: 48px;
}
.audience__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px; max-width: 1120px; margin-inline: auto;
}
.role-card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1);
}
.role-card__media { aspect-ratio: 355 / 190; overflow: hidden; }
.role-card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.role-card__body { position: relative; padding: 0 40px 36px; }
.role-card__badge {
  position: absolute; top: -32px; left: 40px;
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-navy); color: #fff;
  box-shadow: 0 10px 7.5px rgba(0,0,0,.1), 0 4px 3px rgba(0,0,0,.1);
}
.role-card__badge .icon { width: 26px; height: 26px; }
.role-card__body h3 { font-family: var(--font-body); font-weight: var(--fw-bold); font-size: var(--fs-h3); color: var(--c-navy); margin: 44px 0 10px; }
.role-card__kicker { font-family: var(--font-alt); font-weight: var(--fw-bold); font-style: italic; font-size: .9375rem; color: var(--c-text); margin-bottom: 16px; }
.role-card__list { display: flex; flex-direction: column; gap: 6px; }
.role-card__list li { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; line-height: 1.47; color: var(--c-text-strong); }
.role-card__list .icon { width: 20px; height: 20px; color: var(--c-green); margin-top: 1px; }

/* ----- Bento "En buenas nubes" ----- */
.bento {
  background: var(--c-bg-soft); border-radius: var(--r-xl);
  padding: clamp(2rem, 1rem + 5vw, 4rem);
  box-shadow: 0 4px 10.45px rgba(0,0,0,.1);
}
.bento__head { max-width: 640px; margin-inline: auto; text-align: center; }
.bento__head .eyebrow { letter-spacing: .2em; }
.bento__head h2 { font-family: var(--font-head); font-weight: var(--fw-bold); font-size: var(--fs-h2); line-height: 1.18; letter-spacing: -.012em; color: var(--c-heading); }
.bento__head .lead { margin-top: 12px; }
.bento__head .lead strong { color: var(--c-heading); font-weight: var(--fw-semibold); }

.feature-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1024px; margin: 64px auto 0;
}
.feature { position: relative; padding: 32px; border-right: 1px solid var(--c-border); }
.feature:last-child { border-right: 0; }
.feature--card {
  background: #fff; border: 0; border-radius: var(--r-md);
  box-shadow: 0 8px 15px rgba(11,28,48,.09); transform: translateY(-12px);
}
.feature__badge {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid var(--c-green); background: rgba(85,192,54,.06); color: var(--c-green);
  margin-bottom: 20px;
}
.feature__badge .icon { width: 26px; height: 26px; }
.feature__badge--blue { border-color: var(--c-blue); background: rgba(15,153,252,.06); color: var(--c-blue); }
.feature__title { font-family: var(--font-body); font-weight: var(--fw-bold); font-size: var(--fs-h4); line-height: 1.4; color: var(--c-heading); margin-bottom: 8px; }
.feature p { font-size: var(--fs-sm); line-height: 1.57; margin-bottom: 16px; }
.feature__rule { display: block; width: 28px; height: 3px; border-radius: var(--r-pill); background: var(--c-green); }
.feature__rule--blue { background: var(--c-blue); }
.feature__tag {
  position: absolute; top: 60px; left: 40px;
  background: var(--c-blue); color: #fff; font-family: var(--font-body); font-weight: var(--fw-bold);
  font-size: 9px; letter-spacing: .15em; padding: 2px 6px; border-radius: 4px;
}

.bento__photo { position: relative; margin-top: 80px; border-radius: var(--r-lg); overflow: hidden; }
.bento__photo img { width: 100%; height: 420px; object-fit: cover; }
.bento__caption {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 32px; flex-wrap: nowrap; justify-content: center;
  background: #fff; border-radius: var(--r-md); padding: 20px 28px;
  box-shadow: 0 8px 20px rgba(11,28,48,.16); max-width: calc(100% - 48px);
}
.bento__caption-item { flex: 0 1 360px; display: flex; align-items: center; gap: 12px; font-family: var(--font-body); font-weight: var(--fw-medium); font-size: var(--fs-sm); line-height: 1.4; color: var(--c-heading); }
.bento__caption-item strong { font-weight: var(--fw-semibold); }
.bento__caption-dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.bento__caption-dot .icon { width: 18px; height: 18px; }
.bento__caption-dot--green { background: rgba(85,192,54,.08); color: var(--c-green); }
.bento__caption-dot--blue { background: rgba(15,153,252,.08); color: var(--c-blue); }
.bento__caption-sep { width: 1px; height: 32px; background: var(--c-border); }

/* ----- Trust bar ----- */
.trust {
  position: relative; padding-block: var(--section-gap); overflow: hidden;
  background: linear-gradient(180deg, #eef6ff 0%, #f3faf6 55%, #ffffff 100%);
}
.trust::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url("../../img/sky-trust.jpg") center / cover no-repeat; opacity: .5;
}
.trust > * { position: relative; z-index: 1; }
.trust__head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.trust__mark img { filter: drop-shadow(0 4px 15px rgba(0,0,0,.26)); }
.trust__head h2 { font-family: var(--font-head); font-weight: var(--fw-bold); font-size: clamp(1.75rem, 1.2rem + 2vw, 2.625rem); line-height: 1.2; letter-spacing: -.012em; color: var(--c-heading); }
.trust__track {
  display: flex; gap: 24px; margin-top: 40px; padding: 8px var(--wrap-pad) 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.quote-card {
  scroll-snap-align: center; flex: 0 0 clamp(280px, 80vw, 420px);
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
  background: #fff; border-radius: var(--r-md); padding: 28px 40px;
  box-shadow: 0 1px 3px rgba(11,28,48,.07), 0 12px 32px rgba(11,28,48,.06);
}
.quote-card__logo { max-height: 66px; width: auto; object-fit: contain; }
.quote-card blockquote { font-family: var(--font-alt); font-weight: 300; font-style: italic; font-size: .9375rem; line-height: 1.55; color: var(--c-text); }
.quote-card__who { display: flex; flex-direction: column; gap: 2px; }
.quote-card__who strong { font-family: var(--font-head); font-weight: var(--fw-bold); font-size: .875rem; color: var(--c-text); }
.quote-card__who span { font-family: var(--font-head); font-weight: var(--fw-semibold); font-size: .75rem; color: rgba(69,70,77,.55); }
.trust__cta { display: flex; justify-content: center; margin-top: 40px; }

/* ----- Recorrido / journey ----- */
.journey {
  background: linear-gradient(180deg, var(--c-teal) 0%, var(--c-teal-mid) 53%, var(--c-green) 100%);
  border-radius: var(--r-lg); padding: clamp(2.25rem, 1.5rem + 2.5vw, 3.25rem) clamp(1.5rem, 1rem + 3vw, 3.5rem);
  color: var(--c-bg-soft);
}
.journey__top { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; max-width: 1024px; margin-inline: auto; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #edfaf4; border: 1px solid #c6e8be; color: var(--c-green-dark);
  font-family: var(--font-body); font-weight: var(--fw-semibold); font-size: .75rem; letter-spacing: .03em;
  padding: 7px 17px; border-radius: var(--r-pill); margin-bottom: 20px;
}
.pill .icon { width: 15px; height: 15px; }
.journey__copy h2 { font-family: var(--font-head); font-weight: var(--fw-bold); font-size: var(--fs-h2); line-height: 1.18; letter-spacing: -.012em; color: var(--c-bg-soft); }
.journey__copy p { font-family: var(--font-alt); font-size: 1rem; line-height: 1.6; max-width: 420px; margin-top: 20px; }
.journey__mascot { width: 100%; max-width: 260px; max-height: 300px; object-fit: contain; object-position: center; height: auto; justify-self: center; }

.steps {
  position: relative; display: grid; grid-template-columns: repeat(5, 1fr);
  max-width: 1024px; margin: 44px auto 0;
}
.steps::before {
  content: ""; position: absolute; top: 74px; left: 10%; right: 10%;
  border-top: 2px dashed rgba(85,192,54,.35);
}
.step { display: flex; flex-direction: column; align-items: center; text-align: center; padding-inline: 12px; }
.step__num { font-family: var(--font-body); font-weight: var(--fw-bold); font-size: .8125rem; letter-spacing: .04em; color: var(--c-green); margin-bottom: 8px; }
.step__badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #edfaf4; color: var(--c-teal); position: relative; z-index: 1; }
.step__badge .icon { width: 24px; height: 24px; }
.step__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-green); margin: 12px 0 16px; }
.step h3 { font-family: var(--font-body); font-weight: var(--fw-bold); font-size: .875rem; line-height: 1.4; color: var(--c-bg-soft); margin-bottom: 4px; }
.step p { font-size: .8125rem; line-height: 1.46; color: var(--c-muted-on-dark-2); }

.journey__cta {
  display: flex; align-items: center; gap: 24px;
  background: #e8f4ff; border-radius: var(--r-md); padding: 24px 32px;
  max-width: 1024px; margin: 40px auto 0;
}
.journey__cta-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--c-blue); color: #fff; flex-shrink: 0; }
.journey__cta-copy { flex: 1; }
.journey__cta-title { font-family: var(--font-body); font-weight: var(--fw-bold); font-size: var(--fs-h4); color: var(--c-heading); }
.journey__cta-copy p:last-child { font-family: var(--font-alt); font-size: var(--fs-sm); line-height: 1.57; color: var(--c-text); margin-top: 4px; }

/* ----- Crecemos contigo ----- */
.grow { background: var(--c-teal); color: #fff; }
.grow__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; padding-block: 80px; max-width: 1024px; }
.grow__copy h2 { font-family: var(--font-head); font-weight: var(--fw-bold); font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); line-height: 1.12; letter-spacing: -.012em; color: #fff; margin-top: 16px; }
.grow__copy p { font-family: var(--font-alt); font-size: 1rem; line-height: 1.7; color: var(--c-muted-on-dark); max-width: 420px; margin: 24px 0 36px; }
.grow__photo { width: 100%; max-width: 400px; height: 280px; object-fit: cover; border-radius: var(--r-md); justify-self: end; }

/* ----- Cifras ----- */
.figures { padding-block: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem); }
.figures__grid { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1120px; margin-inline: auto; }
.figure { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 16px 24px; }
.figure__icon { width: 28px; height: 28px; }
.figure__icon--blue { color: var(--c-blue); }
.figure__icon--green { color: var(--c-green); }
.figure__num { font-family: var(--font-head); font-weight: var(--fw-extrabold); font-size: 2.5rem; line-height: 1; letter-spacing: -.025em; }
.figure__num--blue { color: var(--c-blue); }
.figure__num--green { color: var(--c-green); }
.figure__label { font-family: var(--font-body); font-weight: var(--fw-semibold); font-size: .8125rem; color: var(--c-heading); }
.figure__sub { font-size: .75rem; color: #6b7280; }
.figure__rule { width: 24px; height: 3px; border-radius: var(--r-pill); }
.figure__rule--blue { background: var(--c-blue); }
.figure__rule--green { background: var(--c-green); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .audience__grid { grid-template-columns: 1fr; max-width: 420px; }
  .feature-row { grid-template-columns: repeat(2, 1fr); max-width: 560px; row-gap: 8px; }
  .feature { border-right: 0; }
  .feature:nth-child(odd) { border-right: 1px solid var(--c-border); }
  .feature--card { transform: none; }
  .journey__top { grid-template-columns: 1fr; gap: 32px; }
  .journey__mascot { max-width: 280px; order: -1; }
  .journey__copy p { max-width: none; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 12px; }
  .steps::before { display: none; }
  .grow__inner { grid-template-columns: 1fr; gap: 32px; }
  .grow__photo { justify-self: start; max-width: none; }
  .figures__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .hero__inner { min-height: 0; padding-block: 56px 64px; }
  .feature-row { grid-template-columns: 1fr; max-width: 340px; }
  .feature, .feature:nth-child(odd) { border-right: 0; border-bottom: 1px solid var(--c-border); }
  .feature:last-child { border-bottom: 0; }
  .steps { grid-template-columns: 1fr; }
  .journey__cta { flex-direction: column; align-items: flex-start; }
  .figures__grid { grid-template-columns: 1fr; }
  .bento__caption { position: static; transform: none; margin: 16px auto 0; max-width: none; flex-direction: column; align-items: flex-start; gap: 14px; }
  .bento__caption-item { flex: 1 1 auto; }
  .bento__caption-sep { width: 100%; height: 1px; }
  .bento__photo { overflow: visible; }
}

/* ----- Preguntas frecuentes (home) ----- */
.home-faq { background: var(--c-bg-soft); }
.home-faq__head { text-align: center; margin-bottom: 32px; }
.home-faq__head h2 {
  font-family: var(--font-head); font-weight: var(--fw-extrabold);
  font-size: var(--fs-h2); line-height: 1.18; letter-spacing: -.02em; color: var(--c-heading);
}
.home-faq .faq__a a { color: var(--c-green-dark); text-decoration: underline; text-underline-offset: 2px; }
.home-faq .faq__a a:hover { color: var(--c-green); }
.home-faq__cta {
  display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap;
  max-width: 1144px; margin: 36px auto 0; padding-top: 28px;
  border-top: 1px solid var(--c-border); text-align: center;
}
.home-faq__cta p { font-family: var(--font-alt); font-size: 1rem; color: var(--c-text); }

/* ----- Legibilidad del hero en pantallas pequeñas -----
   El degradado base es horizontal (90deg), pensado para escritorio. Al apilarse
   en móvil el texto queda sobre el cielo claro y pierde contraste, así que se
   añade un velo vertical adicional. */
@media (max-width: 860px) {
  .hero { background-position: 68% center; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(6,32,34,.82) 0%, rgba(6,32,34,.72) 55%, rgba(6,32,34,.6) 100%),
      linear-gradient(90deg, rgb(14,56,59) 4%, rgba(47,107,61,.9) 40%, rgba(101,189,63,0) 92%);
  }
  .hero__h1-sub { max-width: none; }
  .hero p { max-width: none; }
}
@media (max-width: 560px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__proof { gap: 6px 16px; font-size: .8125rem; }
  .home-faq__cta { flex-direction: column; gap: 14px; }
}
