/* Capa final y deliberadamente aislada para la aplicación de reservas. */
.agenda-body .booking-page {
  background:#f7f7f4;
  box-sizing:border-box;
  padding:clamp(24px,3.2vw,50px) clamp(14px,3vw,42px) 46px;
}
.agenda-body .booking-intro {
  margin:0 auto 22px;
  max-width:1180px;
  padding:0 4px;
  text-align:left;
}
.agenda-body .booking-compact-title {
  font-size:.72rem!important;
  font-weight:700!important;
  letter-spacing:.16em;
  margin:0 0 6px!important;
  text-transform:uppercase;
}
.agenda-body .booking-intro>p:last-child { color:#697065; font-size:.88rem; margin:0; }
.agenda-body .booking-shell {
  background:#fff;
  border:1px solid #e1e4dd;
  border-radius:18px;
  box-shadow:0 18px 58px rgba(32,40,28,.08);
  display:grid!important;
  grid-template-columns:minmax(235px,290px) minmax(0,1fr)!important;
  margin:0 auto!important;
  max-width:1180px!important;
  min-height:610px;
  overflow:hidden;
  padding:0!important;
  width:100%;
}
.agenda-body .booking-sidebar { min-width:0; padding:42px 32px; }
.agenda-body .booking-main { box-sizing:border-box; min-width:0; padding:38px clamp(28px,4vw,58px) 44px; }
.agenda-body .booking-progress { align-items:center; display:flex!important; gap:8px; margin:0 0 40px; padding:0; }
.agenda-body .booking-progress li { align-items:center; display:flex; flex:1 1 0; font-size:.67rem; gap:7px; min-width:0; white-space:nowrap; }
.agenda-body .booking-progress li::after { min-width:8px; }
.agenda-body .booking-step[hidden],
.agenda-body .booking-step:not(.is-active) { display:none!important; }
.agenda-body .booking-step.is-active { display:block!important; }
.agenda-body .booking-shell.agenda-is-closed .booking-progress,
.agenda-body .booking-shell.agenda-is-closed .booking-step { display:none!important; }
.agenda-body .booking-closed-state { min-height: 270px; }
.agenda-body .booking-date-layout { min-width:0; }
.agenda-body .booking-package-cta { margin:28px auto 0; max-width:1180px; padding:0; }

@media(max-width:900px) {
  .agenda-body .booking-shell { grid-template-columns:220px minmax(0,1fr)!important; }
  .agenda-body .booking-sidebar { padding:30px 22px; }
  .agenda-body .booking-main { padding:30px 24px 36px; }
  .agenda-body .booking-progress li { font-size:.6rem; }
}

@media(max-width:767px) {
  body.agenda-body #header.site-header,
  body.agenda-body #header.site-header .site-header-inner { min-height:64px!important; }
  body.agenda-body #header.site-header .site-header-inner { padding:4px 54px 4px 12px!important; }
  body.agenda-body #header.site-header .site-mobile-logo .site-logo { height:54px!important; width:116px!important; }
  body.agenda-body #header.site-header .site-menu-toggle { height:42px; right:8px; width:42px; }
  .agenda-body .booking-page { padding:12px 8px 28px; }
  .agenda-body .booking-intro { margin-bottom:10px; padding:0 5px; }
  .agenda-body .booking-compact-title { font-size:.58rem!important; margin-bottom:3px!important; }
  .agenda-body .booking-intro>p:last-child { font-size:.75rem!important; line-height:1.35; }
  .agenda-body .booking-shell {
    border-radius:12px;
    box-shadow:0 10px 34px rgba(32,40,28,.07);
    display:block!important;
    min-height:0;
  }
  .agenda-body .booking-sidebar { display:none!important; }
  .agenda-body .booking-main { padding:13px 11px 20px!important; scroll-margin-top:64px; }
  .agenda-body .booking-progress {
    background:#fff;
    border-bottom:1px solid #e1e4dd;
    display:grid!important;
    gap:5px;
    grid-template-columns:repeat(4,minmax(0,1fr));
    margin:0 0 14px!important;
    padding:3px 1px 10px!important;
    position:static!important;
  }
  .agenda-body .booking-progress li { display:flex; font-size:0!important; gap:4px; justify-content:center; min-width:0; }
  .agenda-body .booking-progress li::after { display:none!important; }
  .agenda-body .booking-progress li span { flex:0 0 27px!important; font-size:.7rem!important; height:27px!important; width:27px; }
  .agenda-body .booking-step h2 { font-size:clamp(1.32rem,6.8vw,1.65rem)!important; margin-bottom:14px!important; }
  .agenda-body .booking-closed-state { min-height:280px; padding:48px 8px; }
  .agenda-body .booking-closed-state h2 { font-size:1.55rem!important; }
  .agenda-body .booking-step-label { font-size:.58rem; margin-bottom:4px; }
  .agenda-body .booking-back { font-size:.7rem; margin-bottom:11px; }
  .agenda-body .service-list { gap:7px; }
  .agenda-body .service-card { gap:9px; grid-template-columns:33px minmax(0,1fr) auto; padding:10px 9px; }
  .agenda-body .service-icon { height:33px; width:33px; }
  .agenda-body .service-copy strong { font-size:.84rem; }
  .agenda-body .service-copy small { font-size:.74rem; line-height:1.35; margin:2px 0 4px; }
  .agenda-body .service-copy em { font-size:.7rem; }
  .agenda-body .booking-date-layout { gap:15px!important; grid-template-columns:1fr!important; }
  .agenda-body .calendar-toolbar { margin-bottom:7px; }
  .agenda-body .calendar-toolbar button { height:44px; width:44px; }
  .agenda-body .calendar-blank,
  .agenda-body .date-card { min-height:44px; }
  .agenda-body .date-list { gap:3px; }
  .agenda-body .time-list { gap:6px; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .agenda-body .time-card { min-height:44px; }
  .agenda-body .booking-field-grid { gap:0!important; grid-template-columns:1fr!important; }
  .agenda-body .booking-field { margin-bottom:11px; }
  .agenda-body .booking-field input,
  .agenda-body .booking-field textarea { min-height:0; padding:9px 10px; }
  .agenda-body .booking-consent-row { align-items:center!important; gap:9px!important; grid-template-columns:18px minmax(0,1fr)!important; }
  .agenda-body .booking-consent-row input { align-self:center!important; height:18px!important; margin:0!important; width:18px!important; }
  .agenda-body .booking-policy-link { margin-left:27px!important; }
  .agenda-body .package-description-card { margin-top:14px; }
  .agenda-body .package-description-content { max-height:38vh; overflow:auto; }
  .agenda-body .booking-gift-card-entry > div { align-items: stretch; flex-direction: column; }
  .agenda-body .booking-gift-card-entry .booking-secondary { width: 100%; }
  .agenda-body .booking-primary,
  .agenda-body .booking-secondary,
  .agenda-body .booking-whatsapp,
  .agenda-body .booking-exit { min-height:42px; width:100%; }
  .agenda-body .booking-package-cta { margin-top:18px; padding:0 5px; }
  .agenda-body .booking-package-cta p { font-size:.7rem; }
}

@media(max-width:380px) {
  .agenda-body .booking-page { padding-inline:5px; }
  .agenda-body .booking-main { padding-inline:8px!important; }
  .agenda-body .booking-progress li span { flex-basis:25px!important; height:25px!important; width:25px; }
  .agenda-body .service-copy small { display:block; font-size:.72rem; }
}

/* Tarjetas de servicios compactas: tamaño editorial fijo en escritorio y dos columnas fluidas en móvil. */
.agenda-body .service-category-heading { align-items: stretch; padding: 0; }
.agenda-body .service-category-toggle { grid-template-columns: minmax(0,1fr) auto; min-height: 48px; padding: 8px 0; }
.agenda-body .service-category .service-list { display: grid; gap: 9px; grid-template-columns: repeat(4, 160px); justify-content: start; }
.agenda-body .service-category-panel[hidden] { display: none !important; }
.agenda-body .service-card {
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  gap: 6px !important;
  height: 150px !important;
  justify-content: space-between;
  max-height: 150px !important;
  max-width: 160px;
  min-height: 150px !important;
  min-width: 160px;
  overflow: hidden;
  padding: 10px !important;
  width: 160px !important;
}
.agenda-body .service-icon { flex: 0 0 28px; flex-basis: 28px !important; height: 28px !important; width: 28px !important; }
.agenda-body .service-copy { flex: 1 1 0; min-height: 0; min-width: 0; overflow: hidden; }
.agenda-body .service-copy strong {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  font-size: .74rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
}
.agenda-body .service-copy small {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  font-size: .6rem;
  line-height: 1.25;
  margin: 3px 0 5px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.agenda-body .service-copy em { font-size: .54rem; white-space: nowrap; }
.agenda-body .service-card-details { font-size: .49rem; overflow: hidden; padding-top: 7px; text-overflow: ellipsis; white-space: nowrap; }
.agenda-body .service-category-toggle small { font-size: .62rem; }

/* Escala responsive del set editorial sin cambiar su geometría. */
.agenda-body .service-category-toggle { grid-template-columns: minmax(0,1fr) auto; }
.agenda-body .service-category-chevron { border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid var(--booking-green); color: transparent; height: 0; justify-self: center; line-height: 0; transition: transform .2s ease; width: 0; }
.agenda-body .service-category.is-collapsed .service-category-chevron { transform: rotate(-90deg); }
.agenda-body .service-icon { border-radius: 10px; flex: 0 0 40px; flex-basis: 40px !important; height: 40px !important; width: 40px !important; }
@media (max-width: 767px) {
  .agenda-body .service-category-toggle { grid-template-columns: minmax(0,1fr) auto; }
  .agenda-body .service-icon { border-radius: 10px; flex: 0 0 36px; flex-basis: 36px !important; height: 36px !important; width: 36px !important; }
}

@media (max-width: 767px) {
  .agenda-body .service-category .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .agenda-body .service-card {
    aspect-ratio: 16 / 15;
    height: auto !important;
    max-height: none !important;
    max-width: none;
    min-height: 0 !important;
    min-width: 0;
    width: 100% !important;
  }
}

/* Bienvenida editorial: orienta al cliente antes de mostrar el primer paso. */
.agenda-body .booking-progress[hidden],
.agenda-body .booking-step[hidden] { display: none !important; }
.agenda-body .booking-welcome {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: clamp(610px, calc(100dvh - 108px), 980px);
  padding: clamp(72px, 8vw, 118px) clamp(30px, 5vw, 86px) clamp(38px, 5vw, 64px);
  position: relative;
}
.agenda-body .booking-welcome[hidden] { display: none !important; }
.agenda-body .booking-shell.agenda-settings-loading .booking-welcome { visibility: hidden; }
.agenda-body .booking-welcome-copy { max-width: 950px; }
.agenda-body .booking-welcome .booking-step-label { margin-bottom: 28px; }
.agenda-body .booking-welcome h2 {
  color: var(--booking-ink);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.6rem, 5.4vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: .92;
  margin: 0 0 28px;
  max-width: 18ch;
  text-transform: uppercase;
}
.agenda-body .booking-welcome-copy > p:not(.booking-step-label) {
  color: var(--booking-green-dark);
  font-size: clamp(1rem, 1.45vw, 1.45rem);
  line-height: 1.45;
  margin: 0;
  max-width: 42ch;
}
.agenda-body .booking-welcome-steps {
  align-items: flex-start;
  display: flex;
  gap: clamp(22px, 3.4vw, 56px);
  list-style: none;
  margin: 30px 0 0;
  max-width: 590px;
  padding: 0;
}
.agenda-body .booking-welcome-steps li {
  align-items: center;
  color: var(--booking-ink);
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  font-size: .78rem;
  gap: 10px;
  line-height: 1.35;
  min-width: 86px;
  text-align: center;
}
.agenda-body .booking-welcome-step-icon {
  align-items: center;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}
.agenda-body .booking-welcome-step-icon svg {
  fill: none;
  height: 28px;
  stroke: var(--booking-ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  width: 28px;
}
.agenda-body .booking-welcome-steps strong { font-weight: 700; }
.agenda-body .booking-welcome-note {
  color: var(--booking-green-dark) !important;
  font-size: 1.05rem !important;
  font-style: italic;
  letter-spacing: .01em;
  margin-top: 30px !important;
}
.agenda-body .booking-welcome-actions {
  align-items: flex-end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-top: 70px;
  padding-top: 0;
}
.agenda-body .booking-start {
  align-items: center;
  animation: booking-start-pulse-mobile 2.2s ease-in-out infinite;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 18px;
  justify-content: center;
  margin: 0;
  min-height: 64px;
  padding-inline: 38px;
  width: 270px;
}
.agenda-body .booking-start-arrow {
  animation: booking-start-arrow-mobile 2.2s ease-in-out infinite;
  display: inline-flex;
  height: 20px;
  transition: transform .2s ease;
  width: 20px;
}
.agenda-body .booking-start-arrow svg {
  fill: none;
  height: 100%;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 100%;
}
.agenda-body .booking-start:hover .booking-start-arrow,
.agenda-body .booking-start:focus-visible .booking-start-arrow { transform: translateX(3px); }
@keyframes booking-start-pulse-mobile {
  0%, 100% {
    box-shadow: 0 8px 18px rgba(76, 89, 68, .12);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 12px 26px rgba(76, 89, 68, .2), 0 0 0 7px rgba(102, 114, 87, .14);
    transform: translateY(-3px);
  }
}
@keyframes booking-start-arrow-mobile {
  0%, 68%, 100% { transform: translateX(0); }
  76%, 88% { transform: translateX(4px); }
}
.agenda-body .booking-welcome-testimonials {
  align-items: center;
  color: var(--booking-ink);
  display: inline-flex;
  font-size: clamp(.85rem, 1.1vw, 1.1rem);
  font-style: italic;
  gap: 10px;
  margin-bottom: 0;
  padding: 0 20px 20px 0;
  text-decoration: none;
  white-space: nowrap;
}
.agenda-body .booking-welcome-testimonials:hover,
.agenda-body .booking-welcome-testimonials:focus-visible { color: var(--booking-green-dark); text-decoration: underline; text-underline-offset: 4px; }
.agenda-body .booking-welcome-testimonial-stars { display: inline-flex; gap: 3px; }
.agenda-body .booking-welcome-testimonial-stars svg { fill: #dfb12d; height: 20px; stroke: #dfb12d; width: 20px; }
@media (min-width: 901px) {
  .agenda-body .booking-intro { display: none !important; }
  .agenda-body .booking-page { padding: clamp(10px, 1.25vw, 24px) clamp(10px, 1.25vw, 24px) 28px; }
  .agenda-body .booking-shell {
    border-radius: 22px;
    grid-template-columns: clamp(270px, 17vw, 340px) minmax(0, 1fr) !important;
    max-width: none !important;
    min-height: max(610px, calc(100dvh - 100px));
  }
}

/* En pantallas 1080p el encabezado sale del primer viewport para priorizar la reserva. */
body.agenda-body.agenda-compact-viewport .booking-page {
  min-height: calc(100dvh + 110px);
}

/* En 1080p la agenda conserva su geometría interna, pero se presenta con la densidad visual equivalente al 80 % de zoom. */
@media (min-width: 901px) and (max-height: 1100px) {
  body.agenda-body.agenda-compact-viewport { overflow-x: hidden; }
  body.agenda-body.agenda-compact-viewport .booking-page {
    zoom: .8;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .agenda-body .booking-welcome {
    min-height: 620px;
    padding: 44px 20px 28px;
  }
  .agenda-body .booking-welcome .booking-step-label { margin-bottom: 20px; }
  .agenda-body .booking-welcome h2 { font-size: clamp(2.35rem, 11vw, 3.3rem); line-height: .92; margin-bottom: 22px; max-width: 100%; }
  .agenda-body .booking-welcome-copy > p:not(.booking-step-label) { font-size: 1rem; line-height: 1.5; }
  .agenda-body .booking-welcome-steps { gap: 8px; margin-top: 28px; max-width: 100%; }
  .agenda-body .booking-welcome-steps li { font-size: .7rem; gap: 8px; min-width: 0; }
  .agenda-body .booking-welcome-step-icon,
  .agenda-body .booking-welcome-step-icon svg { height: 25px; width: 25px; }
  .agenda-body .booking-welcome-note { font-size: .95rem !important; margin-top: 25px !important; }
  .agenda-body .booking-welcome-actions { align-items: stretch; flex-direction: column; gap: 22px; margin-top: 70px; padding-top: 0; }
  .agenda-body .booking-start {
    min-height: 56px;
    padding-inline: 28px;
    width: 100%;
  }
  .agenda-body .booking-welcome-testimonials { align-self: flex-end; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .agenda-body .booking-start { animation: none; }
  .agenda-body .booking-start-arrow { animation: none; transition: none; }
}

/* Editor editorial: visual service cards with a configurable image and a clear booking action. */
.agenda-body .booking-main { padding-block: 24px 38px; }
.agenda-body .booking-shell { grid-template-columns: minmax(235px, 270px) minmax(0, 1fr) !important; max-width: 1360px !important; }
.agenda-body .booking-main { padding-inline: clamp(24px, 3vw, 42px); }
.agenda-body .booking-progress { margin-bottom: 30px; }
.agenda-body .booking-back { margin-bottom: 12px; }
.agenda-body .booking-step h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin-bottom: 22px; }
.agenda-body .service-category .service-list { align-items: start; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 240px)); justify-content: start; }
.agenda-body .service-card { align-items: stretch; aspect-ratio: 3 / 4; background-color: #596053; background-image: var(--service-image, linear-gradient(135deg, #87927e, #3c4439)); background-position: center; background-size: cover; border: 0; border-radius: 30px; box-shadow: 0 16px 32px rgba(23,29,22,.12); box-sizing: border-box; color: #fff; display: flex; flex-direction: column; height: 320px !important; isolation: isolate; justify-content: space-between; max-height: none !important; max-width: 240px; min-height: 300px !important; min-width: 0; overflow: hidden; padding: 18px; position: relative; text-align: left; transition: box-shadow .28s ease, transform .28s ease; }
.agenda-body .service-card::before { background: linear-gradient(180deg, rgba(16,20,15,0) 20%, rgba(16,20,15,.05) 42%, rgba(16,20,15,.24) 64%, rgba(16,20,15,.9) 100%); border-radius: inherit; content: ""; inset: 0; pointer-events: none; position: absolute; }
.agenda-body .service-card::after { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); background: linear-gradient(180deg, rgba(16,20,15,0) 0%, rgba(16,20,15,.08) 42%, rgba(16,20,15,.2) 100%); border-radius: inherit; content: ""; inset: 45% 0 0; mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 100%); pointer-events: none; position: absolute; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 100%); }
.agenda-body .service-card:hover { box-shadow: 0 22px 38px rgba(23,29,22,.2); transform: translateY(-5px); }
.agenda-body .service-card:focus-visible { outline: 2px solid var(--booking-green); outline-offset: 4px; }
.agenda-body .service-card-media-indicator { align-self: flex-end; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.5); border-radius: 999px; font: 700 .64rem/1 Montserrat, sans-serif; letter-spacing: .1em; padding: 7px 9px; position: relative; z-index: 1; }
.agenda-body .service-card-content { background: transparent; border-radius: 0; display: flex; flex-direction: column; min-height: 0; padding: 0; position: relative; z-index: 1; }
.agenda-body .service-card-title-row { align-items: flex-start; display: flex; gap: 8px; justify-content: space-between; }
.agenda-body .service-card-title { color: #fff; font-family: Merriweather, serif; font-size: clamp(1.35rem, 2vw, 1.72rem); font-weight: 400; line-height: 1.14; margin: 0; }
.agenda-body .service-card-price { background: rgba(16, 20, 15, .62); border: 1px solid rgba(255,255,255,.42); border-radius: 999px; color: #fff; flex: 0 0 auto; font-size: .82rem; font-weight: 700; padding: 7px 9px; white-space: nowrap; }
.agenda-body .service-card-description { color: rgba(255,255,255,.86); display: -webkit-box; font-size: .92rem; line-height: 1.4; margin: 10px 0 8px; max-width: 34ch; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.agenda-body .service-card-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; min-height: 0; }
.agenda-body .service-card-badges:empty { display: none; }
.agenda-body .service-card-badges span { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.36); border-radius: 999px; color: #fff; font: 700 .65rem/1.2 Montserrat, sans-serif; letter-spacing: .05em; padding: 6px 8px; }
.agenda-body .service-card-duration { color: rgba(255,255,255,.76); font-size: .78rem; margin-bottom: 12px; }
.agenda-body .service-card-details { align-self: flex-start; background: transparent; border: 0; color: rgba(255,255,255,.9); cursor: pointer; font: 700 .66rem/1 Montserrat, sans-serif; letter-spacing: .1em; margin: -2px 0 12px; padding: 0 0 3px; text-decoration: underline; text-decoration-color: rgba(255,255,255,.5); text-underline-offset: 4px; text-transform: uppercase; }
.agenda-body .service-card-details:hover { color: #fff; text-decoration-color: #fff; }
.agenda-body .service-card-details,
.agenda-body .service-card-description-close,
.agenda-body .service-card-cta,
.agenda-body .service-category-toggle { -webkit-tap-highlight-color: transparent; }
.agenda-body .service-card { -webkit-tap-highlight-color: transparent !important; }
.agenda-body .service-card-details:focus { box-shadow: none; outline: none; }
.agenda-body .service-card-details:focus-visible { outline: 2px solid rgba(255,255,255,.8); outline-offset: 4px; }
.agenda-body .service-card-description-close:focus { box-shadow: none; outline: none; }
.agenda-body .service-card-description-close:focus-visible { outline: 2px solid rgba(255,255,255,.8); outline-offset: 3px; }
.agenda-body .service-card-cta:focus { box-shadow: none; outline: none; }
.agenda-body .service-card-cta:focus-visible { outline: 2px solid rgba(255,255,255,.9); outline-offset: 3px; }
.agenda-body .service-category-toggle:focus { box-shadow: none; outline: none; }
.agenda-body .service-category-toggle:focus-visible { outline: 2px solid rgba(102,114,87,.55); outline-offset: 3px; }
.agenda-body .service-card:focus { box-shadow: none; outline: none; }
.agenda-body .service-card:focus-visible { outline: 2px solid var(--booking-green); outline-offset: 4px; }
.agenda-body .service-card-details:focus:not(:focus-visible),
.agenda-body .service-card-description-close:focus:not(:focus-visible),
.agenda-body .service-card-cta:focus:not(:focus-visible),
.agenda-body .service-category-toggle:focus:not(:focus-visible),
.agenda-body .service-card:focus:not(:focus-visible) { box-shadow: none !important; outline: 0 !important; }
.agenda-body .service-card-description-panel { background: linear-gradient(160deg, rgba(42,51,43,.97), rgba(25,31,26,.98)); border-radius: inherit; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; inset: 0; max-height: 100%; max-width: 100%; opacity: 0; overflow: hidden; padding: 18px; pointer-events: none; position: absolute; transform: translateY(12px); transition: opacity .24s ease, transform .24s ease, visibility 0s linear .24s; visibility: hidden; will-change: opacity, transform; z-index: 5; }
.agenda-body .service-card.is-details-open .service-card-description-panel { opacity: 1; pointer-events: auto; transform: translateY(0); transition-delay: 0s; visibility: visible; }
.agenda-body .service-card-description-panel-header { align-items: center; display: flex; gap: 12px; justify-content: space-between; }
.agenda-body .service-card-description-panel-header > span { color: rgba(255,255,255,.72); font: 700 .62rem/1 Montserrat, sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.agenda-body .service-card-description-close { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; color: #fff; cursor: pointer; font: 700 .58rem/1 Montserrat, sans-serif; letter-spacing: .08em; padding: 7px 9px; text-transform: uppercase; }
.agenda-body .service-card-description-close:hover { background: rgba(255,255,255,.22); }
.agenda-body .service-card-description-panel-body { color: rgba(255,255,255,.9); flex: 1 1 auto; font-size: .82rem; line-height: 1.5; min-height: 0; overflow: auto; scrollbar-color: rgba(255,255,255,.42) transparent; scrollbar-width: thin; }
.agenda-body .service-card-description-panel-body::-webkit-scrollbar { height: 5px; width: 5px; }
.agenda-body .service-card-description-panel-body::-webkit-scrollbar-track { background: transparent; }
.agenda-body .service-card-description-panel-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.42); border: 1px solid transparent; border-radius: 999px; background-clip: padding-box; }
.agenda-body .service-card-description-panel-body::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.62); background-clip: padding-box; }
.agenda-body .service-card-description-panel-body p { margin: 0 0 10px; }
.agenda-body .service-card-description-panel-body p:last-child { margin-bottom: 0; }
.agenda-body .service-card-description-panel-body h2,
.agenda-body .service-card-description-panel-body h3 { color: #fff; font-family: Merriweather, serif; font-size: 1.1rem; font-weight: 400; line-height: 1.2; margin: 0 0 10px; }
.agenda-body .service-card-description-panel-body ul,
.agenda-body .service-card-description-panel-body ol { margin: 0 0 10px; padding-left: 18px; }
.agenda-body .service-card-description-panel-body blockquote { border-left: 2px solid rgba(255,255,255,.42); margin: 0 0 10px; padding-left: 12px; }
.agenda-body .service-card-cta { background: #fff; border: 0; border-radius: 999px; color: var(--booking-ink); cursor: pointer; font: 700 .74rem/1 Montserrat, sans-serif; letter-spacing: .1em; min-height: 52px; padding: 13px 18px; text-transform: uppercase; transition: background-color .2s ease, transform .2s ease; width: 100%; }
.agenda-body .service-card-cta:hover { background: #f0f2ec; transform: scale(1.02); }
.agenda-body .service-card-cta:active { transform: scale(.98); }
@media (prefers-reduced-motion: reduce) {
  .agenda-body .service-card, .agenda-body .service-card-cta, .agenda-body .service-card-description-panel { transition: none; }
  .agenda-body .service-card:hover, .agenda-body .service-card-cta:hover, .agenda-body .service-card-cta:active { transform: none; }
}
@media (max-width: 900px) and (min-width: 768px) {
  .agenda-body .booking-shell { max-width: 1180px !important; }
  .agenda-body .booking-main { padding-inline: 24px; }
  .agenda-body .service-category .service-list { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .agenda-body .service-card { max-width: none; }
}

/* Escritorio: reserva espacio real para tres tarjetas de 300 px cuando el lienzo lo permite. */
@media (min-width: 901px) {
  .agenda-body .booking-shell { grid-template-columns: 220px minmax(0, 1fr) !important; }
  .agenda-body .booking-sidebar { padding-inline: 24px; }
  .agenda-body .booking-main { padding-inline: 20px; }
  .agenda-body .service-card-description-panel-body { font-size: 14px; }
}

@media (max-width: 767px) {
  body.agenda-body { overflow-x: hidden; }
  .agenda-body .booking-main { padding-block: 10px 20px !important; }
  .agenda-body .booking-progress { margin-bottom: 14px !important; }
  .agenda-body .booking-back { margin-bottom: 9px; }
  .agenda-body .booking-step h2 { font-size: clamp(1.25rem, 6vw, 1.5rem) !important; margin-bottom: 16px !important; }
  .agenda-body .service-category .service-list { display: flex; gap: 14px; margin-inline: -2px; max-width: calc(100vw - 40px); overflow-x: auto; padding: 2px 2px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .agenda-body .service-category .service-list::-webkit-scrollbar { height: 5px; }
  .agenda-body .service-category .service-list::-webkit-scrollbar-thumb { background: rgba(102,114,87,.5); border-radius: 999px; }
  .agenda-body .service-card { border-radius: 30px; flex: 0 0 min(84vw, 340px); height: auto !important; max-width: none; min-height: 0 !important; scroll-snap-align: start; }
  .agenda-body .service-card:hover,
  .agenda-body .service-card:active { box-shadow: 0 16px 32px rgba(23,29,22,.12); transform: none; }
  .agenda-body .service-card-description-panel { padding: 16px; transform: translate3d(0, 10px, 0); }
  .agenda-body .service-card-description-panel-body { font-size: .8rem; max-height: 100%; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
  .agenda-body .service-card-title { font-size: 1.42rem; }
  .agenda-body .service-card-description { font-size: .9rem; }
  .agenda-body .service-card-cta { min-height: 50px; }
}

/* Escritorio: las tarjetas mantienen una proporción editorial fija de 300 × 400 px. */
@media (min-width: 901px) {
  .agenda-body .service-category .service-list {
    grid-template-columns: repeat(auto-fill, 300px);
  }
  .agenda-body .service-card {
    aspect-ratio: auto;
    border: 0 !important;
    height: 400px !important;
    max-height: 400px !important;
    max-width: 300px !important;
    min-height: 400px !important;
    min-width: 300px !important;
    width: 300px !important;
  }
}

/* En móvil el gesto táctil no debe teñir la tarjeta ni levantarla con una sombra. */
@media (max-width: 767px) {
  .agenda-body .service-card,
  .agenda-body .service-card * {
    -webkit-tap-highlight-color: transparent !important;
  }

  .agenda-body .service-card,
  .agenda-body .service-card:hover,
  .agenda-body .service-card:active {
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .agenda-body .service-card-details:active,
  .agenda-body .service-card-description-close:active,
  .agenda-body .service-card-cta:active {
    box-shadow: none !important;
    outline: 0 !important;
  }

  .agenda-body .service-card *:focus:not(:focus-visible) {
    box-shadow: none !important;
    outline: 0 !important;
  }
}

/* Composición final de bienvenida: el panel debe ser el primer lienzo visible. */
.agenda-body .booking-intro { display: none !important; }
@media (min-width: 901px) {
  .agenda-body .booking-page { padding: clamp(24px, 3.2vw, 50px) clamp(14px, 3vw, 42px) 46px; }
  .agenda-body .booking-shell {
    border-radius: 22px;
    grid-template-columns: clamp(270px, 17vw, 340px) minmax(0, 1fr) !important;
    max-width: 1360px !important;
    min-height: 600px;
  }
  .agenda-body .booking-welcome {
    min-height: 0;
    padding: clamp(8px, 1vw, 16px) clamp(30px, 5vw, 86px) 50px;
  }
  .agenda-body .booking-welcome h2 {
    font-size: clamp(1.9rem, 2.7vw, 2.9rem);
    line-height: .98;
    margin-bottom: 20px;
    max-width: 28ch;
    text-wrap: balance;
  }
  .agenda-body .booking-welcome-copy > p:not(.booking-step-label) {
    font-size: 14px;
    line-height: 1.55;
  }
  .agenda-body .booking-welcome-actions {
    margin-top: 70px;
    padding-top: 0;
  }
}

@media (max-width: 767px) {
  .agenda-body .booking-shell {
    border-radius: 30px;
    min-height: 620px;
    overflow: hidden;
  }
}

/* Selector editorial de categorías: la fotografía guía la elección sin alterar el acordeón ni el flujo. */
.agenda-body .service-category-heading { border-bottom: 0; }
.agenda-body .service-category-toggle {
  background: #fff;
  border: 1px solid var(--booking-line);
  border-radius: 16px;
  gap: 0;
  grid-template-columns: minmax(170px, 28%) minmax(0, 1fr) auto;
  height: 145px;
  max-height: 145px;
  min-height: 145px;
  overflow: hidden;
  padding: 0;
  text-transform: none;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.agenda-body .service-category-toggle:hover { background: #fcfdfb; border-color: rgba(102,114,87,.55); box-shadow: 0 12px 28px rgba(40,48,37,.08); }
.agenda-body .service-category-toggle:focus-visible { border-color: var(--booking-green); outline: 2px solid rgba(102,114,87,.35); outline-offset: 3px; }
.agenda-body .service-category-media {
  align-self: stretch;
  background: var(--booking-soft);
  display: flex;
  height: 145px;
  max-height: 145px;
  min-height: 145px;
  overflow: hidden;
  position: relative;
}
.agenda-body .service-category-media > img { height: 100%; object-fit: cover; width: 100%; }
.agenda-body .service-category-copy { display: flex; flex-direction: column; gap: 8px; justify-content: center; min-width: 0; padding: 24px 28px; }
.agenda-body .service-category-label { color: var(--booking-ink); font-family: Merriweather, serif; font-size: clamp(1.15rem, 1.8vw, 1.65rem); font-weight: 400; letter-spacing: .04em; line-height: 1.15; }
.agenda-body .service-category-summary { color: var(--booking-muted); font-family: "Open Sans", sans-serif; font-size: .9rem; font-weight: 400; letter-spacing: 0; line-height: 1.45; max-width: 48ch; }
.agenda-body .service-category-action { align-items: center; color: var(--booking-green-dark); display: flex; gap: 17px; justify-content: center; min-width: 150px; padding: 24px; }
.agenda-body .service-category-action .service-category-count { color: inherit; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.agenda-body .service-category-action .service-category-chevron { border:0; display:block; flex:0 0 14px; height:16px; position:relative; transform:none; width:16px; }
.agenda-body .service-category-action .service-category-chevron::before { background:var(--booking-green); clip-path:polygon(50% 78%, 8% 18%, 92% 18%); content:""; inset:0; position:absolute; transition:transform .2s ease; }
.agenda-body .service-category.is-collapsed .service-category-chevron { transform:none; }
.agenda-body .service-category.is-collapsed .service-category-chevron::before { transform:rotate(-90deg); }
.agenda-body .service-category.is-collapsed .service-category-toggle { box-shadow: none; }

@media (max-width: 900px) {
  .agenda-body .service-category-toggle { grid-template-columns: minmax(130px, 24%) minmax(0, 1fr) auto; }
  .agenda-body .service-category-copy { padding: 18px 20px; }
  .agenda-body .service-category-action { min-width: 120px; padding: 16px; }
}

@media (max-width: 767px) {
  .agenda-body .service-category-toggle { grid-template-columns: 112px minmax(0, 1fr) auto; }
  .agenda-body .service-category-copy { gap: 5px; padding: 14px 15px; }
  .agenda-body .service-category-label { font-size: 1.02rem; letter-spacing: .02em; }
  .agenda-body .service-category-summary { display: -webkit-box; font-size: .72rem; line-height: 1.35; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .agenda-body .service-category-action { flex-direction: column; gap: 8px; min-width: 72px; padding: 12px 9px; }
  .agenda-body .service-category-action .service-category-count { font-size: .61rem; text-align: center; white-space: normal; }
}
