/* Contenedor Principal */
.aje_event_content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 10px;
    position: relative;
    min-height: 410px;
}

.aje_event_content * {
    font-family: "Poppins", sans-serif;
}

/* Calendario */
.aje-events-calendar {
    max-width: 800px;
    margin: 0 auto;
    width: 460px;
}

/* Encabezado del Calendario */
.calendar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.calendar-header h2 {
    margin: 0;
    font-size: 24px;
    text-transform: capitalize;
}

.calendar-header > span svg path {
    transition: .5s all;
}

/* Selectores de Mes y Año */
.mes-selector,
.anio-selector {
    padding: 8px;
    font-size: 24px;
    line-height: 36px;
    border: none;
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    font-weight: 500;
}

.mes-selector:focus,
.anio-selector:focus {
    outline: none;
    border-color: #b41f2f;
}

.anio-selector {
    width: 200px;
}

/* Flechas de Navegación */
.arrow-left,
.arrow-right {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.arrow-left svg,
.arrow-right svg {
    width: 41px;
    height: auto;
}

.arrow-left:hover svg path:first-child,
.arrow-right:hover svg path:first-child {
    fill: #b41f2f;
}

/* Tabla del Calendario */
.aje-events-calendar table {
    width: 100%;
    border-collapse: collapse;
}

.aje-events-calendar th {
    background-color: #b41f2f;
    color: white;
    padding: 5px;
    text-align: center;
    font-weight: normal;
    border: 1px solid #b41f2f;
    border-right-color: white;
}

.aje-events-calendar th:last-child {
    border-right-color: #b41f2f;
}

.aje-events-calendar td {
    border: 1px solid #8B8385;
    padding: 10px;
    text-align: center;
    height: 60px;
    position: relative;
    transition: all .5s;
    width: 60px;
    font-size: 14px;
    font-weight: 500;
}

.aje-events-calendar td.activo {
    color: #b41f2f;
    font-weight: 700;
    cursor: pointer;
    font-size: 20px;
    line-height: 24px;
}

.aje-events-calendar td.unactive {
    cursor: no-drop;
    color: #8B8385;
}

.aje-events-calendar td.disabled {
    background-color: #f9f9f9;
    cursor: default;
}

.aje-events-calendar td:empty {
    background-color: #e8e6e7;
    border: none;
}

.aje-events-calendar td.today {
    border: 2px solid #b41f2f;
}

.aje-events-calendar td.activo:hover,
.aje-events-calendar td.activo.selected{
    background-color: #b41f2f45;
}

/* Indicadores de Eventos */
.event-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2px;
}

.event-dot {
    width: 6px;
    height: 6px;
    background-color: #b41f2f;
    border-radius: 50%;
    display: inline-block;
}

/* Lista de Eventos */
.aje-events-list-general {
    position: relative;
    max-width: 100%;
}

.aje-events-list-general:after {
    content: "";
    width: 100%;
    position: absolute;
    height: 59px;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 78%);
}

