/**
 * @file
 * Subtheme specific CSS.
 */

@font-face{
	font-family: 'Trueno Regular';
	src: url('../fonts/TruenoRg.otf') format('opentype');
}

@font-face{
	font-family: 'Trueno Semibold';
	src: url('../fonts/TruenoSBd.otf') format('opentype');
}

/****************************************************************/
/*   VARIABLES DE COLOR Y TIPO DE FUENTE                        */
/****************************************************************/
:root{
/* Generales*/
  --fuente-principal: 'Trueno Regular';/*Tipo de fuente que se utiliza para todo el contenido del sitio*/
  --fuente-secundaria: 'Trueno Semibold';/*Tipo de fuente opcional para algunas secciones del sitio*/
  --encabezado-color1: #02477B;/*Color para los elemento de tipo encabezado*/
  --encabezado-color2: #000000;/*Color alternativo para los elemento de tipo encabezado*/
  --enlace-color: #0071B3;/*Color base para los elementos de tipo enlace*/
  --enlace-color-hover:  #02477B;/*Color para los elementos de tipo enlace cuando recibe el foco del teclado o se posiciona el puntero sobre este*/
  --botón-color-fondo: #0071B3;/*Color de fondo para los elementos tipo botón*/
  --boton-color-texto: #ffffff;/*Color del texto del botón*/
  --botón-color-hover: #035484;/*Color de fondo para los elementos tipo botón cuando recibe el foco del teclado o se posiciona el puntero sobre este*/
  --pie-pagina-fondo-logos: #204C6F;/*Color de fondo para el bloque de logos de la página principal*/
  --aviso-principal-fondo: #005485; /*Color de fondo para el bloque del aviso principal*/
  --aviso-principal-texto: #ffffff; /*Color de fuente para el bloque del aviso principal*/
}

/****************************************************************/
/*   ESTILOS GENERALES PARA ELEMENTOS COMUNES                   */
/*   EN TODO EL SITIO WEB                                       */
/****************************************************************/

/*** Color de fondo del contenedor del área de contenido ***/
#page, #main-wrapper,
.region-primary-menu 
.menu-item a.is-active, 
.region-primary-menu 
.menu-item--active-trail a {
    background-color: #F5F5F5 !important;
}

#page {
  overflow: hidden;
}

.dialog-off-canvas-main-canvas {
  overflow: hidden;
}

/*** Formato para títulos de primer nivel, títulos de páginas ***/
h1 {
  font-family: var(--fuente-principal);
  color: var(--encabezado-color1);
  font-size: 51px;
  line-height: 1.1;
  margin-top: 44px;
  margin-bottom: 22px;
  font-weight: lighter;
}

/*** Formato para títulos de segundo nivel, subtítulos de páginas ***/
h2 {
  font-family: var(--fuente-principal);
  color:var(--encabezado-color1);
  font-size: 42px;
  line-height: 1.1;
  margin-top: 0px;
  margin-bottom: 0px;
  font-weight: lighter;
  padding: 5px 0px;
  margin-top: 25px;
}

.h2-16 {
  font-size: 16px;
  color: #000000;
  font-weight: 600;
}

/*** Formato para títulos de tercer nivel ***/
h3 {
  font-family: var(--fuente-principal);
  color:var(--encabezado-color1);
  font-size: 35px;
  line-height: 1.1;
  margin-top: 0px;
  margin-bottom: 0px;
  font-weight: lighter;
  margin-top: 25px;
}

/*** Formato para títulos de cuarto nivel ***/
h4 {
  font-family: var(--fuente-principal);
  color:var(--encabezado-color1);
  font-size: 29px;
  line-height: 1.1;
  margin-top: 0px;
  margin-bottom: 0px;
  font-weight: lighter;
}

/*** Formato para textos páginas (párrafos) ***/

body, p {
  font-family: var(--fuente-principal);
  font-size: 16px;
  line-height: 1.5;
  color: #000000;
  margin: 0 auto;
  text-align: left;
  padding: 5px 0px;
}

/*** Formato para enlaces de páginas ***/
a {
  font-family: var(--fuente-principal);
  color: var(--enlace-color);
  text-decoration: none;
  background-color: transparent;
}

/*** Formato para enlaces de páginas, cuando se pasa el puntero por encima o reciben foco del teclado ***/
a:hover, 
a:focus {
  color: var(--enlace-color-hover);
  text-decoration: underline;
  background-color: transparent;
}

/*** Formato para enlaces de la página principal, como: "ver más avisos" ***/
.more-link {
  text-align: right;
  font-size: 18px;
  padding: 10px 0px;
}

/*** Formato para listas ***/
ol,
ul {
  list-style: none;
  padding: 5px 0px;
}

/*** Formato para elementos de listas ***/
li {
  font-family: var(--fuente-principal);
}

/* Estilo cebra */

ul.estilo-cebra {
  border: 1px solid #F8F7F6;
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.estilo-cebra > li:nth-child(odd) {
  background-color: #F6FAFC;
}

ul.estilo-cebra > li:nth-child(even) {
background-color: #FFFFFF;
}

/*** Formato para botones ***/
.btn-primary, .button--primary, .button {
  color: var(--boton-color-texto);
  background: var(--botón-color-fondo);
  border: none;
  margin-top: 10px;
}

/*** Formato para botones, cuando se pasa el puntero por encima o recbe foco del teclado ***/
.btn-primary:hover,
.btn-primary:focus,
.button--primary:hover,
.button--primary:focus,
.button:hover,
.button:focus {
  color: var(--boton-color-texto);
  background: var(--botón-color-hover);
  border: none;
  text-decoration: none;
}

/*** Formato para tarjetas  ***/
.card,
.card-deck {
  font-family: var(--fuente-principal);
  background-color: #fff;
  border: 1px solid #fff;
  box-shadow: 0px 3px 4px 1px #0000001a;
  border-radius: 8px;
  padding: 5px 0px;
}

.card.alineacion-izquierda {
  margin: 15px 0;
  padding: 20px 25px;
}

.card.alineacion-izquierda p {
  margin:0;
  text-align: left;
}


/*** Formato para encabezados de tarjetas  ***/
.card-header {
  background-color: #fff;
}

/*** Estilo general de imagenes ***/
img {
  width: 100%;
  height: auto;
}

img.image-style-thumbnail {
    width: 25%;
}

.text-formatted img {
  width: auto;
  height: auto;
}

/*** Efecto popup en imagenes ***/

/* Oculta la ventana modal-backdrop que abre al junto con el modal */
.modal-backdrop {
  display: none;
}

.img-ajustada {
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.img-ajustada:hover,
.img-ajustada:focus {
  opacity: 0.7;
}

/* Estilos para el modal */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.75);
}

