/**
 * Estilos del Scroll Timeline para WordPress y Elementor
 * Fuente por defecto: Poppins
 * 100% Responsivo en Mobile, Tablet y Desktop
 */

.est-timeline-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
  box-sizing: border-box;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Columna de la línea vertical */
.est-timeline-spine {
  position: absolute;
  top: 60px;
  bottom: 60px;
  left: 20px;
  width: 2px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}

/* Línea base estática */
.est-timeline-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #8f8c87;
  border-radius: 2px;
}

/* Línea que avanza al hacer scroll */
.est-timeline-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background-color: #111111;
  transition: height 0.1s ease-out;
  border-radius: 2px;
}

/* Contenedor de la lista de eventos */
.est-timeline-items {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Cada fila de evento */
.est-item {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  position: relative;
  width: 100%;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Contenedor del recuadro / badge */
.est-badge-container {
  flex-shrink: 0;
  width: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 3;
  margin-top: 14px;
}

/* Recuadro con número o texto personalizable */
.est-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-color: #121212;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-align: center;
  padding: 0 4px;
  box-sizing: border-box;
  transition: background-color 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
}

/* Estado activo cuando el scroll pasa por este hito */
.est-item.is-active .est-badge {
  background-color: #000000;
  transform: scale(1.04);
}

/* Tarjeta de contenido (estilo idéntico a la imagen proporcionada) */
.est-card {
  flex-grow: 1;
  background-color: #e8e4de;
  padding: 36px 40px;
  border-radius: 2px;
  box-sizing: border-box;
  transition: box-shadow 0.3s ease;
}

/* Subtítulo o fecha */
.est-date-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #736f69;
  margin-bottom: 8px;
}

/* Título del evento */
.est-title {
  margin: 0 0 16px 0;
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  color: #0a0a0a;
  letter-spacing: -0.2px;
}

/* Texto de descripción */
.est-content {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: #4a4a4a;
}

.est-content p {
  margin: 0 0 12px 0;
}

.est-content p:last-child {
  margin-bottom: 0;
}

/* ==================== RESPONSIVE MÓVIL Y TABLET ==================== */

/* Tablets */
@media (max-width: 768px) {
  .est-timeline-wrapper {
    padding: 24px 12px;
  }

  .est-item {
    gap: 20px;
  }

  .est-card {
    padding: 24px 28px;
  }

  .est-title {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .est-content {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* Móviles */
@media (max-width: 480px) {
  .est-timeline-spine {
    left: 17px;
    top: 40px;
    bottom: 40px;
  }

  .est-item {
    gap: 14px;
  }

  .est-badge-container {
    width: 34px;
    margin-top: 10px;
  }

  .est-badge {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .est-card {
    padding: 18px 20px;
  }

  .est-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .est-content {
    font-size: 13.5px;
    line-height: 1.55;
  }
}
