/* =========================
   VARIABLES + BASE
   ========================= */

:root {
    --mineColor: rgb(200, 200, 200);
    --font-sans: 'Inter', sans-serif;
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    --color-yellow: #FEE366;
    --color-black: #000000;
    --color-green: #466F29;
    --color-green-hover: #5AAA4F;
    --color-white: #FFFFFF;
    --color-blue: #29A9E0;
    --color-gray: #858585;
    --color-gray-200: #f2f2f2;
    --color-gray-300: #ddd;
    --color-gray-hover-bg: rgba(204, 204, 204, 0.2);
    --color-black-12: rgba(0, 0, 0, 0.12);
    --shadow-sm: 0 4px 4px rgba(0, 0, 0, 0.25);
    --filter-yellow: brightness(0) saturate(100%) invert(84%) sepia(78%) saturate(340%) hue-rotate(5deg) brightness(104%) contrast(103%);

    --principalColor: #881a1b;
    --color-ProgressBar: #ccc;
    --border-progressBar: 30px 0px 0px 30px;
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden !important;
    font-family: var(--font-sans);
    font-weight: var(--font-regular);
}

p,
button,
div {
    font-family: var(--font-sans);
    font-size: large;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-sans);
    font-size: large;
    margin: 0.9375rem;
    color: var(--color-black);
    text-align: center;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #eee;
  margin: 1em 0;
  padding: 0;
}

div#map {
    height: 250px !important;
}

.ui-dialog-titlebar.ui-corner-all.ui-widget-header.ui-helper-clearfix.ui-draggable-handle {
    display: none;
}

/* =========================
   CONTENEDORES DE DATOS / GRÁFICAS
   ========================= */

#dataTrack {
    position: absolute;
    width: 8.1875rem;
    top: 60px;
    left: 14px;
    border-radius: 15px;
    text-align: center;
    color: var(--color-white);
    font-size: 0.625rem;
}

#chart_div {
    width: 12.5rem;
    height: 5.625rem;
    padding: 0rem;
    margin: 0;
    position: absolute;
    top: -17px;
    left: 111px;
}

#chart_div svg circle {
    filter: brightness(1000);
    -webkit-filter: brightness(1000);
}

/* =========================
   BOTONES PRINCIPALES / CONTROLES DE REPRODUCCIÓN
   ========================= */

.ItemInActive {
    background-color: var(--color-white) !important;
}

.ItemActive {
    background-color: var(--mineColor) !important;
}

/* =========================
   BOTONES SUPERIORES DERECHA
   ========================= */

button{
    color:#FFFFFF !important;
}

.botones-top-right button {
    position: static !important;
    width: auto;
    height: 2.125rem !important;
    background-color: var(--principalColor);
    padding: 1rem 2rem;
}

.botones-top-right button img {
    width: 100%;
}

.botones-top-right {
    display: flex;
    gap: 1rem;
    position: absolute;
    top: 1rem;
    right: 2rem;
}

.botones-top-right button:hover {
    background-color: var(--color-black);
    color: var(--color-white) !important;
}

.botones-top-right button:hover img {
    filter: var(--filter-white);
    -webkit-filter: var(--filter-white);
}

/* =========================
   BOTONES INFERIORES DERECHA
   ========================= */

.botones-down-right button {
    position: static !important;
    width: auto;
    background-color: var(--principalColor);
    padding: 1rem 2rem;
}

.botones-down-right button:hover {
    background-color: var(--color-black);
    color: var(--color-white) !important;
}

.botones-down-right button:hover img {
    filter: var(--filter-white);
    -webkit-filter: var(--filter-white);
}

.botones-down-right {
    display: flex;
    align-items:flex-end;
    gap:2rem;
    position: absolute;
    bottom: 2rem;
    right: 2rem;
}

/* =========================
   BOTONES SUPERIORES IZQUIERDA
   ========================= */

.botones-top-left button {
    position: static !important;
    width: auto;
    height: 2.125rem !important;
    background-color: var(--principalColor);
    padding: 1rem 2rem;
}

.botones-top-left button img {
    width: 100%;
}

.botones-top-left {
    display: flex;
    gap: 1rem;
    position: absolute;
    top: 1rem;
    left: 2rem;
}

.botones-top-left button:hover {
    background-color: var(--color-black);
    color: var(--color-white) !important;
}

.botones-top-left button:hover img {
    filter: var(--filter-white);
    -webkit-filter: var(--filter-white);
}

/* =========================
   BOTONES ZOO INFERIORES
   ========================= */

.botones-down-zoom button {
    background-color: var(--principalColor);
}