.modal-content {
  margin: auto;
  display: block;
}

/* Estilos para el botón de cerrar */
.close-modal {
  color: #ffffff;
  font-size: 25px;
  font-weight: bold;
  position: fixed;
  top: 25px;
  right: 35px;
  cursor: pointer;
}

/* Efecto de zoom en la imagen cuando se abre el modal */
.efecto-modal {
  cursor: pointer;
}

/* formato de la imagen en popup */
.modal-img-completa {
  width: 90%;
  height: auto;
  margin: auto;
}

@media screen and (min-width: 768px) {
  .modal-img-completa {
    width: 75%;
    height: auto;
  }
}

/*** Formato para videos ***/
.video-embed-field-provider-youtube-playlist{
  margin: 0 0 1em;
}

/*** Acordeones  ***/
.accordion {
  padding: 5px 0px;
}

.accordion-item h2 {
  margin-top: 0px;
}

.accordion-button,
.accordion-button:not(.collapsed),
.accordion-button:focus {
    font-family: var(--fuente-principal);
    border: 1px solid #F2F2F2;
    background: #fff;
    font-size: 1rem;
    line-height: 19px;
    letter-spacing: 0px;
    text-align: left;
    color: #666666;
    z-index: 0;
}

.row.no-gutters.content-accordeon {
    padding: 15px 0;
}

.row.no-gutters.content-accordeon .foto {
  display: flex;
  justify-content: center;
  padding: 0 15px;
  margin: 0;
}

.row.no-gutters.content-accordeon .foto img {
  margin: 0;
}

.row.no-gutters.content-accordeon .foto .field--type-image {
  margin: 0;
}

.accordion h3 {
    margin: 0;
}

.accordion-body,
.accordion-flush .accordion-button,
.accordion-flush .accordion-item:last-of-type .accordion-button.collapsed,  
.accordion-flush .accordion-item:first-of-type .accordion-button {
    border: 1px solid rgba(0,0,0,.125);
    background: #fff;
}

.accordion-header {
  padding: 0px;
}

/*** BAnderas ***/

#flags img {
  width: 25px;
  height: 20px;
}

/*** Formato de tablas  ***/
.table{
  padding: 5px 0px;
}

.table thead {
  background-color: #ffffff;
}

table tr th, table tr th a, table tr th a:hover, table tr th a:focus{
  color: #666666;
}

.table tbody {
  color: #000000;
}

.table tbody tr:nth-child(odd) {
	background-color: #F5F5F5;
}

.table tbody tr:nth-child(even) {
	background-color: #ffffff;
}

.table tr, .table td, .table th{
  border: 1px solid #E6E6E6;
}

@media screen and (max-width: 768px) {
	table {
		width:100%;
	}
  
	thead {
		display:none ;
	}

  .table>:not(:first-child) {
    border: 1px transparent;
  }

  .table>:first-child {
    border: 1px transparent;
  }
  
	tr td:first-child::before {
		content: line;
	}

	tbody td {
		display: block;
		text-align:center;
	}

	tbody td:before {
		content: attr(data-th);
		display: block;
		text-align:center;
	}

	table thead th,
	table td {
		border-bottom: 1px solid #fff;
	}

  tbody, td, tfoot, th, thead, tr{
    border-style: hidden;
  }
}

/*** Formato para contenedores grid (distrubuir el contenido en columnas) ***/
.grid-container {
  background-color: #F5F5F5 !important;
}

/*** Formato para filas en contenido de las vistas  ***/
.views-row {
  padding: 0;
  background-color: #F5F5F5 !important;
}

.view-content.row {
  margin: auto;
}

/****************************************************************/
/*   AJUSTE DE CONTENEDORES                                     */
/****************************************************************/

.main-content {
  padding: 0;
}

/*** Equipos pequeños 768px y menores) ***/

@media only screen and (max-width: 768px) {
  .container {
    width:95%;
    margin: auto;
  }

  #main-wrapper {
    width: 95%; 
    margin: auto;
  }
}

/*** Equipos medianos 768px y superior) ***/
@media only screen and (min-width: 769px) {
  .container{
    padding: 35px 0 50px 0;
    width: 95%;
    margin: auto
  }

  #main-wrapper {
    width: 95%; 
    margin: auto;
  }
}


/*** Plantalla grande 992px y superior ***/
@media only screen and (min-width: 992px) {
  #main-wrapper {
    max-width: 100%;
    margin: 0 auto;
  }

  .container{
    padding: 35px 0 50px 0;
    max-width: 50%;
    margin: auto;
    margin-top: 143px;
  }

  .highlighted {
    margin-top: 143px;
  }
}

/*** Pantalla extra grande 1200px y superior) */
@media only screen and (min-width: 1200px) {
  #main-wrapper {
    width: 100%;
    margin: auto;
  }
}

.container-front {
  width: 50%;
  margin: auto;
}

/****************************************************************/
/*   ENCABEZADO                                                 */
/****************************************************************/

#navbar-top { /* Area de firma */
  background-color: #41ADE7;
  padding: 15px 40px;
}

