/* ========================================
   INDEPAR - Home Styles
   ======================================== */

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--superficie-oscura-2) 0%, var(--superficie-oscura) 100%);
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgb(var(--acento-rgb) / 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero__logo {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.hero__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--blanco);
  border-radius: 18px;
}

.hero h1 {
  color: #FFFFFF;
  font-size: 3rem;
  margin: 0 auto 0.5rem;
  letter-spacing: 0.04em;
}

.hero__name {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0;
}

.hero .gold-line {
  margin: 1.5rem auto;
  width: 80px;
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========================================
   TIMELINE — SAR en 16 años (IND-0011)
   Gráfico de columnas como pieza editorial.
   ======================================== */
.timeline {
  padding: 5rem 0 4.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgb(var(--acento-rgb) / 0.04) 0%, transparent 60%),
    var(--white);
  position: relative;
}

.timeline__header {
  max-width: 760px;
  margin-bottom: 3rem;
}

.timeline__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acento-texto);
  margin: 0 0 0.5rem;
}

.timeline__title {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--navy);
  margin: 0 0 0.5rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.timeline .gold-line {
  margin-bottom: 1.25rem;
}

.timeline__lede {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

.timeline__lede strong {
  color: var(--navy);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Chart container */
.timeline__chart {
  margin: 0 0 1.5rem;
}

.timeline__plot {
  position: relative;
  height: 340px;
  padding: 1.25rem 0 2.25rem 4.25rem;
  border-bottom: 1px solid rgb(var(--marca-rgb) / 0.12);
}

/* Horizontal grid + Y-axis ticks (3,000 / 6,000 / 9,000) */
.timeline__grid {
  position: absolute;
  inset: 1.25rem 0 2.25rem 4.25rem;
  pointer-events: none;
}

.timeline__grid span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right,
                              rgb(var(--marca-rgb) / 0.05) 0%,
                              rgb(var(--marca-rgb) / 0.08) 12%,
                              rgb(var(--marca-rgb) / 0.08) 88%,
                              rgb(var(--marca-rgb) / 0.05) 100%);
}

