* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/*-----FONTS-----*/
@font-face {
  font-family: 'Inter-Light';
  src: url('../fonts/Inter-Light.woff2') format('woff2'),
    url('../fonts/Inter-Light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Inter-ExtraLight';
  src: url('../fonts/Inter-ExtraLight.woff2') format('woff2'),
    url('../fonts/Inter-ExtraLight.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.woff2') format('woff2'),
    url('../fonts/Inter-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Inter-Bold';
  src: url('../fonts/Inter-Bold.woff2') format('woff2'),
    url('../fonts/Inter-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'LFTEticaSheriff-Regular';
  src: url('../fonts/LFTEticaSheriff-Regular.woff2') format('woff2'),
    url('../fonts/LFTEticaSheriff-Regular.ttf') format('truetype');
  font-style: normal;
}


@font-face {
  font-family: 'LFTEticaSheriff-SemiBd';
  src: url('../fonts/LFTEticaSheriff-SemiBd.woff2') format('woff2'),
    url('../fonts/LFTEticaSheriff-SemiBd.ttf') format('truetype');
  font-style: normal;
}

@font-face {
  font-family: 'LFTEticaSheriff-Bold';
  src: url('../fonts/LFTEticaSheriff-Bold.woff2') format('woff2'),
    url('../fonts/LFTEticaSheriff-Bold.ttf') format('truetype');
  font-style: normal;
}

:root {
  --rojo: #C32A26;
  --naranja: #EFA220;
  --marron: #7b3f28;
  --gris: #797878;
  --gris2: #e4e1e1;
  --verde: #1F9562;
  --verde2: #024C36;
  --dorado: #EFB810;
  --max-width: 1200px;

  /* Fuentes */
  --font-principal-regular: 'LFTEticaSheriff-Regular', serif;
  --font-principal-semi: 'LFTEticaSheriff-SemiBd', serif;
  --font-principal-bold: 'LFTEticaSheriff-Bold', serif;
  --font-parrafo: 'Inter', sans-serif;

  /* Tamaños de fuente */
  --font-size-title: 60px;
  --font-size-subtitle: 35px;
  --font-size-paragraph: 20px;
}


body {
  font-family: 'Inter', sans-serif;
}

/*SELECCIÓN DE TEXTO*/
::selection {
  background: var(--rojo);
  color: white;
}

::-moz-selection {
  background: var(--rojo);
  color: white;
}

/**************************
         TIMELINE
***************************/
.section-timeline {
  padding: 130px 0px 50px 0px;
  /* background-color: #f9f9f9; */
  max-width: 1200px;
  margin: 0 auto;
}

.section-timeline h2 {
  font-family: var(--font-principal-semi);
  font-weight: normal;
  color: var(--rojo);
  font-size: 50px;
}

.timeline-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
  padding-bottom: 50px;
}

.timeline-slides {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  margin-bottom: 20px;
  width: 100%;
  overflow: hidden;
  cursor: grab;
}

.timeline-slide {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

.timeline-slide.active {
  display: flex;
}

.timeline-slide .content {
  font-family: 'inter';
  flex: 1;
  text-align: left;
  padding: 20px 20px 0px 0px;
}

.timeline-slide .title {
  font-family: var(--font-principal-semi);
  font-weight: normal;
  font-size: 35px;
  color: var(--naranja);
}

.timeline-slide .title-year {
  font-family: var(--font-principal-bold);
  font-weight: normal;
  font-size: 38px;
  color: var(--rojo);
}

.timeline-titulo {
  font-family: 'HeinzLabel-Regular';
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

.timeline-titulo p {
  font-family: var(--font-principal-regular);
  font-size: 25px;
  color: var(--marron);
  margin: 5px 0 0;
}

.timeline-slide .subtitle {
  font-family: var(--font-principal-regular);
  font-size: 16px;
  color: var(--gris);
  margin-top: 10px;
}

.timeline-slide .image {
  flex: 1;
  padding: 20px 0px 20px 20px;
}

.timeline-slide .image img {
  max-width: 100%;
  height: auto;
}

.timeline-progress {
  position: relative;
  margin-top: 20px;
  width: 100%;
}

.progress-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #ccc;
  z-index: 1;
  transform: translateY(-50%);
}

.filled-line {
  height: 4px;
  background-color: var(--naranja);
  width: 0%;
  transition: width 0.5s ease;
}

.timeline-dots {
  display: flex;
  justify-content: space-evenly;
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 20px;
  transition: transform 0.3s ease;
}

.timeline-dot-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.timeline-dot {
  background-color: var(--naranja);
  border: none;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.timeline-dot.active {
  background-color: var(--rojo);
  transform: scale(1.1) translateY(-50%);
}

.timeline-dot:hover {
  background-color: var(--rojo);
}

.year {
  font-family: var(--font-principal-semi);
  margin-top: 10px;
  font-size: 16px;
  color: var(--marron);
  position: absolute;
  bottom: -40px;
}

@media (max-width: 768px) {
  .timeline-slides {
    flex-direction: column;
    margin-bottom: 0;
    width: auto;
    overflow: visible;
  }

  .timeline-slide {
    flex-direction: column;
    text-align: center;
    width: 100%;
  }

  .timeline-slide .content {
    order: 1;
    padding: 10px;
  }

  .timeline-slide .image {
    order: 2;
    padding: 10px;
  }

  .timeline-progress {
    order: 3;
    margin-top: 20px;
  }

  .timeline-dots {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 30px;
  }

  .timeline-dot-container {
    margin-bottom: 0;
  }

  .timeline-dot {
    margin-bottom: 0;
  }

  .timeline-dot span {
    bottom: -40px;
  }

  .timeline-titulo p {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .section-timeline {
    padding: 60px 20px 30px 20px;
  }

  .section-timeline h2 {
    font-size: 30px;
  }

  .year {
    font-size: 13px;
  }
}

/*==ANIMACIÓN==*/
.timeline-slide {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-slide.animate {
  opacity: 1;
  transform: translateY(0);
}

.timeline-titulo h2,
.timeline-titulo p {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-titulo.animate h2,
.timeline-titulo.animate p {
  opacity: 1;
  transform: translateY(0);
}


/**************************
     TIME LINE HOJA
***************************/
.custom-timeline-section {
  background-color: #fff;
  padding: 130px 10px;
}

.custom-timeline-section h2 {
  font-family: var(--font-principal-semi);
  font-size: 40px;
  color: var(--rojo);
  text-align: center;
}

.timeline-subtitulo {
  font-family: var(--font-principal-regular);
  text-align: center;
  color: var(--marron);
  font-size: 25px;
  margin: 15px auto 50px;
}

/* Contenedor principal */
.custom-timeline-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 80px 0;
}

/* Botones de filtro */
.custom-timeline-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.custom-timeline-filters button {
  border: 1px solid var(--naranja);
  background: #fff;
  color: var(--naranja);
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease-in-out;
  flex: 0 1 auto;
}

.custom-timeline-filters button:hover,
.custom-timeline-filters button:focus {
  background: #C32A26;
  color: #fff;
}

/* Elementos de la línea de tiempo */
.custom-timeline-item {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 40px;
  position: relative;
}

.custom-timeline-item.left {
  justify-content: flex-start;
}

.custom-timeline-item.right {
  justify-content: flex-end;
}

/* Puntos de la línea de tiempo */
.custom-timeline-point {
  font-family: var(--font-principal-semi);
  width: 50px;
  height: 50px;
  background-color: var(--naranja);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  color: white;
  transition: all 0.3s ease-in-out;
}

.custom-timeline-point.active {
  background-color: var(--rojo);
}

/* Contenido de cada elemento */
.custom-timeline-content {
  width: 45%;
  background: #fff;
  border: 1px solid var(--naranja);
  border-radius: 5px;
  padding: 20px;
  text-align: center;
  z-index: 1;
}

.custom-timeline-content img {
  width: 100%;
  margin-bottom: 15px;
}

.custom-timeline-content h3 {
  font-family: var(--font-principal-semi);
  font-size: 20px;
  color: var(--rojo);
  margin: 10px 0;
}

.years {
  color: var(--naranja);
}

.custom-timeline-content p {
  font-family: var(--font-principal-regular);
  font-size: 14px;
  color: var(--gris);
  margin-bottom: 10px;
}

/* Línea central */
.custom-timeline-container::before {
  content: '';
  position: absolute;
  width: 2px;
  background: #dcdcdc;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

/* Responsividad */
@media screen and (max-width: 768px) {
  .custom-timeline-item {
    flex-direction: column;
    align-items: center;
  }

  .custom-timeline-content {
    width: 80%;
  }

  .custom-timeline-container::before {
    left: 10px;
    transform: none;
  }

  .custom-timeline-point {
    left: -5px;
    transform: none;
  }

  .custom-timeline-filters {
    gap: 10px;
  }

  .custom-timeline-filters button {
    padding: 8px 12px;
  }

  .custom-timeline-section h2 {
  font-size: 30px;
}

.timeline-subtitulo {
  font-size: 20px;

}

.custom-timeline-content {
  padding: 10px;
}

}

/* Contenedor flotante */
.custom-timeline-filters-wrapper {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 100px 0;
}

/* Asegura espacio al hacer scroll 
.custom-timeline-section {
  padding-top: 160px;
}*/

/* Desktop: visible solo en PC */
.custom-timeline-filters.desktop {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.custom-timeline-filters.mobile {
  display: none;
}

/* Mobile */
@media screen and (max-width: 768px) {
  .custom-timeline-filters.desktop {
    display: none;
  }

  .custom-timeline-filters.mobile {
    display: block;
    text-align: center;
  }

  #dropdownYears {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
    gap: 10px;
  }

  .hidden {
    display: none;
  }

}
 /*222*/
 /* Botón flotante con posición centrada debajo del subtítulo */
.year-dropdown-wrapper {
  position: fixed;
  top: calc(200px + 60px); /* Ajusta según tu padding-top de .custom-timeline-section */
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background-color: white;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Botón */
.year-toggle-btn {
  background-color: var(--naranja);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-family: var(--font-principal-semi);
  font-size: 15px;
  transition: background-color 0.3s;
}

.year-toggle-btn:hover {
  background-color: var(--rojo);
}

/* Dropdown */
.year-dropdown {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.year-dropdown button {
  background: #fff;
  border: 1px solid var(--naranja);
  color: var(--naranja);
  padding: 8px 12px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s ease-in-out;
}

.year-dropdown button:hover {
  background-color: var(--rojo);
  color: white;
}

.hidden {
  display: none;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .year-dropdown-wrapper {
    top: calc(250px + 60px); /* más espacio en mobile si es necesario */
  }
}