@media only screen and (max-width: 992px) {
  #navbar-top { /* Area de firma */
    padding: 5px;
  }
}


/*** Configuración de la firma de la UCR ***/
.firma-ucr {
  padding: 0;
}

.firma-ucr img {
  width: 80%;
  height: auto;
}
  

/*** Acrónimos ***/

/* Versión escritorio */
.region-top-header-form { 
  width: 50%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-content: end;
}

.acronimo-desktop {
  width: 100%;
  height: auto;
  text-align: right;
}

.acronimo-desktop img {
  width: auto;
  height: 40px;
}

/* .region-header { 
  display: none;
} */

.acronimo-movil {
  display: none;
}

/* Ocultar acronimo en versión escritorio, 
   mostrar acrónimo en versión móvile y 
   centrar firma UCR                      */
@media (max-width: 992px) { 
  .region-top-header-form {
      display: none;
  }

  .region-top-header {
    width: 100%;
  }

  p.firma-ucr {
    text-align: center;
  }

  .acronimo-movil { 
    display: block;
    width: 60%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
  }
  
  
  .acronimo-movil img {
    width: auto;
    height: 30px;
  }
}

/** Fijar encabezado ****/

header#header {
  position: fixed;
  width: 100%;
  z-index: 3;
  top: 0px;
} 

@media (max-width: 992px) {
  header#header {
    position: inherit;
  }
}

.main-content,
.container-front {
  min-height:500px; 
  background:#F5F5F5;
}

.path-node, .path-frontpage {
  padding: 0;
}


.wsmainwp{
  max-width: 100%;
}
.wsmenu{
  width: 100% !important;
}

/* .gtranslate {
  margin-top: 15px;
} */

.gtranslate {
  width: 25px;
}


/****************************************************************/
/*   AREA DE CONTENIDO                                                  */
/****************************************************************/

/**** Bloque de accesibilidad ****/

.a11y button img {
  display: none;
}


/***  Carrusel página principal  ***/

@media (min-width: 991px) {
  .carousel-principal {
    margin-top: 74px;
    /* margin-top: 153px; */
  }
}

.carousel-principal{
  height: 400px;
}

.carousel-principal .carousel-inner{
  height: 400px;
}

.carousel-principal .carousel-item img{
  height: 400px;
  width: 100%:
  object-fit: contain;
}

@media (max-width: 991px) {
  .carousel-principal{
    height: 175px;
  }
  
  .carousel-principal .carousel-inner{
    height: 175px;
  }
  
  .carousel-principal .carousel-item img{
    height: 175px;
  }
}

.carousel-principal .carousel-caption h1, 
.carousel-principal .carousel-caption p{ /* Formato de la barra de texto del carrusel */
  color: #FFFFFF;
  margin: 10px 0;
}

.carousel-principal .carousel-caption h1{
  font-size: 2.5vw;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: left;
}

.carousel-principal .carousel-caption p{
  font-size: 16px;
}

.carousel-principal .carousel-caption{ /* Formato de la barra de texto del carrusel */
  background: #232323;
  opacity: 0.7;
  padding: 0 20px;
  text-align: left;
  left: 5%;
  right: 5%;
  bottom: 10%;
}

.carousel-principal .carousel-control-next, .carousel-control-prev{
  width: 10%;
}

.carousel-indicators button {
  width: 6px !important;
  height: 6px !important;
  border-radius: 100%;
}

.carousel-indicators { 
  margin-bottom: 0;
}

.carousel-control-next-icon {
  background-image: url(../images/flecha.svg);
}

.carousel-control-prev-icon {
  background-image: url(../images/flecha.svg);
  transform: rotateY(180deg);
}

/*** Video multimedia ***/
.video-multimedia {
  position: relative;
}


.video-multimedia-texto {
  position: absolute;
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  bottom: 0;
  padding: 25px;
}

.video-multimedia-texto h1 {
  color: #ffffff;
  margin: 0;
}

#myVideo {
  min-width: 100%;
  max-width: 100%;
  min-height: 100%;
  position: relative;
}

@media only screen and (max-width: 768px) {
  .video-multimedia-texto {
    padding: 15px;
  }

  .video-multimedia-texto h1 {
    font-size: 3vw;
  }
}


/*** Aviso página principal ***/

.aviso-principal{
  background-color: var(--aviso-principal-fondo);
  text-align: center;
  padding: 40px 25px;
  color: var(--aviso-principal-texto);
  border: 1px solid rgba(218, 218, 218, 1);
  box-shadow: 0 4px 4px 0 rgb(0 0 0 / 25%);
  margin-bottom: 25px;
  margin-top: 0 15px;
}

/*** Tipo de bloque cuadricula información página principal       ***/
.encabezado-seccion{
  padding: 10px 0;
}

.grid-container {
  display: grid; 
  grid-gap: 10px;
  padding: 10px 0;
  grid-template-columns: repeat(4, 1fr);
}

.grid-container > div {
  text-align: center;
  padding: 0;
  font-size: 30px;
}

.item1 {
  grid-area: 1 / 1 / span 2 / span 2;
  position: relative;
}

.item{
  position: relative;
  background: #000000;
  border-radius: 8px;
}

.avatar, .imgs-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  opacity: 0.8;
  margin: 0;
}

.avatar:hover, .imgs-avatar img:hover, 
.avatar:hover, .imgs-avatar img:focus {
  opacity: 0.6;
}

.texto-encima{
  position: absolute;
  top: 20%;
  left: 5%;
  font-size: 3vw;
  text-align: left;
  line-height: 0.8;
  color: #FFFFFF;
}

a.texto-encima:hover, a.texto-encima:focus{
  color: white;
  text-decoration: none;
}