.timeline__grid span::before {
  content: attr(data-label);
  position: absolute;
  left: -4.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.timeline__grid span:nth-child(1) { top: 0%; }   /* 9,000 */
.timeline__grid span:nth-child(2) { top: 33.33%; } /* 6,000 */
.timeline__grid span:nth-child(3) { top: 66.66%; } /* 3,000 */
.timeline__grid span:nth-child(4) { top: 100%; background: var(--marca); opacity: 0.4; height: 1px; }
.timeline__grid span:nth-child(4)::before { font-weight: 600; }

/* Bars container */
.timeline__bars {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 0.4rem;
  align-items: end;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 1;
}

.timeline__item {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

/* Each bar is a link */
.timeline__bar {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

/* The colored bar fill */
.timeline__fill {
  display: block;
  width: 100%;
  height: var(--bar-h, 50%);
  background: linear-gradient(to top,
                              var(--marca) 0%,
                              var(--marca) 60%,
                              var(--gold) 100%);
  border-radius: 2px 2px 0 0;
  transform-origin: bottom center;
  animation: timeline-grow 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0ms) both;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

@keyframes timeline-grow {
  from {
    transform: scaleY(0);
    opacity: 0.5;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Year tick below the bar */
.timeline__year {
  position: absolute;
  bottom: -1.7rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Tooltip on top of bar */
.timeline__tooltip {
  position: absolute;
  bottom: calc(var(--bar-h, 50%) + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  padding: 0.4rem 0.55rem;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
  z-index: 5;
}

.timeline__tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--navy);
}

.timeline__tooltip strong {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.timeline__tooltip em {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 0.15rem;
}

/* Bar hover interactions */
.timeline__bar:hover .timeline__fill,
.timeline__bar:focus-visible .timeline__fill {
  background: linear-gradient(to top, var(--marca-oscuro) 0%, var(--gold) 50%, var(--gold-light) 100%);
  transform: scaleY(1.02);
  box-shadow: 0 -4px 16px rgb(var(--marca-rgb) / 0.22);
}

.timeline__bar:hover .timeline__tooltip,
.timeline__bar:focus-visible .timeline__tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.timeline__bar:hover .timeline__year,
.timeline__bar:focus-visible .timeline__year {
  color: var(--navy);
  font-weight: 600;
}

/* Caption + legend */
.timeline__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin: 2.25rem 0 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.timeline__legend {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline__legend-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: linear-gradient(to top, var(--marca) 0%, var(--gold) 100%);
  border-radius: 2px;
}

.timeline__source {
  font-style: italic;
}

.timeline__source-link {
  font-style: normal;
  color: var(--acento-texto);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgb(var(--acento-rgb) / 0.35);
  transition: color var(--transition), border-color var(--transition);
}

.timeline__source-link:hover,
.timeline__source-link:focus-visible {
  color: var(--marca);
  border-bottom-color: var(--marca);
}

/* CTA */
.timeline__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.85rem 1.4rem;
  background: var(--marca);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: 2px;
  transition: gap 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.timeline__cta:hover,
.timeline__cta:focus-visible {
  background: var(--marca-oscuro);
  gap: 0.85rem;
  transform: translateY(-1px);
}

/* ---------- Responsive ---------- */

/* Tablet: 16 barras siguen entrando, año más chico */
@media (max-width: 900px) {
  .timeline__plot {
    height: 300px;
    padding-left: 3.5rem;
  }
  .timeline__grid { inset: 1.25rem 0 2.25rem 3.5rem; }
  .timeline__grid span::before { left: -3.5rem; font-size: 0.68rem; }
  .timeline__bars { gap: 0.3rem; }
  .timeline__year { font-size: 0.65rem; bottom: -1.5rem; }
}

/* Móvil: scroll horizontal con snap; ancho mínimo de barra para legibilidad */
@media (max-width: 640px) {
  .timeline { padding: 3.5rem 0 3rem; }
  .timeline__header { margin-bottom: 2rem; }
  .timeline__lede { font-size: 0.98rem; }

  .timeline__chart {
    margin-left: -1rem; /* IND-0096: igual al margen del contenedor (1rem); -1.25rem desbordaba 4 px */
    margin-right: -1rem;
  }
  .timeline__plot {
    height: 260px;
    padding: 1rem 1rem 2rem 3rem;
    overflow-x: auto;
    overflow-y: visible;
    border-bottom: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgb(var(--marca-rgb) / 0.25) transparent;
  }
  .timeline__plot::after {
    content: '';
    position: absolute;
    left: 3rem;
    right: 1rem;
    bottom: 2rem;
    height: 1px;
    background: var(--marca);
    opacity: 0.4;
    pointer-events: none;
  }
  .timeline__plot::-webkit-scrollbar { height: 4px; }
  .timeline__plot::-webkit-scrollbar-track { background: transparent; }
  .timeline__plot::-webkit-scrollbar-thumb {
    background: rgb(var(--marca-rgb) / 0.25);
    border-radius: 2px;
  }

  .timeline__grid {
    position: sticky;
    left: 0;
    width: 3rem;
    inset: 1rem auto 2rem 0;
    z-index: 2;
    pointer-events: none;
  }
  .timeline__grid span {
    position: absolute;
    left: 0;
    right: 0;
    background: transparent;
  }
  .timeline__grid span::before {
    left: 0;
    font-size: 0.62rem;
  }
  .timeline__grid span:nth-child(4) { background: transparent; }

  .timeline__bars {
    grid-template-columns: repeat(16, 28px);
    gap: 0.45rem;
    height: 100%;
    padding-bottom: 0;
  }
  .timeline__item {
    scroll-snap-align: end;
  }
  .timeline__year { font-size: 0.62rem; bottom: -1.4rem; }
  .timeline__tooltip {
    padding: 0.3rem 0.45rem;
  }
  .timeline__tooltip strong { font-size: 0.85rem; }
  .timeline__tooltip em { font-size: 0.56rem; }

  .timeline__caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 2rem 1.25rem 0;
    font-size: 0.72rem;
  }
  .timeline__cta { margin-top: 1.5rem; }
}

/* Reduced motion: respeta preferencias del usuario */
@media (prefers-reduced-motion: reduce) {
  .timeline__fill {
    animation: none;
  }
  .timeline__bar:hover .timeline__fill,
  .timeline__bar:focus-visible .timeline__fill {
    transform: none;
  }
}

/* --- Areas de Estudio --- */
.areas__content {
  max-width: 640px;
}

.areas__content h2 {
  margin-bottom: 0.5rem;
}

.areas__list {
  margin-top: 1.5rem;
}

.areas__list li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.25rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.areas__list li:last-child {
  border-bottom: none;
}

.areas__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* ========================================
   JOURNEY CTA — Tu retiro (IND-0022)
   Invitacion al recorrido personal, entre la timeline y las areas de estudio.
   ======================================== */
.journey-cta {
  padding: 5rem 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgb(var(--acento-rgb) / 0.06) 0%, transparent 60%),
    var(--white);
  position: relative;
  overflow: hidden;
}

.journey-cta__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3.5rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.journey-cta__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acento-texto);
  margin: 0 0 0.6rem;
}

.journey-cta__title {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

.journey-cta__lede {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 1.25rem 0 2rem;
  max-width: 560px;
}

.journey-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.journey-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--marca);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.75rem;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.journey-cta__btn:hover {
  background: var(--marca-oscuro);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgb(var(--marca-rgb) / 0.25);
}

.journey-cta__meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Visual lateral: representacion abstracta del recorrido */
.journey-cta__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.journey-cta__visual-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
  padding: 1.75rem;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--fondo-alt-2) 100%);
  border-radius: 14px;
  border-left: 4px solid var(--gold);
  box-shadow: 0 8px 24px rgb(var(--marca-rgb) / 0.08);
  max-width: 280px;
  width: 100%;
}

