/*==================LINEA ACTIVA==================*/

.active {
    /* Color del texto */
    color: #ed3237 !important; 

    /* 1. ELIMINAR el subrayado nativo que no permite el espaciado */
    text-decoration: none !important; 

    /* 2. CREAR el borde que actuará como la línea */
    /* Sintaxis: [grosor] [estilo] [color] */
    border-bottom: 2px solid #ed3237 !important; /* Ajusta el grosor si es necesario */

    /* 3. ¡AÑADIR ESPACIO! Usar padding para separar el texto del borde */
    padding-bottom: 5px !important; /* Aumenta este valor (e.g., 3px, 5px, 8px) para más espacio */

    /* 4. Asegurar que el elemento se comporta como un bloque en línea para aplicar el border/padding */
    display: inline-block !important; 
}
/*==================FIN LINEA ACTIVA==================*/


/*==================LINEA DE TIEMPO==================*/
.timeline {
  display: flex;
  flex-direction: column;
  margin: 20px auto;
  position: relative;
}
.timeline__event {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  margin: 20px 0;
  border-radius: 6px;
  align-self: center;
  width: 50vw;
}
.timeline__event:nth-child(2n+1) {
  flex-direction: row-reverse;
}
.timeline__event:nth-child(2n+1) .timeline__event__date {
  border-radius: 0 6px 6px 0;
}
.timeline__event:nth-child(2n+1) .timeline__event__content {
  border-radius: 6px 0 0 6px;
}
.timeline__event:nth-child(2n+1) .timeline__event__icon:before {
  content: "";
  width: 2px;
  height: 100%;
  background: #ed3237;
  position: absolute;
  top: 0%;
  left: 50%;
  right: auto;
  z-index: -1;
  transform: translateX(-50%);
  -webkit-animation: fillTop 2s forwards 4s ease-in-out;
          animation: fillTop 2s forwards 4s ease-in-out;
}
.timeline__event:nth-child(2n+1) .timeline__event__icon:after {
  content: "";
  width: 100%;
  height: 2px;
  background: #ed3237;
  position: absolute;
  right: 0;
  z-index: -1;
  top: 50%;
  left: auto;
  transform: translateY(-50%);
  -webkit-animation: fillLeft 2s forwards 4s ease-in-out;
          animation: fillLeft 2s forwards 4s ease-in-out;
}
.timeline__event__title {
  font-size: 1.2rem;
  line-height: 1.4;
  text-transform: uppercase;
  font-weight: 600;
  color: #ed3237;
  letter-spacing: 1.5px;
  
}
.timeline__event__content {
  padding: 20px;
  box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.25), 0 18px 36px -18px rgba(0, 0, 0, 0.3), 0 -12px 36px -8px rgba(0, 0, 0, 0.025);
  background: #fff;
  width: calc(40vw - 84px);
  border-radius: 0 6px 6px 0;
}
.timeline__event__date {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  background: #002e63;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0 20px;
  border-radius: 6px 0 0 6px;
}
.timeline__event__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 20px;
  align-self: center;
  margin: 0 20px;
  background: #ed3237;
  border-radius: 100%;
  width: 40px;
  box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.25), 0 18px 36px -18px rgba(0, 0, 0, 0.3), 0 -12px 36px -8px rgba(0, 0, 0, 0.025);
  padding: 40px;
  height: 40px;
  position: relative;
}
.timeline__event__icon i {
  font-size: 32px;
}
.timeline__event__icon:before {
  content: "";
  width: 2px;
  height: 100%;
  background: #ed3237;
  position: absolute;
  top: 0%;
  z-index: -1;
  left: 50%;
  transform: translateX(-50%);
  -webkit-animation: fillTop 2s forwards 4s ease-in-out;
          animation: fillTop 2s forwards 4s ease-in-out;
}
.timeline__event__icon:after {
  content: "";
  width: 100%;
  height: 2px;
  background: #ed3237;
  position: absolute;
  left: 0%;
  z-index: -1;
  top: 50%;
  transform: translateY(-50%);
  -webkit-animation: fillLeftOdd 2s forwards 4s ease-in-out;
          animation: fillLeftOdd 2s forwards 4s ease-in-out;
}
.timeline__event__description {
  flex-basis: 60%;
}
.timeline__event--type2:after {
  background: #ed3237;
}
.timeline__event--type2 .timeline__event__date {
  color: #fff;
  background: #002e63;
}
.timeline__event--type2:nth-child(2n+1) .timeline__event__icon:before, .timeline__event--type2:nth-child(2n+1) .timeline__event__icon:after {
  background: #ed3237;
}
.timeline__event--type2 .timeline__event__icon {
  background: #ed3237;
  color:#fff;
}
.timeline__event--type2 .timeline__event__icon:before, .timeline__event--type2 .timeline__event__icon:after {
  background: #ed3237;
}
.timeline__event--type2 .timeline__event__title {
  color: #ed3237;
}
.timeline__event--type3:after {
  background: #ed3237;
}
.timeline__event--type3 .timeline__event__date {
  color: #fff;
  background-color: #002e63;
}
.timeline__event--type3:nth-child(2n+1) .timeline__event__icon:before, .timeline__event--type3:nth-child(2n+1) .timeline__event__icon:after {
  background: #ed3237;
}
.timeline__event--type3 .timeline__event__icon {
  background: #ed3237;
  color: #fff;
}
.timeline__event--type3 .timeline__event__icon:before, .timeline__event--type3 .timeline__event__icon:after {
  background: #ed3237;
}
.timeline__event--type3 .timeline__event__title {
  color: #ed3237;
}
.timeline__event:last-child .timeline__event__icon:before {
  content: none;
}