@media only screen and (max-width: 768px) {
  .texto-encima{
    position: absolute;
    top: 20%;
    left: 5%;
    font-size: 7vw;
    text-align: left;
    line-height: 0.8;
  }

  .item1{
  grid-column: span 4;
  }

  .item{
  grid-column: span 4;
  }
}

/*** Tipo de bloque Información en formato lista página principal       ***/

.elemento-lista-info { /* Tarjeta contenedor de cada elemento */
  padding: 10px;
}

@media only screen and (min-width: 769px) { 
	.info-img-video .info-multimedia {
		padding-right: 15px;
	}
}

@media only screen and (min-width: 993px) {
	.informacion-lista {
		margin: auto;
		margin-bottom: 40px;
		padding: 0;
	}

	.info-img-video .info-texto {
		padding: 0 15px;
	}

	.informacion-lista .info-multimedia {
		padding-right: 15px;
	}
}

@media only screen and (max-width: 992px) { 
	.informacion-lista {
		margin: auto;
		padding: 0 15px 20px 15px;
	}
}

.info-img-video img {
	width: 100%;
	height: auto;
}

.info-img-video iframe {
	width: 100%;
	height: 100%;
}

.info-img-video a.btn.btn-success {
	margin-top: 20px;
}

.info-img-video p {
	margin: 0;
}


/***  Sección de enlaces de interes ubicados en la página principal   ***/
.enlaces-interes {
	display: grid;
	grid-template-columns: auto auto auto;
	padding: 0;
}

 .enlace-int {
	  -ms-flex-flow: row wrap;
	  flex-flow: row wrap;
	  margin: 5px;
    padding: 1rem 0 0 0;
  }  

@media only screen and (max-width: 768px) {
	.enlace-int  {
	  grid-column: span 4;
   }
}

.enlace-int p {
    text-align: center;
} 

.enlace-int h4 {
    text-align: center;
}

.enlace-int a {
    font-family: var(--fuente-principal);
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.25rem;
    letter-spacing: 0rem;
    text-align: center;
    color: #fff;
}

.enlace-int img {
   height: 125px;
   width: auto;
   margin: auto;
}

.enlace-int .card-body {
    padding: 1rem 3rem;
    text-align: center;
}

.enlaces-interes.enlace-int {
    margin-top: 50px;
}

/***  Sección de logos ubicados en la página principal   ***/
section.row.region.region-featured-bottom-third {
  --bs-gutter-x: 0 !important;
}

.logos_organizan{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  background-color: var(--pie-pagina-fondo-logos);
  padding: 20px;
}

.logo_organizan{
  width: 175px;
  margin: 15px;
}

.item-img-grid {
  height: 100%;
}

.grid-img {
  width: 100%;
  max-height: 100%;
  height: inherit;
}

.featured-bottom .container {
  padding: 0;
  margin: 0 auto;
}


/***  Sección avisos página principal   ***/

.resumen-aviso .modal-img-completa {
  width: 50%;
  height: auto;
}

.resumen-aviso .carousel-caption {
  display: none;
}

.resumen-aviso .img-ajustada:hover, 
.resumen-aviso .img-ajustada:focus {
  opacity: 1;
}

.resumen-aviso .efecto-modal {
  cursor: default;
}

.avisos-secundarios,
.aviso-ultimo{
  margin: 10px 0;
  padding: 10px;
}                                            

/*** Página del aviso completo    ***/
.public-encabezado {
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 17px;
  letter-spacing: 0.25px;
  text-align: left;
  text-transform: uppercase;
  margin: 0;
}

.public-encabezado a,
.public-detalle-actividad a,
.public-footer a {
  padding-left: 0;
}

.public-img {
  margin: 10px 0;
}

.public-img img {
  width: 100%;
  height: auto;
}

.public-img p {
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  line-height: 17px;
  letter-spacing: 0px;
  text-align: left;
  padding: 0;
}

.public-tag {
  border: 1px solid #0C344E;
  border-radius: 8%;
  margin-right: 10px;
  text-align: center;
  padding: 15px 0px;
}

.public-titulo-actividad {
  font-family: var(--fuente-principal);
  color: #0C344E;
  font-weight: 400;
  font-size: 1.1rem;
  margin: 20px 0 10px 0;
}

.public-detalle-actividad {
  border-top: 1px solid #0C344E;
  border-bottom: 1px solid #0C344E;
  padding: 20px 0;
  margin: 30px 0;
}

.public-social {
 margin: 40px 0;
}

/*** Sección agneda página principal ***/
#block-views-block-calendario-vista-calendario img,
.view-actividades img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/*** GALERIA MULTIMEDIA     ***/
.galeria-multimedia {
  display: block;
}

