/* ============================================
   VARIABLES GLOBALES
   ============================================ */

:root {
  /* COLOR DE SISTEMA (Oficial) */
  --sistema-color: #0094b8;
  --sistema-h: 192;
  --sistema-s: 100%;
  --sistema-l: 36%;

  /* ARTE: Un rosa vibrante pero con cuerpo*/
  --arte-h: 345;
  --arte-s: 85%;
  --arte-l: 60%;

  /* DISEÑO: Morado  */
  --disenio-h: 267;
  --disenio-s: 54%;
  --disenio-l: 66%;

  /* DESARROLLO: Azul técnico*/
  --desarrollo-h: 210;
  --desarrollo-s: 70%;
  --desarrollo-l: 55%;

  /* DATOS: Slate/Índigo*/
  --datos-h: 230;
  --datos-s: 45%;
  --datos-l: 45%;

  /* EDUCACIÓN: Naranja vibrante */
  --educacion-h: 30;
  --educacion-s: 100%;
  --educacion-l: 60%;

  /* CURSOS: Gris Cálido / Papel (Siena desaturado) */
  --cursos-h: 30;
  --cursos-s: 15%;
  --cursos-l: 50%;

  /* PROYECTOS: Turquesa (Puente entre sistema y desarrollo) */
  --proyectos-h: 185;
  --proyectos-s: 65%;
  --proyectos-l: 45%;

  --arte-bg-solid: hsl(345, 85%, 93%);
  --disenio-bg-solid: hsl(267, 54%, 94%);
  --desarrollo-bg-solid: hsl(210, 70%, 92%);
  --datos-bg-solid: hsl(230, 45%, 90%);
  --educacion-bg-solid: hsl(30, 100%, 93%);
  --cursos-bg-solid: hsl(30, 15%, 91%);
  --proyectos-bg-solid: hsl(185, 65%, 90%);
}

/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */
/* ============================================
   LAYOUT DASHBOARD (SIDEBAR + CONTENIDO)
   ============================================ */

.contenido {
  width: 100%;
  max-width: none;
  padding: 0 0 0 240px;
  box-sizing: border-box;
}

.mvl {
  display: none;
}

.menu_linea {
  position: fixed;
  font-size: 0.8em;
  left: 0;
  top: 0;
  width: 240px;
  height: 100vh;
  background: #fff;
  padding: 40px 25px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
  z-index: 10;
  border-right: 1px solid #eee;
  display: flex;
  flex-direction: column;
  overflow-y: auto; /* Permite scroll si hay muchas categorías */
}

#site-footer.contenido {
  padding: 20px 0 0;
}

.arriba_sup {
  right: 40px;
}

/* ============================================
   ELEMENTOS DE IDENTIDAD EN EL SIDEBAR
   ============================================ */

.menu_linea_contenedor {
  margin: 0 0 10px;
  font-size: 0.9em;
}

.menu_linea .enlace_idioma {
  display: block;
  top: 0;
  right: 10px;
  padding: 0;
  color: #888;
  position: absolute;
}

.menu_linea .enlace_idioma a {
  position: static;
  display: inline-block;
  margin-left: 5px;
}

.menu_linea .titulos {
  font-size: 1.3em;
  margin: 0 0 5px 0;
  line-height: 1.1;
  text-align: left;
}

.menu_linea .linea_titulo {
  color: #666;
  margin: 0 0 20px 0;
  font-weight: 400;
  text-align: left;
}

.menu_linea_titulo {
  margin-bottom: 15px;
}

