/* Import font from Google - Go to fonts.google.com, select a font and look for the import command */
@import url('https://googleapis.com');
/* Use the imported font on the page: On Google you can also find the CSS instruction for using the font. If you put this in the body element then the font will be used on the whole website. */

/* 1. Declaración de fuentes locales */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  font-weight: 600;
  font-style: normal;
}

/* Asignación para el cuerpo y listas */

body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
}

p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 1.25rem;
}

ul li, ol li {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem; /* Evita el efecto cascada de 'em' en listas anidadas */
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

small, .texto-pequeno {
  font-size: 0.875rem;
  line-height: 1.5;
}

/* 2. Asignación directa (compatible con el validador antiguo) */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 2rem; /* Antes 2.75rem (44px), ahora 32px */
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.625rem; /* 26px */
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.35rem; /* 21.6px */
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1.15rem; /* 18.4px */
  line-height: 1.35;
}

/* 4. Ajuste específico para TÍTULOS DE ARTÍCULOS en Joomla (Cassiopeia) */
.com-content-article .page-header h1,
.com-content-article .page-header h2 {
  font-size: 1.75rem; /* 28px: sobrio e institucional */
  line-height: 1.25;
  margin-bottom: 1rem;
}

/* Títulos de artículos en vista de blog o destacados */
.com-content-category-blog .page-header h2,
.com-content-featured .page-header h2 {
  font-size: 1.4rem; /* 22.4px */
  line-height: 1.3;
}

/* Ajuste automático para móviles y tablets */
@media (max-width: 768px) {
  h1 {
    font-size: 1.65rem;
  }

  .com-content-article .page-header h1,
  .com-content-article .page-header h2 {
    font-size: 1.45rem; /* 23.2px en móvil */
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  h4 {
    font-size: 1.05rem;
  }
}






/*----- Background de todo el cabecero */
.container-header {
    background-color: #ffffff;
    background-image: none;
    padding-left: 8px;
    padding-right: 8px;
}

.navbar-brand img {
  max-height: 120px; /* Cambia 60px por la altura que prefieras */
  width: auto;
}

/* Links de los artículos sin subrayado */
a:not([class]) {
    color:#1F3044;
    text-decoration: none;
}
/*********/

/* Botón "Lee más" */
.btn-secondary {
    font-size: 0.85em;
    border-radius: 0px;
    border-color: #1F3044;
    background-color: #f4f6f7;
    color: #1F3044;
    padding: 0.25em;
}

.readmore:hover .btn {
    background-color: #aaaaaa;
    color:#FFFFFF;
}

/**********/

/*----- Dentro del cabecero: Menu + Busqueda */

.container-header .container-nav {
    padding-top: 0em;
    padding-bottom: 0em;
}
/*----- Dentro del cabecero: Menu + Busqueda */

/*----- Dentro del cabecero: Solo menu */
.container-header .container-nav .navbar {
    background-color: #AAAAAA;
    padding-top: 0.25em;
    padding-bottom: 0.25em;
    width: 100%;
}
/*----- Dentro del cabecero: Solo menu */

/*----- Dentro del menu: Items */
.container-header .container-nav .navbar li {
    padding-top: 0.1em;
    padding-bottom: 0.1em;
}

.container-header .container-nav .navbar li a {
   padding-left: 0.5em;
   padding-right: 0.5em;
   font-size: 12pt;
   font-weight: 400;
}

.container-header .container-nav .navbar li a:hover {
    background-color: #CCCCCC;
    text-decoration:none;
}

.container-header .container-nav .navbar .active>a {
    text-decoration:none;
    background-color: #000000;
}
/*----- Dentro del menu: Items */

/*----- Barra menu: Colapso */
@media (min-width: 768px) and (max-width: 991px) {
.navbar-expand-md .navbar-collapse:not(.show) {
display: none !important;
}
}

@media (max-width: 991px) {
.navbar-expand-md .navbar-toggler {
display: block !important;
}
}
/*----- Barra menu: Colapso */

/* Oculta el texto "Detalles" del bloque de información del artículo */
.article-info-term {
    display: none;
}

/* Hace que el contenedor de la imagen ocupe todo el ancho de la columna de texto */
.com-content-article .item-image {
    width: 100%;
    margin-bottom: 1.5rem;
}

/* Fuerza a la imagen interna a estirarse o ajustarse al 100% sin deformarse */
.com-content-article .item-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Margen automático para cualquier imagen o figura alineada a la izquierda en el contenido */
.com-content-article .float-start,
.com-content-article [style*="float: left"] {
    margin-inline-end: 1.5rem !important;
    margin-bottom: 1rem !important;
    margin-top: 1.25rem !important;
}

/* Limita el ancho del contenedor del banner al ancho real de la página */
.container-banner {
  max-width: 100% !important;
  width: 100% !important;
  overflow: hidden;
  box-sizing: border-box;
}

/* 1. Encierra el banner dentro del ancho real de la pantalla */
.container-banner {
  grid-column: main-start / main-end !important;
  max-width: 100% !important;
  width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* 2. Adapta la altura del contenedor exactamente a la proporción de la imagen */
.container-banner .banner-overlay {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9; /* Cambia 16 / 9 por la proporción real de tu foto (ej: 3 / 2 o 4 / 3) */
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}