/* =========================================================
   GLOSARIO IT – ESTILOS MODERNOS (SPA)
   Archivo: glosario.css
========================================================= */

/* ================================
   CONTENEDOR PRINCIPAL
================================ */
#txtHint {
  clear:both;
  max-width: 960px;
  /* margin: 0 auto; */
  margin:3em 0 3em 0;
  padding: 0.6em 0.2em;
  /* line-height: 1.65; */
  font-size: 1.05em;
  color: #222;
}

/* ================================
   TÍTULOS DE RESULTADOS (1 o varias categorías)
================================ */

/* ================================
   TÍTULO DEL TÉRMINO
================================ */
#txtHint > h2:first-of-type {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 0.15em;
}

/* etiqueta de categoría */

#txtHint .cat-label {
  display: inline-block;
  font-size: 0.75em;       /* 👈 claramente menor */
  font-weight: 600;
  margin: 0.5em;
  padding: 0.15em 0.5em;
  border-radius: 4px;
  vertical-align: middle;
  color: #fff;
}
/* ================================
   SUBTÍTULOS INTERNOS DEL ARTÍCULO
================================ */
.subBD{color:#030;font-size:1.3em}

#txtHint .descripcion h2.subBD {
  font-size: 1.35em;
  font-weight: 600;
  font-family: inherit;
  margin: 1.4em 0 0.6em;
  border: none;
}

/* ================================
   TÍTULO PRINCIPAL DEL TÉRMINO
================================ */

#txtHint .resultado-uno > h2,
#txtHint .resultado > h3 {
   font-size: 1.9em;
   font-weight: 700;
   border-bottom: #09C solid 3px;
}

/* ================================
   CATEGORÍA (más chica que el término)
================================ */
#txtHint .resultado-uno > h2 .cat-label {
  font-size: 0.75em;
  font-weight: 600;
  vertical-align: middle;
}

#txtHint .descripcion {
  font-size: 1.15em;
  line-height: 1.7;
}

/* ================================
   TARJETAS POR CATEGORÍA
================================ */
.resultado-uno,
.resultado {
  margin-bottom: 1.2em;
  padding: 1.2em 1.4em;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  position: relative;
}

/* ================================
   BLOQUES POR CATEGORÍA
================================ */
.resultado-uno {
  margin-bottom: 2.5em;
}

.resultado {
  padding: 1.2em 1.4em;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  position: relative;
}

/* Colores suaves por categoría */
.cat-redes {
  background: #eef6ff;
  border-left: 5px solid #2b6cb0;
}

.cat-informatica {
  background: #f4f8f2;
  border-left: 5px solid #2f855a;
}

.cat-multimedia {
  background: #fff5f5;
  border-left: 5px solid #c53030;
}

.cat-bd {
  background: #faf5ff;
  border-left: 5px solid #805ad5;
}

/* ================================
   DESCRIPCIÓN DEL TÉRMINO
================================ */
.descripcion {
  margin-top: 1em;
  font-size: 1.18em;     /* 👈 antes estaba chica */
  line-height: 1.65;
  color: #222;
}

.descripcion p {
  margin: 0.8em 0;
}

/* respeta <br> heredados */
.descripcion br {
  display: block;
  margin: 0.45em 0;
}

/* ================================
   ENLACES INTERNOS DEL GLOSARIO
================================ */
.descripcion a.GloIT {
  color: #0b5ed7;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dotted transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.descripcion a.GloIT:hover {
  color: #084298;
  background-color: #eef4ff;
  border-bottom-color: #084298;
}

/* ================================
   RESULTADOS MÚLTIPLES
================================ */
.resultado h3 {
  margin-bottom: 0.4em;
  font-size: 1.45em;
}

.resultado hr {
  margin-top: 1.4em;
  border: none;
  border-top: 1px solid #ddd;
}

/* ================================
   LISTAS DENTRO DE DEFINICIONES
================================ */
.descripcion ul,
.descripcion ol {
  margin: 0.6em 0 1em 1.4em;   /* menos aire */
  padding: 0;
}

.descripcion li {
  margin: 0.25em 0;            /* 👈 reduce espacio entre items */
}

/* ================================
   CÓDIGO, SIGLAS Y ACRÓNIMOS
================================ */
.descripcion code,
.descripcion kbd {
  font-family: Consolas, Monaco, monospace;
  background: #f1f3f5;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 0.95em;
  line-height: 1.3;
}

.descripcion abbr {
  font-weight: 600;
  border-bottom: 1px dotted #555;
  cursor: help;
}

/* ================================
   FIX: abbr dentro de enlaces
================================ */
a.GloIT abbr {
  cursor: pointer;
  border-bottom: none;      /* opcional, más limpio */
}

/* ================================
   COLORES POR CATEGORÍA
================================ */
/* Redes */
#txtHint .categoria-Redes {
  border-left: 6px solid #2b7cff;
}
#txtHint .categoria-Redes .cat-label {
 background: #0d6efd;
}
/* Informática */
#txtHint .categoria-Informática {
  border-left: 6px solid #2e9e4d;
}
#txtHint .categoria-Informática .cat-label {
  background: #198754;
}
/* Multimedia */
#txtHint .categoria-Multimedia {
  border-left: 6px solid #ff7a18;
}
#txtHint .categoria-Multimedia .cat-label {
background: #fd7e14;
}
/* BD / Programación */
#txtHint .categoria-BD,
#txtHint .categoria-BD\/Programación {
  border-left: 6px solid #8e44ad;
}
#txtHint .categoria-BD .cat-label,
#txtHint .categoria-BD\/Programación .cat-label {
background: #6f42c1;
}

/* Indicador de búsqueda */
#txtHint .loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 70px;
    padding: 15px;
    color: #333;
    font-size: 16px;
}
/* Círculo giratorio */
#txtHint .loader::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 3px solid #d9eaf2;
    border-top-color: #09C;
    border-radius: 50%;
    animation: glosario-girar 0.8s linear infinite;
    flex-shrink: 0;
}
@keyframes glosario-girar {
    to {
        transform: rotate(360deg);
    }
}
/* Respetar la preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    #txtHint .loader::before {
        animation: none;
    }
}