body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fcfcfc;
    margin: 0;
    overflow: hidden; /* Evita scrolls extraños fuera del SVG */
}
/*MAPA TIEMPOS - PANTALLA PRINCIPAL*/
#viz {
    /*width: 100vw;*/
    /*height: 100vh;*/
    position: relative; /* Importante para posicionar elementos dentro */
    display: block;
    /*background-color: #ea8a26; !* Para verificar que el div existe *!*/
}
#viz-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#viz-cabecera {
    height: 220px;
    flex: 0 0 auto;
    overflow: hidden;
    border-bottom: 1px solid #ccc;
}

#viz-cuerpo {
    flex: 1 1 auto;
    min-height: 200px;
    max-height: 4000px;
    height: calc(100vh - 160px);
    overflow: hidden;
}
.viz-zoom-info {
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
    pointer-events: none; /* Para que no interfiera con los clics en el mapa */
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* --- ETIQUETAS DE LA ESCALA GEOCRONOLÓGICA --- */
/* Nivel 1: Era (Cenozoico, Mesozoico...) */
.label-era {
    font-size: 22px;
    font-weight: 900;
    fill: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 6px;
    paint-order: stroke;
    stroke: #ffffff;
    stroke-width: 4px;
    stroke-linejoin: round;
}
/* Nivel 2: Periodo (Neógeno, Cretácico...) */
.label-periodo {
    font-size: 16px;
    font-weight: 700;
    fill: #444;
    text-transform: uppercase;
    letter-spacing: 2px;
    paint-order: stroke;
    stroke: #ffffff;
    stroke-width: 3px;
}
/* Nivel 3: Época (Mioceno, Plioceno...) */
.label-epoca {
    font-size: 13px;
    font-weight: 600;
    fill: #666;
    font-style: italic;
    paint-order: stroke;
    stroke: #ffffff;
    stroke-width: 2px;
}
/* Nivel 4: Edad (Vertical: Langhiense, Tortoniense...) */
.label-edad {
    font-size: 10px;
    font-weight: 500;
    fill: #888;
    pointer-events: none; /* Evita que el texto interfiera con el zoom */
}
/* --- ELEMENTOS DEL ÁRBOL --- */
/* Líneas de conexión (Links) */
.link {
    fill: none;
    stroke: #ccc;
    stroke-width: 1.5px;
    transition: stroke 0.3s;
    pointer-events: none; /* Esto hace que el ratón "atraviese" las líneas y llegue al texto */
}
.link:hover {
    stroke: #999;
}
.grid-age {
    stroke: #ddd;
    stroke-width: 1;
    stroke-dasharray: 3,3;
    pointer-events: none;
}

/* Etiquetas de los taxones */
.node-label {
    font-size: 11px;
    fill: #333;
    pointer-events: none;
    text-shadow: 0px 0px 3px rgba(255,255,255,0.8);
}
/* --- EJES Y HERRAMIENTAS --- */
.axis-line path,
.axis-line line {
    stroke: #ddd;
}
.axis-line text {
    font-size: 11px;
    fill: #999;
}
/* Tooltip (Caja de datos) */
#tooltip {
    position: absolute;
    padding: 10px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    font-size: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 1000;
}
.node rect {
    stroke: #b5b6c0;
    stroke-width: 1px;
    cursor: pointer;
}
.node rect:hover {
    stroke: #808189;
    stroke-width: 2px;
}
.node text {
    font-size: 10px;
    pointer-events: none; /* El texto no interfiere con el hover del nodo */
    paint-order: stroke;
    stroke: #ffffff;
    stroke-width: 1px;
    stroke-linecap: butt;
    stroke-linejoin: miter;
    font-weight: 600;
}
.extinct-rect {
    fill: #e74c3c;
    fill-opacity: 0.9;
    stroke: #c0392b;
    stroke-width: 0.5px;
    cursor: pointer;
    transition: fill-opacity 0.2s;
}
.extant-rect {
    fill: #2ecc71;
    fill-opacity: 0.9;
    stroke: #27ae60;
    stroke-width: 0.5px;
    cursor: pointer;
}
.extinct-rect:hover, .extant-rect:hover {
    fill-opacity: 1;
    stroke-width: 1px;
}
/* Estilo para el nodo seleccionado en el árbol */
.node-selected {
    stroke: #471a7d !important;
        /*stroke: #2980b9;*/
    stroke-width: 6px !important;
    /*filter: drop-shadow(0 0 8px #ffde59);*/
    filter: drop-shadow(0 0 5px rgba(241, 196, 15, 0.8));
    /*transition: all 0.3s ease;*/
    /*paint-order: stroke;*/
}
.node-selected text {
    font-weight: bold;
    fill: #2980b9;
}
.expand-label {
    fill: #444;
    transition: fill 0.2s;
    /* Esto hace que el área de clic sea un bloque, no solo los trazos del dibujo */
    pointer-events: all;
    user-select: none;
    -webkit-user-select: none;
}

