/* =====================================================================
   /linea-de-tiempo — escenario de noche a pantalla completa con el mapa
   en un lienzo, el año grande, los nombres que van apareciendo y los
   controles abajo.
   ===================================================================== */
.lt {
  --lt-tinta: #f4f1f8; --lt-suave: #b9b0c8; --lt-oro: #ffd59a;
  position: relative; overflow: hidden; color: var(--lt-tinta);
  height: calc(100vh - var(--alto-cabecera, 74px)); height: calc(100dvh - var(--alto-cabecera, 74px));
  min-height: 34rem; max-height: 62rem;
  background:
    radial-gradient(60rem 40rem at 70% 40%, rgba(84, 46, 140, .38), transparent 70%),
    radial-gradient(40rem 30rem at 10% 100%, rgba(242, 165, 65, .08), transparent 70%),
    #0d0b1d;
}
.lt-lienzo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: manipulation; }
.lt-velo { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(8, 6, 18, .55) 100%); }

/* Columna izquierda: título, filtros, año y nombres. El mapa ocupa el resto. */
.lt-columna { position: absolute; z-index: 2; left: clamp(1rem, 4vw, 3rem); top: clamp(1rem, 3vw, 2rem); bottom: 8.5rem; width: min(26rem, 30vw); display: flex; flex-direction: column; gap: 1.25rem; pointer-events: none; }
.lt-columna > *, .lt-cabeza > * { pointer-events: auto; }
.lt-cabeza { max-width: 30rem; }
.lt-antetitulo { margin: 0 0 .5rem; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lt-oro); }
.lt-antetitulo a { color: var(--lt-oro); text-decoration: none; }
.lt-antetitulo a:hover { text-decoration: underline; }
.lt-cabeza h1 { margin: 0; color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.04; letter-spacing: -.03em; }
.lt-cabeza h1 em { font-style: italic; color: var(--lt-oro); }
.lt-texto { margin: .6rem 0 0; color: var(--lt-suave); font-size: 1rem; line-height: 1.5; max-width: 26rem; }
.lt-filtros { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem; margin-top: 1rem; }
.lt-filtros > div { margin: 0; flex: 1 1 9rem; max-width: 12rem; }
.lt-filtros .form-label { font-size: .78rem; color: var(--lt-suave); margin-bottom: .25rem; }
.lt-filtros .form-select { background-color: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #fff; font-size: .9rem; min-height: 40px; padding-block: .35rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23cfc6dd' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.lt-filtros .form-select option { color: #211a2c; }
.lt-btn-claro { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); color: #fff; border-radius: 999px; min-height: 40px; padding-inline: 1.1rem; font-weight: 650; }
.lt-btn-claro:hover, .lt-btn-claro:focus-visible { background: rgba(255, 255, 255, .22); color: #fff; }
.lt-quitar { color: var(--lt-suave); font-size: .88rem; align-self: center; }
.lt-vacio { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .75rem; text-align: center; color: var(--lt-suave); }

/* Año grande y contador */
.lt-reloj { pointer-events: none !important; }
.lt-anio { display: block; font-family: var(--mr-serif); font-weight: 600; font-size: clamp(3.2rem, 9vw, 7.5rem); line-height: .9; letter-spacing: -.04em; color: rgba(255, 255, 255, .92); text-shadow: 0 0 40px rgba(196, 150, 255, .35); font-variant-numeric: tabular-nums; }
.lt-cuenta { display: block; margin-top: .4rem; color: var(--lt-suave); font-size: 1rem; }
.lt-cuenta strong { color: var(--lt-oro); font-size: 1.35rem; font-variant-numeric: tabular-nums; }

/* Nombres que van apareciendo */
.lt-nombres { flex: 1; min-height: 0; overflow: hidden; margin: 0; padding: 0; list-style: none; pointer-events: none !important;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.lt-nombres li { display: grid; padding: .35rem 0 .35rem .8rem; border-left: 2px solid currentColor; margin-bottom: .35rem; animation: lt-entra .6s ease-out both; text-align: left; }
.lt-nombres .lt-n { color: #fff; font-weight: 600; font-size: .95rem; line-height: 1.25; }
.lt-nombres .lt-f { color: var(--lt-suave); font-size: .78rem; }
.lt-nombres li.t-legal { color: rgb(196, 150, 255); }
.lt-nombres li.t-agresion { color: rgb(79, 209, 161); }
.lt-nombres li.t-desaparecido { color: rgb(242, 165, 65); }
.lt-nombres li.t-obituario { color: rgb(124, 192, 255); }
.lt-nombres li.t-otro { color: rgb(201, 194, 214); }
@keyframes lt-entra { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* Leyenda */
.lt-leyenda { position: absolute; z-index: 1; right: clamp(1rem, 4vw, 3rem); bottom: 6.5rem; margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem 1rem; font-size: .82rem; color: var(--lt-suave); max-width: 46rem; }
.lt-leyenda li { display: inline-flex; align-items: center; gap: .4rem; }
.lt-leyenda strong { color: #fff; font-variant-numeric: tabular-nums; }
.lt-punto { width: .7rem; height: .7rem; border-radius: 50%; display: inline-block; box-shadow: 0 0 8px currentColor; }
.lt-punto.legal { background: rgb(196, 150, 255); color: rgb(196, 150, 255); }
.lt-punto.agresion { background: rgb(79, 209, 161); color: rgb(79, 209, 161); }
.lt-punto.desaparecido { background: rgb(242, 165, 65); color: rgb(242, 165, 65); }
.lt-punto.obituario { background: rgb(124, 192, 255); color: rgb(124, 192, 255); }
.lt-punto.otro { background: rgb(201, 194, 214); color: rgb(201, 194, 214); }
.lt-punto.zona { background: transparent; border: 1.5px solid var(--lt-suave); box-shadow: none; }

/* Recuadro del caso */
.lt-tip { position: absolute; z-index: 4; display: grid; gap: .15rem; max-width: 16rem; padding: .65rem .85rem; border-radius: 12px; background: rgba(21, 18, 43, .94); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7); font-size: .88rem; }
.lt-tip strong { color: #fff; }
.lt-tip span { color: var(--lt-suave); font-size: .8rem; }
.lt-tip a { color: var(--lt-oro); font-weight: 650; margin-top: .25rem; }

/* Controles */
.lt-control { position: absolute; z-index: 3; left: clamp(1rem, 4vw, 3rem); right: clamp(1rem, 4vw, 3rem); bottom: clamp(1rem, 2.5vw, 1.75rem); display: flex; align-items: center; gap: 1rem; padding: .7rem .9rem; border-radius: 999px; background: rgba(21, 18, 43, .72); border: 1px solid rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lt-play { flex: none; width: 3rem; height: 3rem; border-radius: 50%; border: 0; background: var(--mr-cempa); color: #2b1a05; font-size: 1.05rem; display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(242, 165, 65, .5); transition: transform .15s ease; }
.lt-play:hover { transform: scale(1.06); }
.lt-play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.lt.jugando .lt-play { animation: lt-latido 2.4s ease-out infinite; }
@keyframes lt-latido { 0% { box-shadow: 0 0 0 0 rgba(242, 165, 65, .45); } 70%, 100% { box-shadow: 0 0 0 14px rgba(242, 165, 65, 0); } }
.lt-pista { position: relative; flex: 1; min-width: 0; height: 3rem; }
.lt-barras { position: absolute; left: 0; right: 0; top: .2rem; height: 1.75rem; display: flex; align-items: flex-end; gap: 1px; pointer-events: none; }
.lt-barras span { flex: 1; height: var(--h); min-height: 2px; border-radius: 2px 2px 0 0; background: rgba(255, 255, 255, .16); transition: background .3s ease; }
.lt-barras span.pasada { background: rgba(255, 213, 154, .75); }
.lt-rango { position: absolute; left: 0; right: 0; top: 1.55rem; width: 100%; margin: 0; height: .9rem; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.lt-rango::-webkit-slider-runnable-track { height: 2px; background: rgba(255, 255, 255, .25); }
.lt-rango::-moz-range-track { height: 2px; background: rgba(255, 255, 255, .25); }
.lt-rango::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -6px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 10px rgba(255, 213, 154, .8); }
.lt-rango::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
.lt-rango:focus-visible { outline: 2px solid var(--lt-oro); outline-offset: 4px; }
.lt-extremos { position: absolute; left: 0; right: 0; bottom: -.15rem; display: flex; justify-content: space-between; font-size: .7rem; color: var(--lt-suave); pointer-events: none; }
.lt-velocidad { flex: none; display: flex; gap: .2rem; }
.lt-velocidad button { border: 1px solid transparent; background: transparent; color: var(--lt-suave); border-radius: 999px; padding: .3rem .6rem; font-size: .82rem; font-weight: 650; }
.lt-velocidad button[aria-pressed="true"] { background: rgba(255, 255, 255, .14); color: #fff; }
.lt-velocidad button:focus-visible { outline: 2px solid var(--lt-oro); }

/* Texto debajo */
.lt-info .lt-tabla summary { cursor: pointer; font-weight: 600; color: var(--mr-morado); }
.lt-info .lt-tabla .table-responsive { max-height: 22rem; overflow-y: auto; }

@media (max-width: 767.98px) {
  .lt { height: auto; min-height: 0; max-height: none; display: flex; flex-direction: column; }
  .lt-columna { position: relative; left: auto; top: auto; bottom: auto; width: auto; padding: 1.25rem 1rem 0; gap: .75rem; display: contents; }
  .lt-cabeza { order: 1; padding: 1.25rem 1rem 0; }
  .lt-cabeza .lt-texto { font-size: .95rem; }
  .lt-filtros > div { flex: 1 1 0; min-width: 0; }
  .lt-filtros .btn { padding-inline: .9rem; }
  .lt-quitar { flex-basis: 100%; }
  .lt-reloj { order: 2; display: flex; align-items: baseline; gap: .75rem; padding: .5rem 1rem 0; }
  .lt-anio { font-size: 3rem; }
  .lt-lienzo { position: relative; inset: auto; order: 3; height: 66vw; min-height: 15rem; }
  .lt-velo { display: none; }
  .lt-nombres { order: 4; flex: none; height: 7.25rem; padding: 0 1rem; }
  .lt-leyenda { position: relative; order: 5; right: auto; bottom: auto; justify-content: flex-start; padding: .25rem 1rem .75rem; }
  .lt-control { position: relative; order: 6; left: auto; right: auto; bottom: auto; margin: 0 .75rem 1rem; gap: .6rem; padding: .55rem .7rem; }
  .lt-play { width: 2.6rem; height: 2.6rem; }
  .lt-velocidad button { padding: .25rem .45rem; }
  .lt-tip { max-width: 13rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lt-nombres li { animation: none; }
  .lt.jugando .lt-play { animation: none; }
}
