/* ==============
   GENERAL
   ============== */
.swiper { width: 100%; padding: 40px 0; }
.swiper-slide { box-sizing: border-box; }

/* Ocultar flechas si no hay suficientes slides */
.swiper-button-prev.swiper-button-disabled,
.swiper-button-next.swiper-button-disabled {
  display: none !important;
}

/* ======================
   SHORTCODE: AGENDA ANUAL
   ====================== */
.ae-anual { position: relative; }
.ae-anual .swiper-wrapper { align-items: flex-start; }

.ae-anual .ae-month-slide {
  position: relative;
  text-align: center;
  padding: 0;
}

/* círculo del mes */
.ae-anual .ae-circle {
  display: inline-block;
  border-radius: 50%;
  border: 8px solid #f1c40f; /* color base, se puede variar según mes */
  color: #f1c40f;
  font-size: 21px;
  font-weight: normal;
  padding: 30px 26px;
  width: 140px;
  height: 140px;
  padding: 0;
  line-height: 140px;
  position: relative;
  z-index: 2;
  text-transform:capitalize!important;
}






/* triangulito apuntando hacia la línea */
.ae-anual .ae-circle::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 20px 16px 0 16px;
  border-style: solid;
  border-color: #f1c40f transparent transparent transparent;
}

.ae-anual .ae-circle::before {
  content: "";
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 22px; border-radius: 100%; border: 4px solid #15b9ed; background-color: #fff;
}



.ae-anual .swiper-slide.color-0 .ae-circle { border-color: #feca05; color: #feca05; }
.ae-anual .swiper-slide.color-1 .ae-circle { border-color: #aec914; color: #aec914; }
.ae-anual .swiper-slide.color-2 .ae-circle { border-color: #f8af07; color: #f8af07; }
.ae-anual .swiper-slide.color-3 .ae-circle { border-color: #15b9ed; color: #15b9ed; }

.ae-anual .swiper-slide.color-0 .ae-circle::after { border-color: #feca05 transparent transparent transparent; }
.ae-anual .swiper-slide.color-1 .ae-circle::after { border-color: #aec914 transparent transparent transparent; }
.ae-anual .swiper-slide.color-2 .ae-circle::after { border-color: #f8af07 transparent transparent transparent; }
.ae-anual .swiper-slide.color-3 .ae-circle::after { border-color: #15b9ed transparent transparent transparent; }













.ae-month-events{position: relative;}
.ae-month-events::after{
  content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #00aaff;
    z-index: 1;
}


/* puntito sobre la línea */
.ae-anual .ae-dot {
  position: absolute;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #00aaff;
  z-index: 2;
}

/* lista de eventos debajo */
.ae-anual .ae-month-events {
  margin-top: 28px;
  text-align: left;
  list-style: disc;
  padding: 30px 20px 0 20px;
  font-size: 18px;
  color: #222;
}

.ae-anual .ae-month-events li {
  margin-bottom: 6px;
}

/* ======================
   NAVEGACIÓN
   ====================== */
.swiper-button-prev,
.swiper-button-next {
  color: #999;
 
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 50px;
  font-weight: 300;
}

.ae-anual .swiper-button-prev,
.ae-anual .swiper-button-next {
   top: 106px;
}

.ae-proximos .swiper-button-prev,
.ae-proximos .swiper-button-next {
   top: 140px;
}



.ae-card {
  overflow: hidden;
  text-align: center;
  
}

.ae-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;       /* cuadrado */
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  position: relative;        /* importante para que ae-date se posicione dentro */
  margin-bottom: 0.8rem;
  max-width: 190px;
  margin: auto;
}

.ae-date {
  position: absolute;        /* sobre la imagen */
  bottom: 0;                 /* en la parte inferior */
  left: 0;
  width: 100%;
  background-color: rgba(0,0,0,0.6); /* fondo semitransparente negro */
  color: #fff;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  padding: 1rem 0;
  border-bottom-left-radius: 20px;   /* coincide con el borde de la imagen */
  border-bottom-right-radius: 20px;
}





/* triangulito apuntando hacia la línea */
.ae-proximos .ae-date::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 20px 16px 0 16px;
  border-style: solid;
  border-color: #f1c40f transparent transparent transparent;
}

.ae-proximos .ae-date::before {
  content: "";
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 22px; border-radius: 100%; border: 4px solid #15b9ed; background-color: #fff; z-index: 2;
}


.ae-proximos .swiper-slide.color-0 .ae-date { background-color: #feca05; }
.ae-proximos .swiper-slide.color-1 .ae-date { background-color: #aec914; }
.ae-proximos .swiper-slide.color-2 .ae-date { background-color: #f8af07; }
.ae-proximos .swiper-slide.color-3 .ae-date { background-color: #15b9ed; }

.ae-proximos .swiper-slide.color-0 .ae-date::after { border-color: #feca05 transparent transparent transparent; }
.ae-proximos .swiper-slide.color-1 .ae-date::after { border-color: #aec914 transparent transparent transparent; }
.ae-proximos .swiper-slide.color-2 .ae-date::after { border-color: #f8af07 transparent transparent transparent; }
.ae-proximos .swiper-slide.color-3 .ae-date::after { border-color: #15b9ed transparent transparent transparent; }



.eventos-agenda ul li:nth-child(4n + 1) .ae-date {
  background-color: #feca05; /* Color 1 */
}
.eventos-agenda ul li:nth-child(4n + 2) .ae-date {
  background-color: #aec914; /* Color 2 */
}
.eventos-agenda ul li:nth-child(4n + 3) .ae-date {
  background-color: #f8af07; /* Color 3 */
}
.eventos-agenda ul li:nth-child(4n + 4) .ae-date {
  background-color: #15b9ed; /* Color 4 */
}




.ae-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #000;
  margin-top: 35px;
  position: relative;
  padding: 30px;
}



.ae-title::after{
  content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #00aaff;
    z-index: 1;
}