/*******************************/
/** INICIO - Welcome - INICIO **/
/*******************************/

/* Offset anchors for fixed navbar */
[id^="op-"],
#apl-section,
#ff-section,
#homeAnalysis {
  scroll-margin-top: 5rem;
}

html.welcome, .welcome body {
    background-color: #155764ea!important;
    color: #ffffff;
    font-family: 'Nunito', sans-serif;
    font-weight: 200;
    min-height: 100vh;
    height: 100%;
    margin: 0px;
    overscroll-behavior: none;
}

main {
  
  display: flex;
  flex-direction: column; 
}

.welcome .full-height {
    height: 100vh;
}

.welcome .flex-center {
    align-items: center;
    display: flex;
    justify-content: center;
}

.welcome .position-ref {
    position: relative;
}

.welcome .top-right {
    position: absolute;
    right: 10px;
    top: 10px;
}

.welcome .content {
    text-align: center;
}

.welcome .title {
    font-size: 84px;
}

.welcome .links > a {
    color: #636b6f;
    padding: 0 25px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .1rem;

    text-transform: uppercase;
}

.welcome .m-b-md {
    margin-bottom: 5px;
}

/*************************/
/** FIN - Welcome - FIN **/
/*************************/

body{
    /*background: linear-gradient(to bottom, rgba(92, 77, 66, 1.0) 0%, rgba(92, 77, 66, 0.8) 100%), url(/storage/image/bg_03.jpg);*/
  background: linear-gradient(165deg, #0f4d59 0%, #1b6a73 52%, #3f8f8f 100%);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    margin: 0px;
    padding: 0px;
    font-family: 'Nunito', sans-serif;
    font-weight: 200;
    height: 100vh;
    color: white;
    overscroll-behavior: none;
}

/* Colores alternos tabla vertical*/
/*
td:nth-child(even) {
  background-color: cornflowerblue!important;
}*/

.selector-inicio {
    width: 10%;
    display: inline;
}

.table td, .table th {
    border-top: 0;
  /*  table-layout: fixed;
    width: 100%;*/

        vertical-align: middle!important;

}

.tableComp table, .tableComp td, .tableComp th{
border: 1px solid black;
padding:7px!important;
text-align: center;
}

.mostrar_ocultar_filtros {
    cursor: pointer;
}

.pendiente {
    color: #FFF;
    background-color: red;
    padding: 5px 10px;
    font-weight: bold;
    margin: 10px 0;
}

#formulario-busqueda-avanzada input {
    margin-bottom: 0 !important;
}

.opciones-busqueda-avanzada {
    display: flex;
    align-items: center;
}
#tabla-busqueda-avanzada{

  font-size: 9pt;
}
#accordion{
  font-size: 9pt;
}
#tabla-busqueda-avanzada th {
    white-space: nowrap;
    text-align: center;
    border-bottom-width: thin;
    border-bottom-color: #aaaaaa;


}
.VerticaDivision {
  border-right-width: thin;
  border-right-color: #aaaaaa;
  vertical-align: middle!important;
}

#tabla-busqueda-avanzada td {
    white-space: nowrap;
    text-align: center;
}

.filtro-busqueda-avanzada .form-group {
    margin-bottom: 0 !important;
}

.filtro-busqueda-avanzada{

  border-radius: 8px;
    border-style: solid;
    border-width: 1px;
    padding: 11px;
    border-color: white;

}

i.fas {
    cursor: pointer;
}

.chartStatCenter{
  margin: 0px auto;
}

.ordeparameterlipid{
    border-radius: 15px;
    mix-blend-mode: multiply;

}
.chart-container {
  position: relative;
  margin: auto;
  width: 80vw;
  height: 70vh;

}
.chart-container canvas {
  max-height: 90% !important;
}
.chart-container-half {
  position: relative;
  margin: auto;
  width: 80vw;
  height: 50vh;

}

/* Labels inside dark chart containers — always white */
.chart-label {
  color: #fff !important;
}

#accordion .title{
  font-size: 12pt;
  font-weight: bold;
  text-decoration: none;
  color: #ffffff;
}

.title{
  font-size: 15pt;
  font-weight: bold;
  text-decoration: none;
  color: #ffffff;
}

.right{
  float: right;
}

.btn-outline-secondary {
    /*color: #e07558;
    border-color: #e07558;*/

    color: white;
    border-color: white;
  }

.btn-outline-secondary:hover {
    color: #fff;
    background-color:   #e85d57;
    border-color: #ffffff;
}


.bg-solapa{
  color: #fff;
    background-color: rgb(170 170 170 / 50%);
  border-color: #ffffff;
  /*-webkit-box-shadow: 0px 20px 23px 2px rgba(0,0,0,0.37);
  box-shadow: 0px 20px 23px 2px rgba(0,0,0,0.37);*/
}

