/* Animations */
@-webkit-keyframes bounce { 0%, 20%, 50%, 80%, 100% { -webkit-transform: translateY(0); transform: translateY(0); }
  40% { -webkit-transform: translateY(-5px); transform: translateY(-5px); }
  60% { -webkit-transform: translateY(-5px); transform: translateY(-5px); } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { -webkit-transform: translateY(0); transform: translateY(0); }
  40% { -webkit-transform: translateY(-5px); transform: translateY(-5px); }
  60% { -webkit-transform: translateY(-5px); transform: translateY(-5px); } }
/*Scale animation*/
@-webkit-keyframes scale { 25% { -webkit-transform: scale(0.95); transform: scale(0.95); }
  75% { -webkit-transform: scale(1.05); transform: scale(1.05); } }
@keyframes scale { 25% { -webkit-transform: scale(0.95); transform: scale(0.95); }
  75% { -webkit-transform: scale(1.05); transform: scale(1.05); } }
/* SPINNER CSS */
.loading__wrapper { position: relative; height: 80vh; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; }

.scaling-squares-spinner, .scaling-squares-spinner * { -webkit-box-sizing: border-box; box-sizing: border-box; }

.scaling-squares-spinner { height: 65px; width: 65px; position: relative; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-animation: scaling-squares-animation 1250ms; animation: scaling-squares-animation 1250ms; -webkit-animation-iteration-count: infinite; animation-iteration-count: infinite; -webkit-transform: rotate(0deg); transform: rotate(0deg); }