.galeria-multimedia .card-body .img-ajustada {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.galeria-multimedia .card-body .video-embed-field-responsive-video {
  aspect-ratio: 4/3;
}

.galeria-multimedia .card-deck {
  -ms-flex-flow: row wrap;
  flex-flow: row wrap;
  margin: 15px 10px;
  border: 1px solid #ccc;
  padding: 10px;
}

.galeria-multimedia .card-deck h3 {
	font-size: 20px;
  line-height: 1.2;
}

.galeria-multimedia p{
  font-size: 1rem;
  text-align: left;
}

.galeria-multimedia .card-body .carousel-caption {
  display: none;
}

.album a:hover,
.albun a:focus {
  text-decoration: none;
}

.album p {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  padding: 25px 15px;
}

.album .img-ajustada:hover, .img-ajustada:focus {
  opacity: 1;
}

.album .modal,
.album .modal-content {
  display: none;
}

@media only screen and (min-width: 768px) {
  .galeria-multimedia {
    display: grid;
    grid-template-columns: 50% 50%;
    padding: 0;
  }
}

@media only screen and (min-width: 1200px) {
  .galeria-multimedia {
    display: grid;
    grid-template-columns: 33.33% 33.33% 33.33%;
    padding: 0;
  }
}

/*** ESTRUCTURA DE LA PÁGINA BÁSICA ***/

/* Carrusel de imagenes */
.carrusel-interno {
  z-index: 1;
}

.carrusel-interno .carousel-item img,
.img-unica img { 
  width: 100%;
  height: auto;
  object-fit: cover;
}

.carrusel-interno .carousel-caption { /* Formato de la barra de texto del carrusel */
  background: #232323;
  opacity: 0.7;
  padding: 0 20px;
  text-align: center;
  width: 100%;
  bottom: 6%;
  right: 0;
  left: 0;
}

.carrusel-interno .carousel-caption p {
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  width: 80%;
  color: #ffffff;
}

/* bloque para que el carrusel mantenga la misma altura */

.carrusel-interno, .img-unica {
  height: 600px;
  background: #f2f2f2;
  margin-bottom: 30px;
}

.carrusel-interno .carousel-item {
  height: 600px;
  text-align: center;
}

.carrusel-interno .carousel-item img {
  height: 600px;
  width: auto;
  border-radius: 0;
  object-fit: cover;
}

.img-unica img {
  height: 600px;
  width: 100%;
  border-radius: 0;
  object-fit: cover;
}


@media screen and (max-width: 1800px) {
  .carrusel-interno, .img-unica {
    height: 600px;
  }
  
  .carrusel-interno .carousel-item {
    height: 600px;
  }
  
  .carrusel-interno .carousel-item img, .img-unica img {
    height: 600px;
  }
}

@media screen and (max-width: 1200px) {
  .carrusel-interno, .img-unica {
    height: 400px;
  }
  
  .carrusel-interno .carousel-item {
    height: 400px;
  }
  
  .carrusel-interno .carousel-item img, .img-unica img {
    height: 400px;
  }
}

@media screen and (max-width: 1100px) {
  .carrusel-interno, .img-unica {
    height: 350px;
  }
  
  .carrusel-interno .carousel-item {
    height: 350px;
  }
  
  .carrusel-interno .carousel-item img, .img-unica img {
    height: 350px;
  }
}

@media screen and (max-width: 991px) {
  .carrusel-interno, .img-unica {
    height: 300px;
  }
  
  .carrusel-interno .carousel-item {
    height: 300px;
  }
  
  .carrusel-interno .carousel-item img, .img-unica img {
    height: 300px;
  }
}

@media screen and (max-width: 768px) {
  .carrusel-interno, .img-unica {
    height: 200px;
  }
  
  .carrusel-interno .carousel-item {
    height: 200px;
  }
  
  .carrusel-interno .carousel-item img, .img-unica img {
    height: 200px;
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .carrusel-interno, .img-unica {
    height: 150px;
  }
  
  .carrusel-interno .carousel-item {
    height: 150px;
  }
  
  .carrusel-interno .carousel-item img, .img-unica img {
    height: 150px;
  }
}

.img-unica {
  display: flex;
  place-content: center;
}

/* Sección tarjeta de contacto */

.contacto-info { /* Formato de la tarjeta que contiene la información */
  margin: 15px;
  padding: 15px;
}

.contacto-info p{
  margin: 10px 0;
}

@media only screen and (max-width: 768px) {
	.contacto-info { /* Formato de la tarjeta que contiene la información */
    margin: 5px 0;
    padding: 0 10px 10px 10px;
  }
}


#views-exposed-form-listado-de-servicios-vista-listado-servicios {
  background-color: #F2F2F2;
  border-radius: 3px;
}

#edit-field-nombre-de-servicio-value{
  background: #D8D8D8;
  border: 1px solid rgba(151, 151, 151, 0.6);
  box-sizing: border-box;
  border-radius: 3px;
  width: 485px;
  height: 38px;
}

.form-row {
  display: flex;
  flex-flow: row wrap;
  justify-content: left;
  padding: 30px 0px;
}

.form-row fieldset {
  display: flex;
  flex-flow: row wrap;
}

.form-row>fieldset label {
  font-weight: bold;
  padding: 5px 20px;
}

#edit-submit-listado-de-servicios{ 
  background-color: #0090D8;
  border: 1px solid #0090D8;
  box-sizing: border-box;
  border-radius: 4px;
}

@media screen and (max-width: 600px) {
  #edit-field-nombre-de-servicio-value {
    width: 100%;
  }
}

/** Mapa página de contacto **/

#mapa iframe{
  width: 100%;
}

/*** Capacitaciones ***/
.resumen-capacitacion {
  display: flex;
  flex-direction: column;
  justify-content: left;
  flex-wrap: wrap;
  margin: 15px auto;
  padding: 25px 35px;
}

.resumen-capacitacion p {
  margin: 0;
  text-align: left;
}

@media screen and (max-width: 768px) {
  .resumen-capacitacion {
    padding: 25px 15px;
  }
}

/*** Páginas de servicios    ***/