.bg-datos{
  height: auto;
  min-height: 100vh;
  background: linear-gradient(135deg, #0a3d48 0%, #12535f 40%, #1a7a6d 100%);
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.txt-white{
  color: white;
}

/* Semi-transparent frosted glass table style */
.table-glass {
  --bs-table-bg: rgba(255, 255, 255, 0.15);
  --bs-table-color: #fff;
  --bs-table-border-color: rgba(255, 255, 255, 0.25);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.08);
  --bs-table-striped-color: #fff;
  --bs-table-hover-bg: rgba(255, 255, 255, 0.2);
  --bs-table-hover-color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 0.375rem;
  overflow: hidden;
}
.table-glass thead th {
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}
.table-glass a:not(.btn) {
  color: #b7ff5a;
}
.table-glass a:not(.btn):hover {
  color: #dcff9e;
}
.table-glass .btn-primary {
  background-color: rgba(13, 110, 253, 0.8);
  border-color: rgba(13, 110, 253, 0.6);
}

/* Light translucent frosted glass table style */
.table-frost {
  --bs-table-bg: rgba(255, 255, 255, 0.18);
  --bs-table-color: #1a1a1a;
  --bs-table-border-color: rgba(255, 255, 255, 0.25);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.1);
  --bs-table-striped-color: #1a1a1a;
  --bs-table-hover-bg: rgba(255, 255, 255, 0.25);
  --bs-table-hover-color: #000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 0.375rem;
  overflow: hidden;
}
.table-frost thead th {
  background: rgba(255, 255, 255, 0.3);
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
  color: #000;
  font-weight: 600;
}
.table-frost a {
  color: #4f8f18;
}
.table-frost a:hover {
  color: #6caf2b;
}
.table-frost .btn-primary {
  background-color: rgba(13, 110, 253, 0.85);
  border-color: rgba(13, 110, 253, 0.7);
  color: #fff;
}
.table-frost .text-white {
  color: #1a1a1a !important;
}
.table-frost .text-white.text-decoration-none {
  color: #1a1a1a !important;
}

table{
color: white!important;

}
.titulochart{
font-size: 18pt;
font-weight: bold;

}
.subtitulochart{
  font-size: 15pt;
  font-weight: bold;

}


.titulo{

  font-size: 18pt;
    font-weight: bold;
    text-decoration: none;
    color: #ffffff;
    padding-bottom: 15px;
}

.txt-titulo{

  font-size: 12pt;
    font-weight: bold;
    text-decoration: none;
    color: #ffffff;
    padding-bottom: 15px;
}

.txt-dato{
  font-size: 12pt;
  position: relative;
  left: 9px;
  color: #ffffff;
}
.card-datos{
  border-bottom-right-radius: 40px;
  border-bottom-left-radius: 40px;
}

.card-header{
  background-color: rgb(255 255 255 / 28%);

}



.bg-mole{
  background-color: rgb(255 255 255 / 28%);
  /*border-radius: 20px;*/
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}


.Chart_subtxt{
position: relative;

}
.details{
 width: 98%;
}

.bg-jmol{
  background-color: #aaaaaa;
  border-radius: 20px;
  height: 100%;
  overflow: hidden;
}

.bg-jmolAnalysis{
  background-color: #aaaaaa;
  border-radius: 20px;
  overflow: hidden;
}

.head-mole{
    background-color: rgb(255 255 255 / 50%);
    padding: 6px;
}

.nav-tabs .nav-item {
  -webkit-box-shadow: inset 0px -9px 0px 0px rgba(0,0,0,0.38);
  box-shadow: inset 0px -3px 0px 0px rgba(0,0,0,0.38);
  background-color: #318999;
}
.nav-tabs{
  border: none;
}

.btn-primary {
    color: #fff;
    background-color:  #58b4d1;
    border-color: #007A85;
}
.btn-primary:hover {
    color: #fff;
    background-color: #007A85;
    border-color: #007A85;
}

.btn-link{
  color: white;
}
.btn-link:hover{
  color: #c33331;
}



.expandCompare{
  width: fit-content;
  margin: auto;
}

.card-body {
  padding: 1.25rem;
  /*background-color:  #484343;
  border-radius: 20px;*/
}

h2 {
  color : white;
}

hr{
  color:white;
}

label{
  color: white;
  text-decoration: none;
  font-size: 12pt;
  text-align: left;
}

.logos{
  border-radius: 15px;
      background-color: white;
      padding: 7px;
      margin: 10px;
}
.txt_desc{

  font-size: 16pt;
}
.txt_header{
  background-color: white;
  color: black;
  font-size: 13pt;
  font-weight: bold;
  padding: 2px;
  border-radius: 5px;

}

