@import url('https://fonts.googleapis.com/css2?family=Saira+Condensed:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* ================================================================ */
/* GLOBAL */
/* ================================================================ */
* {
  font-family: 'Saira Condensed', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0a0f1a;
  color: #ffffff;
}

strong {
  color: goldenrod;
}

.Logo {
  width: 10%;
}

 /* Restaurar Font Awesome en los iconos */
    [class*="fa-"], .fa, .fas, .far, .fab, .fal, .fad,
    [class*="fa-"]::before, .fa::before, .fas::before,
    .far::before, .fab::before, .fal::before, .fad::before {
      font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", FontAwesome !important;
      font-weight: 900;
    }
    .fab, .fab::before {
      font-weight: 400;
    }

    body {
      background: #0a0f1a;
      color: #fff;
    }
/* ---------- ICONOS DEL FOOTER ---------- */
    ul.icons {
      list-style: none;
      padding-left: 0;
      margin: 0;
      display: flex;
      flex-wrap: wrap;
      gap: 0.85rem;
      align-items: center;
    }
    ul.icons li {
      padding: 0;
      display: inline-block;
    }
    ul.icons li a {
      color: rgba(255,255,255,0.35);
      font-size: 1.05rem;
      transition: color 0.25s ease, transform 0.25s ease;
      display: inline-block;
      text-decoration: none;
    }
    ul.icons li a:hover {
      color: #FFD700;
      transform: translateY(-2px);
    }
    ul.icons li .label {
      display: none;
    }

/* ================================================================ */
/* LIQUID GLASS */
/* ================================================================ */
.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.25) 0%,
      rgba(255, 255, 255, 0.07) 20%,
      rgba(255, 255, 255, 0) 40%,
      rgba(255, 255, 255, 0) 60%,
      rgba(255, 255, 255, 0.07) 80%,
      rgba(255, 255, 255, 0.25) 100%);
  -webkit-mask: linear-gradient(#3f3f40 0 0) content-box, linear-gradient(#3f3f40 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.liquid-glass.rounded-full::before {
  border-radius: 9999px;
}
.liquid-glass.rounded-xl::before {
  border-radius: 0.75rem;
}
.liquid-glass.rounded-2xl::before {
  border-radius: 1rem;
}
.liquid-glass.rounded-lg::before {
  border-radius: 0.5rem;
}
.liquid-glass.rounded-3xl::before {
  border-radius: 1.5rem;
}

/* ================================================================ */
/* RUTA - NUEVO DISEÑO MEJORADO */
/* ================================================================ */
.ruta-timeline-wrapper {
  position: relative;
  overflow: visible;
}

.ruta-timeline {
  position: relative;
  padding: 20px 0;
  overflow: visible;
}

/* Contenedor de la línea central (con límite inferior) */
.ruta-linea-central-container {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  transform: translateX(-50%);
  overflow: visible;
  z-index: 0;
}

/* Línea central con altura limitada */
.ruta-linea-central {
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom,
      rgba(255, 215, 0, 0.6) 0%,
      rgba(255, 215, 0, 0.8) 30%,
      rgba(255, 215, 0, 0.8) 70%,
      rgba(255, 215, 0, 0.6) 100%);
  border-radius: 2px;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.15);
  transition: height 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  top: 0;
  left: 0;
  transform-origin: top center;
}

/* Punto final de la línea (remate) */
.ruta-linea-central::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FFD700;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.ruta-linea-central.activa::after {
  opacity: 1;
}

/* ================================================================ */
/* CADA ITEM DE LA RUTA */
/* ================================================================ */
.ruta-item {
  position: relative;
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1;
}

.ruta-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Alternar lado */
.ruta-item:nth-child(odd) .ruta-item-contenido {
  flex-direction: row;
  padding-right: 50%;
}

.ruta-item:nth-child(even) .ruta-item-contenido {
  flex-direction: row-reverse;
  padding-left: 50%;
}

.ruta-item-contenido {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
}

/* ================================================================ */
/* IMAGEN DEL NODO - CON FILTER DROP-SHADOW (respeta bordes PNG) */
/* ================================================================ */
.ruta-item-imagen {
  width: 220px;
  height: 180px;
  min-width: 150px;
  min-height: 80px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  /* Eliminamos border-radius y overflow para que la imagen PNG mantenga su forma natural */
  border-radius: 0;
  overflow: visible;
  background: transparent;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ruta-item-imagen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  /* Filtro que respeta los bordes transparentes de la PNG */
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.4));
}

/* Efecto hover: zoom sutil y glow que respeta la forma de la PNG */
.ruta-item:hover .ruta-item-imagen {
  transform: scale(1.06);
}

.ruta-item:hover .ruta-item-imagen img {
  transform: scale(1.08);
  /* Glow que sigue la forma de la imagen PNG */
  filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.25)) drop-shadow(0 8px 30px rgba(0, 0, 0, 0.4));
}

