main {
    color: white;
    font-family: sans-serif;
}

.calendar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
}

@media (min-width: 768px) {
  .calendar {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* EVENTOS */

.event-bg {
    position: absolute;
    /* top: 0; */
    /* left: 0; */
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
    transition: all 0.3s ease-in-out;
    /* box-sizing: border-box; */
    background-size: cover;
    background-position: center;
}

.event-card {
    position: relative;
    height: 24rem;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-sizing: border-box;
    &:hover {
        .gradient {
            background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 25%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.3) 60%, rgba(0,0,0,0) 85%)
        }
        .event-title {
            /* color: white; */
        }
        .event-bg {
            filter: brightness(1.1);
            transform: scale(1.05);
        }
    }
}

.gradient {
    position: absolute;
    inset: 0;
    transition: background 0.3s ease-in-out;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 35%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.3) 70%, rgba(0, 0, 0, 0) 85%);
}

.event-content {
    position: relative;
    z-index: 10;
    padding: 1rem;
}

.event-title {
    /* position:absolute; */
    color: #ff007a;
    /* transform: translateY(-200%); */
    font-size: 1.2lh;
    font-weight: bold;
    margin-bottom: 0.45lh;
}

.info {
    /* position: absolute; */
    /* transform: translateY(200%); */
    font-size: 0.75lh;
    margin-bottom: 0.25lh;
    display: flex;
    align-items: center;            
    svg {
        width: 1lh;
        height: 1lh;
        margin-right: 0.25lh;
    }
}

a.info {
    color: white;
    text-decoration: none;
    &:hover {
        color: #ff007a;
        text-decoration: underline;
    }
}

/* .event-card .lugar:hover ~ .event-title {
  color: #ff007a;
} */

.description {
    font-size: 0.875rem;
    opacity: 0.9;
}

.google-calendar {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background-color: #c70060;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.65lh;
  margin-bottom: 0.25lh;
}

.google-calendar:hover {
  background-color: #ff007a;
}

@media (max-width: 768px) {

  .event-title {
    font-size: 1lh;
  }

  .info {
    font-size: 0.65lh;
  }

  .google-calendar {
    font-size: 0.5lh;
  }

  .event-card {
    height: 16rem;
  }
}

/* FILTROS EXTRA */
#filtros-avanzados {
   display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px; /* espacio entre las cajas */
  padding: 20px;
}
.custom-select {
  width: fit-content;
  position: relative;
  /* margin: 1rem auto; */
  font-size: 1rem;
  user-select: none;
}

.select-header {
  padding: 0.5rem 1rem;
  border-radius: 1.2rem;
  background-color: #141414;
  color: #dedede;
  cursor: pointer;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s;
}

.select-header:hover {
  background-color: #333;
  color: #fff;
}

.select-options {
    position: absolute;
    top: 110%;
    left: 0;
    background-color: #1a1a1a;
    border-radius: 0.5rem;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-height: 15rem;
    overflow-y: auto;
    z-index: 10;
    overscroll-behavior: contain; /* Esto evita que el scroll pase al body */
    min-width: 100%;           /* Esto asegura que no sea más chico que el botón */
    width: max-content;        /* Esto permite que crezca según el contenido */
    max-width: 90vw;           /* Evita que se desborde en pantallas pequeñas */
}

.select-options.hidden {
  display: none;
}

.select-option {
  padding: 0.4rem 0.8rem;
  border-radius: 0.75rem;
  background-color: #141414;
  color: #dedede;
  cursor: pointer;
  transition: background-color 0.2s;
}

.select-option:hover {
  background-color: #333;
}

.select-header.active {
  /* background-color: #; */
  color: #ff007a;
}

.select-option.active {
  background-color: #ff007a;
  color: #fff;
}

.select-clear {
  /* margin: 1rem auto; */
  display: block;
  padding: 0.5rem 1.2rem;
  background-color: #ff007a;
  color: #141414;
  border: none;
  border-radius: 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s, color 0.3s;
}

.select-clear:hover {
  background-color: #b85777;
  color: #fff;
}


/* ANIMACIONES EVENTOS CARDS */
@keyframes fadeInZoom {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.event-card {
  animation: none;
  opacity: 1;
  transform: scale(1);
}

.event-card.fade-in {
  animation: fadeInZoom 0.4s ease;
}
