/* ============================= */
/* 🌎 SECCIÓN GENERAL TIMELINE  */
/* ============================= */
.timeline-section-desktop{
  display: block;
}

.timeline-section-mobile{
  display: none;
}

.timeline-wrapper {
  display: flex;
  flex-direction: row;
  gap: 87px;
  background-image: url("https://assets-us-01.kc-usercontent.com/b2956330-c34f-0064-2c6f-27bd5c0147fc/f0081011-bb7e-4675-a952-f5f9fe4a5b85/Fondo-Linea_del_tiempo.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Fondo fijo al hacer scroll */
  padding: 100px 255px 166px 255px; /* Reducido padding-top de 166px a 100px */
  min-height: 100vh; /* Mínimo 100vh pero se expande con el contenido */
  box-sizing: border-box;
  position: relative; /* Para posicionar el botón */
}

/* ============================= */
/* 🧭 COLUMNA IZQUIERDA (AÑOS)  */
/* ============================= */
.timeline-numbers {
  display: flex;
  flex-direction: column;
  gap: 9.4px;
  justify-content: center; /* centra verticalmente los años */
  position: sticky; /* Mantiene los años visibles al hacer scroll */
  top: 35vh; /* Cambiado de 50% a 40% para mover más arriba */
  transform: translateY(-50%);
  height: fit-content;
  align-self: flex-start;
  margin-top: calc(40vh - 100px); /* Ajustado para el nuevo padding-top */
}

.timeline-number {
  width: 85.923px;
  color: rgba(255, 255, 255, 0.45);
  text-align: right;
  font-family: "Encode Sans";
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 96%;
  cursor: pointer;
  transition: color 0.3s ease;
}

.timeline-number:hover,
.timeline-number.active {
  color: var(--Brand-Colors-Blue-00, #1b365d);
}

/* ============================= */
/* 📜 CONTENEDOR PRINCIPAL      */
/* ============================= */
.timeline-container {
  flex: 1;
  position: relative; /* Para posicionar el botón sticky */
  /* Eliminado height, overflow-y, scroll-behavior y scroll-snap-type */
  /* Los slides se apilan naturalmente con el scroll de la página */
}

/* ============================= */
/* 📦 SLIDES INTERNOS           */
/* ============================= */
.timeline-slides-wrapper {
  display: flex;
  flex-direction: column;
  padding-top: 20vh; /* Reducido de 50vh a 20vh para empezar más arriba */
  padding-bottom: 50vh; /* Espacio después del último año */
}

.timeline-content-container {
  height: 100vh; /* Cada año ocupa toda la altura de la pantalla */
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: center; /* centra verticalmente el contenido */
  gap: 50px;
  position: relative; /* Para posicionar el botón dentro de cada slide */
}

/* ============================= */
/* 🔢 AÑO ROTADO                */
/* ============================= */
.timeline-year-wrapper {
  position: relative;
  width: 192px;
  height: 281px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -25%;
}

.timeline-year-container {
  position: absolute;
  transform-origin: top left;
  transform: rotate(-90deg) translateX(-80%);
}

.timeline-year {
  color: #fff;
  font-family: "Encode Sans";
  font-size: 128px;
  font-style: normal;
  font-weight: 800;
}

/* ============================= */
/* ✏️ TEXTOS                    */
/* ============================= */
.timeline-text-content {
  display: flex;
  flex-direction: column;
  gap: 55px;
  justify-content: center;
  margin-top: -25%;
  min-width: 550px;
}

.timeline-title-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 34px;
}

.timeline-title {
  display: flex;
  flex-direction: column;
}

.timeline-title-normal {
  color: var(--Brand-Colors-Blue-00, #1b365d);
  font-family: "Encode Sans";
  font-size: 48px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 96%;
}

.timeline-title-bold {
  color: var(--Brand-Colors-Blue-00, #1b365d);
  font-family: "Encode Sans";
  font-size: 48px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 96%;
}

.timeline-description {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-description-bold {
  color: var(--Brand-Colors-Blue-00, #1b365d);
  font-family: "Encode Sans";
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.timeline-description-normal {
  color: var(--Brand-Colors-Blue-00, #1b365d);
  font-family: "Encode Sans";
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.4px;
}

/* ============================= */
/* 🔘 BOTÓN FLOTANTE            */
/* ============================= */
.timeline-skip-button {
  display: inline-flex;
  height: 42px;
  padding: 11px 20px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  border-radius: 30px;
  border: 2px solid var(--White--Background-White, #FFF);
  background-color: #8ccbe5;
  cursor: pointer;
  transition: all 0.3s ease;
  top: 65vh; /* Posicionado al 70% del alto de la pantalla */
  z-index: 1000;
  width: fit-content;
  margin: 0 auto;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
}

/* Para cuando el botón está enfocado (teclado) */
.timeline-skip-button:focus,
.timeline-mobile-skip-button:focus {
  outline: none;
  box-shadow: none; /* Por si hay algún box-shadow por defecto */
}

/* Para cuando está activo (click mantenido) */
.timeline-skip-button:active,
.timeline-mobile-skip-button:active {
  outline: none;
}

.timeline-skip-button i {
  color: var(--White--Background-White, #FFF);
  text-align: center;
  font-family: "Font Awesome 6 Pro";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px; /* 100% */
  letter-spacing: -0.32px;
}

.timeline-skip-button span {
  color: var(--White--Background-White, #FFF);
  font-family: "Encode Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: -0.32px;
}

/* ============================= */
/* 🐦 PÁJAROS DECORATIVOS       */
/* ============================= */

/** nuevo */
.timeline-bird,
.timeline-skip-button {
  position: fixed; /* en lugar de sticky */
  opacity: 0; /* ocultos por defecto */
  transition: opacity 0.6s ease;
}

.timeline-bird{
  pointer-events: none;
}

.timeline-bird-tucan {
  width: 180px;
  top: 75vh;
  left: -2vw;
}

.timeline-bird-pajaro {
  width: 150px;
  top: 65vh;
  left: 9vw;
}

/* Cuando están visibles */
.timeline-active .timeline-bird,
.timeline-active .timeline-skip-button {
  opacity: 1;
}

/* ============================= */
/* MOBILE                        */
/* ============================= */
@media screen and (max-width: 768px) {
  .timeline-section-desktop {
    display: none;
  }
  .timeline-section-mobile {
    display: block;
    background-color: #1badd1; /* Celeste */
    padding: 50px 20px 0px 20px;
    position: relative;
    min-height: 100vh;
  }

  /* Contenedor principal sticky transparente para nubes */
  .timeline-mobile-clouds-wrapper {
    position: sticky;
    bottom: 0;
    left: 0;
    height: 220px;
    margin: 0 -20px; /* Compensa padding lateral */
    z-index: 100;
    overflow: hidden;
  }

  /* Div blanco de fondo debajo de nubes */
  .timeline-mobile-clouds-background {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: white;
    z-index: 1;
  }

  /* Imagen de nubes */
  .timeline-mobile-clouds {
    position: absolute;
    height: auto;
    bottom: -77px;
    transform: translateX(-50%);
    pointer-events: none;
    user-select: none;
    z-index: 2;
  }

  /* Wrapper principal de items */
  .timeline-mobile-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 2;
    padding-bottom: 50px;
  }

  .timeline-icon{
    width: 60px;
  }

  /* ============================= */
  /* 🧭 ITEM DE CADA AÑO           */
  /* ============================= */
  /* Contenedor de cada item */
  .timeline-mobile-item {
    display: flex;
    flex-direction: row;
    gap: 20px;
    position: relative;
    align-items: stretch; /* 👈 CLAVE - hace que ambos hijos tengan misma altura */
    min-height: auto;
  }

  /* Contenedor vertical para punto + línea */
  .timeline-mobile-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    /* 👇 Eliminamos height: 100% - ahora lo controla el padre con align-items: stretch */
  }

  /* Punto */
  .timeline-mobile-dot {
    flex-shrink: 0;
    display: block;
    margin-bottom: 10px;
  }

  /* Línea como DIV - AHORA MISMA ALTURA QUE EL CONTENIDO */
  .timeline-mobile-line {
    flex: 1; /* Ocupa todo el espacio disponible */
    width: 3px;
    background-color: #FFFFFF;
    /* 👇 Sin min-height - la altura la define el contenido del hermano */
  }


  /* Contenido a la derecha */
  .timeline-mobile-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 60px;
  }

  /* Año */
  .timeline-mobile-year {
    color: #fff;
    font-family: "Encode Sans", sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.96px;
    margin: 0 0 10px 10px;
  }

  /* Entrada con icono y texto */
  .timeline-mobile-entry {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .timeline-mobile-entry i {
    color: rgba(255, 255, 255, 0.41);
    font-family: "Font Awesome 6 Pro";
    font-size: 40px;
    font-weight: 400;
    line-height: 27px;
  }

  .entry-line {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  /* Títulos */
  .timeline-mobile-title-bold {
    color: #1B365D;
    font-family: "Encode Sans", sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.56px;
    margin: 0;
  }

  .timeline-mobile-title-normal {
    color: #1B365D;
    font-family: "Encode Sans", sans-serif;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.56px;
    margin: 0;
  }

  /* Texto descriptivo */
  .timeline-mobile-text {
    color: #1B365D;
    font-family: Lato, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    margin: 0;
  }

  /* ============================= */
  /* 🔘 BOTÓN FLOTANTE MOBILE      */
  /* ============================= */
  .timeline-mobile-skip-button {
    width: 280px;
    display: inline-flex;
    height: 50px;
    padding: 11px 20px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    border-radius: 30px;
    border: 2px solid var(--Brand-Colors-Turquoise-00, #00AEC7);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;

    /* Posicionamiento absoluto dentro del contenedor de nubes */
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 150; /* Por encima de las nubes */

    /* Efectos hover */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  /* Texto del botón */
  .timeline-mobile-skip-button span {
    color: var(--Brand-Colors-Turquoise-00, #00AEC7);
    text-align: center;
    font-family: Lato, sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px;
    leading-trim: both;
    text-edge: cap;
    font-feature-settings: 'liga' off, 'clig' off;
    transition: color 0.3s ease;
  }

  /* Icono del botón */
  .timeline-mobile-skip-button i {
    font-size: 18px;
    color: var(--Brand-Colors-Turquoise-00, #00AEC7);
  }

  /* ============================= */
  /* 🐦 PÁJAROS EN NUBE MOBILE     */
  /* ============================= */
  .timeline-mobile-bird {
    position: absolute;
    z-index: 120; /* Entre las nubes y el botón */
    pointer-events: none;
    user-select: none;
  }

  /* Tucán - lado izquierdo casi saliendo */
  .timeline-mobile-bird-tucan {
    width: 117px;
    bottom: 47px;
    left: -53px;
  }

  /* Pájaro pequeño - arriba del tucán */
  .timeline-mobile-bird-pajaro {
    width: 80px;
    bottom: 154px;
    left: -17px;
    transform: rotate(-16.227deg);

  }

  b, strong {
    font-weight: 900;
  }
}