.aje-events-scroll-container {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.aje-events-list {
    max-width: 800px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 50px;
}

.aje-events-list::-webkit-scrollbar {
    display: none;
}

/* Título de Eventos */
.eventos-titulo {
    font-size: 24px;
    margin: 0;
    margin-bottom: 30px;
    font-weight: 500;
}

/* Tarjeta de Evento */
.evento-card {
    background: #b41f2f;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 5px;
    color: white;
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all .3s ease;
    padding-right: 50px;
    min-width: 445px;
}

.evento-card:nth-child(2n) {
    background-color: #85071F;
}

.evento-card:hover {
    padding-left: 30px;
}

.evento-card:hover .icono-flecha {
    transform: scale(1.2);
}

/* Fecha del Evento */
.evento-fecha {
    text-align: center;
    margin-right: 20px;
    min-width: 60px;
    z-index: 1;
}

.evento-dia {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.evento-mes {
    font-size: 20px;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 22px;
}

/* Información del Evento */
.evento-info {
    flex-grow: 1;
    z-index: 1;
}

.evento-titulo {
    font-size: 20px;
    margin: 0 0 10px 0;
    font-weight: 700;
    display: flex;
    gap: 5px;
}

.evento-hora,
.evento-ubicacion {
    display: flex;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 400;
    flex-direction: column;
    padding-left: 25px;
    position: relative;
}

.evento-direccion {
    font-size: 11px;
    line-height: 14px;
    font-style: italic;
}

.evento-direccion p {
    margin: 0;
}

/* Enlace de dirección dentro de tarjetas: visible y sin estilos */
.evento-card .evento-direccion a {
    position: relative;
    width: auto;
    height: auto;
    z-index: 3;
    left: auto;
    top: auto;
    opacity: 1;
    text-decoration: none;
    color: #fff !important;
}

.evento-card .evento-direccion a:hover {
    text-decoration: none;
    color: #fff !important;
}

.evento-card .evento-direccion a:active {
    text-decoration: none;
    color: #fff !important;
}

.evento-card .evento-direccion a:visited {
    text-decoration: none;
    color: #fff !important;
}

.evento-card a {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    left: 0;
    top: 0;
    opacity: 0;
}

/* Enlace del shortcode de lugar: sin estilos ni hover */
.aje-lugar-link {
    text-decoration: none;
    color: #fff !important;
}

.aje-lugar-link:hover {
    text-decoration: none;
    color: #fff !important;
}

.aje-lugar-link:active {
    text-decoration: none;
    color: #fff !important;
}

.aje-lugar-link:visited {
    text-decoration: none;
    color: #fff !important;
}



/* Iconos */
.icono-reloj,
.icono-ubicacion {
    width: 15px;
    height: 15px;
    position: absolute;
    left: 0;
    top: 2px;
}

.icono-reloj {
    background-image: url(../img/clock.svg);
}

.icono-ubicacion {
    background-image: url(../img/pin.svg);
}

.icono-flecha {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(../img/share.svg);
    transition: all .3s;
    transform: scale(1);
    position: absolute;
    right: 20px;
    z-index: 1;
}

.evento-card-imagen {
    background-position: center right;
    background-size: 200px;
    overflow: hidden;
    position: relative;
    background-repeat: no-repeat;
    margin-bottom: 10px;
} 

.icono-flecha.alt {
    filter: brightness(0);
} 

.evento-card.evento-card-imagen:hover .icono-flecha.alt { 
    filter: brightness(1); 
} 

.evento-card-degradado {
    width: 105%;
    height: 100%;
    position: absolute;
    background: #b41f2f;
    background: linear-gradient(90deg,         rgba(180, 31, 47, 1) 0%,         rgba(180, 31, 47, 1) 65%,         rgba(0, 0, 0, 0) 85%    );
    left: 0;
    top: 0;
    z-index: 0;
    transition: all .5s;
} 

.evento-card.evento-card-imagen:hover .evento-card-degradado { 
   width: 150%; 
}

.evento-card:nth-child(2n) .evento-card-degradado {
    background-color: #85071F;
    background: linear-gradient(90deg, #85071F 0%, #85071F 65%,         rgba(0, 0, 0, 0) 85%    );
}

/* Scrollbar Personalizada */
.aje-events-scrollbar {
    position: absolute;
    left: -20px;
    bottom: 50px;
    width: 4px;
    height: 280px;
    background-color: lch(55.52 3.41 0.92 / 0.5);
    border-radius: 20px;
}

.scrollbar-thumb {
    position: absolute;
    width: 100%;
    height: 30%;
    background: #242424;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s;
}

.scrollbar-thumb:hover {
    background: #8a1628;
}

/* Modal */

.aje-events-modal {
    background-color: #00000096;
    position: fixed;
    width: 100vw;
    height: 100vh;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row-reverse;
    gap: 20px;
    opacity: 0;
    transition: all .3s;
    z-index: 9999;
}

h2.evento-titulo {
    color: white;
    border: 3px solid #FFFFFF;
    border-radius: 14px;
    padding: 10px;
    font-weight: 700;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h2.evento-titulo > * {
    display: block;
}

.aje-events-modal * {
    font-family: 'Poppins', sans-serif;
}

h2.evento-titulo > span {
    font-size: 60px;
    line-height: 58px;
}

h2.evento-titulo > i {
    font-style: normal;
    font-size: 37px;
    line-height: 35px;
}

.aje-events-modal-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
}

.aje-events-modal-list {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 10px;
    padding-bottom: 50px;
}

.aje-events-modal-list::-webkit-scrollbar {
  width: 4px;
}

.aje-events-modal-list::-webkit-scrollbar-track {
  background: #c4c0c1;
  border-radius: 4px;
}

.aje-events-modal-list::-webkit-scrollbar-thumb {
  background: #242424 ;
  border-radius: 4px;
}

.aje-events-modal-list::-webkit-scrollbar-thumb:hover {
  background: #b41f2f
}

.aje-events-modal-list {
    scrollbar-width: thin;
    scrollbar-color: #242424 #c4c0c1;
}

.aje-events-modal-content:after {
    content: "";
    width: 100%;
    position: absolute;
    height: 59px;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #696969 78%);
}

#calendario-container {
    width: 460px;
    opacity: 0;
}

#eventos-container {
    width: calc(100% - 480px);
    opacity: 0;
}

.no-hay-eventos {
    background-color: #e8e6e7;
    display: flex;
    padding: 10px 30px;
    /* margin-left: -20px; */
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    flex-direction: column;
    gap: 10px;
    /* width: calc(100% + 20px); */
    width: calc(100%);
}

.icono-calendario {
    background-image: url(../img/calendar.svg);
    width: 50px;
    height: 50px;
    display: block;
    background-size: contain;
    filter: brightness(0.5);
}

.calendar-header-left {
    display: flex;
    width: 70%;
    justify-content: flex-start;
}



.calendar-header-right {
    display: flex;
    width: 30%;
    justify-content: flex-end;
}

.calendar-header-left > select {
    color: #b41f2f;
    font-weight: 700;
    font-size: 24px;
}

.calendar-header-left .mes-selector {
    width: 180px;
}

.calendar-header-left .anio-selector {
    width: 95px;
}

.tipo-selector {
    font-size: 16px;
    line-height: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    cursor: pointer;
}

.tipo-selector i {
    width: 36px;
    height: 36px;
    background-size: contain;
    background-repeat: no-repeat;
    display: block;
}

.icono-cuadricula {
    background-image: url(../img/cuadricula.svg);
}

.icono-lista {
    background-image: url(../img/lista.svg);
}

.aje-events-list-cuadricula .aje-events-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding-bottom: 10px;
}

