@font-face {
  font-family: "STIX General";
  src: url("fonts/servicios/STIXGeneral.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "STIX General";
  src: url("fonts/servicios/STIXGeneralItalic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Geist Servicios";
  src: url("fonts/servicios/Geist-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.services-page {
  --services-serif: "STIX General", Georgia, serif;
  --services-sans: "Geist Servicios", Arial, sans-serif;
  padding-block: clamp(28px, 2.8vw, 40px) clamp(54px, 6vw, 88px);
  background: #fcfaf6;
  font-family: var(--services-sans);
}

.services-page [hidden] { display: none !important; }

.services-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.services-heading { text-align: center; }

.services-heading h1 {
  font: italic 400 clamp(3.5rem, 6.25vw, 5.625rem)/1 var(--services-serif);
  letter-spacing: -.025em;
}

.services-heading p {
  max-width: 42ch;
  margin: 8px auto 0;
  font-size: clamp(.98rem, 1.2vw, 1.0625rem);
  line-height: 1.45;
  text-wrap: balance;
}

@media (min-width: 820px) {
  .services-heading p { max-width: none; }
}

.services-heading::after {
  content: "";
  display: block;
  width: 54px;
  height: 1px;
  margin: 16px auto 0;
  background: #bca488;
}

.services-filters {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr);
  gap: 10px 12px;
  max-width: 952px;
  margin: 17px auto 0;
}

.services-filters input[type="search"],
.services-filters select {
  min-height: 48px;
  padding: 9px 18px;
  border: 1px solid #d8cbb9;
  border-radius: 999px;
  background: #fffdfa;
  color: var(--ink);
  font: 400 1rem/1.25 var(--services-sans);
}

.services-filters select { padding-inline-end: 28px; }
.services-search { position: relative; }
.services-filters input[type="search"] { padding-inline-start: 44px; }
.services-filters input::placeholder { color: #63594e; opacity: 1; }

.services-search-icon {
  position: absolute;
  top: calc(50% - 8px);
  left: 17px;
  width: 13px;
  height: 13px;
  border: 1px solid #63594e;
  border-radius: 50%;
  pointer-events: none;
}

.services-search-icon::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 6px;
  height: 1px;
  background: #63594e;
  transform: rotate(45deg);
  transform-origin: left center;
}

.services-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(27px, 3vw, 43px) 20px;
  margin: clamp(24px, 2.2vw, 32px) auto 0;
}

.services-card { text-align: center; }

.services-photo {
  width: min(100%, 324px);
  aspect-ratio: 6 / 5;
  margin-inline: auto;
  border-radius: 50% 50% 0 0 / 68% 68% 0 0;
  object-fit: cover;
  object-position: 50% 54%;
}

.services-card[data-category="peluqueria"] .services-photo { object-position: 50% 55%; }
.services-card[data-category="coloracion-e-iluminacion"] .services-photo { object-position: 50% 60%; }
.services-card[data-category="manicure-y-pedicure"] .services-photo { object-position: 50% 80%; }
.services-card[data-category="cejas-y-pestanas"] .services-photo { object-position: 50% 47%; }
.services-card[data-category="depilacion-con-cera"] .services-photo { object-position: center; }
.services-card[data-category="masajes"] .services-photo { object-position: 50% 64%; }

.services-card-copy {
  max-width: 360px;
  margin-inline: auto;
  padding: 13px 10px 0;
}

.services-card h2 {
  font: 400 clamp(1.6rem, 2.1vw, 1.875rem)/1.12 var(--services-serif);
  letter-spacing: -.01em;
  text-wrap: balance;
}

.services-card p {
  min-height: 2.72em;
  margin: 9px 0 10px;
  color: #63594e;
  font-size: .9375rem;
  line-height: 1.36;
  text-wrap: balance;
}

.services-details summary {
  display: inline-flex;
  min-height: 44px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  padding: .55rem 1.18rem;
  border: 1px solid #ccb9a0;
  border-radius: 999px;
  background: #f6eee3;
  color: #34261d;
  list-style: none;
  cursor: pointer;
  user-select: none;
  font-size: .9375rem;
  text-align: center;
}

.services-details summary:hover,
.services-details[open] summary { background: #eee0cf; }

.services-details summary::-webkit-details-marker { display: none; }
.services-details .services-hide-label,
.services-details[open] .services-show-label { display: none; }
.services-details[open] .services-hide-label { display: inline; }

.services-list {
  padding: 0;
  margin: 8px 0 0;
  border-top: 1px solid #e0d6c7;
  list-style: none;
  text-align: left;
}

.services-list li {
  padding-block: .67rem;
  border-bottom: 1px solid #e0d6c7;
  font-size: .92rem;
}

.services-empty {
  max-width: 952px;
  margin: 26px auto 0;
  padding: 22px;
  border: 1px solid #e0d6c7;
  background: #fffdfa;
  text-align: center;
}

.services-empty p { margin-bottom: 12px; }

@media (max-width: 920px) {
  .services-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .services-filters, .services-cards { grid-template-columns: minmax(0, 1fr); }
  .services-card-copy { padding-inline: 0; }
  .services-card p { min-height: auto; }
}
