/* Only the six service choices. Photos are decorative; the real buttons,
   names, pressed state, plus/check and compulsory pizza keep their semantics.
   No whole-button dimming: text and controls remain readable and actionable. */
#step-1 .services .service {
  --service-photo: none;
  --service-photo-size: cover;
  --service-photo-position: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 142px;
  background: #263137;
  color: #fff;
  border: 1px solid #7c898e;
  box-shadow: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

#step-1 .services .service::before,
#step-1 .services .service::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

#step-1 .services .service::before {
  z-index: 0;
  background-color: #344249;
  background-image: var(--service-photo), linear-gradient(135deg, #4c5e65, #263137);
  background-repeat: no-repeat;
  background-size: var(--service-photo-size), cover;
  background-position: var(--service-photo-position), center;
  filter: grayscale(.82) saturate(.45) brightness(.82);
}

/* The JS deck admits only visible cards. Keep the static photographs as the
   no-JS fallback without letting those URLs bypass that admission gate. */
#step-1.service-photos-managed .services .service::before {
  background-image: linear-gradient(135deg, #4c5e65, #263137);
}

/* Leave photo detail visible. Contrast protection belongs to the labels and
   icons themselves, rather than a dark sheet over the entire photograph. */
#step-1 .services .service::after {
  z-index: 1;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .16));
}

#step-1 .services .service > * { position: relative; z-index: 2; }
#step-1 .services .service > .service-photo-deck {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
}
#step-1 .services .service .service-photo-layer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: #344249;
  background-repeat: no-repeat;
  opacity: 0;
  filter: grayscale(.82) saturate(.45) brightness(.82);
  pointer-events: none;
}
#step-1 .services .service .service-photo-layer.is-current { opacity: 1; }
#step-1 .services .service[aria-pressed="true"] .service-photo-layer { filter: none; }
#step-1 .services .service svg { stroke: #fff; stroke-width: 1.8; flex-shrink: 0; }
#step-1 .services .service svg,
#step-1 .services .service .service-emoji {
  background: rgba(0, 0, 0, .68);
  border-radius: 50%;
}
#step-1 .services .service .service-emoji {
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 31px;
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}
/* 68% black over a white photo pixel yields at most rgb(82,82,82).
   White text therefore retains more than 4.5:1 contrast without darkening
   the surrounding image; no text shadow is needed for that guarantee. */
#step-1 .services .service .name {
  min-width: 0;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .68);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: none;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
#step-1 .services .service .tick {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 25px;
  height: 25px;
  background: #182126;
  color: #fff;
  border: 1px solid #b9c5cb;
}
#step-1 .services .service .base {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 3px 6px;
  border-radius: 4px;
  background: #182126;
  color: #fff;
  font-size: 9px;
}

#step-1 .services .service[aria-pressed="true"] {
  border-color: #49c88a;
  box-shadow: 0 0 0 2px #49c88a;
  color: #fff;
}
#step-1 .services .service[aria-pressed="true"]::before { filter: none; }
#step-1 .services .service[aria-pressed="true"] .tick {
  background: #087443;
  border-color: #49c88a;
  color: #fff;
}
#step-1 .services .service[aria-pressed="true"]:disabled { cursor: default; opacity: 1; }
#step-1 .services .service:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

#step-1 .services .service[data-service="pizza"] {
  --service-photo: url('/fotos/pizza-lista-entrega-540.webp');
  --service-photo-size: 120% auto;
  --service-photo-position: 50% 58%;
}
#step-1 .services .service[data-service="salad"] {
  --service-photo: url('/fotos/pizza-ensalada-mostrador-540.webp');
  --service-photo-size: 180% auto;
  --service-photo-position: 20% 57%;
}
#step-1 .services .service[data-service="coffee"] {
  --service-photo: url('/fotos/cafe-frio-casa-red.jpg');
  --service-photo-position: 50% 40%;
}
#step-1 .services .service[data-service="mocktail"] {
  --service-photo: url('/fotos/mocktail-casa-red-01.jpg');
  --service-photo-position: 50% 50%;
}
#step-1 .services .service[data-service="pasta"] {
  --service-photo: url('/fotos/pasta-casa-red-sin-texto.jpg');
  --service-photo-position: 50% 80%;
}
#step-1 .services .service[data-service="bakery"] {
  --service-photo: url('/fotos/panaderia-croissants-casa-red.jpg');
  --service-photo-position: 50% 57%;
}