.txt_dato{
  font-size: 14pt;
}

.listAnalist{
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.separador{
background-color: rgb(226 226 226 / 38%);
color: white;
border-radius: 5px;
margin-top: 30px;

}
.separador h3{
padding-left: 30px;

}

.cardlipids h5{
  border-bottom-style: solid;
  border-bottom-width: 1px;
  padding: 10px;
  background-color: rgb(255 255 255 / 20%);

}

a{
  color: white;
  text-decoration: underline;
  background-color: transparent;

}

a:hover {
    color: #000000;
    text-decoration: underline;
}

.table-responsive {
     background-color: transparent;
}

.pagination .page-link {
  background-color: rgba(255, 255, 255, 0.92);
  color: #0b3d5c;
  border: 1px solid rgba(11, 61, 92, 0.35);
}
.pagination .page-link:hover,
.pagination .page-link:focus {
  background-color: #ffffff;
  color: #07283d;
  border-color: rgba(11, 61, 92, 0.55);
  box-shadow: none;
}
.pagination .page-item.active .page-link {
  background-color: #ffffff;
  color: #07283d;
  border-color: rgba(11, 61, 92, 0.75);
  font-weight: 600;
}
.pagination .page-item.disabled .page-link {
  background-color: rgba(255, 255, 255, 0.6);
  color: #6c757d;
  border-color: rgba(108, 117, 125, 0.35);
}

.form-control{
  color: black;
  background-color: white;
}
.form-control:hover{
  color: black;
  background-color: white;
}

/* ── Front-page hero card ────────────────────────────────── */
.hero-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 1.75rem 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}
.hero-card .input-group-lg .form-control {
  border-radius: 0.5rem 0 0 0.5rem;
  border: none;
  font-size: 1rem;
}
.hero-card .input-group-lg .btn {
  border-radius: 0 0.5rem 0.5rem 0;
}
.hero-card .input-group-lg > .form-control,
.hero-card .input-group-lg > .btn {
  height: 48px;
}
.btn-accent {
  background: linear-gradient(135deg, #f4623a 0%, #e04e2a 100%);
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-accent:hover {
  background: linear-gradient(135deg, #e04e2a 0%, #c9401f 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244, 98, 58, 0.4);
}
.hero-card .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.82rem;
  border-radius: 2rem;
  padding: 0.3rem 0.9rem;
  transition: all 0.15s;
}
.hero-card .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}
.hero-example {
  color: #ffe0b2 !important;
  text-decoration: underline;
  font-weight: 500;
}
.hero-example:hover {
  color: #fff !important;
}
.hero-stats {
  color: #fef9e9;
  font-size: 0.8rem;
  line-height: 1.45;
  font-weight: 600;
}
.hero-stats-card {
  display: inline-block;
  background: linear-gradient(145deg, rgba(255, 200, 82, 0.2), rgba(16, 35, 38, 0.45));
  border: 0.5px solid rgba(255, 226, 150, 0.55);
  border-radius: 0.75rem;
  padding: 0.65rem 1.15rem 0.75rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.hero-stats-label {
  display: inline-block;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffd67a;
}
@media (max-width: 576px) {
  .hero-stats-card {
    width: 100%;
    max-width: 24rem;
  }
}

/* ── About section cards ─────────────────────────────────── */
.about-card {
  background: #fff;
  border: 1px solid #e0e6ea;
  border-radius: 0.75rem;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-align: left;
}
.about-card h4 {
  color: #0e4a56;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}
.about-card p,
.about-card li {
  color: #333;
  font-size: 0.92rem;
  line-height: 1.65;
}
.about-card a {
  color: #12535f;
  text-decoration: underline;
}
.about-card a:hover {
  color: #0a3a44;
}
.component-pill {
  background: #f0f7f8;
  border: 1px solid #d0e3e6;
  border-radius: 0.6rem;
  padding: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.component-pill strong {
  color: #0e4a56;
  font-size: 0.95rem;
}
.component-pill span {
  color: #555;
  font-size: 0.82rem;
  line-height: 1.45;
}
.nav-icon {
  display: inline-block;
  margin-right: 0.3rem;
  font-size: 1em;
  line-height: 1;
  opacity: 1.0;
}
@media (min-width: 992px) {
  #mainNav .navbar-brand {
    flex-shrink: 0;
    min-width: max-content;
  }
  #mainNav .navbar-brand img {
    display: block;
    height: 32px;
    width: auto;
  }
  #mainNav .navbar-nav .nav-link {
    white-space: nowrap;
  }
}
@media (max-width: 991.98px) {
  .nav-icon {
    font-size: 0.8rem;
      opacity: 0.8;
  }
}
.divider {
  border: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #12535f, transparent);
  max-width: 200px;
  margin: 0 auto;
}

/* ── Masthead override — compact hero, modern gradient ──── */
header.masthead {
  min-height: auto !important;
  height: auto !important;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  background: linear-gradient(135deg, #0a3d48 0%, #12535f 40%, #1a7a6d 100%) !important;
  justify-content: center;
}

@media (min-width: 992px) {
  header.masthead {
    padding-top: 7rem;
    padding-bottom: 3rem;
  }
}

.welcome #about {
  background: linear-gradient(145deg, #355f24 0%, #79b640 52%, #a6d65a 100%);
}

.bg-primary {
    background-color: #12535f!important;
}

.form-control:focus{
  color: black;
  background-color: white;
}

.form-control::-webkit-input-placeholder {
  color: #6c757d;
}
.form-control::-moz-placeholder {
  color: #6c757d;
}
.form-control::placeholder {
  color: #6c757d;
}


.search_result{
background-color: rgb(255 255 255 / 20%);
    border-radius: 10px;

}
/* Tooltip container */
.tooltip-2 {
 position: relative;
 display: inline-block;
 color: white;
 font-size: 10pt;

}

/* Tooltip text */
.tooltip-2 .tooltiptext {
 visibility: hidden;
 width: 300px;
 background-color: #555;
 color: #fff;
 text-align: center;
 padding: 5px 0;
 border-radius: 6px;
 padding: 4px;
 line-height: 150%;

 /* Position the tooltip text */
 position: absolute;
 z-index: 1;
 bottom: 125%;
 left: 50%;
 margin-left: -60px;

 /* Fade in tooltip */
 opacity: 0;
 transition: opacity 0.3s;
}

/* Tooltip arrow */
.tooltip-2 .tooltiptext::after {
 content: "";
 position: absolute;
 top: 100%;
 left: 50%;
 margin-left: -5px;
 border-width: 5px;
 border-style: solid;
 border-color: #555 transparent transparent transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip-2:hover .tooltiptext {
 visibility: visible;
 opacity: 1;
}

.DistanceCol
{
  color:#ffc107;
  }
.angleCol{
  color:#a3dc34;
}
.tableAnalisys{
  font-size: 11px;
  white-space: nowrap;
}

.multi-range{
font-size: 11px;
}

.noUi-value{
  color:white;
  top:12px;
}
.noUi-marker-horizontal.noUi-marker {
  height: 5px!important;
}
.noUi-marker-horizontal.noUi-marker-large {
  height: 10px!important;
}


.noUi-horizontal .noUi-tooltip {

    background-color: #d2a95e;
    z-index: 22;
    bottom: -6%!important;
    min-width: 34px;
}

/*  AUTOCOMPLETE style */
.ui-menu-item-wrapper:hover {
  background-color: orange;
}
.ui-menu-item-wrapper:focus {
  background-color: orange;
}
.ui-autocomplete {
  max-height: 100px;
  overflow-y: auto;
  /* prevent horizontal scrollbar */
  overflow-x: hidden;
  background-color: white;
  max-width: 300px;
  list-style-type: none;
}
/* IE 6 doesn't support max-height
 * we use height instead, but this forces the menu to always be this tall
 */
* html .ui-autocomplete {
  height: 100px;
}

 /* MANSORY */
.grid-item { width: 200px; }
.grid-item--width2 { width: 400px; }

/* ======================================= */
/* HIGH-CONTRAST ACCESSIBILITY MODE        */
/* ======================================= */

/* Toggle button styling */
.contrast-toggle {
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 0.25rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.contrast-toggle:hover {
  background: rgba(255,255,255,0.15);
}

/* Keep toggle visible inside navbars, including collapsed mobile menu */
.navbar .contrast-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0b3d5c;
  background: rgba(255,255,255,0.95);
  border-color: rgba(11,61,92,0.85);
}
.navbar .contrast-toggle:hover {
  color: #07283d;
  background: #ffffff;
  border-color: rgba(7,40,61,0.95);
}

@media (max-width: 991.98px) {
  #mainNav .navbar-toggler {
    position: relative;
    z-index: 1051;
  }
  #mainNav .navbar-collapse {
    position: relative;
    z-index: 1050;
  }
  #mainNav .navbar-collapse.show .btn-outline-light,
  #mainNav .navbar-collapse.collapsing .btn-outline-light {
    color: #0b3d5c !important;
    border-color: #0b3d5c !important;
    background: #ffffff !important;
  }
  #mainNav .navbar-collapse.show .btn-outline-light:hover,
  #mainNav .navbar-collapse.collapsing .btn-outline-light:hover {
    color: #07283d !important;
    border-color: #07283d !important;
    background: #f2f6f8 !important;
  }
  .navbar .contrast-toggle {
    padding: 0.375rem 0.75rem;
  }
  .navbar .contrast-toggle::after {
    content: ' Contrast';
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1;
    margin-left: 0.25rem;
  }
}