.enlaces-servicios {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.enlaces-servicios .paragraph.paragraph--type--documento.paragraph--view-mode--default {
  align-self: center;
}

.enlaces-servicios .paragraph.paragraph--type--documento.paragraph--view-mode--default .field--type-entity-reference {
  margin: 0;
}

.file--application-pdf {
  background-image: none;
}

.enlaces-servicios .paragraph.paragraph--type--documento.paragraph--view-mode--default .field--type-entity-reference a {
  height: 100%;
  display: block;
  margin: 0 25px 0 5px;
}

.enlaces-servicios a {
  background: var(--botón-color-fondo);
  color: #ffffff;
  padding: 7px 10px;
  margin: 20px 0;
}

.enlaces-servicios a:hover,
.enlaces-servicios a:focus {
  background: var(--botón-color-hover);
}

/*** Página de Investigador ***/

.sec-investigador {
  margin: 25px 0;
}

.sec-investigador img {
  width: 100%;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.sec-investigador h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 38.4px;
}

.sec-investigador .inv-info {
  display: flex;
  flex-direction: column;
  align-items: end;
}

.sec-investigador .inv-info p {
  width: 100%;
  text-align: left;
}

.investigadores {
  display: block;
}

.investigadores .investigador {
  margin: 35px 10px;
}

.investigadores .investigador a {
  font-size: 16px;
  font-weight: 700;
  line-height: 19.2px;
  text-align: center;
}

.investigadores .investigador,
.investigadores .investigador .field__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.investigadores img {
  margin: auto;
  width: 100%;
  border-radius: 50%;
  aspect-ratio: 1/1;
  object-fit: cover;
  margin-bottom: 20px;
}

@media only screen and (min-width: 768px) {
  .investigadores {
    display: grid;
	  grid-template-columns: 33.33% 33.33% 33.33%;
	  padding: 0;
  }

  .investigadores .investigador {
    margin: 25px 15px;
  }
}

/*** ACTIVIDADES SUSTANTIVAS ***/

/*** Líneas de investigación ***/
.lineas-enlaces {
  border: 1px solid #F8F7F6;
  padding: 0;
  margin: 25px 0;
  display: flex;
  flex-direction: column;
}

.lineas-enlaces a {
  color: #000000;
  font-weight: 700;
  border: 1px solid #F8F7F6;
  width: 100%;
  padding: 25px;
}

.lineas-enlaces > a:nth-child(odd) {
  background-color: #F6FAFC;
}

.lineas-enlaces > a:nth-child(even) {
background-color: #FFFFFF;
}

.lineas-enlaces a  {
  transition: box-shadow 0.3s ease;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.lineas-enlaces a:hover,
.lineas-enlaces a:focus {
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
  transform: scale(1.01);
}

/*** Proyectos de investigación ***/
.proyectos-investigacion {
  display: block;
  margin: 25px 0;
}

.proyectos-investigacion .proyecto {
  margin: 15px;
}

.proyectos-investigacion .proyecto {
  transition: box-shadow 0.3s ease;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.proyectos-investigacion .proyecto:hover, 
.proyectos-investigacion .proyecto:focus {
  background-color: #F6FAFC;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
  transform: scale(1.01);
}

.proyectos-investigacion .proyecto a:hover, 
.proyectos-investigacion .proyecto a:focus {
  text-decoration: none;
}

.proyectos-investigacion .proyecto a h2 {
  color: #666666;
  font-size: 18px;
  font-weight: 700;
  line-height: 20.7px;
  margin-top: 0;
}

.proyectos-investigacion .proyecto a {
  box-shadow: none;
}

@media only screen and (min-width: 768px) {
  .proyectos-investigacion {
    display: grid;
    grid-template-columns: 45% 45%;
  }  
}

/*** Página de publicaciones ***/
.card.publicacion {
  border-radius: 0;
  margin: 15px 0;
  padding: 0;
  box-shadow: none;
  transition: box-shadow 0.3s ease;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.card.publicacion:hover,
.card.publicacion:focus {
  background-color: #F6FAFC;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
  transform: scale(1.01);
}

.publicacion a {
  color: #000000;
  padding: 15px;
}

.publicacion a:hover, 
.publicacion a:focus {
  text-decoration: none;
}

.view-publicaciones h2 {
  margin: 10px 0 0 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 44px;
}


/***  Redes sociales barra lateral   ***/

.sticky-container {
  padding: 0px;
  margin: 0px;
  position: fixed;
  right: 0;
  width: 4% !important;
  top: 230px;
  z-index: 5;
}

.sticky li {
  list-style-type: none;
  background-color: #000;
  color: #efefef;
  height: 45px;
  padding: 10px 0;
  margin: 1px 0;
  margin-left: 20%;
  -webkit-transition: all 0.25s ease-in-out;
  -moz-transition: all 0.25s ease-in-out;
  -o-transition: all 0.25s ease-in-out;
  transition: all 0.25s ease-in-out;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.sticky li:hover,
.sticky li:focus {
  margin-left: 1%;
}

.sticky li img {
  float: left;
  margin: 5px 0;
  width: auto;
  height: 50px;
}

.sticky li a {
  color: white;
}


@media only screen and (max-width: 768px) {
  .sticky-container {
      width: 10% !important;
      top: 135px;
  }
}

/*** Paginador ***/
.pagination {
  justify-content: center;
}

.pagination .page-item  a,
.pagination .page-link {
  background-color: #ECEEEF;
  color: #035484;
}

.pagination .page-item.active  span {
  background-color:#035484;
  color: #FFFFFF;
}


/*** Filtros ***/

.views-exposed-form {
  margin: 25px 0;
}

#views-exposed-form-avisos-todos-page-1 {
  margin: 20px 0 10px 0;
}

#views-exposed-form-avisos-todos-page-1 label {
  font-size: 1.15rem;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0px;
  text-align: left;
  color: #000000;
  margin-bottom: 15px;
}

#views-exposed-form-avisos-todos-page-1 button {
  background-color: var(--botón-color-fondo);
  font-size: 1rem;
  color: var(--boton-color-texto);
}

#views-exposed-form-avisos-todos-page-1 button:hover,
#views-exposed-form-avisos-todos-page-1 button:focus {
  background-color: var(--botón-color-hover);
}

#views-exposed-form-avisos-todos-page-1 .form-select option,
.view-tfgs .form-select option {
  padding: .5rem;
  font-family: var(--fuente-principal);
  font-size: 1rem;
  font-weight: 400;
  color: #000000;
  vertical-align: middle;
  background-color: #ffffff;
  text-transform: capitalize;
}

#views-exposed-form-avisos-todos-page-1 .js-form-item {
  width: 100%;
}

#views-exposed-form-tfgs-block-1 .js-form-type-select {
  margin-right: 15px;
}

#views-exposed-form-publicaciones-page-1 {
  background-color: #FFFFFF;
  border: 1px solid #ECEEEF;
}