.btn_reiniciar {
  display: none;
  align-items: center;
  gap: 5px;
  background: none;
  width: 105px;
  border: 1px solid var(--sistema-color);
  color: var(--sistema-color);
  padding: 7px 12px;
  margin: 0 0 20px;
  border-radius: 34px;
  font-size: 11px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn_reiniciar:hover {
  background: var(--sistema-color);
  color: white;
}

.btn_reiniciar svg {
  display: inline-block;
  vertical-align: top;
}

.menu_linea p {
  /* font-size: 0.9em; */
  margin-bottom: 15px;
}

.menu_linea .enlaces_cv strong {
  display: block;
  margin-bottom: 5px;
  color: #444;
}
/* ============================================
 FILTROS CIRCULARES
   ============================================ */

.menu_linea_opcion {
  display: block;
  position: relative;
  padding-left: 1.8em;
  margin-bottom: 12px;
  cursor: pointer;
  line-height: 1.2em;
  user-select: none;
  color: #444;
  transition: color 0.2s ease;
  text-transform: lowercase;
}

.menu_linea_opcion::first-letter {
  text-transform: uppercase;
}

.menu_linea_opcion:hover {
  color: #000;
}

/* Escondemos el input real */
.menu_linea_opcion input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* El círculo de color sólido (sin punto blanco) */
.menu_linea_check {
  position: absolute;
  top: 1px;
  left: 0;
  height: 1.1em;
  width: 1.1em;
  background-color: #ccc;
  border-radius: 50%;
  transition:
    background-color 0.2s ease,
    transform 0.1s ease;
}

/* Color activo para categorías */
.menu_linea_opcion input:checked ~ .menu_linea_check {
  background-color: var(--sistema-color);
}

/* --- Colores dinámicos para los filtros --- */

.menu_linea_check {
  background-color: #ccc; /* Color por defecto (desactivado) */
  transition: all 0.3s ease;
}

/* Cuando el checkbox está marcado, usamos las variables del :root */
.menu_linea_opcion input:checked ~ .color-arte {
  background-color: hsl(var(--arte-h), var(--arte-s), var(--arte-l));
}
.menu_linea_opcion input:checked ~ .color-disenio {
  background-color: hsl(var(--disenio-h), var(--disenio-s), var(--disenio-l));
}
.menu_linea_opcion input:checked ~ .color-desarrollo {
  background-color: hsl(var(--desarrollo-h), var(--desarrollo-s), var(--desarrollo-l));
}
.menu_linea_opcion input:checked ~ .color-datos {
  background-color: hsl(var(--datos-h), var(--datos-s), var(--datos-l));
}
.menu_linea_opcion input:checked ~ .color-educacion {
  background-color: hsl(var(--educacion-h), var(--educacion-s), var(--educacion-l));
}
.menu_linea_opcion input:checked ~ .color-cursos {
  background-color: hsl(var(--cursos-h), var(--cursos-s), var(--cursos-l));
}
.menu_linea_opcion input:checked ~ .color-proyectos {
  background-color: hsl(var(--proyectos-h), var(--proyectos-s), var(--proyectos-l));
}

/* Un pequeño efecto de escala al marcar */
.menu_linea_opcion input:checked ~ .menu_linea_check {
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/* #############################
---------switch
############################# */

.switch-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0px 0 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.switch-label {
  font-size: 13px;
  color: #666;
  font-weight: bold;
}

/* El contenedor del switch */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* El fondo del switch (Cuerpo) */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e9e9ea; /* Gris Apple */
  transition: 0.4s;
  border-radius: 34px;
}

/* El círculo blanco (Botón) */
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Color verde cuando está ON */
input:checked + .slider {
  background-color: var(--sistema-color);
}

/* Movimiento del botón */
input:checked + .slider:before {
  transform: translateX(18px);
}

/* ============================================
   WRAPPER DE TIMELINE (BLOQUE)
   ============================================ */

.linea_wrapper {
  position: relative;
}

/* Sombras laterales */

.sombra {
  width: 5%;
  height: 100%;
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
}

.sombra--left {
  left: 0;
  background: linear-gradient(90deg, rgba(108, 101, 101, 0.23472668810289388) 0%, rgba(255, 255, 255, 0) 50%);
  opacity: 0;
}

.sombra--right {
  right: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 50%, rgba(108, 101, 101, 0.23472668810289388) 100%);
}

/* Contenedor scrolleable */

.linea_contenido {
  padding: 0;
  overflow-x: scroll;
  overflow-y: hidden;
  white-space: nowrap;
  transition: opacity 250ms;
  will-change: scroll-position;
  user-select: none;
  cursor: grab;
  cursor: -webkit-grab;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-behavior: auto !important;
  position: relative;
}