/* --- High-contrast overrides (applied via .high-contrast on <html>) --- */
.high-contrast,
.high-contrast body {
  background: #fff !important;
  color: #000 !important;
}

.high-contrast .bg-datos {
  background: #fff !important;
}

.high-contrast .welcome body,
.high-contrast.welcome body,
html.high-contrast.welcome {
  background-color: #fff !important;
  color: #000 !important;
}

.high-contrast header.masthead {
  background: #fff !important;
  background-image: none !important;
}
.high-contrast .masthead .fairmd-logo {
  background-color: #000 !important;
  border-radius: 0.5rem;
  padding: 0.35rem 0.75rem !important;
}

.high-contrast .navbar,
.high-contrast .bg-primary {
  background-color: #000 !important;
  color: #fff !important;
}
.high-contrast .navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.9) !important;
}
.high-contrast .navbar {
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
.high-contrast .navbar .navbar-toggler-icon {
  background-image: none !important;
  position: relative;
}
.high-contrast .navbar .navbar-toggler-icon::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0.2rem;
  height: 2px;
  background: #fff;
  box-shadow: 0 8px 0 #fff, 0 16px 0 #fff;
}

.high-contrast #about {
  background: #fff !important;
  color: #000 !important;
}

.high-contrast #about,
.high-contrast #about * {
  color: #000 !important;
}