#views-exposed-form-publicaciones-page-1 .js-form-item {
  margin: 15px;
}

@media (min-width: 768px) {
  #views-exposed-form-avisos-todos-page-1 .js-form-item  {
    max-width: 100%;  
    width: auto;
  }
  
  #views-exposed-form-proyectos-page-1 .js-form-item input {
    width: 55%;
    margin: 0 15px;
  }

  #views-exposed-form-proyectos-page-1 .d-flex {
    width: 100%;
  }
  
  #views-exposed-form-proyectos-page-1 .js-form-item,
  #views-exposed-form-tfgs-block-1 .js-form-item {
    /* width: 100%; */
    display: flex;
    flex-direction: row;
    margin: 15px 0;
  }

  #views-exposed-form-tfgs-block-1 .form-select {
    width: auto;
    margin: 0 15px;
  }

  #views-exposed-form-tfgs-block-1 label {
    width: 50%;
  }

  #views-exposed-form-publicaciones-page-1 {
    padding: 15px;
  }
}

/****************************************************************/
/*   PIE DE PÁGINA                                              */
/****************************************************************/

.site-footer {
  background-color: #232323 !important;
  padding: 0;
  font-family: var(--fuente-secundaria);
}

.site-footer .container,
.site-footer .container-lg, 
.site-footer .container-md, 
.site-footer .container-sm {
  width: 100%;
  margin: auto;
}
.site-footer .block {
  margin: 0;
  border: none;
  padding: 0 10px;
}

.site-footer a {
  padding-left: 0;
}

.site-footer a,
.site-footer p {
  font-style: normal;
  font-weight: normal;
  font-size: 13px;
  line-height: 17px;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  color: var(--blanco2)
}

.site-footer li {
  list-style: none;
}

.site-footer nav li {
  list-style: none;
  padding: 0;
}

.site-footer__bottom .region {
  width: 100%;
  padding: 0;
}

.site-footer__top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;;
}

.site-footer__top .region {
  width: 24%;
  padding: 0;
  margin: 0 5px;
  display: block;
}

.site-footer .region-footer-fourth {
  display: flex;
  justify-items: baseline;
}

.site-footer__top ul {
  display: block;
}

.site-footer h2 {
  text-transform: none;
  font-style: normal;
  font-weight: 300;
  font-size: 1rem;
  line-height: 25px;
  margin: 0;
}


.site-footer__top .nav-link {
  padding: .5rem 0;
}

.site-footer p,
.site-footer a,
.site-footer h2 {
  color: #FFFFFF;
  font-family: var(--fuente-principal);
}

.site-footer .content a {
  color: #ffffff;
}

.site-footer .content .field__item {
  padding: 5px 0;
}

.site-footer a:hover,
.site-footer a:focus,
.site-footer .content a.is-active {
  color:#FFFFFF;
  text-decoration: underline;
}

.site-footer .fa,
.site-footer .fas,
.site-footer .far,
.site-footer .fa {
  color: #FFFFFF;
  padding-right: 10px;
}

@media (max-width: 768px) {
  .site-footer__top .region {
      width: 100%;
  }
}

/** Sección copyright ***/
.copy {
  background:#232323; 
  color:#ffffff; 
  padding-top:10px; 
  padding-bottom:10px;
  text-align: center;
}

/** Cambios **/
.carousel-principal .carousel-caption h1 {
  text-align: center;
  }

@media only screen and (min-width: 992px) {
  .container {
  width: 60%;
  }
  }


  /* Redondeo de bordes aviso principal */

.aviso-principal {
  border-radius: 10px;
  border: none;
  margin-top: 20px;
}

/* Cambio en las etiquetas */
.public-tag {
  border: 1px solid #aaaaaa;
  border-radius: 10px;
  margin-right: 10px;
  text-align: center;
  padding: 15px 0px;
  background: #e9e9e9;
}

/* Cambio al margen de la imagen de los avisos y noticias */
.sec-imagen { 
  margin-top: 15px;
}


/*** Cambio al h3 ***/
h3 {
  margin-top: 0px;
}


@media only screen and (max-width: 765px) {
  .texto-encima {
    font-size: 7vw;
  }
}

.video-multimedia-texto h1 {
  text-align: center;
}

/*Cambio en las tarjetas "grid-container"*/

.texto-encima {
  position: relative;
  top: 0%;
  left: 5%;
  font-size: 19px;
  text-align: left;
  line-height: 1.5;
  color: #000;
  margin-top: 15px;
}

.item {
  position: relative;
  background: none;
  border-radius: 8px;
}

.avatar, .imgs-avatar img {
  opacity: 1;
}

/*Cambio en el estilo de las noticias o avisos*/

.sec-imagen {
  margin-top: 0px;
}

/* Cambio del h3 en los avisos  */
.avisos-secundarios h3, 
.resumen-aviso h2 {
  font-size: 24px;
  line-height: 1.1;
  margin-top: 0;
}


/* Cambio en el estilo de las noticias o avisos  */
/*
div#block-block-avisos-secundarios {
  width: 80%;
  margin: auto;
  }


/* ==========================================
   Aviso principal INISA
   ========================================== */

