/* HOJA DE ESTILOS PARA LOS CALENDARIOS DE THE EVENTS CALENDAR */

/* ESTILOS GENERALES CALENDARIO Y EVENTOS */
.tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-month__body {
  border-top: 1px solid black !important;
  border-left: 1px solid black !important;
}

.fc-daygrid-event-dot, .fc .fc-list-event-dot {
  border-color: var(--c-primary) !important;
}

.fc-timegrid-event {
  border-color: var(--c-primary) !important;
  background-color: var(--c-primary) !important;
}

h3.tribe-events-calendar-month__calendar-event-title {
  font-size: 1rem;
  line-height: 1.5em;
  text-transform: initial;
  color: var(--c-primary) !important;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background: transparent;
}

h2.tribe-events-calendar-latest-past__heading {
  color: var(--c-primary);
}

.tribe-events-calendar-latest-past__event-row {
  align-items: center;
  border-radius: 20px;
  background: var(--c-primary);
}

.tribe-events-calendar-latest-past__event-row .tribe-events-calendar-latest-past__event-date-tag {
  color: var(--c-white);
}

.tribe-events-calendar-latest-past__event-row .tribe-events-calendar-latest-past__event-wrapper {
  background: #f6f6f6;
  color: var(--c-grey);
  padding: 0 0 0 20px !important;
  border-radius: 0 17px 17px 0;
}

.tribe-events-calendar-latest-past__event-row .tribe-events-calendar-latest-past__event-wrapper>article {
  align-items: center;
}

.tribe-events-calendar-latest-past__event-row .tribe-events-calendar-latest-past__event-details {
  padding: 20px;
}

.tribe-events-calendar-latest-past__event-row .tribe-events-calendar-latest-past__event-featured-image-wrapper {
  padding: 0 !important;
}

.tribe-events-calendar-latest-past__event-row .tribe-events-calendar-latest-past__event-featured-image-wrapper img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 0 20px 20px 0;
}


/*LISTADO EVENTOS HOME*/
.minilistado #list-wrp .ect-simple-event,
.minilistado #list-wrp .ect-featured-event {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  height: 180px !important;
}

.minilistado #list-wrp .ect-simple-event .ect-list-post-left,
.minilistado #list-wrp .ect-featured-event .ect-list-post-left {
  border-radius: 20px 0 0 20px;
  width: 45%;
  height: 180px !important;
  border-radius: 20px 0 0 20px;
}

.minilistado #list-wrp .ect-simple-event .ect-list-post-left .ect-list-date,
.minilistado #list-wrp .ect-featured-event .ect-list-post-left .ect-list-date {
  border-radius: 20px 0 0 20px;
  background: var(--c-primary) !important;
  box-shadow: none !important;
  width: 45%;
  -webkit-transition: width linear .5s;
  transition: width linear .5s;
}

.minilistado #list-wrp .ect-simple-event:hover .ect-list-post-left .ect-list-date,
.minilistado #list-wrp .ect-featured-event:hover .ect-list-post-left .ect-list-date {
  width: 100%;
}

.minilistado #list-wrp .ect-simple-event .ect-list-post-left .ect-list-date .ect-date-area,
.minilistado #list-wrp .ect-featured-event .ect-list-post-left .ect-list-date .ect-date-area {
  color: var(--c-white);
  text-align: left;
  padding: 5px;
}

.minilistado #list-wrp .ect-simple-event .ect-list-post-left .ect-list-date .ect-date-area span,
.minilistado #list-wrp .ect-featured-event .ect-list-post-left .ect-list-date .ect-date-area span {
  font-size: 1rem;
  line-height: 1.5em;
}

.minilistado #list-wrp .ect-simple-event .ect-list-post-left .ect-list-date .ect-date-area .ev-day,
.minilistado #list-wrp .ect-featured-event .ect-list-post-left .ect-list-date .ect-date-area .ev-day {
  margin-bottom: -5px !important;
}

.minilistado #list-wrp .ect-simple-event .ect-list-post-right,
.minilistado #list-wrp .ect-featured-event .ect-list-post-right {
  width: 55%;
  height: 180px !important;
  border-radius: 0 20px 20px 0;
  background-color: var(--c-white);
}

.minilistado #list-wrp .ect-simple-event .ect-list-post-right .ect-list-post-right-table,
.minilistado #list-wrp .ect-featured-event .ect-list-post-right .ect-list-post-right-table {
  border-radius: 0 20px 20px 0;
}

