[data-elementor-type="wp-page"] {
  overflow: hidden;
}

button.eael-advanced-search-button {
  display: none;
}

@media (min-width: 768px) {
  .single-blog .blog.type-blog::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    position: absolute;
    top: 120px;
    background: url(./assets/background-blog.svg) no-repeat;
    z-index: -1;
  }

  .single-blog .blog.type-blog::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    position: absolute;
    top: 120px;
    background: url(./assets/background-blog.svg) no-repeat;
    z-index: -1;
    transform: scaleX(-1);
  }

  .single-audiovisual .audiovisual.type-audiovisual::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    position: absolute;
    top: 120px;
    background: url(./assets/background-audiovisual.svg) no-repeat;
    z-index: -1;
  }

  .single-audiovisual .audiovisual.type-audiovisual::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    position: absolute;
    top: 120px;
    background: url(./assets/background-audiovisual.svg) no-repeat;
    z-index: -1;
    transform: scaleX(-1);
  }

  .single-reading_list .reading_list.type-reading_list::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    position: absolute;
    top: 120px;
    background: url(./assets/background-reading-list.svg) no-repeat;
    z-index: -1;
  }

  .single-reading_list .reading_list.type-reading_list::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    position: absolute;
    top: 120px;
    background: url(./assets/background-reading-list.svg) no-repeat;
    z-index: -1;
    transform: scaleX(-1);
  }
}

/* Contenedor general */
.single-audiovisual .audiovisual-carousel-container {
  margin: 40px 0;
}

.single-audiovisual .carousel-container {
  position: relative;
  padding: 0 60px;
}

.single-audiovisual .carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.single-audiovisual .swiper {
  width: 100%;
}

.single-audiovisual .swiper-wrapper {
  display: flex;
}

.single-audiovisual .swiper-slide {
  max-width: 329px;
  width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
}

.single-audiovisual .single-audiovisual .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Navegación */
.single-audiovisual .swiper-button-next,
.single-audiovisual .swiper-button-prev,
.single-audiovisual .swiper-pagination {
  position: absolute;
  z-index: 10;
}

.single-audiovisual .swiper-button-prev,
.single-audiovisual .swiper-button-next {
  top: 50%;
  transform: translateY(-50%);
  color: #262626;
  font-weight: 900;
}

.single-audiovisual .swiper-button-prev {
  left: 10px;
}

.single-audiovisual .swiper-button-next {
  right: 10px;
}

.single-audiovisual .swiper-pagination {
  bottom: -20px !important;
  left: 50% !important;
  transform: translateX(-50%);
  top: auto !important;
}

.single-audiovisual .swiper-pagination-bullet-active {
  background: #262626;
}

/* Descripción */
.single-audiovisual .carousel-description {
  max-width: 800px;
  text-align: left;
  margin: 40px auto 0;
  color: #666;
  font-size: 0.9em;
}

@import url("https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;500;600;700&display=swap");

.single-reading_list .kb-group h2 {
  font-weight: 700;
  font-size: 24px;
  font-family: "Fira Sans", sans-serif;
}

.single-reading_list .kb-item .kb-thumbnail img {
  height: 120px;
  width: 120px;
}

.single-reading_list .kb-item h3 {
  color: #006666;
  font-family: "Fira Sans", sans-serif;
  font-size: 16px;
  font-weight: 700px;
}

.single-reading_list .kb-item .kb-excerpt,
.single-reading_list .kb-item .kb-languages {
  color: #000 !important;
  font-family: "Fira Sans", sans-serif;
  font-size: 14px;
  font-weight: 400px;
}

.single-reading_list .kb-item .kb-author {
  color: #000 !important;
  font-family: "Fira Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.single-reading_list .kb-items {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
  .single-reading_list .kb-items {
    grid-template-columns: 1fr;
  }
}

.single-reading_list .kb-item {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 5px;
}

@media (max-width: 768px) {
  .single-reading_list .kb-item {
    grid-template-columns: 1fr 200px;
    width: 350px !important;
  }

  .single-reading_list .kb-items {
    display: flex;
    flex-direction: column;
  }
}

.single-reading_list .kb-item .kb-thumbnail {
  grid-column: 1;
  grid-row: 1 / span 5;
}

.single-reading_list .kb-item:nth-child(n + 2) {
  grid-column: 2;
}

.single-reading_list .kb-items>*:nth-child(odd) {
  grid-column: 1;
}

.single-reading_list .kb-items>*:nth-child(even) {
  grid-column: 2;
}

.single-reading_list .kb-items .kb-meta {
  flex-direction: column;
  display: flex;
}

.single-reading_list .kb-items .kb-languages {
  width: 100%;
  text-align: left;
  margin-top: -10px;
}

