/* EVENTOS */
:root {
  --logo-eventos: var(--bs-espol);
  --evento-ambito-group-bg: var(--bs-c-5);
  --evento-btn-bg: linear-gradient(0deg, var(--bs-espol), var(--bs-espol-opc));
}
.dark {
  --logo-eventos: var(--bs-c-4);
  --evento-ambito-group-bg: var(--bs-c-8);
  --evento-btn-bg: linear-gradient(0deg, var(--bs-espol-temporal), var(--bs-espol-1-opc));
}
.section-evento {
  margin: auto;
  padding-inline: 0;
}
.section-evento h1 {
  text-align: center;
  color: var(--bs-c-4);
  margin-bottom: 0.3rem;
}
.section-evento .calendario-evento h1 {
  color: var(--espol);
}
.section-evento .row-eventos {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
}
.section-evento .card {
  display: flex;
  flex-basis: 299px;
  overflow: clip;
  border: 0px !important;
  border-radius: var(--radiusbg);
  box-shadow:  6px 6px 12px #d5d5d5, -6px -6px 12px white;
}
.section-evento .card-date {
  position: absolute;
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  width: 80px;
  gap: 5px;
  padding: 12px;
  border-radius: var(--radiussm) 0 var(--radiussm) 0;
  background-color: var(--theme-text-titulo);
  color: var(--theme-evento-fecha);
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
}
.section-evento .card-date p {
  margin: 0;
}
.section-evento .card img {
  object-fit: cover;
  height: 193px;
  width: 100%;
}
.section-evento .card:hover img {
  scale: 1.05;
}
.dark .section-evento .card {
  box-shadow:  6px 6px 12px #1d1d1d, -6px -6px 12px #232323;
}
.section-evento .card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px;
  background-color: var(--bs-main-2);
}
.section-evento .card-body ul {
  display: inherit;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
:is(.section-evento .card-title, 
.section-evento .card-text) {
    display: -webkit-box;
    text-overflow: ellipsis;
    white-space: normal;
}
.section-evento .card-title {
  color: var(--theme-text-titulo);
  font-size: 1rem !important;
  margin: 0 !important;
}
.section-evento .card-text {
  margin: 20px 0;
  overflow: hidden !important;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
#modalTitle,
#modalDescription {
  display: block;
  line-clamp: none;
  -webkit-line-clamp: none;
}
.section-evento .card-place span {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  height: max-content;
  gap: 5px;
  padding: 0 10px;
  border-radius: 50px !important;
  background-color: var(--theme-complementario-5);
  color: var(--theme-btn-primary-hover);
  font-size: 0.7rem;
  line-height: normal;
  font-weight: 600;
  text-align: left;
  white-space: inherit;
  white-space-collapse: inherit;
  page-break-before: always;
}
.section-evento .card-type {
  font-size: 0.8rem;
  width: fit-content;
  padding: 5px 15px;
  border-radius: 50px;
  text-transform: capitalize;
  -webkit-box-reflect: below 0px
  linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
}
option {
  font-family: "Open Sans", sans-serif;
}
.section-evento .btn-outline-espol:hover {
  background-color: var(--theme-btn-primary-hover);
}
.section-evento i.fa.fa-calendar-alt {
  padding-right: 12px;
}
.section-evento .card-place {
  font-family: "Open Sans", sans-serif !important;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  font-size: 14px;
}
.section-evento .card-place span a:hover {
  text-decoration: underline !important;
}
.section-evento .card-place > span::before {
  font-family: var(--font-icons);
  padding: 5px;
  font-size: 16px;
}
.section-evento .card-place span:nth-child(1)::before {
  content: "\f109";
}
.section-evento .card-place span:has(a):nth-child(1)::before {
  content: "\f3c5";
  color: #DD4B3E;
}
.section-evento .card-place span:nth-child(2)::before {
  content: "\f274";
}
.section-evento .card:hover .card-date,
.section-evento .card:hover .card-hoy {
  width: 110px;
}
.section-evento .card-place span:has(a):nth-child(1):hover::before {
  animation: MapShakeVertical 2s ease 0s 1 normal forwards;
}
.section-evento .card-place span a {
  color: var(--theme-btn-primary-hover);
  white-space: break-spaces;
  text-align: left;
  text-decoration: none;
  padding: 8px 0;
}
.section-evento .row-filtros {
  padding: 20px 0;
  min-width: 300px;
  margin: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
.section-evento .form-select:focus {
  box-shadow: none !important;
}
.section-evento .arrow-down::before {
  content: "\f078";
  font-family: "fontawesome6";
  color: var(--theme-text-link);
  font-size: 16px;
  height: 100%;
  display: flex;
  right: 0;
  align-items: center;
  position: absolute;
  font-style: normal;
  margin: 0 20px;
  z-index: 3;
}
.section-evento .input-group {
  position: relative;
  display: flex;
  flex-basis: 370px;
  min-width: 300px;
}
.section-evento .card-hoy {
  background-color: var(--theme-evento-fecha-hoy);
  position: absolute;
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  width: 80px;
  gap: 5px;
  padding: 12px;
  border-radius: var(--radiussm) 0 var(--radiussm) 0;
  color: var(--bs-c-4);
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
}
.section-evento .card-hoy p {
  margin: 0;
}
.section-evento .overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1040;
  display: none;
}
.section-evento .fc-toolbar-title:first-letter {
  text-transform: uppercase;
}
.section-evento .header-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 20px;
}
.section-evento .header-container h1 {
  margin: 0;
}
.section-evento .button-container {
  position: relative;
  display: flex;
  width: min(200px, 50vw);
  margin: 0 auto;
}
.row-filtros-eventos ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  margin: 0;
  padding: 0 0 30px 0;
  overflow: hidden;
}
.row-filtros-eventos ul li {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style-type: none;
  padding-block: 20px;
}
.row-filtros-eventos ul li:first-child {
  align-items: center;
  background-color: var(--espol);
  padding-inline: calc(var(--padding) * 2) 70px;
}
.row-filtros-eventos ul li:not(:first-child) {
  padding-inline: 25px;
  background-color: var(--evento-ambito-group-bg);
  margin-left: -44px;
  border-radius: 50px;
}
#main:has(.col.titulo-filtro) {
  padding-top: 0px;
}
main#content.col.titulo-filtro {
  padding-inline: 0;
}
.eventos-group {
  display: flex;
  position: relative;
  color: var(--bs-c-4);
}
.eventos-group label {
  background-color: var(--theme-text-titulo);
  color: var(--theme-evento-fecha);
  padding: 7px 15px;
  border-radius: var(--radiusbg) 0 0 var(--radiusbg);
  width: fit-content;
  border: none;
  font-size: 14px;
}
.section-evento .btn-outline-espol,
.eventos-group select,
body :has(.section-evento) .modal-body :is(a:not(#modalMap), button) {
  position: relative;
  width: 100%;
  border: none;
  border-radius: 50px;
  background-color: var(--theme-text-titulo);
  font-size: 0.9rem;
  text-align: center;
  appearance: none;
  cursor: pointer;
}
.section-evento .ambito-group .btn-outline-espol,
.eventos-group select {
  color: var(--bs-c-4);
  background: var(--evento-btn-bg);
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
}
.section-evento .ambito-group .btn-outline-espol:hover,
.eventos-group select:hover {
  background: linear-gradient(0deg, var(--bs-espol), var(--bs-espol-1));
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.3);
}
.section-evento .btn-outline-espol,
body :has(.section-evento) .modal-body :is(a:not(#modalMap), button) {
  padding: 12px 24px;
}
.eventos-group select {
  text-align-last: center;
  padding: 12px 30px 12px 12px;
  color: currentColor !important;
}
.section-evento .ambito-group .btn-outline-espol {
  padding: 12px 44px 12px 24px;
}
.section-evento .ambito-group .btn-outline-espol::after {
  content: "\f073";
  right: 20px;
}
.eventos-group::after {
  content: "\f078";
  right: 15px;
}
.section-evento .ambito-group .btn-outline-espol::after,
.eventos-group::after {
  font-family: var(--font-icons);
  position: absolute;
  top: 50%;
  font-size: 1rem;
  color: currentColor;
  transform: translateY(-50%);
  pointer-events: none;
}
.section-evento .btn-outline-espol:hover {
  background-color: var(--theme-btn-primary-hover);
}
.section-evento .TipoEvento {
  background-color: var(--bs-c-5);
  color: var(--bs-c-6);
}
select:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 #000;
}
.ambito-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.checkbox-wrapper-16 .checkbox-input {
  position: absolute;
  -webkit-clip-path: inset(100%);
  clip-path: inset(100%);
  width: 0px;
  height: 0px;
  overflow: hidden;
  white-space: nowrap;
}
.checkbox-wrapper-16 .checkbox-input:checked + .checkbox-tile {
  background-color: var(--theme-text-titulo);
}
.checkbox-wrapper-16 .checkbox-input:checked + .checkbox-tile .checkbox-icon,
.checkbox-wrapper-16 .checkbox-input:checked + .checkbox-tile .checkbox-label,
.checkbox-wrapper-16 .checkbox-input:checked + .checkbox-tile svg {
  color: var(--theme-complementario-4);
  fill: var(--theme-complementario-4);
}
.checkbox-wrapper-16 .checkbox-tile {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  width: max-content;
  height: 35px;
  padding-inline: 20px;
  border: 1px solid var(--espol);
  border-radius: var(--radiusbg);
  background-color: var(--theme-complementario-4);
  color: var(--theme-text-menu);
  font-size: 14px;
  cursor: pointer;
}
.checkbox-wrapper-16 .checkbox-tile svg {
  width: 25px;
  height: 15px;
  aspect-ratio: 1;
  margin-right: 10px;
}
/* Modal eventos */
body :has(.section-evento) .modal-content {
  border-radius: var(--radiusbg);
  background-color: var(--bs-main);
}
body :has(.section-evento) .modal-header {
  padding: 0;
  border: none;
}
body :has(.section-evento) .modal-title {
  width: 100%;
  padding: var(--padding);
  border-radius: var(--radiusbg) var(--radiusbg) 0 0;
  line-height: normal;
  font-size: calc(1.2rem + 0.9vw);
  color: var(--bs-c-5);
  font-family: 'Roboto-Bold' !important;
  background: var(--theme-bg-cifras);
}
body :has(.section-evento) .modal-body {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: var(--padding) !important; 
  box-shadow: none;
}
body :has(.section-evento) .modal-body a:not(#modalMap) {
  width: fit-content;
  padding: 12px 24px;
  color: var(--theme-evento-fecha);
}
body :has(.section-evento) .modal-dialog .btn-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 30px;
  height: 30px;
  background: var(--bs-c-6);
  color: var(--theme-complementario-4);
  border: none;
  border-radius: 50px;
  opacity: 0.7;
}
body :has(.section-evento) .modal-dialog .btn-close:hover {
  opacity: 1;
  background: var(--error);
}
body :has(.section-evento) .modal-dialog .btn-close::after {
  content: "\f00d";
  font-family: var(--font-icons);
  font-size: 1rem;
}
body :has(.section-evento) .modal-body a:not(#modalMap):hover {
  background-color: var(--theme-btn-primary-hover);
}
body :has(.section-evento .modalCalendar) .modal-body {
  align-items: flex-start;
}
@media (min-width: 968px) {
  body :has(.section-evento) #logo svg * {
    fill: var(--logo-eventos) !important;
  }
  body :has(.section-evento) header#site_header:has(#menu_ESPOL:checked) #logo svg * {
    fill: var(--bs-c-4) !important;
  }
}
@media (max-width: 968px) {
  body :has(.section-evento) #main {
    padding-inline: 0.75rem;
  }
  .row-filtros-eventos ul li:first-child {
    flex: 1;
    padding-inline: calc(var(--padding));
  }
  .row-filtros-eventos ul li:not(:first-child) {
    width: 100%;
    margin-left: 0px;
    border-radius: 0px;
  }
}
@media (max-width: 480px) {
  .row-filtros-eventos ul li:last-child {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .eventos-group select {
    width: 100% !important;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .section-evento .btn-outline-espol,
  .eventos-group select,
  .section-evento .btn-outline-espol,
  .section-evento .card-date,
  .section-evento .card,
  .section-evento .card-hoy,
  body :has(.section-evento) .modal-dialog .btn-close {
    transition: all 350ms ease-in-out;
  }
  .section-evento .card:hover {
    transform: translateY(-5px);
  }
  .section-evento .card img {
    transition: scale 2s cubic-bezier(0.23, 1, 0.320, 1);
  }
  .checkbox-wrapper-16 .checkbox-tile {
    transition: all 150ms ease;
  }
  .section-evento .ambito-group .btn-outline-espol:hover,
  .eventos-group select:hover {
    transform: translateY(-3px);
  }
}
/* Animaciones */
@keyframes MapShakeVertical {
	0%,
	100% {
		transform: translateY(0);
	}

	10%,
	30%,
	50%,
	70% {
		transform: translateY(-4px);
	}

	20%,
	40%,
	60% {
		transform: translateY(2.4px);
	}

	80% {
		transform: translateY(1.4px);
	}

	90% {
		transform: translateY(0.4px);
	}
}