.high-contrast #about a {
  color: #000 !important;
  text-decoration: underline !important;
}

.high-contrast #about .divider-light {
  background-color: #000 !important;
}

.high-contrast .navbar .nav-link,
.high-contrast .navbar .btn,
.high-contrast .navbar a {
  color: #fff !important;
}

.high-contrast .navbar .nav-link:hover,
.high-contrast .navbar a:hover {
  color: #ff0 !important;
}

@media (max-width: 991.98px) {
  .high-contrast .navbar .navbar-collapse {
    background-color: #000 !important;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
  }
  .high-contrast .navbar .nav-link {
    color: #fff !important;
  }
}

.high-contrast .nav-icon {
  color: #fff !important;
}

.high-contrast .text-muted {
  color: #000 !important;
}

.high-contrast .badge {
  background-color: #000 !important;
  color: #fff !important;
}

.high-contrast .nav-pills .nav-link:not(.active) {
  color: #222 !important;
  background-color: #f2f2f2 !important;
  border: 1px solid #bbb;
}
.high-contrast .nav-pills .nav-link:not(.active):hover,
.high-contrast .nav-pills .nav-link:not(.active):focus {
  color: #000 !important;
  background-color: #e6e6e6 !important;
  border-color: #888;
  box-shadow: none !important;
}

.high-contrast .contrast-toggle {
  border-color: #fff;
  color: #fff;
  background: #222 !important;
}
.high-contrast .contrast-toggle:hover {
  background: #444 !important;
}

.high-contrast .masthead,
.high-contrast .masthead * {
  color: #000 !important;
}
.high-contrast .masthead .navbar,
.high-contrast .masthead .navbar * {
  color: #fff !important;
}

.high-contrast .chart-label,
.high-contrast h4.chart-label {
  color: #fff !important;
}

.high-contrast h1, .high-contrast h2, .high-contrast h3,
.high-contrast h4, .high-contrast h5, .high-contrast h6,
.high-contrast p, .high-contrast span, .high-contrast li,
.high-contrast label, .high-contrast .title, .high-contrast .titulo,
.high-contrast .txt-titulo, .high-contrast .txt-dato,
.high-contrast .txt_desc, .high-contrast .txt_dato,
.high-contrast .text-white {
  color: #000 !important;
}

.high-contrast a {
  color: #00e !important;
  text-decoration: underline !important;
}
.high-contrast a:hover {
  color: #000 !important;
}

.high-contrast table {
  color: #000 !important;
}

.high-contrast .table-glass {
  --bs-table-bg: #fff;
  --bs-table-color: #000;
  --bs-table-border-color: #000;
  --bs-table-striped-bg: #e8e8e8;
  --bs-table-striped-color: #000;
  --bs-table-hover-bg: #d0d0d0;
  --bs-table-hover-color: #000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 2px solid #000;
  background-color: #fff !important;
  color: #000 !important;
}
.high-contrast .table-glass td,
.high-contrast .table-glass th,
.high-contrast .table-glass tr {
  background-color: #fff !important;
  color: #000 !important;
}
.high-contrast .table-glass thead th {
  background: #333 !important;
  color: #fff !important;
  border-bottom: 3px solid #000;
}
.high-contrast .table-glass thead th * {
  color: #fff !important;
}
.high-contrast .table-glass a {
  color: #000 !important;
  text-decoration: underline !important;
}
.high-contrast .table-glass a:hover {
  color: #333 !important;
}
.high-contrast .table-glass thead th a {
  color: #fff !important;
}
.high-contrast .table-glass thead th a:hover {
  color: #ff0 !important;
}
.high-contrast .table-glass td,
.high-contrast .table-glass th {
  border-color: #000 !important;
}