.kb-load-more-trigger {
  height: 1px;
  margin: 20px 0;
  visibility: hidden;
}

.kb-spinner {
  display: none;
  /* Oculto inicialmente */
  text-align: center;
  padding: 20px;
}

.kb-spinner-inner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #333;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.kb-posts-container .kb-post {
  flex: 1 1 calc(50% - 1rem);
  border: 1px solid #8b8b8b;
  padding: 1rem;
  box-sizing: border-box;
  background-color: #fff;
}

.kb-filters-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  padding: 15px;
  background: #f5f5f5;
  border-radius: 5px;
}

.kb-filter-group {
  flex: 1;
  min-width: 200px;
}

.kb-filter-group h4 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 16px;
}

.kb-filter-checkbox {
  display: block;
  margin-bottom: 8px;
  cursor: pointer;
}

.kb-filter-checkbox input {
  margin-right: 8px;
}

.kb-filter-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.kb-post {
  border: 1px solid #eee;
  padding: 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.kb-post:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.kb-spinner {
  text-align: center;
  padding: 20px;
}

.kb-spinner-inner {
  display: inline-block;
  animation: rotate 1s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Estilos para los dropdowns */
.kb-filter-dropdown {
  position: relative;
  display: inline-block;
  vertical-align: top;
}

.kb-dropdown-toggle {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 180px;
}

.kb-dropdown-toggle svg {
  margin-left: 10px;
  transition: transform 0.3s;
}

.kb-dropdown-toggle.active svg {
  transform: rotate(180deg);
}

.kb-dropdown-content {
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0 0 4px 4px;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
}

.kb-filter-checkbox {
  display: block;
  padding: 5px 0;
  cursor: pointer;
}

.page-id-5608 main .page-header {
  display: none;
}

.page-id-5608 main {
  display: grid;
  grid-template-columns: auto 1fr;
  /* Columna izquierda auto, derecha ocupa el resto */
  gap: 10px;
}

.page-id-5608 main .page-content {
  grid-row: span 2;
}

.page-id-5608 main .kb-load-more-container {
  grid-column: 2;
}

.page-id-5608 .kb-filters-container {
  flex-direction: column;
  height: 100%;
  display: flex;
  justify-content: flex-start;
}

.page-id-5608 .kb-filters-container .kb-filter-group {
  height: 40px;
  max-height: 40px;
}

.page-id-5608 .kb-filters-container .kb-filter-group .kb-dropdown-toggle {
  width: 100%;
}

.page-id-5608 .kb-posts-container {
  margin-left: 15px;
}

.page-id-5608 .title-filter {
  font-family: "Fira Sans", Sans-serif;
  font-size: 20px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 24px;
  color: #000000;
}

.page-id-5608 .kb-dropdown-toggle {
  font-family: "Fira Sans", Sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #000000;
  border: 1px solid #000;
  background-color: transparent;
  justify-content: space-between;
  display: flex;
  background-color: white;
}

.page-id-5608 .kb-dropdown-toggle.active {
  color: #fff;
  border: 1px solid #000;
  background-color: #000;
}

.page-id-5608 .kb-dropdown-toggle svg {
  color: #000000;
}

.page-id-5608 .kb-dropdown-toggle:hover svg,
.page-id-5608 .kb-dropdown-toggle.active svg {
  color: #fff;
}

.page-id-5608 .kb-dropdown-toggle:hover,
.page-id-5608 .kb-dropdown-toggle:not(:enabled) {
  background-color: #000000 !important;
}

.page-id-5608 main .button {
  color: white;
}

.page-id-5608 main button:focus {
  color: black;
  background-color: white;
}

.page-id-5608 main .kb-post img {
  width: 100%;
}

.page-id-5608 main .kb-post .date-metadata {
  color: #000000;
  font-family: "Fira Sans", Sans-serif;
  font-size: 12px;
  margin-top: 15px;
}

.page-id-5608 main .kb-post h3 a {
  color: #000000;
  font-family: "Fira Sans", Sans-serif;
  font-size: 20px;
  font-weight: 400;
  text-transform: uppercase;
  transition: color 0.3s;
}

.page-id-5608 main .kb-post h3 {
  line-height: 0.8;
}

.page-id-5608 main .kb-post h3 a:hover {
  color: #be031a;
}

.page-id-5608 main .kb-post .read-more a {
  font-family: "Fira Sans", Sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #be031a;
  transition: color 0.3s;
}

.page-id-5608 main .kb-post .read-more:hover a {
  color: #55000a;
}

.page-id-5608 main .kb-filter-input {
  font-size: 15px;
  font-style: italic;
  font-family: "Fira sans", sans-serif;
}

/*.page-id-5608 main .kb-posts-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}*/

/* Masonry Layout */
.kb-posts-container {
  width: 100%;
  position: relative;
}

.kb-post {
  width: 48%;
  /* Puedes ajustar esto para más o menos columnas */
  margin-bottom: 20px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.page-id-5608 main .kb-post {
  background: #ffffff;
  padding: 12px;
  border-radius: 8px;
  box-sizing: border-box;

  /* Hacemos que la altura ocupe múltiplos de 10px según contenido */
  grid-row-end: span var(--row-span);
}

.page-id-5608 .page-header .entry-title {
  display: none;
}

.kb.type-kb .elementor-page-title {
  margin-right: auto;
}

.kb.type-kb .elementor-page-title h2 {
  text-align: left;
}






/* Contenedor principal del carousel */
.multi-cpt-carousel {
  margin: 40px 0;
  direction: ltr;
  /* Forzar dirección LTR para las flechas de navegación */
}

/* Cada tarjeta individual */
.multi-cpt-carousel .carousel-card {
  background: #fff;
  overflow: hidden;
  margin: 0 10px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.multi-cpt-carousel .carousel-card:hover {
  cursor: pointer;
}

/* Imagen destacada */
.multi-cpt-carousel .card-image {
  display: block;
  height: 0;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  overflow: hidden;
  position: relative;
}

.multi-cpt-carousel .card-image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.multi-cpt-carousel .carousel-card:hover .card-image img {
  filter: brightness(30%);
}

/* Contenido de la tarjeta */
.multi-cpt-carousel .card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Fecha - estilo similar a la imagen */
.multi-cpt-carousel .card-date {
  color: #000;
  font-size: 0.85rem;
  margin-bottom: 12px;
  font-family: "Fira Sans", Sans-serif;
  font-size: 14px;
  font-weight: 400;
}

/* Título */
.multi-cpt-carousel .card-title {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  line-height: 1.4;
  font-weight: 600;
}

.multi-cpt-carousel .card-title a {
  color: #000;
  text-decoration: none;
  display: block;
  font-family: "Fira Sans", Sans-serif;
  font-size: 20px;
  font-weight: 700;
}

/* Soporte para texto RTL (árabe) */
.multi-cpt-carousel .card-title[dir="rtl"],
.multi-cpt-carousel .card-title[lang="ar"] {
  font-family: 'Tahoma', Arial, sans-serif;
  text-align: right;
  direction: rtl;
}

/* Extracto */
.multi-cpt-carousel .card-excerpt {
  margin-bottom: 15px;
  color: #000;
  flex-grow: 1;
  text-align: left;
  font-family: "Fira Sans", Sans-serif;
  font-size: 16px;
  font-weight: 400;
}

/* Soporte para texto RTL en extracto */
.multi-cpt-carousel .card-excerpt[dir="rtl"],
.multi-cpt-carousel .card-excerpt[lang="ar"] {
  font-family: 'Tahoma', Arial, sans-serif;
  text-align: right;
  direction: rtl;
}

/* Flechas de navegación */
.multi-cpt-carousel .owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  pointer-events: none;
}

.multi-cpt-carousel .owl-nav button {
  pointer-events: all;
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 20px !important;
  color: #262626 !important;
  transition: all 0.3s ease;
}

.multi-cpt-carousel .owl-nav button span {
  font-size: 70px;
  font-weight: 300;
}

.multi-cpt-carousel .owl-nav button.owl-prev {
  left: -50px;
}

.multi-cpt-carousel .owl-nav button.owl-next {
  right: -50px;
}

iframe[src*="vimeo.com"] {
	display: none !important;
}


/* Responsive */
@media (max-width: 1024px) {
  .owl-nav button.owl-prev {
    left: -20px;
  }

  .owl-nav button.owl-next {
    right: -20px;
  }
}

@media (max-width: 768px) {
  .card-content {
    padding: 15px;
  }

  .card-title {
    font-size: 1rem;
  }

  .card-excerpt {
    font-size: 0.9rem;
  }
}



@media (min-width: 1020px) {
  .page-id-5608 main .elementor-widget-container {
    display: flex;
    flex-direction: row;
  }

  .page-id-5608 main .elementor-widget-container .elementor-shortcode {
    width: 35%;
    margin-right: 30px;
  }

  .page-id-5608 main .elementor-widget-container .kb-filters-container {
    height: 100%;
    align-content: flex-start;
  }

  .multi-cpt-carousel {
    display: none;
  }
}

@media (max-width: 1020px) {
  .page-id-5608 .kb-post {
    width: 93%;
  }

  .page-id-5608 main {
    flex-direction: column;
    display: flex;
  }
}

.single-kb iframe {
  margin: 20px 0px;
}

.rl-kb-preview,
.rl-kb-custom-description {
    display: block !important;
}