.aje-events-list-cuadricula .evento-card.evento-card-imagen {
    width: calc(50% - 5px);
    min-width: calc(50% - 5px);
    background-size: cover;
    background-position: center;
    height: 400px;
    padding: 20px;
    display: flex;
    align-items: flex-end;
}

.aje-events-list-cuadricula .evento-card.evento-card-imagen .evento-card-degradado {
    background: linear-gradient(1deg, rgb(0 0 0 / 54%) 0%, rgb(0 0 0 / 52%) 20%, rgb(0 0 0 / 22%) 40%);
}

.aje-events-list-cuadricula .aje-events-scroll-container {
    height: auto;
}

.aje-events-list-cuadricula .evento-card.evento-card-imagen .icono-flecha.alt {
    position: absolute;
    top: 20px;
    right: 20px;
}

.aje-events-list-cuadricula .evento-card.evento-card-imagen .evento-fecha {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #b41f2f;
    padding: 6px 5px;
}

.aje-events-list-cuadricula .evento-card.evento-card-imagen .evento-info {
    padding-right: 20px;
    padding-left: 0;
    transition: all .5s;
}

.aje-events-list-cuadricula .evento-card.evento-card-imagen:hover .evento-info {
    padding-left: 20px;
    padding-right: 0;
}

.aje-events-list-cuadricula .evento-card.evento-card-imagen:hover .evento-card-degradado {
    background-color: #00000078;
}

.aje-events-calendar.tipo2 {
    margin-top: 75px;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .aje-events-calendar td {
        padding: 5px;
        font-size: 14px;
    }

    .calendar-header h2 {
        font-size: 20px;
    }

    .evento-fecha {
        margin: 0 0 15px 0;
    }

    .evento-info {
        width: 100%;
    }

    .icono-flecha {
        position: absolute;
        top: 20px;
        right: 20px;
    }
}

/* Animación del Logo SVG */
.loader-aje-calendar svg path {
    fill: transparent;
    stroke: #b41f2f;
    stroke-width: 1;
    animation: fillSvgPath 3s ease-in-out infinite;
    
}

