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

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

.hero {
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.hero__eyebrow { margin-bottom: 1.25rem; }

.hero__title {
  font-size: var(--fs-5xl);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--blue-900);
  margin: 0 0 1.25rem;
}

.hero__title em {
  font-style: italic;
  color: var(--blue-600);
  font-weight: 300;
}

.hero__lede {
  font-size: var(--fs-lg);
  color: var(--ink-700);
  max-width: 52ch;
  margin: 0 0 2rem;
  line-height: 1.55;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero__meta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}
.hero__meta-item {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.hero__meta-item strong {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 400;
  color: var(--blue-800);
  line-height: 1;
}
.hero__meta-item span {
  font-size: var(--fs-xs);
  color: var(--ink-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Variant A: Editorial split with photo card ---------- */

.hero--editorial .hero__inner {
  grid-template-columns: 1.05fr 1fr;
}
@media (max-width: 900px) {
  .hero--editorial .hero__inner { grid-template-columns: 1fr; }
}

.hero--editorial {
  background:
    radial-gradient(ellipse at 95% 0%, var(--blue-100) 0%, transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(244, 200, 121, 0.18) 0%, transparent 50%),
    var(--paper);
}

.hero__photo {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background-color: var(--blue-200);
  background-image: url('../img/hero.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--sh-lg);
}

/* Bottom-fade gradient so the overlay text stays legible */
.hero__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14, 35, 71, 0) 45%,
    rgba(14, 35, 71, 0.55) 100%
  );
  pointer-events: none;
}

.hero__photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 2rem 4.5rem;
  background: linear-gradient(to top, rgba(14, 35, 71, 0.85) 0%, transparent 50%);
  color: white;
}
.hero__photo-overlay span {
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}
.hero__photo-overlay strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-top: 0.25rem;
}

.hero__photo-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--blue-800);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--sh-sm);
}
.hero__photo-badge::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22, 161, 121, 0.2);
}

.hero__floater {
  position: absolute;
  background: white;
  border-radius: var(--r-lg);
  padding: 1rem 1.25rem;
  box-shadow: var(--sh-md);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: var(--fs-sm);
}
.hero__floater--top {
  top: auto;
  bottom: 30%;
  right: -1.5rem;
}
.hero__floater--bottom {
  bottom: 1.25rem;
  left: 1.25rem;
}
@media (max-width: 1100px) {
  .hero__floater--top { right: -0.5rem; }
  .hero__floater--bottom { left: 0.75rem; bottom: 0.75rem; }
}
@media (max-width: 720px) {
  .hero__floater--bottom { display: none; }
}
.hero__floater strong {
  display: block;
  font-family: var(--font-display);
  color: var(--blue-800);
  font-size: 1.25rem;
  line-height: 1;
}
.hero__floater small {
  color: var(--ink-500);
  font-size: var(--fs-xs);
}
.hero__floater-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-700);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ---------- Variant B: Big typographic ---------- */

.hero--typographic {
  background:
    linear-gradient(180deg, var(--blue-50) 0%, var(--paper) 100%);
  position: relative;
}
.hero--typographic .hero__inner {
  grid-template-columns: 1fr;
  text-align: center;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero--typographic .hero__title {
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}
.hero--typographic .hero__lede {
  margin-left: auto;
  margin-right: auto;
}
.hero--typographic .hero__cta { justify-content: center; }
.hero--typographic .hero__meta { justify-content: center; gap: 3rem; }

.hero__bg-mark {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(20rem, 45vw, 38rem);
  font-style: italic;
  font-weight: 300;
  color: var(--blue-100);
  opacity: 0.5;
  bottom: -10%;
  right: -8%;
  pointer-events: none;
  line-height: 1;
  user-select: none;
  z-index: 0;
}

.hero--typographic .hero__inner > * { position: relative; z-index: 1; }

.hero__pill-row {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0.5rem;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--ink-100);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.hero__pill-row span {
  padding: 0.4rem 0.9rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--blue-700);
  border-radius: 999px;
}
.hero__pill-row span.is-active {
  background: var(--blue-700);
  color: white;
}

/* ---------- Variant C: Two-paths split ---------- */

.hero--twopaths {
  padding: 3rem 0 0;
  background: var(--paper);
}

.hero--twopaths .hero__intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}
.hero--twopaths .hero__intro h1 {
  font-size: var(--fs-4xl);
  margin-bottom: 0.5em;
}
.hero--twopaths .hero__intro p {
  font-size: var(--fs-lg);
  color: var(--ink-700);
}

.hero__paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 760px) {
  .hero__paths { grid-template-columns: 1fr; }
}

