/* Aislado del diseño existente. No modifica las tarjetas ni los modales de servicios. */
.booking[hidden],
.booking [hidden] {
  display: none !important;
}
.booking {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 33, 17, 0.62);
  overscroll-behavior: none;
  overflow-x: hidden;
  font:
    16px/1.5 Arial,
    Helvetica,
    sans-serif;
  color: #14251b;
}
.booking * {
  box-sizing: border-box;
  min-width: 0;
}
.booking-panel {
  width: min(1050px, 100%);
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 25px 80px #00251055;
}
.booking-header {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 26px;
  border-bottom: 1px solid #dce8dd;
  background: #fff;
}
.booking-kicker {
  margin: 0;
  color: #08783a;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}
.booking h2 {
  margin: 3px 0 0;
  color: #075b30;
  font-size: 1.7rem;
  line-height: 1.2;
}
.booking button {
  cursor: pointer;
  font: inherit;
}
.booking-close {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid #dce8dd;
  border-radius: 50%;
  background: #fff;
  color: #075b30;
  font-size: 1.6rem !important;
}
.booking-body {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 24px 26px;
  min-height: 0;
}
.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}
.booking-layout > * {
  min-width: 0;
  max-width: 100%;
}
.booking-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.booking label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
}
.booking .full {
  grid-column: 1/-1;
}
.booking input,
.booking select,
.booking textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid #bdcebf;
  border-radius: 10px;
  background: #fff;
  font: 400 16px Arial;
  color: #14251b;
  min-height: 46px;
}
.booking textarea {
  resize: vertical;
  min-height: 88px;
}
.booking select:disabled {
  background: #f0f3ef;
  color: #66746b;
}
.booking :focus-visible {
  outline: 3px solid #87b852;
  outline-offset: 2px;
}
.booking [aria-invalid="true"] {
  border: 2px solid #a82727;
}
.booking-note {
  color: #526057;
  font-size: 0.875rem;
  margin: 0 0 18px;
}
.booking-demo {
  padding: 10px 14px;
  background: #fff2cb;
  color: #674700;
  border-radius: 10px;
  margin: 0 0 16px;
  font-size: 0.875rem;
}
.booking-availability {
  margin-top: 22px;
}
.booking-availability h3 {
  font-size: 1.05rem;
  margin: 0 0 10px;
  color: #075b30;
}
.booking-options {
  display: grid;
  gap: 8px;
}
.booking-slot {
  width: 100%;
  padding: 12px;
  text-align: left;
  border: 1px solid #c9debd;
  background: #f2f8ee;
  border-radius: 11px;
  color: #254032;
}
#bookingSuggestions .booking-slot {
  text-align: center;
}
.booking-slot small {
  display: block;
  font-size: 0.8rem;
  margin-top: 3px;
}
.booking-slot[aria-pressed="true"] {
  background: #075b30;
  color: white;
  border-color: #075b30;
}
.booking-slot:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.booking-calendar-box {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #dce8dd;
  border-radius: 14px;
}
.booking-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.booking-calendar-head button {
  width: 42px;
  height: 42px;
  background: #fff;
  border: 1px solid #dce8dd;
  border-radius: 50%;
  color: #075b30;
}
.booking-calendar-head strong {
  text-align: center;
  text-transform: capitalize;
}
.booking-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.booking-calendar span {
  text-align: center;
  font-size: 0.8rem;
}
.booking-day {
  border: 0;
  min-height: 40px;
  border-radius: 8px;
  background: #dcefc4;
  color: #20451f;
  font-weight: 700 !important;
}
.booking-day:disabled {
  background: #eff1ee;
  color: #7d857e;
  cursor: not-allowed;
}
.booking-day:hover:not(:disabled) {
  background: #b8e45b;
}
.booking-back {
  border: 0;
  background: none;
  color: #075b30;
  text-decoration: underline;
  padding: 8px 0;
}
.booking-times {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.booking-times .booking-slot {
  text-align: center;
  padding: 12px 4px;
  white-space: nowrap;
  font-size: 0.87rem;
}
.booking-date-heading {
  margin: 14px 0 10px;
  font-weight: 700;
  color: #075b30;
  text-transform: capitalize;
}
.booking-selected {
  border-left: 4px solid #08783a;
  padding: 12px;
  background: #f2f8ee;
  border-radius: 6px;
  font-size: 0.9rem;
}
.booking-preview {
  position: sticky;
  top: 0;
  border: 1px solid #c9dfcf;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 36px rgba(7, 91, 48, 0.09);
}
.booking-preview-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px;
  color: #fff;
  background: linear-gradient(125deg, #064b2a, #08783a);
}
.booking-preview-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.16);
}
.booking-preview-kicker {
  display: block;
  color: #d8f1d0;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}
.booking-preview-title {
  margin-top: 3px;
  font-size: 1.15rem;
  font-weight: 700;
}
.booking-preview-body {
  padding: 20px;
}
.booking-preview-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 12px;
  padding: 15px;
  border: 1px solid #dbead9;
  border-radius: 14px;
  background: #f2f8ee;
}
.booking-preview-highlight > div {
  min-width: 0;
}
.booking-preview-highlight > div + div {
  border-left: 1px solid #c9dfcf;
  padding-left: 12px;
}
.booking-preview-highlight span {
  display: block;
  margin-bottom: 4px;
  color: #526f57;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.booking-preview-highlight strong {
  display: block;
  color: #075b30;
  font-size: clamp(0.83rem, 3vw, 1.06rem);
  overflow-wrap: anywhere;
}
.booking-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  margin: 12px 0 0;
}
.booking-detail {
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid #edf2ec;
}
.booking-detail-wide {
  grid-column: 1 / -1;
}
.booking-detail dt {
  font-size: 0.78rem;
  font-weight: 700;
  color: #526057;
}
.booking-detail dd {
  margin: 3px 0 0;
  font-size: 0.95rem;
  color: #14251b;
  overflow-wrap: anywhere;
}
.booking-detail .booking-empty {
  color: #6d7a71;
}
.booking-preview .booking-preview-notice {
  padding: 12px 14px;
  border-radius: 10px;
  background: #f5f8f2;
  font-size: 0.8rem;
  color: #526057;
  margin: 16px 0 0;
}
.booking-preview-notice span {
  margin-right: 6px;
  color: #08783a;
}
.booking-footer {
  padding: 16px 26px;
  border-top: 1px solid #dce8dd;
  background: #fff;
  flex: none;
}
.booking-submit {
  display: block;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  background: #08783a;
  color: #fff;
  font-weight: 700 !important;
}
.booking-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}
.booking-error {
  color: #982828;
  font-size: 0.9rem;
  margin: 0 0 10px;
}
.booking-delivery,
.booking-success {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(3, 34, 18, 0.75);
  backdrop-filter: blur(5px);
  font: 16px/1.5 Arial, Helvetica, sans-serif;
}
.booking-delivery[hidden],
.booking-success[hidden] {
  display: none;
}
.booking-delivery-content,
.booking-success-card {
  box-sizing: border-box;
  width: min(440px, 100%);
  border: 1px solid #cce4ce;
  border-radius: 24px;
  padding: clamp(22px, 6vw, 36px);
  background: #fff;
  color: #143f25;
  text-align: center;
  box-shadow: 0 24px 65px #001a0e66;
}
.booking-delivery-content p {
  margin: 10px 0 0;
  font-weight: 700;
  color: #075b30;
}
.booking-delivery-scene {
  position: relative;
  width: 190px;
  height: 168px;
  margin: 0 auto;
  animation: booking-send 0.65s 1.45s ease-in forwards;
}
.booking-letter {
  position: absolute;
  left: 31px;
  top: 0;
  width: 128px;
  height: 104px;
  border: 2px solid #d5e7d5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 15px #00251025;
  z-index: 2;
  animation: booking-insert 0.75s 0.15s ease-in-out forwards;
}
.booking-letter span {
  display: block;
  height: 7px;
  margin: 16px 15px 0;
  border-radius: 5px;
  background: #c5dfc5;
}
.booking-letter span:nth-child(2) { width: 70%; }
.booking-letter span:nth-child(3) { width: 45%; }
.booking-envelope {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 190px;
  height: 115px;
  border-radius: 8px;
  background: #075b30;
  box-shadow: 0 12px 20px #075b3030;
}
.booking-envelope:before {
  content: "";
  position: absolute;
  inset: 0;
  background: #0b8747;
  z-index: 3;
  clip-path: polygon(0 0, 50% 60%, 100% 0, 100% 100%, 0 100%);
}
.booking-envelope:after {
  content: "";
  position: absolute;
  inset: 0;
  background: #b8e45b;
  clip-path: polygon(0 0, 100% 0, 50% 60%);
  transform-origin: center top;
  transform: scaleY(-1);
  z-index: 1;
  animation: booking-seal 0.35s 1.0s ease-in forwards;
}
@keyframes booking-insert {
  to { transform: translateY(68px) scale(0.9); }
}
@keyframes booking-seal {
  0% { transform: scaleY(-1); z-index: 4; }
  100% { transform: scaleY(1); z-index: 4; }
}
@keyframes booking-send {
  to { transform: translate(85px, -55px) scale(0.5); opacity: 0; }
}
.booking-success-card {
  animation: booking-arrive 0.3s ease-out both;
}
@keyframes booking-arrive {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.booking-success-seal {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #e6f5de;
  color: #075b30;
  font-size: 2.3rem;
  font-weight: 700;
}
.booking-success h2 {
  margin: 0 0 12px;
  color: #075b30;
  font-size: 1.6rem;
}
.booking-success p {
  margin: 0 0 22px;
  overflow-wrap: anywhere;
}
.booking-success button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: #08783a;
  color: #fff;
  font: 700 1rem Arial, Helvetica, sans-serif;
  cursor: pointer;
}
.booking-success button:hover { background: #075b30; }
.booking-success button:focus-visible { outline: 3px solid #b8e45b; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .booking-delivery-scene,
  .booking-letter,
  .booking-envelope:after,
  .booking-success-card { animation: none; }
}
@media (max-width: 760px) {
  .booking {
    padding: 10px;
  }
  .booking-panel {
    max-height: 95dvh;
    border-radius: 18px;
  }
  .booking-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .booking-preview {
    position: static;
  }
  .booking-header {
    padding: 16px;
  }
  .booking-body {
    padding: 18px 16px;
  }
  .booking-footer {
    padding: 14px 16px;
  }
  .booking h2 {
    font-size: 1.4rem;
  }
}
@media (max-width: 380px) {
  .booking-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .booking-calendar-box {
    padding: 10px;
  }
  .booking-times .booking-slot {
    font-size: 0.77rem;
    padding: 11px 2px;
  }
}

/* Encabezados accesibles para alternar sin perder el horario seleccionado. */
.booking-picker {
  border: 1px solid #dce8dd;
  border-radius: 14px;
  padding: 14px;
}
.booking-picker h3 {
  margin: 0;
}
.booking-picker-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #075b30;
  text-align: left;
  font-weight: 700 !important;
}
.booking-picker-action {
  font-size: 0.75rem;
  font-weight: 400;
  text-decoration: underline;
  flex-shrink: 0;
}
.booking-picker [id$="Content"] {
  padding-top: 10px;
}
.booking-picker .booking-note {
  margin-bottom: 12px;
}
.booking-picker .booking-calendar + .booking-note {
  margin-top: 12px;
}
.booking [aria-controls="calendarContent"][aria-expanded="false"],
.booking [aria-controls="suggestionsContent"][aria-expanded="false"] {
  min-height: 36px;
}
.booking-slot,
.booking-selected {
  overflow-wrap: anywhere;
}
.booking-panel {
  max-width: 100%;
}
@media (max-width: 380px) {
  .booking-picker {
    padding: 10px;
  }
  .booking-picker-toggle {
    gap: 6px;
  }
}