/* ================================================================ */
/* VARIANTE CON BORDE DORADO QUE SIGUE LA FORMA DE LA PNG */
/* ================================================================ */
.ruta-item-imagen.borde-dorado img {
  filter: drop-shadow(0 0 0 3px rgba(255, 215, 0, 0.3)) drop-shadow(0 8px 30px rgba(0, 0, 0, 0.4));
}

.ruta-item:hover .ruta-item-imagen.borde-dorado img {
  filter: drop-shadow(0 0 0 4px rgba(255, 215, 0, 0.6)) drop-shadow(0 0 40px rgba(255, 215, 0, 0.2)) drop-shadow(0 8px 30px rgba(0, 0, 0, 0.4));
}

/* ================================================================ */
/* CONEXIÓN A LA LÍNEA CENTRAL */
/* ================================================================ */
.ruta-item-conexion {
  position: absolute;
  top: 50%;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.6));
  transform: translateY(-50%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s ease, width 0.6s ease;
}

.ruta-item:nth-child(odd) .ruta-item-conexion {
  right: calc(50% - 10px);
  transform: translateY(-50%) rotate(0deg);
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.6), rgba(255, 215, 0, 0.3));
}

.ruta-item:nth-child(even) .ruta-item-conexion {
  left: calc(50% - 10px);
  transform: translateY(-50%) rotate(180deg);
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.6), rgba(255, 215, 0, 0.3));
}

.ruta-item.visible .ruta-item-conexion {
  opacity: 1;
  width: 30px;
  margin: 0 10px;
}

/* ================================================================ */
/* TEXTO DEL NODO */
/* ================================================================ */
.ruta-item-texto {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  padding: 22px 28px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
  margin: 0 31px;
}

.ruta-item:hover .ruta-item-texto {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 215, 0, 0.12);
}

.ruta-item-paso {
  display: inline-block;
  margin-bottom: 4px;
}

.ruta-item-texto h3 {
  margin-bottom: 4px;
}

.ruta-item-texto p {
  margin-bottom: 8px;
}

/* ================================================================ */
/* NÚMERO FLOTANTE */
/* ================================================================ */
.ruta-item-numero {
  position: absolute;
  font-size: 100px;
  font-weight: 900;
  color: rgba(255, 215, 0, 0.09);
  pointer-events: none;
  z-index: 0;
  font-family: 'Saira Condensed', sans-serif;
  letter-spacing: -2px;
  top: 50%;
  transform: translateY(-50%);
}

.ruta-item:nth-child(odd) .ruta-item-numero {
  right: 15%;
}

.ruta-item:nth-child(even) .ruta-item-numero {
  left: 15%;
}

/* ================================================================ */
/* RESPONSIVE */
/* ================================================================ */
@media (max-width: 768px) {
  .ruta-linea-central-container {
    left: 24px;
  }

  .ruta-item {
    padding-left: 60px;
    margin-bottom: 40px;
  }

  .ruta-item:nth-child(odd) .ruta-item-contenido,
  .ruta-item:nth-child(even) .ruta-item-contenido {
    flex-direction: row;
    padding: 0;
  }

  .ruta-item-imagen {
    width: 90px;
    height: 90px;
    min-width: 80px;
    min-height: 80px;
    position: absolute;
    left: -32px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
  }

  .ruta-item:hover .ruta-item-imagen {
    transform: translateY(-50%) scale(1.05);
  }

  .ruta-item-texto {
    padding: 16px 20px;
    margin-left: 40px;
    width: 100%;
  }

  .ruta-item-texto h3 {
    font-size: 1.05rem;
  }

  .ruta-item-texto p {
    font-size: 0.85rem;
  }

  .ruta-item-numero {
    display: none;
  }

  .ruta-item-conexion {
    display: none;
  }
}

@media (max-width: 480px) {
  .ruta-linea-central-container {
    left: 18px;
  }

  .ruta-item {
    padding-left: 50px;
    margin-bottom: 32px;
  }

  .ruta-item-imagen {
    width: 70px;
    height: 70px;
    min-width: 60px;
    min-height: 60px;
    left: -26px;
  }

  .ruta-item-texto {
    padding: 12px 16px;
    margin-left: 30px;
  }

  .ruta-item-texto h3 {
    font-size: 0.9rem;
  }

  .ruta-item-texto p {
    font-size: 0.75rem;
  }
}

/* ================================================================ */
/* SCROLLBAR OCULTA */
/* ================================================================ */
::-webkit-scrollbar {
  display: none;
}
/* ================================================================ */
/* ICONS */
/* ================================================================ */

ul {
  list-style: disc;
  margin: 0 0 2em 0;
  padding-left: 1em; }
  ul li {
    padding-left: 0.5em; }

/* Icons */
ul.icons {
  cursor: default;
  list-style: none;
  padding-left: 0; }
  ul.icons li {
    display: inline-block;
    padding: 0 1em 0 0; }
    ul.icons li:last-child {
      padding-right: 0; }
    ul.icons li .icon:before {
      font-size: 1.25em; }
    ul.icons li a {
      color: inherit; }