.botones-down-zoom {
    display: grid;
    align-items: center;
    gap: .6rem;
    position: absolute;
    bottom: 6rem;
    right: 2rem;
}

.botones-down button:hover {
    background-color: var(--color-black);
    color: var(--color-white) !important;
}

.botones-down button:hover img {
    filter: var(--filter-white);
    -webkit-filter: var(--filter-white);
}

/* =========================
   BOTONES ZOOM CENTO INFERIORES
   ========================= */

.botones-center-down button {
    background-color: var(--principalColor);
    width: 3.125rem;
    height: 3.125rem;
    min-width: 3.125rem;
    min-height: 3.125rem;
    border-radius: 50px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.botones-center-down {
    display: flex;
    align-items: center;
    gap: .3rem;
    position: absolute;
    bottom: 6rem;
    right: 50%;
    transform: translateX(50%);
}

.botones-center-down button:hover {
    background-color: var(--color-black);
    color: var(--color-white) !important;
}

.botones-center-down button:hover img {
    filter: var(--filter-white);
    -webkit-filter: var(--filter-white);
}

/* =========================
   LAYOUT GENERAL / MAPA / BODY
   ========================= */

.map {
    height: 100%;
    width: 100%;
    overflow: hidden !important;
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden !important;
    font-family: var(--font-sans);
    font-weight: var(--font-regular);
}

.TR3 {
    height: 100%;
    width: 100%;
}

.tools {
    font-family: var(--font-sans);
    font-size: 0.7em;
}

.ui-dialog-titlebar {
    padding: 0.0625rem !important;
}

@keyframes fadeIn {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

.fadeInDiv {
    animation-name: fadeIn;
    animation-duration: 2s;
    animation-fill-mode: forwards;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    z-index: 999;
    margin: 0 auto;
    position: fixed;
    background-color: #eee;
}

.hover-effect-css3d {
    color: skyblue !important;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.hover-effect-css3d:hover,
.hover-effect-css3d:focus-visible {
    transform: translateY(-2px) scale(1.05);
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.35));
}

.blink_me {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.btnTrack {
    font-size: small;
    border-radius: 15px;
    margin-top: 0.3125rem;
    background-color: var(--mineColor);
    color: var(--color-white);
    border: none;
    float: right;
}

.tableStyle {
  font-family: var(--font-sans);
  border-collapse: collapse;
  width: 100%;
  text-align: center;
}

.tableStyle td, .tableStyle th {
  border: 1px solid var(--color-gray-300);
  padding: 0.5rem;
}

.tableStyle tr:nth-child(even){background-color: var(--color-gray-200);}

.tableStyle tr:hover {background-color: var(--color-gray-300);}

.tableStyle th {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  text-align: left;
  background-color: darkseagreen;
  color: var(--color-white);
}

.minicolors.minicolors-theme-default.minicolors-position-bottom.minicolors-position-left.minicolors-focus {
    width: 7.6875rem;
}

/* =========================
   3BODY / PANELES / FORMULARIOS / CONTROLES EXTRA
   (Antes en slin.css)
   ========================= */

.loading-progress-bar {
  position: absolute;
  width: 100%;
}

.loading-progress-text {
  position: absolute;
  width: 100%;
  text-align: center;
}

.hidden {
  display: none;
}

.display-contents {
  display: contents;
}

#logo-terre3-right-bottom img {
  height: 100%;
}

#GPSaccuration {
  margin: 0.3125rem;
  position: absolute;
  transform: translate(-50%, 0);
  left: 50%;
  background-color: rgba(200, 200, 0, 0.5);
  text-align: center;
  display: none;
}

#groundModalWin {
  display: none;
}

#contModalWin {
  display: none;
}

#card__title {
  text-align: right;
  border-bottom: 1px solid var(--color-black-12);
}

#card__title img {
  margin: 1rem;
  width: 1.5rem;
  cursor: pointer;
}

#card__body {
  padding: 1.875rem 1.875rem 2.625rem 1.875rem;
}

#card__body p {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.1875rem;
  font-weight: var(--font-regular);
  color: var(--color-gray);
  max-width: 62.5rem;
  margin: 0 auto;
}

#card__body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  max-height: 28rem;
  object-fit: contain;
}

#card__body h2 {
  font-family: var(--font-sans);
  font-weight: var(--font-bold);
  font-size: 1.25rem;
  color: var(--color-black);
  margin: 0;
}

#card__body h2.popup-title {
  padding-top: 1.875rem;
  padding-bottom: 1.5rem;
}

#card__body .popup-actions {
  display: flex;
  justify-content: center;
}

