/* calendario  */
:root {
    --calendar-txt: 'Sora-Regular';
    --calendar-txt-medium: 'Sora-Medium';
    --calendar-txt-bold: 'Sora-Bold';
    --calendar-primary-color: #28166f;
}

.calendar-container {
    float: left;
    width: 100%;
    margin-top: -78px;
    padding-bottom: 110px;
}

.calendar thead td {
    border: none;
    padding: 20px 0;
    font-size: 16px;
}

li.c-pp {
    margin-left: 60px;
}

#container.calendar-container {
    float: left;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    padding-bottom: 110px;
}

.events {
    width: 500px;
    border: 1px solid #000;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 9;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.17);
    background: #fff;
}

.events ul {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.events ul li {
    flex: 0 1 100%;
    border-bottom: 1px solid #000;
    background: #fff;
}

.events ul li a {
    display: flex;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}

.events ul li a .eve-img {
    flex: 0 1 31%;
    overflow: hidden;
}

.events ul li a .eve-img img {
    float: left;
    width: 100%;
    transition: all .5s ease;
    -moz-transition: all .5s ease;
    -webkit-transition: all .5s ease;
    -o-transition: all .5s ease;
}

.events ul li a .eve-cnt {
    flex: 0 1 69%;
    padding-left: 22px;
    text-align: left;
}

.events ul li a .eve-cnt h2 {
    font-family: var(--calendar-txt-bold);
    font-weight: normal;
    font-size: 26px;
    line-height: 30px;
    text-align: left;
    color: #000;
}

.events ul li a .eve-cnt h3 {
    font-family: var(--calendar-txt-medium);
    font-weight: normal;
    font-size: 16px;
    line-height: 26px;
    text-align: left;
    color: var(--calendar-primary-color);
}

.events ul li a .eve-cnt p {
    font-family: var(--calendar-txt-bold);
    font-weight: normal;
    font-size: 16px;
    line-height: 26px;
    text-align: left;
    color: #000;
}

.events.event-1 {
    display: none;
}

.events.event-2 {
    display: none;
}

.events.event-3 {
    display: none;
}

.events.event-1.hover-class {
    display: block;
}

.events.event-2.hover-class {
    display: block;
}

.events.event-3.hover-class {
    display: block;
}

.calendar .day {
    font-family: var(--calendar-txt-bold);
}

.calendar .day.has-event-2::after {
    background: url(../images/d-2.svg) no-repeat;
}

.calendar .day.has-event-1::after {
    background: url(../images/d-1.svg) no-repeat;
    width: 8px !important;
}

.calendar .day.has-event-3::after {
    background: url(../images/d-3.svg) no-repeat;
    width: 38px !important;
}

h2.month {
    display: flex;
    margin-left: 55px;
    margin-top: 15px;
}

.month .year {
    width: auto;
    padding-left: 15px;
}

/* filtres */
.buscar {
    float: left;
    width: 100%;
}

.buscar .bus-ca {
    float: left;
    width: 100%;
    margin-bottom: 20px;
    position: relative;
}

.buscar .bus-ca input[type="text"] {
    border: 1px solid #e4e4e4;
    float: left;
    width: 100%;
    font-size: 18px;
    height: 70px;
    line-height: 20px;
    color: #898989;
    padding: 0 60px;
    background: url(../images/ico-search.svg) no-repeat left 20px center;
}

.buscar .bus-ca input[type="button"] {
    text-transform: uppercase;
    font-size: 18px;
    cursor: pointer;
    color: #000;
    transition: all .5s ease;
    -moz-transition: all .5s ease;
    -webkit-transition: all .5s ease;
    -o-transition: all .5s ease;
    background: transparent;
    border: 1px solid #000;
    border-radius: 8px;
    height: 50px;
    padding: 0 20px;
    position: absolute;
    right: 10px;
    top: 10px;
}

.buscar ul {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
    column-gap: 1%;
}

.buscar ul li {
    flex: 0 1 22%;
}

.buscar ul li .lang-slt .nice-select {
    height: auto;
    width: 100%;
    color: #000;
    line-height: 17px;
    padding-right: 18px;
    font-family: var(--calendar-txt-bold);
    font-weight: normal;
    font-size: 16px;
    text-align: left;
    color: #797979;
    background: transparent;
    border: 1px solid #cbcbcb;
    border-radius: 100px;
    padding: 20px 10px 20px 20px;
}

.buscar ul li .lang-slt .nice-select::after {
    right: 25px;
    margin-top: -5px;
}

.buscar ul li .lang-slt .nice-select .option:hover {
    background-color: var(--calendar-primary-color);
    color: #fff;
}

.buscar ul li .lang-slt .nice-select .option {
    color: #000000;
    font-size: 12px;
    line-height: 25px;
    font-weight: normal;
    text-align: left;
    font-family: var(--calendar-txt);
    border-right: none;
    padding: 6px 10px;
    background: #fff;
    flex: 0 1 100%;
}

.buscar ul li .lang-slt .nice-select:hover {
    color: var(--calendar-primary-color);
}

.buscar ul li .lang-slt .nice-select:hover::after {
    border-bottom: 2px solid var(--calendar-primary-color);
    border-right: 2px solid var(--calendar-primary-color);
}

.buscar ul li button {
    border: none;
    background: #fff url(../images/clear.png) no-repeat left center;
    font-size: 16px;
    text-align: right;
    cursor: pointer;
    transition: all .5s ease;
    -moz-transition: all .5s ease;
    -webkit-transition: all .5s ease;
    -o-transition: all .5s ease;
    padding-left: 21px;
    background-size: 15px;
    color: #939393;
}

.buscar ul>li:last-child {
    flex: 0 1 8%;
    text-align: right;
}

.buscar .bus-ca input[type="button"]:hover {
    background: #000;
    color: #fff;
}

.buscar ul li button:hover {
    opacity: 0.7;
}

/** CALENDARIO **/

.calendar .event-container {
    display: none;
    position: absolute;
    top: 220px;
    left: 290px;
    width: 53%;
    height: auto;
    padding: 0px;
    background: transparent;
    box-sizing: border-box;
    opacity: initial;
    z-index: 9;
}

/* .calendar .event-container {
    display: none;
    position: absolute;
    top: 180px;
    left: 195px;
    width: 65%;
    height: auto;
    padding: 70px;
    background: transparent;
    box-sizing: border-box;
    opacity: initial;
    z-index: 99999;
} */

.calendar .event-container .close {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 0;
    right: 0;
    cursor: pointer;
    background: var(--calendar-primary-color);
    border-radius: 100%;
    z-index: 9;
}

.calendar .event-container .close:before,
.calendar .event-container .close:after {
    content: '';
    position: absolute;
    top: 0;
    left: 49%;
    width: 2px;
    height: 100%;
    background-color: #ffffff;
}

.calendar .event-container .event {
    display: flex;
    position: relative;
    width: 100%;
    background: white;
    border-radius: 0px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.12);
    text-align: left;
    color: black;
    height: 145px;
    padding: 0;
    margin-bottom: 0;
    border: 1px solid black;
    margin-top: -1px;
}