.expand-label:hover {
    fill: #ff0000; /* Se pondrá rojo al pasar por encima para confirmar que puedes clicar */
}
/*.expand-label {*/
/*    stroke: #fff;*/
/*    stroke-width: 0.5px;*/
/*    cursor: pointer;*/
/*}*/
/* ============================= */
/* PANEL DE TEXTO INFORMATIVO*/
/* ============================= */
.taxon-title-header {
    color: #2c3e50;
    font-weight: bold;
    /*text-transform: uppercase;*/
    /*letter-spacing: 1px;*/
    font-size: 12px;
}
/* Mejora para el botón que asoma cuando hay un taxón cargado */
.info-panel:not(.collapsed) .toggle-btn {
    background: #27ae60; /* Cambia a verde cuando está abierto */
}
.info-panel {
    position: fixed;
    bottom: 330px; /* 300px altura mapa + 20px margen + 10px separación */
    right: 10px;
    width: 450px; /* Misma anchura que el mapa */
    height: 450px;
    background: white;
    border: 2px solid #ccc;
    border-radius: 8px;
    z-index: 1100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /*transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);*/
    display: flex;
    flex-direction: row; /* Para que el botón de 'asomar' esté al lado del contenido */
}
/* Estado colapsado: se desplaza a la derecha casi por completo */
.info-panel.collapsed {
    transform: translateX(100%); /* Deja 40px asomando para el botón */
}
/* El botón que "asoma" */
.toggle-info-panel {
    position: absolute;
    left: -25px; /* Lo sacamos totalmente a la izquierda del panel */
    top: 0;
    width: 25px;
    height: 100%;
    background: #b0d0f4; /* Color naranja (Family en tu rankMapping) */
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px 0 0 6px;
    /*border-radius: 50%; !* Solo redondeado a la izquierda *!*/
    box-shadow: -4px 0 10px rgba(0,0,0,0.1);
    font-size: 15px;




    /*border: none;*/
    /*border-right: 8px solid #444;*/

    writing-mode: vertical-rl;
    text-orientation: mixed;
    /*padding: 10px 0;*/
    /*font-weight: bold;*/

}
.toggle-info-panel:hover {
    background: #d35400; /* Un tono más oscuro al pasar el ratón */
}
.info-panel-inner {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%; /* Obligatorio para que el hijo sepa cuánto medir */
    overflow: hidden; /* Evita que el panel entero crezca */
}
#info-panel-header {
    padding: 5px 10px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}
