body {
  margin: 0;
  padding: 0;
  display: block;
}

.custom-slider-container {
  display: flex;
  overflow-x: hidden;
  cursor: grab;
  padding: 20px 10px;
  user-select: none;
  gap: 10px;
  width: auto;
  padding-left: calc((100vw - 950px) / 2);
}

.custom-slider-container:active {
  cursor: grabbing;
}

.custom-image-card {
  flex: 0 0 28%;
  box-sizing: border-box;
  padding: 10px;
  position: relative;
  text-align: center;
  background: white;
  border-radius: 15px;
  transition: transform 0.3s ease;
  scroll-snap-align: start;
}

.custom-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
}

.custom-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.custom-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  color: white;
  opacity: 0;
  transition: background 0.3s ease, opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 5px;
}

.custom-overlay:hover {
  background: rgba(0, 0, 0, 1);
  opacity: 1;
}

.custom-overlay > div {
  text-align: left;
}

.custom-overlay h3 {
  margin-bottom: 10px;
  font-size: 0.8em;
  color: #fdafcd;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.custom-overlay h3 img {
  margin-bottom: 15px;
  width: 40px;
  height: auto;
  pointer-events: none;
  -webkit-user-drag: none;
}

.custom-details-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.7em;
  line-height: 1em;
}

.custom-details-list li {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.custom-details-list li::before {
  content: "✔";
  color: #f86093;
  margin-right: 8px;
  flex-shrink: 0;
}

.custom-image-wrapper:hover img {
  transform: scale(1.05);
}

.custom-button-servicios {
  font-size: 1.25em !important;
  margin-top: 10px;
  width: 100%;
  padding: 8px 0;
  border: none;
  background-color: #fdafcd;
  color: white;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: none;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.custom-button-servicios:hover {
  background-color: #e59bb7;
}

@media (max-width: 1024px) {
  .custom-overlay h3 {
    font-size: 1.1em;
    margin-top: 0px;
    margin-bottom: 3px;
  }

  .custom-overlay h3 img {
    margin-bottom: 20px;
  }

  .custom-image-card {
    flex: 0 0 38%;
  }
}

@media (max-width: 768px) {
  .custom-slider-container {
    padding: 15px 5px;
    gap: 8px;
  }

  .custom-image-card {
    flex: 0 0 38%;
  }

  .custom-overlay h3 {
    font-size: 0.9em;
  }
}

@media (max-width: 500px) {
  .custom-slider-container {
    padding: 10px 2px;
    gap: 5px;
  }

  .custom-image-card {
    flex: 0 0 54%;
  }

  .custom-image-card {
    padding: 3px;
  }

  .custom-button-servicios {
    margin-top: 3px;
    font-size: 0.8em !important;
  }

  .custom-overlay h3 {
    font-size: 0.75em;
    margin-bottom: 3px;
    margin-top: 3px;
  }

  .custom-overlay {
    padding: 2px;
  }

  .custom-details-list {
    font-size: 0.7em;
  }

  .custom-details-list li {
    margin-bottom: 1px;
    padding-inline: 2px;
  }

  .custom-overlay h3 img {
    margin-bottom: 5px;
    width: 35px;
    height: auto;
  }

  .custom-details-list li::before {
    margin-right: 3px;
  }
}