.minilistado #list-wrp .ect-simple-event .ect-list-post-right .ect-list-post-right-table .ect-list-description,
.minilistado #list-wrp .ect-featured-event .ect-list-post-right .ect-list-post-right-table .ect-list-description {
  border-radius: 0 20px 20px 0;
  background-color: var(--c-grey-light);
  border: none;
  box-shadow: none;
  vertical-align: middle !important;
}

.minilistado #list-wrp .ect-simple-event .ect-list-post-right h3,
.minilistado #list-wrp .ect-featured-event .ect-list-post-right h3 {
  font-size: 1.125rem;
  line-height: 1.5em;
  font-weight: 500;
  fill: var(--c-grey);
  -webkit-text-fill-color: var(--c-grey) !important;
  margin-bottom: 10px;
}

.minilistado #list-wrp .ect-simple-event .ect-list-post-right .ect-event-content,
.minilistado #list-wrp .ect-featured-event .ect-list-post-right .ect-event-content {
  display: none !important;
}

.minilistado #list-wrp .ect-simple-event .ect-list-img,
.minilistado #list-wrp .ect-featured-event .ect-list-img {
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 20px 0 0 20px;
}

/*CALENDARIO HOME*/
.minicalendario #ectbe-event-calendar-23cdeab .fc-header-toolbar .fc-button-group button.fc-timeGridWeek-button,
.minicalendario #ectbe-event-calendar-23cdeab .fc-header-toolbar .fc-button-group button.fc-timeGridDay-button,
.minicalendario #ectbe-event-calendar-23cdeab .fc-header-toolbar .fc-toolbar-chunk button.fc-today-button,
.minicalendario #ectbe-event-calendar-d4fed0f .fc-header-toolbar .fc-button-group button.fc-timeGridWeek-button,
.minicalendario #ectbe-event-calendar-d4fed0f .fc-header-toolbar .fc-button-group button.fc-timeGridDay-button,
.minicalendario #ectbe-event-calendar-d4fed0f .fc-header-toolbar .fc-toolbar-chunk button.fc-today-button {
  display: none;
}

#ectbe-popup-wraper {
  display: none !important;
}

.minicalendario #ectbe-event-calendar-23cdeab .fc-header-toolbar .fc-button-group,
.minicalendario #ectbe-event-calendar-d4fed0f .fc-header-toolbar .fc-button-group {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.minicalendario #ectbe-event-calendar-23cdeab .fc-header-toolbar .fc-button-group button.fc-prev-button,
.minicalendario #ectbe-event-calendar-23cdeab .fc-header-toolbar .fc-button-group button.fc-next-button,
.minicalendario #ectbe-event-calendar-d4fed0f .fc-header-toolbar .fc-button-group button.fc-prev-button,
.minicalendario #ectbe-event-calendar-d4fed0f .fc-header-toolbar .fc-button-group button.fc-next-button {
  background-color: var(--c-grey-light);
  color: var(--c-primary);
  border-radius: 100px;
  box-shadow: none;
  border: none;
}

.minicalendario #ectbe-event-calendar-23cdeab .fc-header-toolbar .fc-button-group button.fc-button-primary,
.minicalendario #ectbe-event-calendar-23cdeab .fc-header-toolbar .fc-button-group button.fc-timeGridMonth-button,
.minicalendario #ectbe-event-calendar-23cdeab .fc-header-toolbar .fc-button-group button.fc-listMonth-button,
.minicalendario #ectbe-event-calendar-d4fed0f .fc-header-toolbar .fc-button-group button.fc-button-primary,
.minicalendario #ectbe-event-calendar-d4fed0f .fc-header-toolbar .fc-button-group button.fc-timeGridMonth-button,
.minicalendario #ectbe-event-calendar-d4fed0f .fc-header-toolbar .fc-button-group button.fc-listMonth-button {
  background-color: transparent;
  color: var(--c-primary);
  border-radius: 100px;
  box-shadow: none;
  border: 1px solid var(--c-primary);
}

.minicalendario #ectbe-event-calendar-23cdeab .fc-header-toolbar .fc-button-group button.fc-button-active,
.minicalendario #ectbe-event-calendar-d4fed0f .fc-header-toolbar .fc-button-group button.fc-button-active {
  background-color: var(--c-primary);
  color: var(--c-white);
  border-radius: 100px;
  box-shadow: none;
  border: 1px solid var(--c-primary);
}

.minicalendario table {
  border: none !important;
  margin-bottom: 0;
}