#info-panel-content {
    flex: 1; /* Ocupa todo el espacio restante bajo la cabecera */
    /* MÁRGENES Y RELLENO */
    padding: 25px 15px; /* 25px arriba/abajo, 15px laterales */
    /*padding: 10px;*/
    overflow-y: auto;
    font-size: 12px;
    line-height: 1.4;
    color: #333;
    background-color: #fff;
    word-wrap: break-word; /* Evita que palabras largas ensanchen la caja */
}
#close-info-panel {
    background: none; border: none; font-size: 18px; cursor: pointer;
}
/* ============================= */
/*PANEL DERECHO DE DATOS FICHA*/
/* ============================= */
/* Paneles colapsables */
.info-sidebar {
    position: fixed;
    right: 10px;
    top: 60px;
    width: 450px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1100;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /*overflow: hidden;*/
}
/* Estado colapsado: ahora el panel se esconde pero el botón queda fuera */
.info-sidebar.collapsed {
    transform: translateX(100%);
}
/* boton de colapsar*/
.panel-toggle {
    position: absolute;
    left: -25px; /* Lo sacamos totalmente a la izquierda del panel */
    top: 0;
    width: 25px;
    height: 100%;
    background: #b0d0f4; /* Color naranja (Family en tu rankMapping) */
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px 0 0 6px;
    /*border-radius: 50%; !* Solo redondeado a la izquierda *!*/
    box-shadow: -4px 0 10px rgba(0,0,0,0.1);
    font-size: 15px;
    /*font-weight: bold;*/
}
.panel-toggle:hover {
    background: #d35400; /* Un tono más oscuro al pasar el ratón */
}
.placeholder {
    font-size: 12px;
    margin-left: 15px;
}
/* una vex seleccionado un taxon */
.panel-header {
    padding: 5px;
    color: white;
    background: #808189;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;             /* Los pone en la misma línea */
    justify-content: flex-start; /* Los pega a la izquierda */
    align-items: baseline;     /* Alinea las bases del texto (perfecto para alturas distintas) */
    gap: 10px;                 /* Espacio entre el span y el h2 */
}
.status-icon .status-text {
    font-size: 11px;
}
.iucn-tag {
    font-size: 12px;
    padding: 2px;
    border: 1px solid #ffffff; /* Grosor, estilo (sólido) y color */
    border-radius: 4px;
    display: inline-block; /* Para que respete el padding y bordes */
}
.iucn-tag:empty {
    display: none;
}
.rank-tag {
  display: inline-flex;
  align-items: center;
  /*justify-content: center;*/

  min-width: 15px;
  height: 15px;

  font-size: 14px;
  font-weight: 700;
  border: 1px solid #ffffff;
  border-radius: 4px;
  padding: 2px;

  color: white;
  letter-spacing: 0.5px;
}
.rank-tag.mini {
  min-width: 12px;
  height: 12px;
  font-size: 11px;
  border-radius: 3px;
  padding: 2px;
}
.class-name {
    font-size: 12px;
}
.panel-header h2 {
    margin: 0 0 0 0;
    font-size: 14px;
}
.panel-section {
    padding: 0 0 5px 10px;
}
.panel-section h2 {
    font-size: 12px;
}
.panel-clasif {
    padding: 0 0 5px 10px;
    /*white-space: nowrap*/
}
.status-row {
    font-size: 8px;
    margin-bottom: 5px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}
.status-row:empty {
    display: none;
}
.data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}
.data-item {
    background: #f8f9fa;
    padding: 8px;
    border-radius: 6px;
}
.data-item label {
    display: grid;             /* Los pone en la misma línea */
    /*display: block;*/

    color: #6c757d;
    text-transform: uppercase;
}
.classification-inline {
  text-align: left;
  font-size: 11px;
  line-height: 1.3;
  opacity: 0.95;
}
.class-row {
    margin-left: 10px;
}
.data-full {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 4px;
    align-items: center;
    font-size: 11px;}
.data-full label {
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    text-align: left;
    opacity: 0.8;
}
.data-full span {
    text-align: left;
    font-size: 13px;}
