/* ====== HERO / LIENZO ====== */
.j-hero{
  position: relative;
  min-height: clamp(560px, 74vh, 920px);
  overflow: hidden;
  border-bottom: 1px solid var(--outline);
}

/* Malla + reloj detrás del texto */
#timeflow{
  position: absolute;
  inset: 0;
  z-index: 1;               /* detrás del copy */
  pointer-events: none;     /* no interfiere */
}

/* Canvas a full */
#timeCanvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Copy del hero por encima de la malla */
.j-hero > .wrap{
  position: relative;
  z-index: 2;               /* delante */
  padding-top: clamp(48px, 10vh, 120px);
  padding-bottom: clamp(24px, 6vh, 80px);
}

/* Reserva hueco a la derecha (solo desktop) para no tapar el reloj */
@media (min-width: 980px){
  .j-hero > .wrap{
    padding-right: clamp(280px, 34vw, 560px);
    max-width: 1000px;
  }
}

/* Pretítulo y lead */
.pretitle{ letter-spacing:.08em; text-transform:uppercase; font-weight:800; }
.j-hero .lead{
  font-size: clamp(18px, 2.05vw, 22px);
  line-height: 1.65;
  color: #d9e8ff;
}

/* En móviles el reloj es pequeño → el texto usa todo el ancho */
@media (max-width: 979px){
  .j-hero > .wrap{ padding-right: 0; max-width: 720px; }
  .j-hero .lead{ font-size: 16px; }
}

/* ====== MINI TIMELINE (sticky) ====== */
/* ====== MINI TIMELINE (sticky) ====== */
.mini-track-wrap{
  position: sticky;
  bottom: 0;
  z-index: 5;
  background: linear-gradient(180deg, rgba(2,24,61,0), rgba(2,24,61,.78) 25%, rgba(2,24,61,.94) 70%);
  backdrop-filter: blur(4px);
  border-top: 1px solid #ffffff22;
}

.mini-track{
  display: grid;
  grid-auto-flow: column;
  gap: 10px;
  align-items: center;
  padding: 12px 20px 10px;

  /* Scroll horizontal, pero SIN mostrar el scrollbar */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* inercia en iOS */
  overscroll-behavior-x: contain;

  /* Ocultar barra en todos los motores */
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE/Edge antiguo */
}
.mini-track::-webkit-scrollbar{ width:0; height:0; }  /* Chrome/Safari */
.mini-track::-webkit-scrollbar-thumb{ background:transparent; }
.mini-track::-webkit-scrollbar-track{ background:transparent; }

/* Chips */
.mini-dot{
  position: relative;
  color: #cfe2ff;
  opacity: .18;
  white-space: nowrap;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed #ffffff22;
  text-decoration: none;
  transition: opacity .22s ease, transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}
.mini-dot.is-active{
  opacity: 1;
  color: #ffffff;
  background: #0f1a3b;
  border-style: solid;
  border-color: #ffffff55;
  box-shadow: 0 8px 28px #00000050, 0 0 34px rgba(249,146,28,.32);
  transform: translateY(-2px);
}

/* Línea de progreso */
.mini-progress{
  position: relative;
  z-index: 6;
  height: 3px;
  background: linear-gradient(90deg, #F21651, #F9921C);
  width: 0%;
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(242,22,81,.35);
  margin: 4px 20px 12px;
  transition: none;            /* 👈 sin transición = sin retraso */
  will-change: width;          /* hint para que vaya suave */
}
.mini-progress.no-transition{ transition: none; }}
.mini-track{
  display: grid;
  grid-auto-flow: column;
  gap: 10px;
  align-items: center;
  padding: 12px 20px 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.mini-dot{
  position: relative;
  color: #cfe2ff;
  opacity: .18;
  white-space: nowrap;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed #ffffff22;
  text-decoration: none;
  transition: opacity .12s ease, transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.mini-dot.is-active{
  opacity: 1;
  color: #ffffff;
  background: #0f1a3b;
  border-style: solid;
  border-color: #ffffff55;
  box-shadow: 0 8px 28px #00000050, 0 0 34px rgba(249,146,28,.32);
  transform: translateY(-2px);
}
.mini-progress{
  height: 3px;
  background: linear-gradient(90deg, #F21651, #F9921C);
  width: 0%;
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(242,22,81,.35);
  margin: 4px 20px 12px;
  transition: width .25s linear;
}
.mini-progress.no-transition{ transition: none; }

/* ====== Secciones ====== */
.section{ padding:64px 0; }
.center{text-align:center;}
.cta-row{ display:flex; gap:12px; margin-top:16px; justify-content:flex-start; }
@media (max-width:720px){
  .cta-row{ justify-content:center; flex-wrap:wrap; }
}

/* Cards y listas (se apoyan en tu CSS global) */
.check{ margin:10px 0 0; padding-left:18px }
.check li{ margin:6px 0 }
.statbox{
  display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:14px;
  background:#0f1a3b; border:1px solid var(--outline); border-radius:12px; padding:10px;
}
.statbox div{ text-align:center }
.statbox strong{ font-size:22px; display:block }
.statbox span{ font-size:12px; color: var(--muted) }


/* --- Quitar por completo la línea de progreso y cualquier "barra gris" --- */
.mini-progress{ display:none !important; }

/* Ocultar la barra de desplazamiento horizontal del contenedor de hitos */
.mini-track{ -ms-overflow-style:none; scrollbar-width:none; }
.mini-track::-webkit-scrollbar{ height:0; background:transparent; }




















/* ===== Mobile: texto arriba + reloj abajo ===== */
@media (max-width: 980px){
  /* El hero necesita un poco más de altura porque el reloj baja */
  .j-hero{
    min-height: 720px; /* ajusta si lo ves justo */
  }

  /* El texto ya no necesita columna fantasma a la derecha,
     y le dejamos aire abajo para que quepa el reloj */
  .j-hero .wrap{
    padding-right: 0 !important;
    padding-bottom: 22vh; /* reserva espacio para el reloj */
  }
}

@media (max-width: 680px){
  .j-hero{
    min-height: 760px; /* un poco más en pantallas muy pequeñas */
  }
  .j-hero .wrap{
    padding-top: 64px;     /* baja un pelín el bloque de texto */
    padding-bottom: 26vh;  /* más espacio para el reloj */
  }
}