.minicalendario .fc-scrollgrid-sync-table td, .minicalendario .fc-scrollgrid-sync-table th,
.minicalendario .fc-theme-standard th {
  background-color: var(--c-grey-light);
  border: 2px solid var(--c-white) !important;
}


/* PÁGINA DE EVENTOS */
body.post-type-archive-tribe_events .tribe-events-header__events-bar {
  display: none;
}

body.post-type-archive-tribe_events .tribe-events .tribe-events-c-top-bar__nav-list-item a,
body.post-type-archive-tribe_events .tribe-events .tribe-events-c-top-bar__nav-list-item button {
  background-color: transparent;
  color: var(--c-primary);
  border-radius: 100px;
  box-shadow: none;
  border: 1px solid var(--c-primary);
  padding: 10px 20px;
}

body.post-type-archive-tribe_events .tribe-common--breakpoint-medium.tribe-events .tribe-events-c-messages__message,
.tribe-events .tribe-events-c-messages__message {
  padding: 20px;
  background: var(--c-grey-light);
  border-radius: 20px;
  font-size: 1.15rem;
  line-height: 1.5em;
  font-weight: 500;
  text-align: center;
  gap: 5px;
}

body.post-type-archive-tribe_events .tribe-events-c-top-bar button.tribe-common-h3 {
  font-family: var(--f-primary);
  font-size: 1.8rem;
  line-height: 1.5em;
  font-weight: 400;
  margin-bottom: 10px;
  background-color: transparent;
  text-transform: uppercase;
  color: var(--c-grey);
  transition: var(--all-transition);
  margin-bottom: 0;
}

body.post-type-archive-tribe_events .tribe-events-c-top-bar button.tribe-common-h3:hover {
  color: var(--c-primary);
}

body.post-type-archive-tribe_events .tooltipster-base.tribe-events-tooltip-theme {
  max-width: initial !important;
  width: 450px !important;
  height: 450px !important;
}

body.post-type-archive-tribe_events .tooltipster-sidetip .tooltipster-box {
  background: #f6f6f6 !important;
  border-color: var(--c-primary) !important;
}

body.post-type-archive-tribe_events .tooltipster-sidetip .tooltipster-box .tooltipster-content {
  color: var(--c-grey) !important;
  padding: 40px 20px !important;
  height: 450px !important;
  position: relative
}

body.post-type-archive-tribe_events .tooltipster-sidetip .tooltipster-box .tooltipster-content .tribe-events-calendar-month__calendar-event-tooltip-featured-image-wrapper {
  display: none !important;
}

body.post-type-archive-tribe_events .tooltipster-sidetip .tooltipster-box a.read-more {
  display: block;
  width: fit-content;
  margin-top: 20px;
}

body.post-type-archive-tribe_events .tribe-events-c-subscribe-dropdown__button-text ~ svg {
  display: none !important;
}

body.post-type-archive-tribe_events .datepicker-months .month {
  font-weight: 600;
  text-transform: uppercase;
}

body.post-type-archive-tribe_events .datepicker-months .month.current,
body.post-type-archive-tribe_events .datepicker-months .month.active,
body.post-type-archive-tribe_events .datepicker-months .month.focused {
  background: var(--gradient-radial);
  color: var(--c-white) !important;
}

/* NUEVOS ESTILOS 2025 */
.minilistado.general #list-wrp {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 30px;
}

.minilistado.general #list-wrp .ect-simple-event .ect-list-post-left .ect-list-date .ect-date-area {
  font-weight: 600;
}

/* EVENTO INDIVIDUAL */
body.single-tribe_events #tribe-events-content .tribe-events-back a {
  text-transform: uppercase;
}

body.single-tribe_events #tribe-events-content .tribe-events-notices li {
  padding: 20px;
  background: var(--c-grey-light);
  border-radius: 20px;
  font-size: 1.15rem;
  line-height: 1.5em;
  font-weight: 500;
  text-align: center;
  list-style: none !important;
}

body.single-tribe_events #tribe-events-content h1.tribe-events-single-event-title {
  font-size: 2.5rem;
  line-height: 3.75rem;
  font-weight: 400;
  color: var(--c-primary);
  text-transform: uppercase;
}

body.single-tribe_events #tribe-events-content .tribe-events-schedule h2 {
  font-size: 1.4rem;
}

body.single-tribe_events #tribe-events-content .tribe-events-single-event-description h2 {
  color: var(--c-primary);
}

body.single-tribe_events #tribe-events-content .tribe-events-single-event-description h3 {
  color: var(--c-primary);
  background: var(--gradient-radial);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.single-tribe_events #tribe-events-content .tribe-events-event-image img {
  max-height: 700px;
  object-fit: contain;
}