.hero__path {
  position: relative;
  padding: 2.5rem;
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  text-decoration: none;
  transition: all .35s var(--ease);
}
.hero__path:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}
.hero__path--justice {
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-900) 100%);
  color: white;
}
.hero__path--justice:hover { color: white; }
.hero__path--apoyo {
  background: linear-gradient(135deg, var(--warm-100) 0%, var(--blue-50) 100%);
  color: var(--blue-900);
  border: 1px solid var(--blue-100);
}
.hero__path--apoyo:hover { color: var(--blue-900); }

.hero__path-eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 1rem;
  font-weight: 600;
}
.hero__path h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  margin: 0 0 0.5em;
  color: inherit;
  line-height: 1.05;
}
.hero__path--justice h2 { color: white; }
.hero__path p { color: inherit; opacity: 0.85; max-width: 36ch; }

.hero__path-foot {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero__path-foot span {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hero__path-stat {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
}
.hero__path-stat small {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 0.4em;
}

.hero__path-deco {
  position: absolute;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 14rem;
  line-height: 1;
  bottom: -3rem;
  right: -1rem;
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
}

/* ============================================
   Stats strip
   ============================================ */

.stats-strip {
  background: var(--blue-900);
  color: white;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.stats-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
@media (max-width: 760px) { .stats-strip__grid { grid-template-columns: repeat(2, 1fr); } }

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-left: 1px solid rgba(255,255,255,0.15);
  padding-left: 1.5rem;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 400;
  line-height: 1;
  color: white;
}
.stat__num em {
  font-style: italic;
  color: var(--warm-300);
  font-weight: 300;
}
.stat__label {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
  max-width: 22ch;
}

/* ============================================
   Two paths section (when not in hero variant C)
   ============================================ */

.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } }

.path-card {
  position: relative;
  padding: 2.5rem;
  border-radius: var(--r-xl);
  background: white;
  border: 1px solid var(--ink-100);
  display: flex;
  flex-direction: column;
  min-height: 320px;
  transition: all .3s var(--ease);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.path-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: var(--blue-200);
}

.path-card__icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--blue-50);
  color: var(--blue-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.path-card--warm .path-card__icon {
  background: var(--warm-100);
  color: var(--warm-700);
}

.path-card h3 {
  font-size: 1.6rem;
  margin: 0 0 0.5em;
}
.path-card p { color: var(--ink-700); margin-bottom: 1.5rem; }

.path-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.path-card li {
  padding: 0.4rem 0;
  font-size: var(--fs-sm);
  color: var(--ink-700);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.path-card li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-400);
  flex-shrink: 0;
}
.path-card--warm li::before { background: var(--warm-500); }

.path-card__link {
  margin-top: auto;
  font-weight: 600;
  color: var(--blue-700);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
}
.path-card:hover .path-card__link { color: var(--blue-900); }

/* ============================================
   Methodology
   ============================================ */

.methodology {
  background: var(--blue-50);
}
.methodology__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 880px) { .methodology__grid { grid-template-columns: 1fr; } }

.methodology__brand-mark {
  width: 180px;
  height: auto;
  display: block;
  margin-bottom: 1.6rem;
  filter: drop-shadow(0 10px 22px rgba(14, 35, 71, 0.16));
}
.methodology h2 { margin-bottom: 0.4em; }
.methodology__lede {
  font-size: var(--fs-lg);
  margin-bottom: 2rem;
}

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.25rem 0;
  border-top: 1px solid var(--blue-200);
}
.feature-list li:first-child { border-top: none; padding-top: 0; }
.feature-list li:last-child { padding-bottom: 0; }

.feature-list__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--blue-600);
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
}
.feature-list h4 {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--blue-900);
  margin: 0 0 0.3em;
}
.feature-list p { color: var(--ink-700); font-size: var(--fs-sm); margin: 0; }

/* ============================================
   CTA banner
   ============================================ */

.cta-banner {
  background:
    radial-gradient(ellipse at 80% 40%, rgba(244, 200, 121, 0.15) 0%, transparent 60%),
    var(--blue-900);
  color: white;
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
  margin: 4rem 0 0;
}
@media (max-width: 760px) { .cta-banner { grid-template-columns: 1fr; } }

.cta-banner h2 {
  color: white;
  font-size: var(--fs-3xl);
  margin: 0 0 0.5em;
}
.cta-banner p { color: rgba(255,255,255,0.8); margin: 0; }

.cta-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cta-banner .btn--ghost {
  border-color: rgba(255,255,255,0.3);
  color: white;
}
.cta-banner .btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  color: white;
}