.scaling-squares-spinner .square { height: calc(65px * 0.25 / 1.3); width: calc(65px * 0.25 / 1.3); margin-right: auto; margin-left: auto; border: calc(65px * 0.04 / 1.3) solid #666666; position: absolute; -webkit-animation-duration: 1250ms; animation-duration: 1250ms; -webkit-animation-iteration-count: infinite; animation-iteration-count: infinite; }

.scaling-squares-spinner .square:nth-child(1) { -webkit-animation-name: scaling-squares-spinner-animation-child-1; animation-name: scaling-squares-spinner-animation-child-1; }

.scaling-squares-spinner .square:nth-child(2) { -webkit-animation-name: scaling-squares-spinner-animation-child-2; animation-name: scaling-squares-spinner-animation-child-2; }

.scaling-squares-spinner .square:nth-child(3) { -webkit-animation-name: scaling-squares-spinner-animation-child-3; animation-name: scaling-squares-spinner-animation-child-3; }

.scaling-squares-spinner .square:nth-child(4) { -webkit-animation-name: scaling-squares-spinner-animation-child-4; animation-name: scaling-squares-spinner-animation-child-4; }

@-webkit-keyframes scaling-squares-animation { 50% { -webkit-transform: rotate(90deg); transform: rotate(90deg); }
  100% { -webkit-transform: rotate(180deg); transform: rotate(180deg); } }

@keyframes scaling-squares-animation { 50% { -webkit-transform: rotate(90deg); transform: rotate(90deg); }
  100% { -webkit-transform: rotate(180deg); transform: rotate(180deg); } }
@-webkit-keyframes scaling-squares-spinner-animation-child-1 { 50% { -webkit-transform: translate(150%, 150%) scale(2, 2); transform: translate(150%, 150%) scale(2, 2); } }
@keyframes scaling-squares-spinner-animation-child-1 { 50% { -webkit-transform: translate(150%, 150%) scale(2, 2); transform: translate(150%, 150%) scale(2, 2); } }
@-webkit-keyframes scaling-squares-spinner-animation-child-2 { 50% { -webkit-transform: translate(-150%, 150%) scale(2, 2); transform: translate(-150%, 150%) scale(2, 2); } }
@keyframes scaling-squares-spinner-animation-child-2 { 50% { -webkit-transform: translate(-150%, 150%) scale(2, 2); transform: translate(-150%, 150%) scale(2, 2); } }
@-webkit-keyframes scaling-squares-spinner-animation-child-3 { 50% { -webkit-transform: translate(-150%, -150%) scale(2, 2); transform: translate(-150%, -150%) scale(2, 2); } }
@keyframes scaling-squares-spinner-animation-child-3 { 50% { -webkit-transform: translate(-150%, -150%) scale(2, 2); transform: translate(-150%, -150%) scale(2, 2); } }
@-webkit-keyframes scaling-squares-spinner-animation-child-4 { 50% { -webkit-transform: translate(150%, -150%) scale(2, 2); transform: translate(150%, -150%) scale(2, 2); } }
@keyframes scaling-squares-spinner-animation-child-4 { 50% { -webkit-transform: translate(150%, -150%) scale(2, 2); transform: translate(150%, -150%) scale(2, 2); } }
/* SPINNER CSS */
/*  Needed for filters */

@-webkit-keyframes hide { 0% { -webkit-transform: scale(1); transform: scale(1); }
  100% { -webkit-transform: scale(0); transform: scale(0); width: 0; height: 0; margin: 0; } }

@keyframes hide { 0% { -webkit-transform: scale(1); transform: scale(1); }
  100% { -webkit-transform: scale(0); transform: scale(0); width: 0; height: 0; margin: 0; } }
@-webkit-keyframes show { 0% { -webkit-transform: scale(0); transform: scale(0); width: 0; height: 0; margin: 0; }
  100% { -webkit-transform: scale(1); transform: scale(1); } }
@keyframes show { 0% { -webkit-transform: scale(0); transform: scale(0); width: 0; height: 0; margin: 0; }
  100% { -webkit-transform: scale(1); transform: scale(1); } }
.peec-courses { margin: 7rem 0px;margin-left: 5% !important; margin-top: -80px; padding: 0;  overflow: visible !important;}
.peec-courses .courses-title { font-size: 2em; color: #20313d; font-family: inherit /*'AncizarSans-BoldItalic', sans-serif*/ !important; line-height: 1; font-weight: bold !important; padding-left: 2em;}
/* Contenedor principal de los filtros */
.peec-courses .courses-container {
  display: flex;
  flex-direction: row;
  overflow: visible;

}
.peec-courses .filters {
          /* margin-top: 15px; */
    width: 380px;
    /* margin-left: 2%; */
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    align-self: anchor-center;
    background-color: #f6f8fc;
    z-index: 100;
    /* padding: 1.5em; */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    background-color: #f6f8fc;

}

.peec-courses .courses-wrapper {

  /* padding: 1em; */
  width: auto; /*estaba en 110%*/

}

/* Barra de búsqueda - Adaptando el input a la estructura existente */
.peec-courses .filters .search-bar {
  width: 90%;
  height: 59px;
  display: flex;
  align-items: center;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 20px;
  padding: 0 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.peec-courses .filters .search-bar input {
  border: none;
  outline: none;
  font-size: 1.3rem;
  flex: 1;
}

.peec-courses .filters .search-bar button {
  background: none;
  border: none;
  cursor: pointer;
  color: #20313d;
}

/* Estilizando los filtros de categorías para parecerse a la segunda hoja */
.peec-courses .filters .categories {
  width: 90%;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.peec-courses .filters .categories label {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 15px 20px;
  text-align: left;
  width: 100%;
  font-size: 25px;
  font-weight: bold;
  color: #20313d;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.peec-courses .filters .categories .options {
  background: #e0e7eb;
  border: 3px solid #ddd;
  border-radius: 5px;
  margin-top: 10px;
  padding: 10px;
  font-size: 22px;
  width: 100%;
  text-transform: none;
  color: #333;
}

/* Botones de ordenamiento con el nuevo diseño */
.peec-courses .filters .sorting-buttons {
  text-align: center;
  width: 90%;

  justify-content: space-between;
  margin-top: 10px;
}

.peec-courses .filters .sorting-buttons .button-group button {
  background: #e0e7eb;
  color: #20313d;
  font-size: 22px;
  font-weight: bold;
  border: 2px solid #ddd;
  border-radius: 5px;
  padding: 10px 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.peec-courses .filters .sorting-buttons .button-group button:hover {
  background: #5344ba;
  color: #f6f8fc;
}

.organiza-label {font-size: 22px; font-family: inherit; color:#20313d ;}
.estado-label {font-size: 22px; font-family: inherit; color:#20313d ; margin-top: 10px; margin-bottom: 10px;}

.peec-courses .courses-wrapper .course-items { margin: 40px 0 0 0; position: relative; }

.peec-courses .courses-wrapper .course-items .course .content { display: block; position: relative; }
.peec-courses .courses-wrapper .course-items .course .content .image .cta { position: absolute; color: #fff; font-family: 'AncizarSans-BoldItalic'; left: 0; right: 0; margin: 0 auto; top: 50%; text-transform: none; font-size: 1.2em; border: 2px solid #fff; padding: 0.5em 1.5em; text-align: center; line-height: 1; opacity: 0; visibility: hidden; width: 140px; -webkit-transform: translateY(-50%); transform: translateY(-50%); -webkit-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; }
.peec-courses .courses-wrapper .course-items .course .content .course-info {

   line-height: 1.1;
    margin: 0;
    position: relative;
    overflow: hidden;
    padding: 10px 8px !important;
    text-align: center;
    /* width: 100%; */


    line-height: 1.1;
    margin: 0;
    position: relative;
    overflow: hidden;
    padding: 10px 15px;
    text-align: center;
    width: 90%;

  }
.peec-courses .courses-wrapper .course-items .course .content .course-info .name.big_string { font-size: 21px; padding-top: 0; }
.peec-courses .courses-wrapper .course-items .course .content .course-info .date { font-family: 'AncizarSans-LightItalic', sans-serif; font-size: 18px; margin: 0; text-transform: inherit; }
.peec-courses .courses-wrapper .course-items .course:hover .content .image .cta, .peec-courses .courses-wrapper .course-items .course:hover .content .image::before { opacity: 1; visibility: visible; }



.peec-courses .courses-wrapper .course-items .course {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: #f6f8fc; /* Fondo claro del contenedor */
  border-radius: 10px; /* Esquinas redondeadas */
  /* padding: 1rem; Espaciado interno */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra para dar profundidad */
  max-width: 280px; /* Ancho máximo del contenedor */
  margin: 0 1rem 2rem; /* Separación entre elementos */
}


/* Estilo de la imagen */
.peec-courses .courses-wrapper .course-items .course .content .image {
  /* margin-right: 3vh; */
  width: 95%; /* Ancho fijo */
  /*height: 261px;  Altura fija */
  border-radius: 10px; /* Bordes redondeados */
  overflow: hidden; /* Para que la imagen respete las esquinas redondeadas */
  margin-bottom: 0.5rem; /* Separación entre imagen y el resto del contenido */
  margin-top: 15px;
  justify-self: center;
}

.peec-courses .courses-wrapper .course-items .course .content .image img {
  width: auto; /* Imagen ocupa todo el ancho */
  height: auto; /* Imagen ocupa toda la altura */
  object-fit: cover; /* Ajuste para evitar distorsión */
}

/* Texto "Curso" o "Diplomado" */
.peec-courses .courses-wrapper .course-items .course .content .course-type {
  background-color: #5344ba;
  color: #f6f8fc;
  font-size: 1.4rem;
  font-family: inherit;
  border-radius: 3px;
  padding: 0.2rem 0.5rem;
  margin: 2rem 0 0 1rem;
  width: fit-content;
  margin-left: 10px;
  font-weight: 100;
}


/* Estilo del nombre del curso */
.peec-courses .courses-wrapper .course-items .course .content .course-info .name {
  color: #20313d; /* Color del texto */

  margin-bottom: 0.5rem; /* Separación con los detalles */

  text-align: left; /* Alineación a la izquierda */

  height: 6.5vh;
  line-height: normal  !important;
}
@media screen and (max-width: 1100px) {

  .peec-courses .courses-wrapper .course-items .course .content .course-info .name {
    height: 10vh;

  }

}
/* Detalles del curso */
.peec-courses .courses-wrapper .course-items .course .content .course-info .detail {
  color: #20313d; /* Color del texto */
  font-size: 1.4rem; /* Tamaño más pequeño */
  margin-bottom: 0.3rem; /* Espaciado entre líneas */
  text-align: left; /* Alineación a la izquierda */
  width: 100%; /* Ocupa todo el ancho del contenedor */
}


/* Botón "Ver más" */
.peec-courses .courses-wrapper .course-items .course .content .button {
  display: block;
  align-items: center;
  justify-content: center;
  background-color: #e0e7eb; /* Fondo del botón */
  color: #20313d; /* Color del texto */
  font-size: 1.4rem;
  font-weight: bold;
  border-radius: 10px; /* Bordes redondeados */
  padding: 0.5rem 1rem; /* Espaciado interno */

  text-align: center;
  cursor: pointer;
  align-self: flex-end; /* Alineación a la derecha */
  width: fit-content;
  justify-self: right;
}

.peec-courses .courses-wrapper .course-items .course .content .button:hover {
  background-color: #d4dae0; /* Fondo más oscuro al pasar el mouse */
}

.peec-courses .courses-wrapper .course-items .course .content .button::after {
  content: '→'; /* Flecha hacia la derecha */
  margin-left: 0.5rem;
  font-size: 1rem;
}


/* Pagination control - ocultar elementos sin romper el layout flexbox */
.pagination-hidden {
  display: none !important;
}

.pagination-container {
  display: flex;
  justify-content: center;
  margin: 30px 0;
  gap: 10px;
  flex-wrap: wrap;
}

.pagination-container button {
  background-color: #685bc5;
  color: #f6f8fc !important;
  font-family: inherit;
  font-size: 1.6rem;
  border-radius: 8px;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

.pagination-container button:hover {
  box-shadow:
    0 0 5px #3d33a0,
    0 0 5px #3d33a0,
    0 0 5px #3d33a0,
    0 0 5px #3d33a0;
}


.pagination-container button.active {
  background-color: #5344ba;
}


/*
.courses-container.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
} */

/* .courses-container.fade-in {
  opacity: 1;
  transition: opacity 0.3s ease;
} */

.pagination-counter {
  font-family: inherit;
  font-size: 1.4rem;
  color: #20313d;
  margin-bottom: 20px;
  justify-self: anchor-center;
}

/* Filtros abrir y cerrar */
/* Contenedor general del drawer */
.filters-drawer {
  position: fixed;
  top: 30%;
  left: 0;
  height: auto; /* Altura total de la pantalla */
  width: 390px;   /* Ancho del drawer abierto */
  background-color: #f6f8fc; /* Color de fondo del filtro */
  /* box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2); */
  /* transition: transform 0.3s ease; */
  z-index: 1000;
  display: flex;
  flex-direction: column; /*row*/
  justify-content: flex-start;
  transition: transform 0.3s ease-in-out;
  /* z-index: 1000; */
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
  /* Efecto neón sutil */
  box-shadow:
    0 0 10px rgba(32, 49, 61, 0.4),
    0 0 20px rgba(32, 49, 61, 0.3),
    0 0 30px rgba(32, 49, 61, 0.2);
    /* Transiciones elegantes */
  transition: transform 0.3s ease, opacity 0.3s ease;
  will-change: transform, opacity;
}

.filters-drawer:hover {


  z-index: 1000;

  transition: transform 0.3s ease-in-out;

  box-shadow:
    0 0 10px rgba(8, 12, 15, 0.719),
    0 0 20px rgba(20, 31, 39, 0.452),
    0 0 30px rgba(19, 29, 36, 0.644);
    /* Transiciones elegantes */
  transition: transform 0.3s ease, opacity 0.3s ease;
  will-change: transform, opacity;
}





.filters-drawer.open {
  transform: translateX(0);
}

.filters-drawer.closed {
  transform: translateX(-100%); /* Queda visible la pestaña */
}


.filters-content {
  flex-grow: 1;
  padding: 1rem;
  overflow-y: auto;
  max-height: 100%;
}


/* Flecha toggle */
.filters-toggle {
  position: absolute;
  top: 50%;
  right: -60px; /* La empuja fuera del contenedor */
  transform: translateY(-50%);
  background: linear-gradient(to right, rgba(110, 95, 206, 0.801) 10%, rgba(83, 68, 186, 2)90%) !important;
  /* Degradado de izquierda a derecha */

  /* background-color: #5344ba; */
  color: #f6f8fc;
  width: 65px;
  height: 40px;
  border-radius: 0 10px 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 5px 5px rgb(255 255 255 / 40%);
  transition: background-color 0.3s ease;
  z-index: 1001;
}




/* Cambiar dirección de la flecha según estado */
.filters-toggle .arrow {
  font-size: 1.6rem;
    font-weight: bold;
  user-select: none;
  transition: transform 0.3s ease;
}
/* Cambiar dirección de la flecha cuando el filtro está abierto */
.filters-drawer.open .filters-toggle .arrow {
  transform: rotate(180deg); /* Flecha hacia la izquierda */
}

/* Efecto hover en el botón de la flecha */
.filters-toggle:hover {
  background-color: #6a58d3;
  box-shadow: 0 0 5px 5px rgb(255 255 255 / 60%);
}


.filters-toggle:hover .arrow {
  transform: scale(1.4) ;
  color: #f6f8fc;
}


/*estilos de la etiqueta de estado*/
.status-badge {
  z-index: 999;
  display: inline-block;
    align-self: flex-end;
    margin-left: 0px;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 1.4rem;
    font-weight: lighter;
    text-transform: none;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.status-badge:hover {
  transform: scale(1.1);
  box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.2);
}

/* Colores de estado */
.status-badge[data-status="0"] {
  background-color: #8577e6;
  color: #fff;
}

.status-badge[data-status="1"] {
  padding: 0.1rem 0.5rem !important;
  border: 1px solid #20313d;
border-radius: 4px;

  background-color: #f6f8fc;
  color: #20313d;
}

/* .status-badge[data-status="2"] {
  background-color: #e6d15a;
  color: #20313d;
} */

/* Efecto neón en hover */
.status-badge[data-status="0"]:hover {
  box-shadow: 0px 0px 10px #A097D8;
}

.status-badge[data-status="1"]:hover {
  
  box-shadow: 0px 0px 10px #f6f8fc;
}





/*diseno para el filtro de los estados*/

.status-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.status-filter {
  background: #e0e7eb;
  color: #20313d !important;
  font-size: 1.6rem;
  font-weight: bold;
  border: 2px solid #20313d;
  border-radius: 5px;
  /* padding: 5px 7px; */
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

/* Diseño para el filtro de los estados */
.status-filter[data-status="0"] {
  background-color: #8577e6;
  color: #fff;
  border: 2px solid #8577e6;
  border-radius: 5px;
  /* padding: 5px 7px; */
}

.status-filter[data-status="1"] {
  background-color: #f6f8fc;
  color: #20313d;
  border: 2px solid #20313d;
  border-radius: 5px;
  /* padding: 5px 7px; */
}


.status-filter.selected {
  background: #5344ba !important;
  color: #f6f8fc !important;
  border-radius: 5px !important;
  border: solid 2px #6a58d3;
}

.status-filter:not(.selected) {
  background: #e0e7eb;
  color: #20313d !important;
  border: 2px solid #20313d;
}

/* .status-filter:hover {
  background: #5344ba;
  color: #f6f8fc;
} */


@media screen and (max-width: 768px) {
    .peec-courses .courses-wrapper .course-items.items-grid .course .content { justify-items: left !important; width: auto; background-color: #f6f8fc; width: 100% !important;} /*widht estaba en 360px cuando no habia distintas consultas query*/

  .status-filters {
    display: block;


  }
  .filters .filter-section:last-child {
    /* border-bottom-right-radius: 0 !important;
    border-top-right-radius: 0; */
    border: none !important;
}

  .status-filter {
    display: block;

  }
  .filters-drawer {
    width: auto;

  }
  .status-filter[data-status="0"] {
    margin-bottom: 7px;
    /* color: white !important; */
  }

  

  .status-filter[data-status="1"] {
    margin-bottom: 7px;
  }
  .peec-courses .filters .sorting-buttons {
    text-align: left;
    color: #20313d !important;
  }
}
.course-header {
  display: flex;
    align-items: center;
    gap: 10px;
    justify-self: left;
}


.type-filter{
  background: #e0e7eb;
  color: #20313d !important;
  font-size: 1.6rem;
  font-weight: bold;
  border: 2px solid #20313d;
  border-radius: 5px;
  /* padding: 10px 15px; */
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.type-filter.selected {
  background: #5344ba !important;
  color: #f6f8fc !important;

  border-radius: 5px !important;

  border: solid 2px #6a58d3;

}


/* Selecciona el primer hijo de .filters y aplica border-radius en la esquina superior derecha */
.filters .filter-section:first-child {
  border-top-right-radius: 15px;
  border-bottom-right-radius: 0;
}

/* Selecciona el último hijo de .filters y aplica border-radius en la esquina inferior derecha */
.filters .filter-section:last-child {
  /* border-bottom-right-radius: 15px;
  border-top-right-radius: 0; */
  border: none !important;
}

/* Selecciona todos los hijos de .filters que no sean ni el primero ni el último y elimina el border-radius */
.filters .filter-section:not(:first-child):not(:last-child) {
  border-radius: 0;
}
/* Aplica un borde inferior a todas las clases .filter-section excepto la última */
.filters .filter-section:not(:last-child) {
  border-bottom: 1px solid #bfc1c4;
}





.filter-section {
  /* margin-bottom: 15px; */
  border-bottom: 1px solid #20313d;
  /* border-radius: 6px; */
  overflow: hidden;
  width: 85%;
  margin-left: 20px;
}
.filter-header {
  background-color: #f6f8fc;
  color: #20313d;
  padding: 12px 16px;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  position: relative; /* Necesario para posicionar la flecha dentro del contenedor */

}

.filter-header:hover {
  /* background-color: #6a58d3; */
}


.filter-content {
  max-height: 0;
  color: #20313d;
  overflow: hidden;
  font-weight: bold;
  transition: padding 0.25s ease;
  background-color: #f6f8fc;
  font-size: 1.5rem;
}



.filter-section.active .filter-content {
  max-height: 400px; /* lo suficiente para mostrar el contenido */
  padding: 16px;
}

.transitions-style {
  max-height: 0;
}

.filter-section.active .filter-header {

  /* background-color: #6a58d3; */
  /* color: #f6f8fc;  */

}

.filter-section.active .button.option {
  background: #e0e7eb;
    color: #20313d;
    font-size: 1.6rem;
    font-weight: bold;
    border: 2px solid #20313d;
    border-radius: 5px;
    /* padding: 10px 15px; */
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.filter-section.active .button.option.active {
  background-color: #6a58d3;
  color: #f6f8fc !important;
  border: solid 2px #6a58d3;
  border-radius: 5px;
}

.filter-header .arrow {
  position: absolute; /* Posiciona la flecha de forma absoluta dentro del header */
  right: 22px; /* Ajusta la distancia desde el borde derecho */
  top: 50%; /* Centra verticalmente la flecha */
  transform: translateY(-50%) !important; /* Ajusta el centrado vertical */

  font-size: 1.4rem;
  font-weight: bolder;
}

/* Estilo inicial de la flecha */
.filter-header .arrow {
  /* display: inline-block;
  margin-left: 10px; */
  /* transition: transform 0.3s ease; */
}

/* Rotar la flecha hacia arriba cuando el filtro está activo */
.filter-section.active .arrow {
  transform: translateY(-50%) rotate(180deg)!important; /* Rota la flecha 180 grados */
}


.fa {
  color: #fff !important;
}











.peec-courses .courses-wrapper .course-items .linguistica .content .course-info, .peec-courses .courses-wrapper .course-items .linguistica .content .image .course-type { background-color: #f6f8fc; }
.peec-courses .courses-wrapper .course-items .filosofia .content .course-info, .peec-courses .courses-wrapper .course-items .filosofia .content .image .course-type { background-color: #f6f8fc; }
.peec-courses .courses-wrapper .course-items .psicologia .content .course-info, .peec-courses .courses-wrapper .course-items .psicologia .content .image .course-type { background-color: #f6f8fc; }
.peec-courses .courses-wrapper .course-items .sociologia .content .course-info, .peec-courses .courses-wrapper .course-items .sociologia .content .image .course-type { background-color: #f6f8fc; }
.peec-courses .courses-wrapper .course-items .lenguas_extranjeras .content .course-info, .peec-courses .courses-wrapper .course-items .lenguas_extranjeras .content .image .course-type { background-color: #f6f8fc; }
.peec-courses .courses-wrapper .course-items .historia .content .course-info, .peec-courses .courses-wrapper .course-items .historia .content .image .course-type { background-color: #f6f8fc; }
.peec-courses .courses-wrapper .course-items .geografia .content .course-info, .peec-courses .courses-wrapper .course-items .geografia .content .image .course-type { background-color: #f6f8fc; }
.peec-courses .courses-wrapper .course-items .literatura .content .course-info, .peec-courses .courses-wrapper .course-items .literatura .content .image .course-type { background-color: #f6f8fc; }
.peec-courses .courses-wrapper .course-items .antropologia .content .course-info, .peec-courses .courses-wrapper .course-items .antropologia .content .image .course-type { background-color: #f6f8fc; }
.peec-courses .courses-wrapper .course-items .escuela_de_estudios_en_psicoanalisis_y_cultura .content .course-info, .peec-courses .courses-wrapper .course-items .escuela_de_estudios_en_psicoanalisis_y_cultura .content .image .course-type { background-color: #f6f8fc; }
.peec-courses .courses-wrapper .course-items .escuela_de_estudios_de_genero .content .course-info, .peec-courses .courses-wrapper .course-items .escuela_de_estudios_de_genero .content .image .course-type { background-color: #f6f8fc; }
.peec-courses .courses-wrapper .course-items .instituto_de_investigacion_en_educacion .content .course-info, .peec-courses .courses-wrapper .course-items .instituto_de_investigacion_en_educacion .content .image .course-type { background-color: #f6f8fc; }
.peec-courses .courses-wrapper .course-items .trabajo_social .content .course-info, .peec-courses .courses-wrapper .course-items .trabajo_social .content .image .course-type { background-color: #f6f8fc; }
.peec-courses .courses-wrapper .course-items .centro_de_estudios_sociales .content .course-info, .peec-courses .courses-wrapper .course-items .centro_de_estudios_sociales .content .image .course-type { background-color: #f6f8fc; }
.peec-courses .courses-wrapper .course-items .peec .content .course-info, .peec-courses .courses-wrapper .course-items .peec .content .image .course-type { background-color: #f6f8fc; }
.peec-courses .courses-wrapper .course-items.items-grid {justify-content: center; display: -webkit-box !important; display: -ms-flexbox !important; display: flex !important; -ms-flex-wrap: wrap; flex-wrap: wrap;/* gap: 120px; margin-right: 7%;*/}
.peec-courses .courses-wrapper .course-items.items-grid .course { width: auto; /*margin: 0 1.5rem 2.5rem;*/ } /*width estaba en 220px*/
.peec-courses .courses-wrapper .course-items.items-grid .course .content { justify-items: anchor-center; width: auto; background-color: #f6f8fc;} /*widht estaba en 360px cuando no habia distintas consultas query*/




.peec-courses .courses-wrapper .course-items.items-grid .course .content .course-info { /*height: 225px; padding: 1em 1.5em;*/ }
.peec-courses .courses-wrapper .course-items.items-grid .course .content .course-info .name { font-size: 1.8rem; height: 110px; }
.peec-courses .courses-wrapper .course-items.items-grid .course .content .course-info .name, .peec-courses .courses-wrapper .course-items.items-grid .course .content .course-info .detail { text-align: left; font-family: inherit;}
.peec-courses .courses-wrapper .course-items.items-slider { padding: 0 0.5rem; }
.peec-courses .courses-wrapper .course-items.items-slider .course { margin: 0 1.5rem; }
.peec-courses .courses-wrapper .course-items.items-slider .slick-arrow { border: none; background-color: #FFF; font-size: 2em; height: 6rem; outline: none; position: absolute; top: 50%; width: 3.5rem; -webkit-transform: translateY(-50%); transform: translateY(-50%); -webkit-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; }
.peec-courses .courses-wrapper .course-items.items-slider .slick-arrow.prev { left: -3.5rem; }
.peec-courses .courses-wrapper .course-items.items-slider .slick-arrow.next { right: -3.5rem; }
.peec-courses .courses-wrapper .course-items.items-slider .slick-arrow:hover { background-color: rgba(0, 0, 0, 0.05); }


@media (min-width: 768px) and (max-width: 1199px) {
  .peec-courses .courses-wrapper .course-items.items-grid { justify-content: center; display: grid; grid-template-columns: (2, 1fr); } }

@media screen and (max-width: 767px) {
  .peec-courses { margin: 7rem 0px; margin-top: -35px; padding: 0;  overflow: visible !important;margin-bottom: -10px !important}

  .peec-courses .courses-container {
    flex-direction: column;
  }
  .peec-courses .pagination-counter {
    margin-left: 15%;
    margin-bottom: 35px;
  }
  .peec-courses .pagination-container {
    margin-left: 15%;
}

  .peec-courses .courses-wrapper {
     /* Ajusta este valor según la altura de los filtros */
    width: 100%;
    /* margin-left: 10%; */
  }
  .peec-courses .filters .categories .options {

    font-size: 1.6rem;
    color: #20313d !important;
  }
  .peec-courses .courses-wrapper .course-items.items-grid .course .content .course-info .name {  height: 65px !important; } /*estaba en auto*/



}
.peec-courses .courses-wrapper .course-items.items-grid .course .content .course-info .name { font-size: 1.8rem; height: 42px !important; width: 100%; margin-top: -1px; justify-self: anchor-center;}
/*no habia anchor center, pero se hizo para que ocupara mejor el espacio del titulo del curso y antes de sacar a name de adentro de detail*/
.peec-courses .courses-wrapper .course-items.items-grid .course .content .course-info .name, .peec-courses .courses-wrapper .course-items.items-grid .course .content .course-info .detail { /*font-size: 18px;*/}
.peec-courses .courses-wrapper .course-items.items-grid { gap: 0px; /*margin-right: 13%;*/}
.peec-courses .courses-wrapper .course-items .course .content .button {

  justify-self: auto;
}

  @media screen and (max-width: 768px) {
    .peec-courses .courses-wrapper .course-items.items-grid .course { min-width: 90%;}

    .filter-section {
      width: auto;
      margin-left: 0;
    }

    .peec-courses .filters {
      width: 80%;
      position: relative;
      top: 0;
      left: 0;
      right: 0;
      z-index: 10;
      background-color: #f6f8fc;
      /* padding: 1em; */
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      /* margin-left: 10%; */
      margin-top: 0px;
      /* margin-bottom: 10px; */
      color: #20313d !important;
  }

    .peec-courses .filters .categories,
    .peec-courses .filters .sorting-buttons {
      color: #20313d !important;
      width: 100%;
    }

    .peec-courses .filters .categories label {
      color: #20313d !important;
      font-size: 23px;
    }

    .peec-courses .filters .sorting-buttons .button-group button {
      color: #20313d !important;
      font-size: 18px;
      padding: 8px 12px;
    }
    .filters-drawer {
      transition: transform 0.3s ease, opacity 0.3s ease;
      color: #20313d !important;

    }


  .peec-courses .courses-wrapper .course-items .course .content .image {
    display: none;
  }


  }

  @media screen and (max-width: 768px) {
    button, input, optgroup, select, textarea {
        color: #20313d !important;
        font: inherit;
        margin: 0;
    }
}


  .peec-courses .courses-title { font-size: 1.75em; }
  .peec-courses .courses-wrapper .course-items.items-grid .course { /*display: contents*/}
  .peec-courses .courses-wrapper .course-items.items-grid { justify-content: center; display: grid; grid-template-columns: 1fr; /*gap: 12%;*/ }
  .peec-courses .courses-wrapper .course-items .slick-dots { bottom: -40px; margin: 0; }
  .peec-courses .courses-wrapper .course-items .slick-dots li { height: 12px; margin: 0 4px; width: 12px; }
  .peec-courses .courses-wrapper .course-items .slick-dots li button { height: 12px; padding: 0; position: relative; width: 12px; border-radius: 50%; border: 2px solid #0a526a; }
  .peec-courses .courses-wrapper .course-items .slick-dots li button::before { display: none; }
  .peec-courses .courses-wrapper .course-items .slick-dots .slick-active button { background-color: #0a526a; }
  .courses { margin-top: 10px; padding: 25px 25px 5px; }

  .courses .courses-content .activity { width: 100%; padding: 15px 15px 0px; }







  /* Botón "Ver más" */
.peec-courses .courses-wrapper .course-items .course .content .cta {
  display: block;
  align-items: center;
  justify-content: center;
  background-color: #e0e7eb;
  color: #20313d;
  font-size: 1.8rem;
  font-weight: bold;
  border-radius: 5px;
  padding: 0.5rem 1rem;
  text-align: center;
  cursor: pointer;
  align-self: flex-end;
  width: fit-content;
  justify-self: right;
}

.peec-courses .courses-wrapper .course-items .course .content .cta:hover {
  background-color: #f5c35c;
  color: #20313d;
}

.peec-courses .courses-wrapper .course-items .course .content .cta::after {
  content: '→';
  margin-left: 0.5rem;
  font-size: 1rem;
}


/* Botón "Ver más" */
.course-items.items-slider .course .content .cta  {
  display: block;
  align-items: center;
  justify-content: center;
  background-color: #e0e7eb; /* Fondo del botón */
  color: #20313d; /* Color del texto */
  font-size: 1.4rem;
  font-weight: bold;
  border-radius: 10px; /* Bordes redondeados */
  padding: 0.5rem 1rem; /* Espaciado interno */

  text-align: center;
  cursor: pointer;
  align-self: flex-end; /* Alineación a la derecha */
  width: fit-content;
  justify-self: right;
}

.course-items.items-slider .course .content .cta:hover {
  background-color: #d4dae0; /* Fondo más oscuro al pasar el mouse */
}

.course-items.items-slider .course .content .cta ::after {
  content: '→'; /* Flecha hacia la derecha */
  margin-left: 0.5rem;
  font-size: 1rem;
}