body.single-tribe_events .tribe-events-c-subscribe-dropdown__button {
  width: fit-content;
}

body.single-tribe_events .tribe-events-c-subscribe-dropdown__button button {
  background-color: initial;
  color: inherit;
  font-size: 1rem !important;
  line-height: 1.5rem;
  font-weight: 500;
  text-transform: uppercase;
  font-family: var(--f-primary) !important;
}

body.single-tribe_events .tribe-events-c-subscribe-dropdown__button svg {
  fill: var(--c-white);
  transition: var(--all-transition);
}

body.single-tribe_events .tribe-events-c-subscribe-dropdown__button:hover svg {
  fill: var(--c-primary);
}

body.single-tribe_events #tribe-events-content .tribe-events-event-meta {
  justify-content: space-between;
  width: 100%;
  gap: 20px;
}

body.single-tribe_events #tribe-events-content .tribe-events-event-meta>div {
  width: 50%;
}

body.single-tribe_events #tribe-events-content .tribe-events-event-meta h2 {
  color: var(--c-primary);
}

body.single-tribe_events #tribe-events-footer {
  margin-top: 20px;
}

body.single-tribe_events #tribe-events-footer .tribe-events-nav-previous,
body.single-tribe_events #tribe-events-footer .tribe-events-nav-next {
  list-style: none;
}

body.single-tribe_events #tribe-events-footer .tribe-events-nav-previous a {
  text-align: left;
}

body.single-tribe_events #tribe-events-footer .tribe-events-nav-next a {
  text-align: right;
}

body.single-tribe_events #tribe-events-footer .tribe-events-nav-previous a,
body.single-tribe_events #tribe-events-footer .tribe-events-nav-next a {
  padding: 20px;
  background: var(--c-grey-light);
  border-radius: 20px;
  border: 1px solid var(--c-grey-light);
  transition: var(--all-transition);
  color: var(--c-grey);
  position: relative;
  display: flex;
}

body.single-tribe_events #tribe-events-footer .tribe-events-nav-previous a:hover,
body.single-tribe_events #tribe-events-footer .tribe-events-nav-next a:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}

body.single-tribe_events #tribe-events-footer .tribe-events-nav-previous a::before {
  content: "<";
  font-weight: 800;
  font-size: 1.2em;
}

body.single-tribe_events #tribe-events-footer .tribe-events-nav-next a::after {
  content: ">";
  font-weight: 800;
  font-size: 1.2em;
}

.tribe-events-single .tribe-events-sub-nav {
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
}

@media screen and (max-width: 1024px) {
  body.single-tribe_events #tribe-events-footer .tribe-events-sub-nav {
    flex-direction: column;
    gap: 80px;
  }

  body.single-tribe_events #tribe-events-footer .tribe-events-nav-previous,
  body.single-tribe_events #tribe-events-footer .tribe-events-nav-next {
    position: relative;
  }

  body.single-tribe_events #tribe-events-footer .tribe-events-nav-previous a,
  body.single-tribe_events #tribe-events-footer .tribe-events-nav-next a {
    width: 100%;
    position: absolute;
    text-align: center;
  }
}

@media screen and (max-width: 850px) {
  .tribe-events .tribe-events-calendar-latest-past__event {
    flex-direction: column !important;
  }

  .tribe-events .tribe-events-calendar-latest-past__event>div {
    width: 100% !important;
  }

  .tribe-events-calendar-latest-past__event-row .tribe-events-calendar-latest-past__event-wrapper {
    padding: 0 !important;
  }

  .tribe-events-calendar-latest-past__event-row .tribe-events-calendar-latest-past__event-featured-image-wrapper img {
    max-height: 250px;
    margin-left: 1px;
    border-radius: 0 20px 0 0;
  }

  .tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-latest-past__event {
    max-width: 104%;
    float: right;
    margin: initial !important;
  }

  .tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-latest-past__event-date-tag {
    width: 120px !important;
  }
}

@media screen and (max-width: 790px) {
  .minilistado #list-wrp .ect-simple-event .ect-list-post-right .ect-list-post-right-table .ect-list-description {
    display: flex;
    align-items: center;
    height: 180px;
  }
}