@keyframes fillSvgPath {
    0% {
        fill: transparent;
        stroke-dasharray: 1000;
        stroke-dashoffset: 1000;
    }
    30% {
        fill: #b41f2f;
        stroke-dashoffset: 0;
    }
    70% {
        fill: #b41f2f;
    }
    100% {
        fill: transparent;
        stroke-dasharray: 1000;
        stroke-dashoffset: 1000;
    }
}

.loader-aje-calendar {
    padding: 20px;
    border-radius: 10px;
    width: fit-content;
    margin: 0 auto;
    opacity: 1;
    position: absolute;
    width: 100%;
    height: 410px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aje-events-modal .aje-events-modal-content:after {
    display: none;
}

.aje-events-list-old {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 40px;
}

.aje-events-list-old .eventos-titulo {
    width: 150px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 32px;
    color: #B41F2F;
}

.aje-events-list-old .aje-events-list {
    display: flex;
    gap: 20px;
    max-width: calc(100% - 150px);
    flex-wrap: nowrap;
    flex-direction: row;
    width: calc(100% - 150px);
}

.evento-card-img {
    position: absolute;
    width: 100%;
    display: block;
    height: 100%;
    left: 0;
    top: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(1);
    transition: all .5s;
}

.aje-events-list-cuadricula .evento-card:hover .evento-card-img {
    filter: grayscale(0);
}

.aje-events-list-old .evento-card.evento-card-imagen.evento-card-pass {
    width: calc(33.333% - 10px);
    min-width: calc(33.333% - 10px);
    height: 300px;
}

@media screen and (max-width: 1050px)  {
    .aje-events-list-general:not(.aje-events-list-cuadricula) .evento-card-imagen {
        background-image: none !important;
    }
    /* .calendar-header {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    } */
    .mes-selector, .anio-selector{
        font-size: 16px;
    }
    .calendar-header-left,
    .calendar-header-right {
        width: 100%;
        display: flex;
        justify-content: space-around;
    }
}

@media screen and (max-width: 950px)  {

    .aje_t2 .aje-events-list {
        margin-top: 430px;
    }
    
    .aje_t2 div#eventos-container {
        width: 100%;
    }
    
    .aje_t2 .aje_event_content {
        display: flex;
        flex-direction: column;
        max-width: 800px;
        margin: auto;
    }
    
    .aje_t2 .aje-events-calendar.tipo2 {
        margin-top: 0;
    }
    
    .aje_t2 div#calendario-container {
        position: absolute;
        top: 100px;
        left: 50%;
        transform: translate(-50%, 0);
    }
    
    .aje_t2 .aje-events-calendar {width: calc( 100vw - 20px);}
    
    .aje_t2 .calendar-header-left {
        width: 100%;
    }
    
    .aje_t2 .calendar-header-right {
        width: 100%;
    }
    
    .aje_t2 .calendar-header {
        display: flex;
        flex-direction: column;
    }
    
    .aje_t2 .calendar-header-left > select {
        font-size: 18px;
    }
    
    .aje_t2 #calendario-container {
        width: 100vw;
    }
    
    .aje_t2 .aje-events-list-cuadricula .evento-card.evento-card-imagen {
        width: 100%;
    }
    
    .aje_t2 .aje-events-list-cuadricula .evento-card.evento-card-imagen .evento-info {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start;
    }
    
    .aje_t2 .evento-titulo {
        text-align: left;
    }

    .aje_t2 .aje-events-list {
        margin-top: 420px;
    }
    
    .aje_t2 div#eventos-container {
        width: 100%;
    }
    
    .aje_t2 .aje_event_content {
        display: flex;
        flex-direction: column;
        max-width: 800px;
        margin: auto;
    }
    
    .aje_t2 .aje-events-calendar.tipo2 {
        margin-top: 0;
    }
    
    .aje_t2 div#calendario-container {
        position: absolute;
        top: 100px;
        left: 50%;
        transform: translate(-50%, 0);
    }
    
    .aje_t2 .aje-events-calendar {width: calc( 100vw - 20px);}
    
    .aje_t2 .calendar-header-left {
        width: 100%;
    }
    
    .aje_t2 .calendar-header-right {
        width: 100%;
    }
    
    /* .aje_t2 .calendar-header {
        display: flex;
        flex-direction: column;
    } */
    
    .aje_t2 .calendar-header-left > select {
        font-size: 18px;
    }
    
    .aje_t2 #calendario-container {
        width: 100vw;
    }
    
    .aje_t2 .aje-events-list-cuadricula .evento-card.evento-card-imagen {
        width: 0%;
    }
    
    .aje_t2 .aje-events-list-cuadricula .evento-card.evento-card-imagen .evento-info {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start;
    }
    
    .aje_t2 .evento-titulo {
        text-align: left;
    }

    .aje_t2 .no-hay-eventos {
        margin-left: 0;
    }
    
    .aje_t2 .aje-events-list-general:after {
        display: none;
    }
    
    .aje_t2 .aje-events-list-old {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .aje_t2 .aje-events-list-old .eventos-titulo {
        width: 100%;
        text-align: center;
        margin: 10px;
    }
    
    .aje_t2 .aje-events-list-old .aje-events-list {
        width: 100%;
        max-width: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;
    }
    
    .aje_t2 .aje-events-list-old .evento-card.evento-card-imagen.evento-card-pass {
        width: 100%;
    }
    
    .aje_t1 {
        display: flex;
        flex-direction: column-reverse;
        gap: 10px;
    }
    
    .aje_t1 #eventos-container {
        width: 100%;
    }
    
    .aje_t1 h2.eventos-titulo {
        margin: 0;
    }
    
    .aje_t1 #calendario-container {
        width: 100%;
    }
    
    .aje_t1 .aje-events-calendar {
        width: 100%;
    }
    
    .aje_t1 .no-hay-eventos {
        margin-left: 0;
    }
    
    .aje_t1 .evento-info {
        text-align: left;
    }
    
    .aje_t1 .evento-card {
        display: flex;
        flex-direction: row;
        gap: 10px;
        width: 100%;
        min-width: 100%;
    }
    
    .aje_t1 .aje-events-list {
        width: 100%;
    }
    
    .aje_t1 .aje-events-scroll-container {
        max-height: 500px;
        height: auto;
        overflow-y: auto;
    }
    
    .aje-events-modal-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 90%;
    }
    
    .aje-events-modal-content .evento-card {
        display: flex;
        flex-direction: row;
        gap: 10px;
        width: 100%;
        min-width: 100%;
    }
    
    .aje-events-modal-content .evento-info {
        text-align: left;
    }

    .aje-events-list-old .aje-events-list {
        max-width: 100%;
        width: 100%;
    }

    .aje-events-list-old .eventos-titulo {
        width: 100%;
        margin: 10px;
        text-align: center;
    }

    .aje-events-list-old {
        display: flex;
        gap: 0;
        flex-direction: column;
    }

}

