/* ===========================
   ESTILO GENERAL PARA PÁGINAS SECUNDARIAS
   (Términos y Timemap)
=========================== */

.section-header {
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: var(--green) !important; /* verde para Timemap */
}

.section-kicker {
  color: var(--green);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
}


/* ===========================
   TÉRMINOS Y CONDICIONES
=========================== */

.legal-text {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 0 3rem 0;
  line-height: 1.7;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.legal-text p {
  margin-bottom: 1.4rem;
}

.legal-text h3 {
  margin-top: 2.4rem;
  margin-bottom: 0.8rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: #d4af37; /* dorado elegante */
}

.legal-text a {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}

.legal-text a:hover {
  text-decoration: underline;
}


/* ===========================
   TIMELINE (TIMEMAP)
=========================== */

.timeline-intro {
  max-width: 600px;
  margin: 0 auto 1rem auto;
  text-align: center;
  color: var(--text-muted);
}

.timeline-btn {
  display: block;
  width: fit-content;
  margin: 0 auto 3rem auto;
}

/* CONTENEDOR */
.timeline {
  position: relative;
  margin-left: 80px;
  padding-left: 50px;
  display: block;        /* asegura flujo normal */
}


/* TUBO BLANCO */
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 100%;
  background: transparent;
  border: 4px solid white;
  border-radius: 999px;
}

/* PROGRESO VERDE */
.timeline::after {
  content: "";
  position: absolute;
  left: 4px;
  top: var(--progress-top, 0);
  width: 14px;
  height: var(--progress-height, 0);
  background: var(--accent);
  border-radius: 999px;
}

/* ITEMS */
.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.5s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* TEXTOS EN VERDE */
.timeline-content h3,
.timeline-content summary,
.timeline-content p,
.timeline-content ul li {
  color: var(--green);
}

/* DESPLEGABLES */
.timeline-content summary {
  cursor: pointer;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* LISTA */
.timeline-content ul {
  margin-top: 0.8rem;
  padding-left: 1.2rem;
  line-height: 1.6;
}

/* ANIMACIÓN SUAVE */
.timeline-content details {
  transition: all 0.35s ease;
  overflow: hidden;
}

.timeline-content details[open] {
  animation: expand 0.35s ease;
}

@keyframes expand {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.timeline-origin {
  margin-left: 130px;
  margin-top: 2rem;
}

.timeline-origin h3 {
  color: var(--accent);
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.timeline-origin p {
  color: var(--text-muted);
}