.calendar .event-container .event:first-child {
    margin-top: 0px;
}

.calendar .event-container .event .lugar {
    margin-top: 5px;
    margin-bottom: 10px;
    color: var(--calendar-primary-color);
    font-family: var(--calendar-txt-bold);
}

.calendar .event-container .event .event-name {
    color: inherit;
    font-family: var(--calendar-txt);
}

.calendar .event-container .event .event-hour {
    color: black;
}

.calendar .event-container .event img {
    height: 143px;
    width: 143px;
    object-fit: cover;
}

.calendar .event-container .event-wrapper {
    max-height: 100%;
    overflow: hidden;
}

.event-wrapper .event .rht {
    display: flex;
    flex-direction: column;
    padding: 20px 35px;
}

a.simple-calendar-btn.btn-prev {
    top: 0;
    left: 0;
    background: url(../images/ico-arrow-left.svg) no-repeat;
    width: 15px;
    height: 24px;
    opacity: 0.3;
    margin-right: 10px;
    border: none;
    z-index: 999;
    display: inline-block;
    position: absolute;
    text-align: center;
    line-height: 30px;
    color: #CBD1D2;
    border-radius: 50%;
    margin-top: 40px;
}

a.simple-calendar-btn.btn-next {
    top: 0;
    left: 25px;
    background: url(../images/ico-arrow-right.svg) no-repeat;
    width: 15px;
    height: 24px;
    opacity: 0.3;
    border: none;
    z-index: 999;
    display: inline-block;
    position: absolute;
    text-align: center;
    line-height: 30px;
    color: #CBD1D2;
    border-radius: 50%;
    margin-top: 40px;
}

h2.month {
    display: flex;
    margin-left: 55px;
    margin-top: 15px;
}

.month .year {
    width: auto;
    padding-left: 15px;
}

.calendar header {
    z-index: 9;
}

.has-event-3::after,
.has-event-2::after,
.has-event-1::after {
    display: none !important;
}

.day.has-event {
    border: 2px var(--calendar-primary-color) solid;
}

.day.has-event.active {
    background: var(--calendar-primary-color);
    color: #fff;
}

.calendar .event-container .event-summary {
    font-weight: normal;
    font-size: 14px;
}

/* PALMAS DISEÑO */
.calendar {
    position: relative;
    float: left;
    width: 100%;
}

.calendar table {
    width: 100%;
    /* width: 72%; */
    float: right;
}

.calendar .event-container {
    display: none;
    width: 39%;
    float: left;
    position: relative;
    top: 0;
    left: 0;
    padding: 0;
    height: 100%;
    /* border: solid 1px red; */
    padding-top: 40px;
    margin-top: 57px;
    max-height: 100%;
}

.calendar .event-container .event-wrapper {
    max-height: 100%;
    overflow: hidden;
    height: 100%;
    overflow: initial;
    display: block;
    overflow-y: auto;
    max-height: 610px;
}