.data-item span {
    font-weight: bold;
    color: #2d3436;
}
.data-source {
    font-size: 10px;
    margin-right: 5px;
    text-align: right;
}
.panel-footer {
    padding: 10px 15px;
    background: #f1f2f6;
    font-size: 11px;
    color: #747d8c;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border-top: 1px solid #eee;
}
.living-hint {
    color: #27ae60;
    font-weight: bold;
}
/* ============================= */
/* PANEL FLOTANTE IZQUIERDO */
/* ============================= */
#taxon-nav {
    position: fixed;
    top: 60px;          /* debajo de la barra superior */
    /*bottom: 10px;      !* hasta casi abajo de la ventana *!*/
    left: 10px;
    min-width: 260px;
    /*max-width: 600px;      !* límite razonable *!*/
    max-width: none;      /* elimina límite artificial */
    width: auto;          /* permite crecer */
  /*width: 300px;*/
  /*  display: flex;*/
  /*  flex-direction: column;*/
    background: #f9f9f9;
    border: 1px solid #acacbb;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1200;
}
.tree-sidebar {
  position: fixed;
  top: 40px;
  left: 10px;
  width: 320px;
  /*height: calc(100vh - 40px);*/
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 1100; /* > map-container (1000) */
  /*display: flex;*/
  /*flex-direction: column;*/
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /*transition: transform 0.5s ease;*/
}
/* Colapsado (fuera de pantalla a la izquierda) */
.tree-sidebar.collapsed {
  transform: translateX(-100%);
}
/* boton de colapsar*/
.taxon-nav-toggle {
    position: absolute;
    top: 0;
    right: -25px;
    width: 25px;
    height: 25px;
    /*z-index: 1400;*/
    background: #d7f5c5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 50%;
    /*cursor: pointer;*/
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  /*display: none;*/
}
.taxon-nav-toggle:hover{
    background: #d35400; /* Un tono más oscuro al pasar el ratón */
}
/* Contenido interno */
#taxon-tree-container {
    flex-direction: column; /* Organiza los elementos (títulos, nodos) en vertical */
    /* 1. Define un límite de altura */
    min-height: 100px;
    height: auto;
    /* o también: */
    max-height: 60vh;        /* 80% del alto de la ventana del navegador */
    flex: 1;                 /* ocupa todo el alto restante */
    overflow-y: auto;       /* scroll vertical solo aquí */
    overflow-x: visible;    /* de momento sin scroll horizontal */
    white-space: nowrap;   /* evita saltos de línea */
    /* Estilo visual */
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
}
#taxon-nav .panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
/* Cabecera */
#taxon-nav .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  font-weight: bold;
  /*background: #808189;*/
  /*border-bottom: 1px solid #ddd;*/
    background: #bedd7f;
  border-bottom: 1px solid #acacbb;
  border-radius: 8px;
}
/* === PORTLET CLÁSICO PARA PANEL IZQUIERDO === */
#taxon-nav .portlet {
  border: none;
  margin-bottom: 1em;
  padding: 0;
  font-size: 94%;
  font-family: Arial, sans-serif;
}
#taxon-nav .portlet h5 {
  border: 1px solid #acacbb;
  text-transform: lowercase;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  background: #bedd7f;
  display: block;
  color: #436976;
  height: 1.5em;
  border-bottom-width: 0;
  padding: 0.3em 0.5em 0 1em;
  margin: 0;
}
#taxon-nav .portletBody {
  position: relative;
  top: -1px;
  background: transparent;
  border: 1px solid #acacbb;
}
#taxon-nav .portletContent {
  padding: 0.4em;
}
/* Acción de colapsar */
#taxon-nav .portletAction {
  float: right;
  width: auto;
  text-align: center;
  display: block;
  text-transform: none;
  border-left: 1px solid #acacbb;
  padding-left: 0.3em;
}
#taxon-nav .portletAction button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
}