.journey-cta__visual-step {
  background: var(--white);
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--bg-alt);
}

.journey-cta__visual-step--mid {
  background: rgb(var(--marca-rgb) / 0.05);
  border-color: rgb(var(--marca-rgb) / 0.15);
}

.journey-cta__visual-step--last {
  background: var(--marca);
  color: var(--white);
  border-color: var(--marca);
  text-align: center;
  font-weight: 700;
}

.journey-cta__visual-line {
  width: 2px;
  height: 18px;
  background: var(--gold);
  margin: 0 auto;
  opacity: 0.5;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero { padding: 4rem 0 3.5rem; }
  .hero__logo { width: 110px; height: 110px; }
  .hero h1 { font-size: 2.25rem; }
  .hero__name { font-size: 1rem; }
  .hero__subtitle { font-size: 1.05rem; }

  .journey-cta {
    padding: 3.5rem 0;
  }

  .journey-cta__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .journey-cta__lede {
    font-size: 1rem;
    margin: 1rem 0 1.75rem;
  }

  .journey-cta__btn {
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
  }

  .journey-cta__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .journey-cta__visual-card {
    max-width: 100%;
    padding: 1.5rem;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .journey-cta__inner {
    grid-template-columns: 1.3fr 1fr;
    gap: 2.5rem;
  }
}

/* ========================================
   CALCULADORAS EN LA HOME
   Tarjetas sobrias hacia /calculadoras/ —
   mismo lenguaje visual del hub de calculadoras.
   ======================================== */

.home-calcs__header {
  max-width: 720px;
}

.home-calcs__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acento-texto);
  margin-bottom: 0.75rem;
}

.home-calcs__title {
  font-size: 2rem;
  margin-bottom: 0;
}

.home-calcs__lede {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

.home-calcs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.5rem;
}

.home-calcs__card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: var(--white);
  border: 1px solid var(--linea);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  padding: 1.4rem 1.5rem 1.5rem;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s;
}

.home-calcs__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgb(var(--marca-oscuro-rgb) / 0.12);
}

.home-calcs__card:focus-visible {
  outline: 2px solid var(--foco);
  outline-offset: 3px;
}

.home-calcs__k {
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--acento-texto);
  font-weight: 700;
}

.home-calcs__card h3 {
  font-size: 1.08rem;
  line-height: 1.35;
  margin: 0;
}

.home-calcs__go {
  margin-top: auto;
  padding-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--marca);
}

