﻿.timeline-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
}

.timeline-topbar {
  width: 100%;
  padding-left: 70px;
  padding-right: 70px;
  margin-bottom: 60px;
}

.timeline-line-wrapper {
    overflow: hidden;
    width: 100%;
    margin: 20px 0;
    position: relative;
}

.timeline-line-wrapper::before {
    content: ''; 
    position: absolute;
    top: 23%; /* Ajusta la posición según sea necesario */
    left: 0;
    right: 0;
    height: 2px; /* Grosor de la línea */
    background-color: var(--color-principal); /* Color de la línea de fondo */
}

.timeline-line {
    display: flex;
	position: relative;
    transition: transform 0.3s ease-in-out;
    pointer-events: none; /* Evita clics en la línea */
	padding-top: 30px;
	transform: translateX(40%);
}

.timeline-point {
    flex: 1 0 20%;
    text-align: center;
    cursor: pointer;
    position: relative;
    pointer-events: auto; /* Aseguramos que solo los puntos sean clicables */
}

.timeline-point .timeline-circle {
    width: 20px;
    height: 20px;
    background-color: var(--color-principal);
	border: 1px solid var(--color-principal);
    border-radius: 50%;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-point.active .timeline-circle {
    background-color: #fff;
}

.timeline-year {
    margin-top: 10px;
    font-size: 20px;
    color: #333;
}

/*.timeline-item {
    display: none;
}*/

.timeline-item {
  display: none;
  grid-template-columns: 3fr 2fr;
  grid-gap: 30px;
  /*opacity: 0;*/
  /*visibility: hidden;*/ /* Inicialmente ocultos */
  /*transform: scale(0.95);*/ /* Efecto inicial de zoom */
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

.timeline-item.active {
   display: grid;
}

.timeline-item img {
    max-width: 100%;
    height: auto;
    /*margin: 10px 0;*/
}

/* Flechas de navegación */
.timeline-arrow {
    background: #ccc;
    border: none;
    font-size: 20px;
    padding: 10px;
    cursor: pointer;
    position: absolute;
    top: 38px;
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-arrow.left {
    left: 10px;
}

.timeline-arrow.right {
    right: 10px;
}

.timeline-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.info_timeline-item h4 {
  font-family: var(--secondary-font-family);
  color: var(--color-principal);
  margin-bottom: 30px !important;
  font-size: 24px;
  line-height: 30px;
  font-weight: 400;
}

.info_timeline-item .timeline-text {
  font-size: 20px;
  font-weight: 300;
  line-height: 30px;
}

/*.timeline-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.timeline-line {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 80%;
    margin: 20px 0;
    border-top: 2px solid #ccc;
}

.timeline-point {
    position: relative;
    text-align: center;
    cursor: pointer;
    margin: 0 10px;
}

.timeline-circle {
    width: 20px;
    height: 20px;
    background-color: red;
    border-radius: 50%;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-point.active .timeline-circle {
    background-color: blue;
}

.timeline-year {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

.timeline-content {
    width: 80%;
    text-align: center;
}

.timeline-item {
    display: none;
}

.timeline-item img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}
*/