/* Buscador */
.taxon-panel-search {
  margin-bottom: 6px;
  font-size: 11px;
}
.taxon-panel-search input {
  font-size: 11px;
  padding: 2px 4px;
}
/* Árbol */
.taxon-tree-root > ul {
    margin-left: 0;
    padding-left: 0;
}
.taxon-tree {
    font-family: Arial, sans-serif;
    font-size: 12px;
    background: #f4f9d8;
        padding: 0;
    /*padding: 4px 2px 4px 2px;*/
    white-space: nowrap;
  /*max-height: 55vh;*/
  /*overflow-y: auto;*/
  /*padding: 4px;*/
}
.taxon-tree > ul {
    list-style: none;
    margin: 0;
    padding-left: 0;   /* indent base reducido */
    position: relative;
}
.taxon-tree > ul > .taxon-node {
    margin-left: 0;
    padding-left: 0;
}
/* El nodo raíz NO debe tener rama horizontal */
.taxon-tree > ul > .taxon-node::before,
.taxon-tree > ul > .taxon-node > .node-content::before {
  display: none;
}
/* Línea vertical heredada */
.taxon-children {
    position: relative;
    margin-left: 10px;
    padding-left: 6px;
}
/* Fila del nodo */
.node-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    line-height: 18px;
    position: relative;
    padding-left: 4px;
}
/* Línea horizontal tipo rama */
.node-content::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 50%;
    width: 10px;
    border-top: 1px dotted #777;

  /*display: inline-block;*/
  /*!*width: 6px;*!*/
  /*height: 0;*/
  /*border-top: 1px dotted #777;*/
  /*margin-right: 2px;*/
}
/* Icono + / − en cajita */
.toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 12px;
      height: 12px;
      margin-right: 6px;          /* separación respecto al texto */
      border: 1px solid #666;
      background: #eee;
      box-sizing: border-box;
      cursor: pointer;
      font-family: monospace;
      font-size: 10px;
      line-height: 10px;

    /*display: inline-block;*/
    /*width: 11px;*/
    /*height: 11px;*/
    /*margin-right: 4px;*/
    /*border: 1px solid #666;*/
    /*background: #eee;*/
    /*padding: 1px;*/
    /*box-sizing: border-box;*/
    /*text-align: center;*/
    /*cursor: pointer;*/
    /*font-family: monospace;*/
}
/* Texto */
.taxon-node {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
/* 3. LA LÍNEA VERTICAL CONTINUA
   Se dibuja en cada nodo, pero se detiene si es el último hermano */
.taxon-node::before {
    content: "";
    position: absolute;
    left: -6px; /* Alineación con el eje del padre */
    top: -2px;
    width: 1px;
    height: 100%;
    border-left: 1px dotted #777;
}
/* 4. Si es el último hijo de su lista, la línea no debe seguir hacia abajo */
.taxon-node:last-child::before {
    height: 12px; /* Altura hasta llegar a la "L" del nodo actual */
}
.taxon-node .label {
    /*color: #000;*/
    cursor: pointer;
    font-size: 12px;
    padding: 1px 2px;
}
.taxon-node .label:hover {
  background: #e0e8b0;
}
.taxon-node .rank {
  font-style: italic;
  font-size: 11px;
  margin-left: 4px;
  font-weight: 600;}
.taxon-extinct {
  color: #e74c3c;
  font-weight: 600;
  /*-webkit-text-stroke: 2px black; !* Grosor y color del borde *!*/
}
.taxon-extant {
  color: #196436;
  font-weight: 600;
  /*-webkit-text-stroke: 0.5px #1b743b; !* Grosor y color del borde *!*/
}
.rank {
  font-style: italic;
  font-size: 11px;
  margin-left: 4px;
  font-weight: 600;
}
.btn-mini-tree {
  width: 12px;
  height: 12px;
  font-size: 8px;
  line-height: 9px;
  padding: 0;
  margin-left: 4px;
  /*border-radius: 3px;*/
  border: 1px solid #888;
  background: #f0f0f0;
  cursor: pointer;
}
.btn-mini-tree:hover {
  background: #ddd;
}
/* ============================= */
/* MAPA DISTRIBUCION */
/* ============================= */
#map-container {
    position: fixed;
    bottom: 20px;
    right: 10px;
    width: 450px;
    height: 300px;
    background: white;
    border: 2px solid #ccc;
    border-radius: 8px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
#map { height: calc(100% - 30px); width: 100%; }

#map-header {
    padding: 5px 10px;
    background: #f8f9fa;
    font-weight: bold;
    font-size: 12px;
    border-bottom: 1px solid #ddd;
}
.map-zoom-info {
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
    pointer-events: none; /* Para que no interfiera con los clics en el mapa */
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* 5. Los marcadores (fósiles) siempre deben estar arriba (Leaflet usa 600+) */
.leaflet-marker-pane {
    z-index: 600 !important;
}
.leaflet-pane.leaflet-overlay-pane svg {
    /*z-index: 999 !important;*/
    visibility: visible !important;
}
path.leaflet-interactive {
    stroke-linejoin: round;
}
/* Asegura que los vectores de Leaflet no sean tapados por otros SVGs */
.leaflet-overlay-pane svg {
    pointer-events: auto !important;
}
.mdd-country-layer {
    filter: drop-shadow(0px 0px 2px rgba(0,0,0,0.5));
    pointer-events: visiblePainted;
}
/* Asegura que el pane de los países permita ver el mapa base debajo
   pero esté por encima de las teselas */
.leaflet-countriesPane-pane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 400 !important;
}
/* 3. Asegura que los vectores (caminos) dentro de esos panes sean visibles */
.leaflet-countriesPane-pane svg,
.leaflet-iucnPane-pane svg {
    display: block ;
    visibility: visible ;
    z-index: auto ;
    pointer-events: none;
}
/* 4. Estilo específico para IUCN (Naranja) */
.iucn-dist-layer {
    filter: drop-shadow(0px 0px 3px rgba(211, 84, 0, 0.5));
}
/* Estilo opcional para que los polígonos tengan un aspecto más suave */
.leaflet-interactive {
    transition: fill-opacity 0.2s, stroke-width 0.2s;
}
/* Subtítulo con taxón raíz */
#taxon-root-name {
  font-style: italic;
  font-size: 12px;
  color: #555;
  margin-bottom: 6px;
}/* Mostrar solo cuando el panel está colapsado */
/*#taxon-nav.collapsed + .open-taxon-nav {*/
/*  display: block;*/
/*}*/
/* ============================= */
/* BARRA SUPERIOR                */
/* ============================= */
#top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: #1e1e1e;
  color: white;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
  z-index: 2000;
}
#top-bar .logo {
  font-weight: bold;
}
#taxon-input {
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  width: 260px;
}
#load-taxon-btn {
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}
/* ============================= */
/* BUSCADOR DE TAXONES EN EL ARBOL DE TIEMPOS/TAXONES*/
/* ============================= */
#search-container{
    position: fixed;
    top: 60px;
    left: 300px;
    z-index: 1000;
}
#taxon-search {
    font-size: 12px;
    font-weight: bold;
    top: 70px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    width: 220px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.search-group {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: center;
}
#taxon-input {
  width: 220px;
  padding: 6px 8px;
}
#source-select {
  padding: 6px;
}
.suggestions {
  position: absolute;
  top: 38px;
  left: 0;
  width: 420px;
  max-height: 250px;
  overflow-y: auto;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  z-index: 2000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  color: #000;
}
.suggestions.hidden {
  display: none;
}
.suggestion-item {
  padding: 6px 10px;
  cursor: pointer;
  font-size: 13px;
  color: #000  ;
}
.suggestion-item:hover {
  background: #f0f0f0;
  color: #000;
}
.suggestion-rank {
  color: #555;
  font-style: italic;
  margin-left: 6px;
}
.levels-label {
  font-size: 12px;
  color: #ffffff;
  margin-left: 6px;
}
.levels-input {
  width: 55px;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 13px;
  text-align: center;
}