@media screen and (max-width: 767px) {
  .tribe-events-calendar-latest-past__event-row .tribe-events-calendar-latest-past__event-wrapper>article {
    max-width: 100% !important;
    margin: initial !important;
  }

  .tribe-events-c-top-bar__nav.tribe-common-a11y-hidden,
  .tribe-events-c-top-bar__datepicker-desktop.tribe-common-a11y-hidden,
  .tribe-events-calendar-month__header-column-title-mobile {
    display: initial !important;
    visibility: visible !important;
  }

  button.tribe-events-calendar-month__day-cell {
    background-color: initial !important;
  }

  .tribe-events-calendar-month__day {
    border-width: 0 1px 1px 0 !important;
    border-style: solid !important;
  }

  .tribe-events-calendar-month__day-date {
    font-size: 1.1rem !important;
  }

  .tribe-events-calendar-month__body {
    border-top: 1px solid black !important;
    border-left: 1px solid black !important;
  }

  nav.tribe-events-calendar-month-nav,
  .tribe-events-calendar-month__header-column-title-desktop,
  .tribe-events-view-loader {
    display: none !important;
  }

  .tribe-events .tribe-events-calendar-month__header-column-title {
    text-align: center;
  }

  .tribe-events-c-top-bar__datepicker {
    margin-top: 20px !important;
  }

  body.post-type-archive-tribe_events .tribe-events-c-top-bar button.tribe-common-h3 {
    font-size: 1.5rem;
  }

  .minilistado.general #list-wrp {
    grid-template-columns: auto;
    row-gap: 0;

    .ect-list-post {
      margin-bottom: 20px;
      margin-top: 0;
    }
  }
}

@media screen and (max-width: 650px) {
  .minilistado #list-wrp .ect-simple-event .ect-list-post-left .ect-list-date {
    width: 100%;
  }

  .minilistado #list-wrp .ect-simple-event .ect-list-post-left {
    width: 40%;
  }

  .minilistado #list-wrp .ect-simple-event .ect-list-post-right {
    width: 60%;
  }

  .minicalendario .fc-header-toolbar {
    flex-direction: column;
    gap: 10px;
  }
}

@media screen and (max-width: 600px) {
  body.single-tribe_events #tribe-events-content .tribe-events-event-meta .tribe-events-meta-group-venue {
    margin-top: -20px;
  }

  body.single-tribe_events #tribe-events-content .tribe-events-event-meta>div {
    width: 100%;
  }

  body.single-tribe_events #tribe-events-footer .tribe-events-sub-nav {
    gap: 100px;
  }

  body.single-tribe_events #tribe-events-pg-template {
    padding: 60px 20px;
    max-width: 100vw;
  }
  .minilistado #list-wrp .ect-simple-event,
  .minilistado #list-wrp .ect-featured-event {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    height: 180px !important;
    padding: 0;
    margin-bottom: 20px;
  }
  .minilistado .vce {
    margin:auto!important;
  }
}

/* BOTÓN FLOTANTE */
.btn-eventos {
  position: fixed;
  bottom: 100px;
  right: 20px;
  height: 160px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  width: 100px;
  text-align: center;
  z-index: 10;
  background: #ffffff94;
  backdrop-filter: blur(1px);
  padding: 30px 0 10px;
  border-radius: 20px;

  &::before {
    content: "";
    background: linear-gradient(45deg, #f6f6f6, #dcf5ff);   
    width: 90px;
    height: 90px;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    margin: auto;
    border-radius: 200px;
    border: 2px solid var(--c-primary);
    transition: all 0.4s ease;
  }

  &::after {
    content: "Descúbrelos todos";
    opacity: 0;
    font-size: 18px;
    font-weight: 600;
    position: absolute;
    bottom: 30px;
    right: 0;
    color: var(--c-primary);
    text-align: left;
    transition: all 0.4s ease;
  }

  &.eng {
    &::after {
      content: "Discover all of them";
      width: 130px;
    }
  }

  img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    position: absolute;
    bottom: 16px;
    right: 0;
    left: 0;
    margin: auto;
  }

  &:hover {
    color: var(--c-primary);

    &::after {
      right: 140px;
      opacity: 1;
    }

    &::before {
      left: -215px;
      width: 305px;
      opacity: 1;
    }
  }
}

@media screen and (max-width: 767px) {
  .btn-eventos {
    bottom: 10px;
    width: 200px;
    max-width: 100vw;
    height: 60px;
    background: #f6f6f6;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    border-radius: 200px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px 0 0;
    border: 1px solid #e8e8e8;

    &::before {
      display: none;
    }

    &::after {
      display: none;
    }

    img {
      width: 60px;
      height: 60px;
      bottom: 0;
      right: initial;
      left: 20px;
    }
  }
}