.high-contrast .card,
.high-contrast .card-body,
.high-contrast .card-header {
  background-color: #fff !important;
  color: #000 !important;
  border: 1px solid #000 !important;
}

.high-contrast .btn-primary {
  background-color: #fff !important;
  border: 2px solid #000 !important;
  color: #000 !important;
}
.high-contrast .btn-primary:hover,
.high-contrast .btn-primary:focus {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
  box-shadow: none !important;
}

.high-contrast .btn-warning {
  background-color: #ff0 !important;
  color: #000 !important;
  border: 2px solid #000 !important;
}

.high-contrast .btn-outline-dark,
.high-contrast .btn-outline-secondary,
.high-contrast .btn-outline-light {
  color: #000 !important;
  border-color: #000 !important;
  background: #fff !important;
}
.high-contrast .navbar .btn-outline-dark,
.high-contrast .navbar .btn-outline-secondary,
.high-contrast .navbar .btn-outline-light {
  color: #000 !important;
}
.high-contrast .btn-outline-dark:hover,
.high-contrast .btn-outline-secondary:hover,
.high-contrast .btn-outline-light:hover {
  background: #000 !important;
  color: #fff !important;
}

.high-contrast .separador {
  background-color: #ddd !important;
  color: #000 !important;
}

.high-contrast .search_result {
  background-color: #eee !important;
  color: #000 !important;
}

.high-contrast .bg-solapa {
  background-color: #ddd !important;
  color: #000 !important;
}

.high-contrast .table-responsive {
  background-color: transparent !important;
}

.high-contrast .form-control {
  background-color: #fff !important;
  color: #000 !important;
  border: 2px solid #000 !important;
}

.high-contrast footer.bg-primary {
  background-color: #000 !important;
  color: #fff !important;
}
.high-contrast footer.bg-primary * {
  color: #fff !important;
}

.high-contrast .pendiente {
  background-color: #f00 !important;
  color: #fff !important;
}

.high-contrast .alert-warning {
  background-color: #ff0 !important;
  color: #000 !important;
  border: 2px solid #000 !important;
}

.high-contrast .pagination .page-link {
  background-color: #fff !important;
  color: #000 !important;
  border: 2px solid #000 !important;
}
.high-contrast .pagination .page-link:hover,
.high-contrast .pagination .page-link:focus {
  background-color: #000 !important;
  color: #fff !important;
  box-shadow: none !important;
}
.high-contrast .pagination .page-item.active .page-link {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
}
.high-contrast .pagination .page-item.disabled .page-link {
  background-color: #ddd !important;
  color: #666 !important;
  border-color: #000 !important;
}

.high-contrast img {
  filter: contrast(1.2);
}