#step-1 .service-photo-motion {
  min-height: 44px;
  margin: 0 0 12px;
  padding: 8px 13px;
  border: 1px solid #809298;
  border-radius: 8px;
  background: #182126;
  color: #fff;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
#step-1 .service-photo-motion[hidden] { display: none; }
#step-1 .service-photo-motion:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
#step-1 .service-photo-motion:hover { border-color: #fff; }

#step-1 .mocktail-guide {
  margin: 16px 0 0;
  border: 1px solid #596970;
  border-radius: 8px;
  background: #182126;
  color: #fff;
}
#step-1 .mocktail-guide > summary {
  min-height: 44px;
  padding: 11px 13px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}
#step-1 .mocktail-guide > summary:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
#step-1 .mocktail-guide dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 0;
  padding: 8px 13px 15px;
}
#step-1 .mocktail-guide dt { font-size: 14px; font-weight: 600; line-height: 1.4; }
#step-1 .mocktail-guide dd { margin: 4px 0 0; color: #e2e8eb; font-size: 13px; line-height: 1.5; overflow-wrap: break-word; }
#step-1 .mocktail-guide-note { display: block; color: #c4d0d5; font-size: 12px; }

@media (hover: hover) {
  #step-1 .services .service:not(:disabled):not([aria-pressed="true"]):hover {
    border-color: #fff;
    box-shadow: inset 0 0 0 1px #fff;
  }
}
@media (max-width: 899px) {
  #step-1 .services .service { min-height: 112px; padding: 15px 13px; }
  #step-1 .services .service .name { font-size: 14px; }
  #step-1 .mocktail-guide dl { grid-template-columns: minmax(0, 1fr); }
  #step-1 .services .service .service-emoji { width: 27px; height: 27px; }
}
@media (prefers-reduced-motion: no-preference) {
  #step-1 .services .service::before { transition: filter .16s ease; }
  #step-1 .services .service .service-photo-layer { transition: opacity .4s ease, filter .16s ease; }
}
@media (prefers-contrast: more) {
  #step-1 .services .service .name,
  #step-1 .services .service svg,
  #step-1 .services .service .service-emoji { background: rgba(0, 0, 0, .85); }
}
@media (forced-colors: active) {
  #step-1 .services .service::before,
  #step-1 .services .service::after,
  #step-1 .services .service > .service-photo-deck { display: none; }
  #step-1 .services .service { background: Canvas; color: ButtonText; border-color: ButtonText; }
  #step-1 .services .service .name,
  #step-1 .services .service .base { color: ButtonText; background: Canvas; text-shadow: none; }
  #step-1 .services .service svg { stroke: ButtonText; }
  #step-1 .services .service svg,
  #step-1 .services .service .service-emoji { background: Canvas; }
  #step-1 .services .service .tick { background: Canvas; color: ButtonText; border-color: ButtonText; }
  #step-1 .services .service[aria-pressed="true"] { border-color: Highlight; }
  #step-1 .services .service[aria-pressed="true"] .tick { background: Highlight; color: HighlightText; border-color: Highlight; }
  #step-1 .services .service:focus-visible { outline-color: Highlight; }
  #step-1 .service-photo-motion { background: Canvas; color: ButtonText; border-color: ButtonText; }
  #step-1 .service-photo-motion:focus-visible { outline-color: Highlight; }
  #step-1 .mocktail-guide { background: Canvas; color: CanvasText; border-color: ButtonText; }
  #step-1 .mocktail-guide dd,
  #step-1 .mocktail-guide-note { color: CanvasText; }
  #step-1 .mocktail-guide > summary:focus-visible { outline-color: Highlight; }
}