.link-forgot-pass {
  font-size: small;
  float: right;
}

.btn-primary-full {
  border-radius: 15px;
  width: 100%;
  background-color: var(--mineColor);
  color: var(--color-white);
  border: none;
  cursor: pointer;
}

#newUserBtn,
#newUserBtnBack {
  font-size: small;
  color: lightblue !important;
  text-align: center;
  cursor: pointer;
}

#newUser {
  display: none;
}

#userLoged {
  display: none;
}

#menuLoged {
  overflow: hidden;
  height: 1.875rem;
  border: solid 2px;
  position: absolute;
  top: 35px;
  right: 70px;
  width: 12.1875rem;
  background-color: var(--color-white);
  color: coral !important;
  cursor: pointer;
}

.menu-loged-item {
  margin: 0.1875rem;
}

.btn-style-bold {
  font-weight: var(--font-semibold);
}

.btn-style-underline {
  text-decoration: underline;
}

.btn-style-italic {
  font-style: italic;
}

.btn-style-link,
.btn-style-br {
  padding-bottom: 0.125rem;
}

h7.section-subtitle {
  color: cornflowerblue;
}

.hidden-placeholder {
  visibility: hidden;
}

#selectTrackPOIs {
  width: 90%;
  margin: 0.3125rem 5%;
}

#tablePOIs {
  display: none;
}

#search {
  overflow: hidden;
}

.dataTrack-col {
  width: 50%;
  float: left;
}

.dataTrack-label {
  font-size: 0.625rem;
}

.dataTrack-value {
  font-size: 1.875rem;
  font-weight: var(--font-semibold);
}

.dataTrack-units {
  font-size: 0.75rem;
}

#progress {
  display: none;
}

#popupDiv {
  display: none;
  position: absolute;
  z-index: 999;
  background-color: #eee;
  color: cornflowerblue;
}

.contenedor-change-routes {
  display: none;
}

.change-routes-label {
  color: #ccc;
  font-size: small;
}

.btn-circular img {
  max-width: 1.125rem;
}

/* Estados de foco visibles para accesibilidad en botones circulares,
   incluyendo los de la zona .botones-top-right */
.btn-circular:focus-visible,
.botones-top-right button:focus-visible {
  outline: 3px solid var(--color-black);
  outline-offset: 2px;
}

#contNavIdiom {
  width: auto;
  display: inline-block;
}

#idiomBtn {
  width: inherit;
}

#contNavIdiom nav {
  position: relative;
  width: auto;
  min-width: 11.25rem;
  margin: 0;
  display: none;
}

#contNavIdiom ul {
  list-style-type: none;
  background-color: var(--color-white);
  margin: 0;
  padding: 0;
  width: 100%;
}

#contNavIdiom li {
  padding: 0;
  cursor: pointer;
}

#contNavIdiom li:hover {
  background-color: var(--color-gray-hover-bg);
}

#contNavIdiom li span {
  display: block;
  padding: 0.5rem 0.75rem 0.5rem 2rem;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: var(--font-regular);
}

#idiomBtn[aria-expanded="true"] {
  background-color: var(--color-yellow);
  color: var(--color-black);
}

#idiomBtn[aria-expanded="true"] img {
  filter: none;
}

#idiomBtn[aria-expanded="true"]:hover {
  background-color: var(--color-yellow);
  color: var(--color-black);
}

#idiomBtn[aria-expanded="true"] + #idiomMenu ul {
  box-shadow: var(--shadow-sm);
}

#idiomBtn[aria-expanded="true"] + nav#idiomMenu {
  box-shadow: var(--shadow-sm);
}

#geoloc,
#toggleViewUI {
  width: 2.125rem;
}

.textFooter {
  font-size: x-small !important;
  text-align: center;
}
/* =========================
   MEDIA QUERIES
   ========================= */

@media (max-width: 1919px) {
  #card__body img {
    max-height: 25rem;
  }
}

@media (max-width: 600px) {
  #card__body {
    padding: 0.875rem 1.25rem 1.5rem 1.25rem;
  }

  #card__body h2,
  #card__body h2.popup-title,
  #card__body h2 span#download {
    font-size: 1.125rem;
    padding-top: 0.875rem;
    padding-bottom: 1.5rem;
  }

  #card__body p {
    font-size: 0.875rem;
    line-height: 1.2;
  }

  #card__body img {
    max-width: 16.25rem;
  }

  #card__title img {
    margin: 1rem 1rem 0.75rem 1rem;
  }

  #cardModalWin {
    border-radius: 13;
  }
}