@media screen and (max-width: 600px) {
    .aje-events-list-old .evento-card.evento-card-imagen.evento-card-pass {
        width: calc(50% - 10px);
        max-width: calc(50% - 10px);
    }

    .aje-events-list-old .aje-events-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media screen and (max-width: 460px) {
    .aje_t2 .aje-events-list-cuadricula .evento-card.evento-card-imagen {
        width: 100%;
    }
    .evento-card{
        min-width: 100%;
    }
    .aje-events-list-old .evento-card.evento-card-imagen.evento-card-pass {
        width: 100%;
        max-width: 100%;
    }
}







.aje-events-list-proyectos{
    display: flex;
    width: 100%;
    gap: 20px;
    flex-direction: column;
    padding-left: 10px;
    padding-right: 10px;
}

.aje-events-list-proyectos .eventos-titulo{
    width: 100%;
    margin-bottom: 10px;
    text-align: left;
}

.aje-events-list-proyectos .aje-events-list{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    max-width: 100%;
    flex-direction: row;
    width: 100%;
    gap: 20px;
}

.aje-events-list-proyectos .evento-card-imagen {
    margin-bottom: 0px;
}

.aje-events-list-proyectos .evento-card.evento-card-imagen.evento-card-pass{
    width: 100%;
    max-width: 100%;
}

@media screen and (max-width: 600px) {
    .aje-events-list-proyectos .aje-events-list {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

a.aje-lugar-link span {
    color: #fff !important;
}





.evento-card-imagen:before {
  display: block;
  content: "";
  width: 400px;
  height: 400px;
  top: 0px;
  right: 0px;
  position: absolute;
  background: linear-gradient(215deg, #fff 0%, #fff0 30%);
  opacity: 1;
  transition: opacity 0.5s;
}
.evento-card-imagen:hover:before {
  opacity: 0;
}