/* OS-level prefers-contrast auto-detection (same rules) */
@media (prefers-contrast: high) {
  html:not(.no-high-contrast),
  html:not(.no-high-contrast) body {
    background: #fff !important;
    color: #000 !important;
  }
  html:not(.no-high-contrast) .bg-datos {
    background: #fff !important;
  }
  html:not(.no-high-contrast).welcome,
  html:not(.no-high-contrast) .welcome body {
    background-color: #fff !important;
    color: #000 !important;
  }
  html:not(.no-high-contrast) header.masthead {
    background: #fff !important;
    background-image: none !important;
  }
  html:not(.no-high-contrast) .masthead .fairmd-logo {
    background-color: #000 !important;
    border-radius: 0.5rem;
    padding: 0.35rem 0.75rem !important;
  }
  html:not(.no-high-contrast) .navbar,
  html:not(.no-high-contrast) .bg-primary {
    background-color: #000 !important;
    color: #fff !important;
  }
  html:not(.no-high-contrast) .navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.9) !important;
  }
  html:not(.no-high-contrast) .navbar {
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  }
  html:not(.no-high-contrast) .navbar .navbar-toggler-icon {
    background-image: none !important;
    position: relative;
  }
  html:not(.no-high-contrast) .navbar .navbar-toggler-icon::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0.2rem;
    height: 2px;
    background: #fff;
    box-shadow: 0 8px 0 #fff, 0 16px 0 #fff;
  }
  html:not(.no-high-contrast) #about {
    background: #fff !important;
    color: #000 !important;
  }
  html:not(.no-high-contrast) #about,
  html:not(.no-high-contrast) #about * {
    color: #000 !important;
  }
  html:not(.no-high-contrast) #about a {
    color: #000 !important;
    text-decoration: underline !important;
  }
  html:not(.no-high-contrast) #about .divider-light {
    background-color: #000 !important;
  }
  html:not(.no-high-contrast) .navbar .nav-link,
  html:not(.no-high-contrast) .navbar .btn,
  html:not(.no-high-contrast) .navbar a {
    color: #fff !important;
  }
  html:not(.no-high-contrast) .navbar .nav-link:hover,
  html:not(.no-high-contrast) .navbar a:hover {
    color: #ff0 !important;
  }
  @media (max-width: 991.98px) {
    html:not(.no-high-contrast) .navbar .navbar-collapse {
      background-color: #000 !important;
      padding: 0.5rem 0.75rem;
      border-radius: 0.375rem;
    }
    html:not(.no-high-contrast) .navbar .nav-link {
      color: #fff !important;
    }
  }
  html:not(.no-high-contrast) .nav-pills .nav-link:not(.active) {
    color: #222 !important;
    background-color: #f2f2f2 !important;
    border: 1px solid #bbb;
  }
  html:not(.no-high-contrast) .nav-pills .nav-link:not(.active):hover,
  html:not(.no-high-contrast) .nav-pills .nav-link:not(.active):focus {
    color: #000 !important;
    background-color: #e6e6e6 !important;
    border-color: #888;
    box-shadow: none !important;
  }
  html:not(.no-high-contrast) .contrast-toggle {
    background: #222 !important;
    border-color: #fff;
    color: #fff;
  }
  html:not(.no-high-contrast) .contrast-toggle:hover {
    background: #444 !important;
  }
  html:not(.no-high-contrast) .masthead,
  html:not(.no-high-contrast) .masthead * {
    color: #000 !important;
  }
  html:not(.no-high-contrast) .masthead .navbar,
  html:not(.no-high-contrast) .masthead .navbar * {
    color: #fff !important;
  }
  html:not(.no-high-contrast) .chart-label,
  html:not(.no-high-contrast) h4.chart-label {
    color: #fff !important;
  }

  html:not(.no-high-contrast) h1,
  html:not(.no-high-contrast) h2,
  html:not(.no-high-contrast) h3,
  html:not(.no-high-contrast) h4,
  html:not(.no-high-contrast) h5,
  html:not(.no-high-contrast) h6,
  html:not(.no-high-contrast) p,
  html:not(.no-high-contrast) span,
  html:not(.no-high-contrast) li,
  html:not(.no-high-contrast) label,
  html:not(.no-high-contrast) .title,
  html:not(.no-high-contrast) .titulo,
  html:not(.no-high-contrast) .txt-titulo,
  html:not(.no-high-contrast) .txt-dato,
  html:not(.no-high-contrast) .text-white {
    color: #000 !important;
  }
  html:not(.no-high-contrast) a {
    color: #00e !important;
    text-decoration: underline !important;
  }
  html:not(.no-high-contrast) a:hover {
    color: #000 !important;
  }
  html:not(.no-high-contrast) table {
    color: #000 !important;
  }
  html:not(.no-high-contrast) .table-glass {
    --bs-table-bg: #fff;
    --bs-table-color: #000;
    --bs-table-border-color: #000;
    --bs-table-striped-bg: #e8e8e8;
    --bs-table-striped-color: #000;
    --bs-table-hover-bg: #d0d0d0;
    --bs-table-hover-color: #000;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 2px solid #000;
  }
  html:not(.no-high-contrast) .table-glass thead th {
    background: #333 !important;
    color: #fff !important;
    border-bottom: 3px solid #000;
  }
  html:not(.no-high-contrast) .table-glass thead th * {
    color: #fff !important;
  }
  html:not(.no-high-contrast) .table-glass a {
    color: #000 !important;
    text-decoration: underline !important;
  }
  html:not(.no-high-contrast) .table-glass a:hover {
    color: #333 !important;
  }
  html:not(.no-high-contrast) .table-glass thead th a {
    color: #fff !important;
  }
  html:not(.no-high-contrast) .table-glass thead th a:hover {
    color: #ff0 !important;
  }
  html:not(.no-high-contrast) .table-glass td,
  html:not(.no-high-contrast) .table-glass th {
    border-color: #000 !important;
  }
  html:not(.no-high-contrast) .card,
  html:not(.no-high-contrast) .card-body,
  html:not(.no-high-contrast) .card-header {
    background-color: #fff !important;
    color: #000 !important;
    border: 1px solid #000 !important;
  }
  html:not(.no-high-contrast) .btn-primary {
    background-color: #fff !important;
    border: 2px solid #000 !important;
    color: #000 !important;
  }
  html:not(.no-high-contrast) .btn-primary:hover,
  html:not(.no-high-contrast) .btn-primary:focus {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
    box-shadow: none !important;
  }
  html:not(.no-high-contrast) .btn-warning {
    background-color: #ff0 !important;
    color: #000 !important;
    border: 2px solid #000 !important;
  }
  html:not(.no-high-contrast) .btn-outline-dark,
  html:not(.no-high-contrast) .btn-outline-secondary,
  html:not(.no-high-contrast) .btn-outline-light {
    color: #000 !important;
    border-color: #000 !important;
    background: #fff !important;
  }
  html:not(.no-high-contrast) .navbar .btn-outline-dark,
  html:not(.no-high-contrast) .navbar .btn-outline-secondary,
  html:not(.no-high-contrast) .navbar .btn-outline-light {
    color: #000 !important;
  }
  html:not(.no-high-contrast) .separador {
    background-color: #ddd !important;
    color: #000 !important;
  }
  html:not(.no-high-contrast) .search_result {
    background-color: #eee !important;
    color: #000 !important;
  }
  html:not(.no-high-contrast) .table-responsive {
    background-color: transparent !important;
  }
  html:not(.no-high-contrast) .form-control {
    background-color: #fff !important;
    color: #000 !important;
    border: 2px solid #000 !important;
  }
  html:not(.no-high-contrast) footer.bg-primary {
    background-color: #000 !important;
    color: #fff !important;
  }
  html:not(.no-high-contrast) footer.bg-primary * {
    color: #fff !important;
  }
  html:not(.no-high-contrast) .alert-warning {
    background-color: #ff0 !important;
    color: #000 !important;
    border: 2px solid #000 !important;
  }
  html:not(.no-high-contrast) .pagination .page-link {
    background-color: #fff !important;
    color: #000 !important;
    border: 2px solid #000 !important;
  }
  html:not(.no-high-contrast) .pagination .page-link:hover,
  html:not(.no-high-contrast) .pagination .page-link:focus {
    background-color: #000 !important;
    color: #fff !important;
    box-shadow: none !important;
  }
  html:not(.no-high-contrast) .pagination .page-item.active .page-link {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
  }
  html:not(.no-high-contrast) .pagination .page-item.disabled .page-link {
    background-color: #ddd !important;
    color: #666 !important;
    border-color: #000 !important;
  }
  html:not(.no-high-contrast) img {
    filter: contrast(1.2);
  }
}

