body {
  background-color: #f8fafc;
}

/* Escudo dentro del navbar */
.brand-escudo {
  height: 40px;      /* tamaño ideal para navbar */
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

@media (min-width: 992px) {
  .brand-escudo { height: 46px; }
}

.navbar-brand .bi {
  font-size: 1.15rem;
  line-height: 1;
}

.navbar-brand {
  font-weight: 600;
}

.categoria-card .card-title a {
  color: inherit;
}

.categoria-card .card-title a:hover {
  text-decoration: underline;
}

.categoria-descripcion {
  max-width: 60rem;
}

.list-group-item-action:hover {
  background-color: #f3f6ff;
}



/* Enlaces de categorías y subcategorías */
.categoria-card .card-title a,
.categoria-descripcion a,
a.text-decoration-none {
  color: inherit !important;       /* Misma tonalidad que el texto */
  font-size: 1rem !important;      /* Tamaño normal (igual que el cuerpo del texto) */
  font-weight: 500;                /* Negrita moderada */
  text-decoration: none;
}

/* Hover opcional (puedes quitar si no quieres cambio visual) */
.categoria-card .card-title a:hover,
.categoria-descripcion a:hover,
a.text-decoration-none:hover {
  color: #0d6efd;                  /* Azul de Bootstrap al pasar el ratón */
  text-decoration: underline;
}

/* Subcategorías en modo lista */
h3.h6.mb-2 a {
  color: inherit !important;
  font-size: 1rem !important;
  font-weight: 600;                /* Un poco más destacado porque es título */
  text-decoration: none;
}

h3.h6.mb-2 a:hover {
  color: #0d6efd;
  text-decoration: underline;
}
/* ==== ESTILO UNIFICADO PARA SUBCATEGORÍAS EN MODO LISTA ==== */

/* Contenedor de cada subcategoría (h3 con el enlace) */
h3.h6.mb-2 a {
  color: inherit !important;
  font-size: 1rem !important;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* Icono a la izquierda del nombre */
h3.h6.mb-2 a i {
  font-size: 1.2rem;
  opacity: 0.85;
  margin-right: 0.4rem;
}

/* Hover: cambio muy sutil */
h3.h6.mb-2 a:hover {
  color: #212529 !important;
  text-decoration: underline;
}

/* Listado de documentos dentro de la subcategoría */
ul.list-unstyled.ms-3 {
  margin-left: 1.5rem !important;  /* sangría visual */
  padding-left: 0.5rem;
  border-left: 2px solid rgba(0,0,0,0.05);
}

/* Cada documento listado */
ul.list-unstyled.ms-3 li a {
  color: inherit !important;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

ul.list-unstyled.ms-3 li a i {
  font-size: 1rem;
  margin-right: 0.4rem;
  opacity: 0.7;
}

/* Hover sobre cada documento */
ul.list-unstyled.ms-3 li a:hover {
  text-decoration: underline;
  color: #0d6efd;
}

/* Separación entre bloques de subcategorías */
section.mb-4 > div.mb-4 {
  padding-bottom: 0.75rem;
  border-bottom: 0px dashed rgba(0, 0, 0, 0.05);
  margin-bottom: 1.25rem;
}
.pt-escudo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 992px) {
  .pt-escudo {
    height: 56px;
  }
}

/* =========================
   HERO INSTITUCIONAL ESTRECHO
   ========================= */
/* HERO INSTITUCIONAL */
.pt-hero{
  position: relative;
  padding: 1.6rem 0 1.4rem;
  color: #fff;
  background: linear-gradient(135deg, #0b3a6a 0%, #0d6efd 45%, #0a2e52 100%);
  overflow: hidden;
}

/* Ilustración alineada al borde derecho */
.pt-hero-illu{
  position: absolute;
  top: 0;
  right: 0;                /* ⬅ pegada al borde de la página */
  height: 100%;
  width: 420px;

  background-image: url('../img/hero-transparencia.png');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;

  pointer-events: none;
}

/* Asegura que el texto queda por encima */
.pt-hero > .container{
  position: relative;
  z-index: 1;
}

.pt-content {
  margin-top: -1.8rem;
}


