body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f0f0;
  overflow-x: hidden;
}

body a {
  color: black;
  text-decoration: none;
}

.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-wrap: wrap;
  margin: auto;
  margin-bottom: 0.75rem;
  max-width: 500px;
  min-height: 370px;
  justify-content: center;
}

.home h1,
.home h2 {
  text-align: center;
  margin: 5px;
}

h2 {
  font-size: 1rem;
  font-weight: normal;
}

.avatar {
  width: 75px;
  height: 75px;
  padding: 2rem;
  border-radius: 50%;
  transition: transform 0.5s ease-in-out;
  object-fit: cover;
  display: block;
}

.avatar:hover {
  transform: scale(1.05);
}

.home img {
  width: 225px;
  height: 225px;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  margin-bottom: 25px;
}

.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin: 1rem;
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
}

.card-body {
  flex: 1;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.titulo {
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
}

.recurso {
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
  text-decoration: none;
}

.fecha {
  color: #757575;
  font-size: 0.875rem;
  padding-bottom: 0.75rem;
  margin-top: 0;
}

.descripcion {
  color: #0a0a0a;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  flex: 1;
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 5px;
}


.faltan-container {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  flex-wrap: nowrap;
  gap: 3rem;
}

.faltan {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ad1be9;
  font-size: 0.875rem;
  color: white;
  padding: 0;
  border-radius: 0.5rem;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 1;
  flex-grow: 1;
  height: 38px;
  border: none;
  cursor: pointer;
  margin: 0;
}

.calendar-btn {
  background-color: #ad1be9;
  color: white;
  border: none;
  padding: 0;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: auto;
}

.calendar-btn:hover {
  background-color: #8e16bf;
  transform: scale(1.05);
}

.calendar-btn i {
  font-size: 1rem;
}

.faltan.add-to-calendar {
  cursor: pointer;
}

.faltan i {
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

footer {
  text-align: center;
  font-size: 13px;
  line-height: 2rem;
  margin-top: 4rem;
}

/* 🔹 Botón de suscripción sin cambios de tamaño */
.suscribirse {
  display: inline-block;
  background-color: #ad1be9;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  text-align: center;
  margin-top: 1.2rem !important;
  transition: transform 0.5s ease-in-out;
}

.suscribirse:hover {
  transform: scale(1.05);
}

.title-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
  max-width: 700px;
  margin: auto;
}

.botonesfiltro {
  background-color: #ad1be9;
  border: none;
  font-size: 0.7rem;
  color: white;
  padding: 0.5rem 0.5rem;
  border-radius: 0.5rem;
  text-align: center;
  text-decoration: none;
}

.botonesfiltro.inactive {
  background-color: #b0b0b0;
  color: white;
}

.buscador {
  width: 100%;
  padding: 1rem;
  margin: 1.5rem 0rem 1.5rem 0rem;
}

@media only screen and (max-width: 767px) {
  .buscador {
    margin: 1.5rem 1rem 1.5rem 1rem;
  }
}

.event-image {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}


.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  max-width: 400px;
}

.close {
  cursor: pointer;
  font-size: 24px;
  position: absolute;
  right: 10px;
  top: 10px;
}

.share-buttons {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 15px;
  justify-content: space-between;
}

.share-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #ad1be9;
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.3s ease-in-out;
}

.share-buttons i {
  font-size: 2rem;
}

.share-event-image {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  margin: 10px auto;
  border-radius: 8px;
  object-fit: cover;
}

@media (max-width: 600px) {
  .row {
    grid-template-columns: repeat(2, 1fr);
  }

  .card {
    margin: 0.3rem;
  }

  .faltan-container {
    gap: 1rem;
  }

  .faltan {
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .calendar-btn {
    min-width: 38px;
    width: 38px;
  }
}