/* Dark pill tabs */
.nav-pills .nav-link {
  color: #ddd;
  background-color: transparent;
  border-radius: 50rem;
  margin: 0 0.3rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-pills .nav-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.15);
}

.nav-pills .nav-link.active {
  color: #fff;
  background-color: #0d6efd;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
}

/* Tab content styling */
.tab-content {
  background-color: transparent;
  border-radius: 0 0 0.5rem 0.5rem;
  margin-top: 1rem;
  padding: 1.5rem;
}

/* Async DOI hover preview card */
.doi-preview {
  display: none;
  position: absolute;
  z-index: 9999;
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  width: 380px;
  max-width: 90vw;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #333;
}

.doi-preview-header {
  padding: 10px 14px;
  background: #2a6496;
  color: #fff;
  font-size: 0.95em;
  font-weight: 600;
  line-height: 1.3;
}

.doi-preview-body {
  padding: 10px 14px;
  font-size: 0.85em;
  line-height: 1.5;
}

.doi-preview-body .doi-meta-row {
  margin-bottom: 4px;
}

.doi-preview-body .doi-meta-label {
  font-weight: 600;
  color: #555;
  min-width: 70px;
  display: inline-block;
}

.doi-preview-body .doi-meta-value {
  color: #222;
}

.doi-preview-footer {
  padding: 6px 14px 10px;
  font-size: 0.8em;
  color: #888;
  border-top: 1px solid #eee;
}

.doi-preview-loading {
  padding: 20px 14px;
  text-align: center;
  color: #999;
  font-size: 0.85em;
}

/* Trajectory page chart containers */
.trajectory-show-page .chart-container {
  max-width: 90%;
  margin: 0 auto;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.trajectory-show-page .chart-container-half {
  position: relative;
  width: 100%;
  height: 800px;
}

/* Advanced search result filter chips */
.advanced-results-page .filters-list {
  list-style-type: none;
  padding-left: 0;
}

.advanced-results-page .filters-list li {
  display: inline-block;
  margin-right: 10px;
  background-color: #343a40;
  padding: 5px 10px;
  border-radius: 5px;
}