.linea_contenido:active {
  cursor: grabbing;
  cursor: -webkit-grabbing;
}

.linea_contenido.no-snap {
  scroll-snap-type: none !important;
}

.linea_contenido::-webkit-scrollbar {
  display: none;
}

.menu_act .linea_contenido .cat_wrap:nth-child(1) {
  display: block;
}

/* ============================================
   TIMELINE - GRID PRINCIPAL (BLOQUE)
   ============================================ */

.timeline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 48px;
  grid-template-rows: repeat(auto-fill, min-content);
  height: max-content;
  transition: grid-template-rows 0.3s ease;
}

.timeline.is-resumen ~ .linea_contenido {
  scroll-behavior: smooth;
}

/* Columnas de años */

.anio {
  display: grid;
  grid-template-rows: subgrid;
  text-align: center;
  border-right: 1px dashed rgba(119, 119, 119, 0.4);
}

.anio:nth-child(10n + 10) {
  border-right: 1px solid rgba(119, 119, 119, 0.4);
}

/* ============================================
   CELDAS DEL TIMELINE (BLOQUE)
   ============================================ */

.cat_wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 6px 0;
}

/* Barras de frecuencia (modo detalle) */

.cat_wrap:not(.stacked)::before {
  content: "";
  width: 100%;
  height: calc(var(--count, 0) * 6px);
  background: currentColor;
  opacity: 0.6;
  display: block;
}

.cat_wrap:hover::before {
  opacity: 1;
}

.cat_wrap.detalle {
  min-height: 40px;
  display: flex;
  align-items: center;
}

/* Contenedor apilado (modo resumen) */