.aviso-principal {
  max-width: 950px;
  padding: 28px 45px;
  margin: 35px auto 45px auto;
  background: linear-gradient(135deg, #005b96, #004578);
  color: #ffffff;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 5px 12px rgba(0,0,0,0.25);
}

/* Texto */
.aviso-principal .field--name-field-aviso {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .2px;
}

/* Quitar espacios extra */
.aviso-principal p {
  margin: 0;
}


/* Celulares */
@media (max-width:768px){

  .aviso-principal {
    margin: 20px 15px 35px 15px;
    padding: 20px;
  }

  .aviso-principal .field--name-field-aviso {
    font-size: 18px;
  }

}

/* ==========================================
   Eliminar línea superior del carrusel
   ========================================== */

.carousel,
.slider,
.slideshow,
.view-slideshow,
.region-content-top,
.block-views-block-slideshow-block {
  border-top: none !important;
}

/* Quitar posibles líneas generadas */
.carousel::before,
.carousel::after,
.slider::before,
.slider::after,
.slideshow::before,
.slideshow::after {
  display: none !important;
  content: none !important;
}

/* Ajuste del espacio superior del carrusel */
.carousel,
.slider,
.slideshow {
  margin-top: 0 !important;
}

/* ==========================================
   Mejora visual del aviso principal INISA
   ========================================== */

.aviso-principal {
  max-width: 1200px;
  width: calc(100% - 40px);
  margin: 15px auto 20px;
  padding: 30px 50px;
  background: linear-gradient(135deg, #005b96 0%, #003f6b 100%);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.aviso-principal .field--name-field-aviso,
.aviso-principal .field__item {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.45;
  color: #ffffff;
  text-align: center;
}

@media (max-width: 992px) {

  .aviso-principal {
    padding: 24px 35px;
  }

  .aviso-principal .field--name-field-aviso,
  .aviso-principal .field__item {
    font-size: 26px;
  }

}

@media (max-width: 576px) {

  .aviso-principal {
    width: calc(100% - 20px);
    padding: 18px;
    margin: 20px auto 30px;
  }

  .aviso-principal .field--name-field-aviso,
  .aviso-principal .field__item {
    font-size: 20px;
  }

}


.asistente-social {
  background-color: #00529B !important;
  text-align: center;
}

.asistente-social a {
  color: #ffffff;
  text-decoration: none;
  font-size: 26px;
  display: block;
  padding: 8px 0;
}

.asistente-social:hover {
  transform: scale(1.1);
}


/* Ajuste organigrama */
.path-organigrama .img-unica {
    height: auto !important;
    overflow: visible !important;
}

.path-organigrama .img-unica img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
}

.path-organigrama .carousel-inner,
.path-organigrama .carousel-item {
    height: auto !important;
    overflow: visible !important;
}

.carousel-principal,
.carousel-principal .carousel-inner,
.carousel-principal .carousel-item {
    overflow: visible !important;
}

.carousel-principal .carousel-item img {
    width: 100% !important;
    object-fit: contain !important;
}


/* Imagen única del carrusel interno */
.carrusel-interno .carousel-item .img-ajustada {
    width: 100%;
    height: 600px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Oculta la barra del carrusel cuando no se usan títulos */

/*
.carousel-principal .carousel-caption {
  background: #232323;
  opacity: 0.7;
  padding: 0 20px;
  text-align: left;
  left: 5%;
  right: 5%;
  bottom: 10%;
}
*/

.carousel-principal .carousel-caption {
    display: none !important;
}


/* Ocultar temporalmente el botón del Asistente Virtual */
a#abrir-asistente-social {
    display: none !important;
    visibility: hidden !important;
}


/* Ocultar temporalmente el botón del Asistente Virtual */
li.asistente-social {
    display: none !important;
}

/*** PROYECTOS DE ACCIÓN SOCIAL ***/

.page-view-proyectos-accion-social .lineas-enlaces {
  border: none;
  margin: 25px 0;
}

.page-view-proyectos-accion-social .lineas-enlaces > a {
  color: #000000;
  border: none;
  padding: 0;
  margin: 15px 0;
  text-decoration: none;
  transform: none;
  box-shadow: none;
  transition: box-shadow 0.3s ease;
}

.page-view-proyectos-accion-social .lineas-enlaces > a:hover,
.page-view-proyectos-accion-social .lineas-enlaces > a:focus {
  transform: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.page-view-proyectos-accion-social .card-deck.proyecto {
  background-color: #FFFFFF;
  border-radius: 8px;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.page-view-proyectos-accion-social .card-deck.proyecto .card-body {
  padding: 25px 30px;
}

.page-view-proyectos-accion-social .card-deck.proyecto h2 {
  color: #00558C;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 15px 0;
}

.page-view-proyectos-accion-social .card-deck.proyecto .card-body p {
  color: #111111;
  font-size: 17px;
  line-height: 1.5;
  margin: 3px 0;
  font-weight: 600;
}

/*** Homogenización Proyectos de Acción Social con Proyectos de Investigación ***/

.page-view-proyectos-accion-social .proyectos-investigacion {
  display: block;
  margin: 25px 0;
}

.page-view-proyectos-accion-social .proyectos-investigacion .proyecto {
  margin: 15px 0;
  transition: box-shadow 0.3s ease;
  transform: none;
}

.page-view-proyectos-accion-social .proyectos-investigacion .proyecto:hover,
.page-view-proyectos-accion-social .proyectos-investigacion .proyecto:focus {
  background-color: #F6FAFC;
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.15);
  transform: none;
}

.page-view-proyectos-accion-social .proyectos-investigacion .proyecto a {
  box-shadow: none;
  color: #000000;
  text-decoration: none;
}

.page-view-proyectos-accion-social .proyectos-investigacion .proyecto .card-body {
  padding: 18px 20px;
}

.page-view-proyectos-accion-social .proyectos-investigacion .proyecto a h2 {
  color: #000000;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 12px 0;
}

.page-view-proyectos-accion-social .proyectos-investigacion .proyecto .card-body p {
  color: #000000;
  font-size: 15px;
  line-height: 1.4;
  margin: 4px 0;
  font-weight: 600;
}

@media only screen and (min-width: 768px) {
  .page-view-proyectos-accion-social .proyectos-investigacion {
    display: grid;
    grid-template-columns: 45% 45%;
    gap: 20px;
  }
}

/*** Igualar títulos de Acción Social con Investigación ***/

.page-view-proyectos-accion-social .proyectos-investigacion .proyecto a h2 {
  color: #666666;
}


/*** Homogenización de imágenes - Secciones y Programas ***/
.grid-container .item .imgs-avatar img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}