@media (max-width: 786px) {
  .timeline__event {
    flex-direction: column;
    align-self: center;
  }
  .timeline__event__content {
    width: 100%;
  }
  .timeline__event__icon {
    border-radius: 6px 6px 0 0;
    width: 100%;
    margin: 0;
    box-shadow: none;
  }
  .timeline__event__icon:before, .timeline__event__icon:after {
    display: none;
  }
  .timeline__event__date {
    border-radius: 0;
    padding: 20px;
  }
  .timeline__event:nth-child(2n+1) {
    flex-direction: column;
    align-self: center;
  }
  .timeline__event:nth-child(2n+1) .timeline__event__date {
    border-radius: 0;
    padding: 20px;
  }
  .timeline__event:nth-child(2n+1) .timeline__event__icon {
    border-radius: 6px 6px 0 0;
    margin: 0;
  }
}
@-webkit-keyframes fillLeft {
  100% {
    right: 100%;
  }
}
@keyframes fillLeft {
  100% {
    right: 100%;
  }
}
@-webkit-keyframes fillTop {
  100% {
    top: 100%;
  }
}
@keyframes fillTop {
  100% {
    top: 100%;
  }
}
@-webkit-keyframes fillLeftOdd {
  100% {
    left: 100%;
  }
}
@keyframes fillLeftOdd {
  100% {
    left: 100%;
  }
}
/*==================FIN LINEA DE TIEMPO==================*/

/*==================MEDIAS IMAGENES==================*/

/* Ocultar todo por defecto (solo se ve el video) */
.img-mobile,
.img-tablet {
    display: none;
}

/* 📱 Mostrar solo en CELULAR */
@media (max-width: 767px) {
    .video-bg { display: none; }
    .img-mobile { display: block; width: 100%; height: auto; }
}

/* 📟 Mostrar solo en TABLET */
@media (min-width: 768px) and (max-width: 1024px) {
    .video-bg { display: none; }
    .img-tablet { display: block; width: 100%; height: auto; }
}

/*==================FIN MEDIAS IMAGENES==================*/




/*====================ANIMACION BOTON BORDER====================*/
/* --- Estilos Base del Enlace/Botón Contenedor (CORREGIDO POSICIONAMIENTO) --- */
.Button {
    padding: 0;
    display: block;
    backface-visibility: hidden;
    width: 200px;
    height: 80px;
    /* Alto fijo definido para el centrado */
    position: relative;
    /* CLAVE para el centrado del contenido y el SVG */
    color: #002e63;
    font-size: 18px;
    font-weight: 700;
}

.Button-svg {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
}

/* --- Estilos del Contenido y ANIMACIÓN DEL ICONO EN LOOP (CORREGIDO CENTRADO) --- */
.Button-content {
    /* ⭐️ CORRECCIÓN CLAVE: Posiciona y estira el contenido para cubrir el área del botón (80px) */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* Centrado usando Flexbox */
    display: flex;
    align-items: center;
    /* Centrado Vertical */
    justify-content: center;
    /* Centrado Horizontal */

    line-height: 1;
    overflow: hidden;
    /* Necesario para la animación del camión */
}

/* 1. Definir la animación para el movimiento continuo del icono */
@keyframes icon-loop {

    0%,
    10% {
        transform: translateX(0);
    }

    /* Visible */
    50%,
    80% {
        transform: translateX(-150px);
    }

    /* Fuera de vista */
    90%,
    100% {
        transform: translateX(0);
    }

    /* Regresa */
}

/* Aplicar la animación al icono */
.Button-content i {
    margin-right: 8px;
    animation: icon-loop 4s infinite ease-in;
}



/* --- Animaciones de Línea Exterior (outer) --- */
@keyframes outer-dashoffset {
    0% {
        stroke-dashoffset: 0;
        stroke-dasharray: 336px 336px;
    }

    50% {
        stroke-dasharray: 224px 448px;
    }

    100% {
        stroke-dashoffset: 672px;
        stroke-dasharray: 336px 336px;
    }
}

.Button-line--outer {
    stroke-dasharray: 336px 336px;
    stroke-dashoffset: 0;
    animation: outer-dashoffset infinite linear 6s;
}

/* --- Animaciones de Línea Interior (inner) --- */
@keyframes inner-dashoffset {
    0% {
        stroke-dashoffset: 0;
        stroke-dasharray: 336px 336px;
    }

    50% {
        stroke-dasharray: 224px 448px;
    }

    100% {
        stroke-dashoffset: -672px;
        stroke-dasharray: 336px 336px;
    }
}

.Button-line--inner {
    stroke-dashoffset: 0;
    stroke-dasharray: 336px 336px;
    animation: inner-dashoffset infinite 5s;
}

/*====================ANIMACION BOTON BORDER====================*/

.mobile-navigation-menu .mobile-buttons {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-navigation-menu .mobile-buttons .default-btn {
    display: block;
    text-align: center;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
}