.cat_wrap.stacked {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  height: 100%;
  gap: 40px;
  opacity: 0;
  animation: magnetismo 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes magnetismo {
  from {
    gap: 40px;
    opacity: 0;
  }
  to {
    gap: 0;
    opacity: 1;
  }
}

/* Segmentos dentro del stack */

.segmento {
  width: 100%;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.segmento:not(:last-child) {
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
}

.segmento:hover {
  opacity: 1;
  filter: brightness(1.1);
}

/* ============================================
   FILAS ESPECIALES - Crono y Edades
   ============================================ */

.crono,
.edades {
  height: 24px;
  border-bottom: 1px solid #777;
  padding: 0;
  font-size: 13px;
}

.edades {
  background: #fff9e0;
  color: #ffcc00;
}

.crono.bottom,
.edades.bottom {
  border-bottom: none; /* Quitar borde inferior */
  border-top: 1px solid #777; /* Agregar borde superior */
}
/* Ocultar ::before en filas especiales */

.crono::before,
.edades::before,
.labels_column .cat_wrap::before,
[class*="_hitos"]::before,
.cat_wrap.stacked::before {
  display: none !important;
  content: none !important;
}

/* ============================================
   HITOS (BLOQUE)
   ============================================ */

.hito_wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
  color: inherit;
}

.hito_punto {
  width: 18px;
  height: 18px;
  background-color: currentColor;
  border-radius: 50%;
  z-index: 2;
  flex-shrink: 0;
}

.hito_etiqueta {
  position: absolute;
  left: calc(50% + 12px);
  font-size: 13px;
  white-space: nowrap;
  color: #444;
  pointer-events: none;
  z-index: 1;
}

.hito-etiqueta svg {
  max-height: 1em;
  width: auto;
}

a.hito_etiqueta,
a:link.hito_etiqueta,
a:visited.hito_etiqueta {
  color: #444;
}

.hito_etiqueta.hito_interactivo {
  text-decoration: none;
  border-bottom: 1px dotted rgba(0, 0, 0, 0.2); /* Sutil indicación de link */
  transition: color 0.2s ease;
  pointer-events: auto !important;
  cursor: pointer;
}

/* ============================================
   SISTEMA DE LABELS FIXED - Agregar a linea.css
   ============================================ */

/* Contenedor de todos los labels */
.labels_container {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

.labels_container .label_principal {
  position: absolute;
  right: 15px;
  transform: translateY(-95%);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 1 !important;
  pointer-events: auto;
  background-color: hsl(var(--h), var(--s), var(--l), 0.18);
  color: hsl(var(--h), var(--s), calc(var(--l) - 25%));
  padding: 4px 8px;
  backdrop-filter: blur(2px);
  white-space: nowrap;
  text-shadow: none;
}

.label_principal:hover {
  opacity: 1;
}

/* LABELS SECUNDARIOS (Diseño gráfico, Exposiciones individuales, etc.) */
.labels_container .label_secundario {
  position: absolute;
  left: 15px;
  transform: translateY(-105%);
  font-size: 10px;
  font-weight: 600;
  color: #666;
  background-color: var(--bg-dominio-solid);
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
  z-index: 10;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.label_secundario:hover {
  opacity: 1;
}

/* Colores por dominio para labels */
.label_principal.arte,
.label_secundario.arte {
  color: hsl(var(--arte-h), var(--arte-s), calc(var(--arte-l) - 20%));
}

.label_principal.disenio,
.label_secundario.disenio {
  color: hsl(var(--disenio-h), var(--disenio-s), calc(var(--disenio-l) - 20%));
}

.label_principal.desarrollo,
.label_secundario.desarrollo {
  color: hsl(var(--desarrollo-h), var(--desarrollo-s), calc(var(--desarrollo-l) - 20%));
}

.label_principal.datos,
.label_secundario.datos {
  color: hsl(var(--datos-h), var(--datos-s), calc(var(--datos-l) - 20%));
}

.label_principal.educacion,
.label_secundario.educacion {
  color: hsl(var(--educacion-h), var(--educacion-s), calc(var(--educacion-l) - 20%));
}

.label_principal.cursos,
.label_secundario.cursos {
  color: hsl(var(--cursos-h), var(--cursos-s), calc(var(--cursos-l) - 20%));
}

.label_principal.proyectos,
.label_secundario.proyectos {
  color: hsl(var(--proyectos-h), var(--proyectos-s), calc(var(--proyectos-l) - 20%));
}

/* Mapeo de fondos sólidos para labels secundarios */
.label_secundario.arte {
  --bg-dominio-solid: var(--arte-bg-solid);
}
.label_secundario.disenio {
  --bg-dominio-solid: var(--disenio-bg-solid);
}
.label_secundario.desarrollo {
  --bg-dominio-solid: var(--desarrollo-bg-solid);
}
.label_secundario.datos {
  --bg-dominio-solid: var(--datos-bg-solid);
}
.label_secundario.educacion {
  --bg-dominio-solid: var(--educacion-bg-solid);
}
.label_secundario.cursos {
  --bg-dominio-solid: var(--cursos-bg-solid);
}
.label_secundario.proyectos {
  --bg-dominio-solid: var(--proyectos-bg-solid);
}

/* Responsive - Mobile */
@media only screen and (max-device-width: 480px) {
  .label_principal {
    font-size: 10px;
    right: 10px;
  }

  .label_secundario {
    font-size: 9px;
    left: 10px;
  }
}

/* Label del dominio en última fila (gris oscuro) */
.label_dominio_principal {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  color: #555;
  letter-spacing: 0.5px;
  position: absolute;
  right: 15px;
  opacity: 0.7;
}

/* ============================================
   SISTEMA DE COLORES POR DOMINIO (HSL)
   ============================================ */

/* Inyección de variables HSL por dominio */

.cat_wrap.arte,
.arte {
  --h: var(--arte-h);
  --s: var(--arte-s);
  --l: var(--arte-l);
}

.cat_wrap.disenio,
.disenio {
  --h: var(--disenio-h);
  --s: var(--disenio-s);
  --l: var(--disenio-l);
}

.cat_wrap.desarrollo,
.desarrollo {
  --h: var(--desarrollo-h);
  --s: var(--desarrollo-s);
  --l: var(--desarrollo-l);
}

.cat_wrap.datos,
.datos {
  --h: var(--datos-h);
  --s: var(--datos-s);
  --l: var(--datos-l);
}

.cat_wrap.educacion,
.educacion {
  --h: var(--educacion-h);
  --s: var(--educacion-s);
  --l: var(--educacion-l);
}

.cat_wrap.cursos,
.cursos {
  --h: var(--cursos-h);
  --s: var(--cursos-s);
  --l: var(--cursos-l);
}

.cat_wrap.proyectos,
.proyectos {
  --h: var(--proyectos-h);
  --s: var(--proyectos-s);
  --l: var(--proyectos-l);
}

/* Color identitario (texto) */

.arte,
.disenio,
.desarrollo,
.datos,
.educacion,
.cursos,
.proyectos {
  color: hsl(var(--h), var(--s), var(--l));
}

/* Fondo suave por dominio */

.cat_wrap.arte,
.cat_wrap.disenio,
.cat_wrap.desarrollo,
.cat_wrap.datos,
.cat_wrap.educacion,
.cat_wrap.cursos,
.cat_wrap.proyectos {
  background-color: hsl(var(--h), var(--s), var(--l), 0.18);
}

/* Variaciones automáticas de color (modo stacked y detalle) */

.cat_wrap.stacked .segmento,
.detalle::before {
  background-color: hsl(var(--h), var(--s), calc(var(--l) + 15% - (var(--i, 0) * 12%)));
}

.detalle {
  color: hsl(var(--h), var(--s), calc(var(--l) - (var(--i, 0) * 10%)));
}

/* ============================================
   UTILIDADES (GLOBAL)
   ============================================ */

.esconder {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ============================================
   SOLO HITOS
   ============================================ */

.linea_wrapper.solo_hitos .cat_wrap:not([class*="_hitos_"]):not(.crono):not(.edades),
.linea_wrapper.solo_hitos .cursos,
.linea_wrapper.solo_hitos .labels_container .label_secundario {
  display: none !important;
}

.boton_flotante_hitos {
  position: fixed;
  bottom: 30px;
  left: 25px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--sistema-color); /* Tu color oficial */
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 9999; /* Por encima de todo */
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.boton_flotante_hitos svg {
  width: 24px;
  height: 24px;
}

.boton_flotante_hitos:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.boton_flotante_hitos.activo {
  background-color: #ccc;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ============================================
   CORRECIONES Y CAMBIOS
   ============================================ */

.segmento,
.hito_punto,
.cat_wrap:not(.stacked)::before {
  cursor: pointer;
}

[data-anio="2022"] .proyectos_hitos_1 .hito_etiqueta,
.proyectos_hitos_2 .hito_etiqueta {
  left: auto;
  right: calc(50% + 12px);
  text-align: right;
}

/* 1 NIVEL -2: extra claro (i=0) */
.proyectos_hitos_1 .hito_punto {
  background-color: hsl(var(--h), var(--s), calc(var(--l) + 20%));
}

/* 2 NIVEL -1: claro (i=0) */

:is([data-anio="2002"], [data-anio="2009"]) .arte_hitos_1 .hito_punto,
.disenio_hitos_1 .hito_punto,
.proyectos_hitos_2 .hito_punto {
  background-color: hsl(var(--h), var(--s), calc(var(--l) + 15%));
}

/* 3 NIVEL 0: original (i=1) */
:is([data-anio="1996"], [data-anio="2014"]) .arte_hitos_1 .hito_punto,
.disenio_hitos_2 .hito_punto,
.desarrollo_hitos_1 .hito_punto,
.educacion_hitos_1 .hito_punto,
.proyectos_hitos_3 .hito_punto {
  background-color: hsl(var(--h), var(--s), calc(var(--l)));
}

/* 4 NIVEL 1: El punto medio (i=2) */
.disenio_hitos_3 .hito_punto,
.desarrollo_hitos_2 .hito_punto,
.educacion_hitos_2 .hito_punto,
.proyectos_hitos_4 .hito_punto {
  background-color: hsl(var(--h), var(--s), calc(var(--l) - 10%));
}

/* 5 NIVEL 2: (i=3) */
.arte_hitos_2 .hito_punto,
.proyectos_hitos_5 .hito_punto {
  background-color: hsl(var(--h), var(--s), calc(var(--l) - 21%));
}

/* 6 NIVEL 3: El más oscuro (i=4) */
.arte_hitos_3 .hito_punto,
.educacion_hitos_3 .hito_punto,
.proyectos_hitos_6 .hito_punto {
  background-color: hsl(var(--h), var(--s), calc(var(--l) - 33%));
}

/* 7 NIVEL 3: El más oscuro (i=4) */
/* .proyectos_hitos_5 .hito_punto {
  background-color: hsl(var(--h), var(--s), calc(var(--l) - 45%));
} */

/* ============================================
   RESPONSIVE - Mobile
   ============================================ */

@media only screen and (max-device-width: 480px) {
  .contenido {
    width: 100%;
    padding: 48px 0 0 0;
  }

  .linea_titulo,
  .menu_linea_titulo,
  .arriba_sup,
  .enlaces_cv,
  .menu_linea .titulos,
  .toggle_mvl_filtros .txt-cerrar {
    display: none;
  }

  .mvl {
    display: block;
  }

  .mvl_titulo {
    position: fixed;
    padding: 10px 10px 15px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #fff;
    border-bottom: 1px solid #777;
    z-index: 5;
  }

  /* --- BOTÓN CONTENEDOR --- */

  .toggle_mvl_filtros {
    position: fixed;
    bottom: 24px;
    right: 20px;
    padding: 10px;
    background: #fff;
    border: 1px solid #ccc;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition:
      bottom 0.5s ease-in-out,
      background 0.3s;
  }

  .toggle_mvl_filtros.is-active {
    border: none;
    box-shadow: none;
    bottom: 52dvh;
  }

  .toggle_mvl_filtros .abrir_cerrar {
    width: 24px;
    height: 24px;
    display: block;
  }
  .toggle_mvl_filtros .abrir_cerrar .line {
    transition:
      transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
      opacity 0.4s ease;
    transform-origin: 50% 50%;
  }

  /* ESTADOS ACTIVOS */
  .toggle_mvl_filtros.is-active .line-middle {
    opacity: 0;
    transform: scaleX(0);
  }
  .toggle_mvl_filtros.is-active .line-top {
    transform: translateY(15px) rotate(45deg);
  }
  .toggle_mvl_filtros.is-active .line-bottom {
    transform: translateY(-15px) rotate(-45deg);
  }

  .menu_linea {
    height: 0;
    padding: 0;
    max-height: 0;
    visibility: hidden;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
  }

  .menu_linea.activo {
    width: 100%;
    height: 60dvh;
    position: fixed;
    display: flex;
    top: auto;
    bottom: 0;
    z-index: 10;
    padding: 20px 25px;
    max-height: 60dvh;
    visibility: visible;
    overflow: scroll;
  }

  .menu_linea p {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .menu_linea .enlace_idioma {
    bottom: 47dvh;
    right: 15px;
    font-size: 13px;
    top: auto;
  }

  .menu_linea_opcion {
    font-size: 15px; /* Texto más grande para dedos en móvil */
    margin-bottom: 15px;
    padding-left: 2.5em;
  }

  .menu_linea_check {
    height: 1.4em;
    width: 1.4em;
  }

  .switch-container {
    padding: 0;
    margin-top: 12px;
    border: none;
  }

  #site-footer.contenido {
    padding: 0;
    border: none;
  }
  #site-footer.contenido p,
  #site-footer.contenido div,
  #site-footer.contenido span {
    display: inline-flex;
    padding: 0;
    font-size: 12px;
    line-height: 12px;
    margin: 0px;
  }

  .boton_flotante_hitos {
    bottom: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    z-index: 9;
  }
}

/* Estilos para el tooltip en móvil */
@media (pointer: coarse) {
  .hito_interactivo[title]:active::after {
    content: attr(title);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1000;
  }
}

/* ============================================
   ----------------------------------FIN MOBILE
   ============================================ */