.home-calcs__card--all {
  background: var(--bg-alt);
  border-top-color: var(--navy);
}

@media (prefers-reduced-motion: reduce) {
  .home-calcs__card {
    transition: none;
  }
  .home-calcs__card:hover {
    transform: none;
  }
}

@media (max-width: 900px) {
  .home-calcs__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .home-calcs__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ========================================
   PORTADA IND-0096 — bloques nuevos con los mismos componentes
   (tokens, eyebrow, títulos, tarjetas y botón del recorrido de siempre)
   ======================================== */

/* Hero: la promesa ocupa el h1; el nombre del instituto va arriba */
.hero .hero__name {
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.hero .hero__promesa {
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  letter-spacing: 0;
  line-height: 1.2;
  max-width: 20ch;
  margin: 0 auto;
}

.hero .hero__subtitle {
  max-width: 560px;
}

.hero__acciones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  position: relative;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--acento-claro);
  color: var(--marca-oscuro);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.75rem;
  border: 1px solid var(--acento-claro);
  border-radius: 8px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero__btn:hover {
  background: var(--blanco);
  border-color: var(--blanco);
  transform: translateY(-1px);
}

.hero__btn--sec {
  background: transparent;
  color: var(--blanco);
  border-color: rgba(255, 255, 255, 0.6);
}

.hero__btn--sec:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--blanco);
}

/* Independencia en una línea */
.home-independencia {
  background: var(--fondo-alt);
  border-bottom: 1px solid var(--linea);
  padding: 1.1rem 0;
  text-align: center;
}

.home-independencia p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--texto);
}

.home-independencia strong {
  color: var(--marca);
}

/* Tarjetas de las tres saludes (mismo componente que las calculadoras) */
.home-calcs__txt {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Próximo taller y comunidad: dos columnas, como el bloque del recorrido */
.home-taller__inner,
.home-comunidad__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.home-taller .home-calcs__lede,
.home-comunidad .home-calcs__lede {
  max-width: 560px;
}

.home-taller__btn {
  margin-top: 1.75rem;
}

.home-taller__ficha {
  display: grid;
  gap: 1rem;
  padding: 1.75rem;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--fondo-alt-2) 100%);
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgb(var(--marca-rgb) / 0.08);
  margin: 0;
}

.home-taller__ficha dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acento-texto);
}

.home-taller__ficha dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
  color: var(--marca);
  line-height: 1.45;
}

/* No lo hagas solo + quiénes te acompañan */
.home-comunidad__inner {
  align-items: start;
}

.home-comunidad__acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.home-enlace {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--marca);
}

.home-enlace:hover {
  color: var(--acento-texto);
}

.home-personas {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.home-personas li {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem;
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
}

.home-personas strong {
  font-family: 'Merriweather', serif;
  font-size: 1.05rem;
  color: var(--marca);
}

.home-personas span {
  font-size: 0.95rem;
  color: var(--texto-2);
}

.home-personas__nota {
  margin: 1rem 0 0;
  font-size: 0.95rem;
}

.home-personas__nota a,
.timeline__mas a {
  color: var(--acento-texto);
  font-weight: 500;
  border-bottom: 1px solid rgb(var(--acento-rgb) / 0.35);
}

.home-personas__nota a:hover,
.timeline__mas a:hover {
  color: var(--marca);
  border-bottom-color: var(--marca);
}

/* Evidencia: la gráfica conserva su marcado; solo se le añade un subtítulo */
.timeline__subtitulo {
  font-size: 1.35rem;
  margin: 2rem 0 0.5rem;
}

.timeline__mas {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
}

/* Cierre */
.home-cierre {
  background: linear-gradient(135deg, var(--superficie-oscura-2) 0%, var(--superficie-oscura) 100%);
  text-align: center;
}

.home-cierre__titulo {
  color: var(--blanco);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.3;
  max-width: 30ch;
  margin: 0 auto;
}

.home-cierre .hero__acciones {
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .home-taller__inner,
  .home-comunidad__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero__acciones {
    flex-direction: column;
    align-items: stretch;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero__btn {
    justify-content: center;
    text-align: center;
  }
  .home-independencia p {
    font-size: 0.92rem;
  }
}