.calendar .event-container .event {
    height: auto;
}

.calendar .event-container .event>a {
    width: 100%;
    transition: all 0.3s ease;
}

.calendar .event-container .event>a:hover {
    background: #28166f;
    color: #fff;
}

.calendar .event-container .event>a:hover .event-name {
    color: #fff;
}

.calendar .event-container .event .lft {
    display: none;
}

.event-wrapper .event .rht {
    display: flex;
    flex-direction: column;
    padding: 15px;
    width: 100%;
}

.calendar .day.today:not(.active) {
    background: inherit;
    color: var(--calendar-primary-color);
}

.calendar table.loading :is(thead, tbody) {
    opacity: 0.2;
}

.calendar .day.today.has-event:after {
    background: none;
}

.calendar table.loading {
    position: relative;
    /* Necesario para posicionar el ::after */
    border-collapse: collapse;
    /* Opcional: para evitar bordes dobles */
    width: 100%;
    /* Opcional: para que la tabla ocupe todo el ancho */
}

.calendar table.loading::after {
    content: '';
    display: none;
    /* Inicialmente oculto */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    /* Fondo semitransparente */
    z-index: 10;
    /* Asegura que el loader esté por encima del contenido de la tabla */

    /* Estilos para el loader CSS */
    display: flex;
    justify-content: center;
    align-items: center;
}

.calendar table.loading::after {
    border: 4px solid #f3f3f3;
    /* Borde gris claro */
    border-top: 4px solid #3498db;
    /* Borde azul */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
}

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

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

/* Clase para activar el loader */
.calendar table.loading::after {
    display: flex;
    /* Cambiamos a flex para centrar el loader */
}

/* Estilos para la página de calendario */
.page-template-calendario .categories {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    /* Permite que los botones pasen a la siguiente línea en pantallas pequeñas */
    gap: 8px;
    /* Espacio entre los botones */
    margin-bottom: 20px;
    /* Espacio debajo de los botones */
}

.page-template-calendario .category-button {
    background-color: #f2f2f2;
    /* Gris claro de fondo */
    color: #333;
    /* Texto oscuro */
    border: 1px solid #ccc;
    /* Borde gris claro */
    padding: 8px 15px;
    /* Espaciado interior */
    border-radius: 20px;
    /* Bordes redondeados */
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Transición suave para el hover */
    text-transform: capitalize;
}

.page-template-calendario .category-button:hover {
    /* background-color: #28166f !important; */
    color: #fff !important;
    border-color: #28166f !important;
}

.page-template-calendario .category-button.active {
    /* background-color: #28166f !important; */
    color: #fff !important;
    border-color: #28166f !important;
}

.page-template-calendario .category-button.active:hover {
    /* background-color: #28166f; */
    border-color: #28166f;
}

/* Opcional: Estilos adicionales para mejorar la apariencia */
.page-template-calendario .categories {
    /* Centrar los botones si es necesario */
    /* justify-content: center; */
    /* Alineación a la izquierda (comportamiento por defecto) */
    align-items: center;
    /* Alineación vertical */
}

.page-template-calendario .category-button {
    /* Evitar que el texto se rompa y forzar un ancho mínimo si es necesario */
    white-space: nowrap;
}

.page-template-calendario .calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: #fff;
    padding-left: 0;
    gap: 10px;
    flex-flow: wrap;
}

.page-template-calendario .calendar-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #222;
    margin: 0;

    font-family: var(--calendar-txt-bold);
    font-size: 60px;
    line-height: 60px;
}

.page-template-calendario .calendar-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.page-template-calendario .date-switcher {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 20px;
    overflow: hidden;
}

.page-template-calendario .date-button {
    background-color: #f9f9f9;
    color: #555;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-template-calendario .date-button:hover {
    background-color: #eee;
}

.page-template-calendario .date-button.active {
    background-color: #28166f;
    color: #fff;
}

.page-template-calendario .search-bar {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 25px;
    overflow: hidden;
}

.page-template-calendario .search-input {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    font-size: 16px;
    outline: none;
}

.page-template-calendario .search-input::placeholder {
    color: #999;
}

.page-template-calendario .search-button {
    background-color: #28166f;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    padding: 5px;
    border: solid 4px #fff;
}

.page-template-calendario .search-button:hover {
    background-color: #28166f;
}

.page-template-calendario .search-button svg {
    width: 20px;
    height: 20px;
}

.calendar table.open .day {
    padding: 42px 10px;
}

/* end PALMAS DISEÑO */

/* MEDIA */
@media screen and (max-width: 1023px) {
    .calendar .day {
        padding: 30px 15px;
    }
}

@media screen and (max-width: 768px) {
    .calendar table {
        width: 100% !important;
    }

    .calendar table.open {
        display: none !important;
    }

    .calendar .event-container {
        width: 100% !important;
    }

    .calendar .day {
        padding: 15px;
    }
}

/* end MEDIA */