@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

.norela-booking-widget {
  --norela-brand: #a1826e;
  --norela-brand-dark: #7e6351;
  --norela-soft: #faf8f6;
  --norela-ink: #1f1d1c;
  --norela-border: rgba(161, 130, 110, 0.16);
  color: var(--norela-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.norela-booking-trigger,
.norela-primary {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--norela-brand);
  color: #fff;
  cursor: pointer;
  font: 800 12px/1 Inter, sans-serif;
  letter-spacing: 0.12em;
  padding: 14px 24px;
  text-transform: uppercase;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.norela-booking-trigger:hover,
.norela-primary:hover {
  background: var(--norela-brand-dark);
  box-shadow: 0 14px 28px rgba(161, 130, 110, 0.22);
  transform: translateY(-1px);
}

.norela-primary:disabled {
  cursor: wait;
  opacity: 0.65;
}

.norela-modal {
  display: none;
  inset: 0;
  position: fixed;
  z-index: 999999;
}

.norela-modal.is-open {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 16px;
}

.norela-modal__backdrop {
  background: rgba(31, 29, 28, 0.72);
  backdrop-filter: blur(5px);
  inset: 0;
  position: absolute;
}

.norela-modal__dialog {
  background: #fff;
  border: 1px solid var(--norela-border);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(31, 29, 28, 0.24);
  display: grid;
  grid-template-rows: auto 4px minmax(0, 1fr) auto;
  height: min(calc(100vh - 32px), 640px);
  height: min(calc(100svh - 32px), 640px);
  max-height: min(calc(100vh - 32px), 760px);
  max-height: min(calc(100svh - 32px), 760px);
  max-width: 460px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.norela-modal__header,
.norela-modal__footer {
  background: var(--norela-soft);
  border-color: var(--norela-border);
  flex: 0 0 auto;
}

.norela-modal__header {
  align-items: center;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  text-align: center;
}

.norela-modal__heading {
  min-width: 0;
  padding: 0 12px;
}

.norela-modal__header strong {
  color: var(--norela-brand);
  display: block;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

.norela-modal__header span {
  color: var(--norela-brand);
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-top: 4px;
  text-transform: uppercase;
}

.norela-icon-button {
  align-items: center;
  appearance: none;
  background: #fff;
  border: 1px solid var(--norela-border);
  border-radius: 999px;
  color: var(--norela-brand);
  cursor: pointer;
  display: inline-flex;
  font-size: 16px;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.norela-progress {
  background: rgba(161, 130, 110, 0.08);
  height: 4px;
}

.norela-progress span {
  background: var(--norela-brand);
  display: block;
  height: 100%;
  transition: width 180ms ease;
  width: 20%;
}

.norela-modal__body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
  scrollbar-color: rgba(161, 130, 110, 0.45) transparent;
  scrollbar-width: thin;
  /* Ensure body never escapes grid row on all browsers */
  box-sizing: border-box;
  max-height: 100%;
}

.norela-modal__body::-webkit-scrollbar {
  width: 8px;
}

.norela-modal__body::-webkit-scrollbar-thumb {
  background: rgba(161, 130, 110, 0.38);
  border-radius: 999px;
}

.norela-modal__body::-webkit-scrollbar-track {
  background: transparent;
}

.norela-step {
  display: none;
}

.norela-step.is-active {
  display: block;
}

.norela-step-title {
  color: var(--norela-brand);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  margin: 6px 0 8px;
  text-align: center;
  text-transform: uppercase;
}

.norela-step-copy {
  color: rgba(31, 29, 28, 0.62);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  margin: 0 auto 22px;
  max-width: 360px;
  text-align: center;
}

.norela-kicker {
  color: var(--norela-brand);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.norela-options {
  display: grid;
  gap: 10px;
}

.norela-card {
  align-items: center;
  appearance: none;
  background: #fff;
  border: 1px solid var(--norela-border);
  border-radius: 14px;
  color: inherit;
  cursor: pointer;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
  width: 100%;
}

.norela-card:hover,
.norela-card.is-selected {
  background: var(--norela-soft);
  border-color: var(--norela-brand);
}

.norela-card:active {
  transform: scale(0.99);
}

.norela-card strong {
  color: var(--norela-brand);
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 15px;
  letter-spacing: 0;
  line-height: 1.16;
}

.norela-card small {
  color: rgba(31, 29, 28, 0.64);
  display: block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 4px;
}

.norela-card em {
  color: var(--norela-brand-dark);
  display: block;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  margin-top: 6px;
}

.norela-card i {
  border: 2px solid rgba(161, 130, 110, 0.28);
  border-radius: 999px;
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.norela-card.is-selected i {
  background: radial-gradient(circle, #fff 0 32%, var(--norela-brand) 34% 100%);
  border-color: var(--norela-brand);
}

.norela-addons-wrap {
  margin-top: 0;
}

.norela-note,
.norela-muted,
.norela-empty,
.norela-error {
  color: rgba(31, 29, 28, 0.62);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  margin: 12px 0 0;
}

.norela-empty,
.norela-error {
  background: #fff7f7;
  border: 1px solid rgba(185, 56, 56, 0.16);
  border-radius: 12px;
  color: #9d3030;
  display: none;
  padding: 12px;
}

.norela-empty.is-visible,
.norela-error.is-visible {
  display: block;
}

.norela-days {
  display: flex;
  gap: 10px;
  margin: 0 0 16px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.norela-day,
.norela-hour {
  appearance: none;
  background: #fff;
  border: 1px solid var(--norela-border);
  border-radius: 14px;
  color: var(--norela-ink);
  cursor: pointer;
  font-weight: 800;
}

.norela-day {
  flex: 0 0 92px;
  padding: 12px 10px;
  text-align: center;
}

.norela-day strong,
.norela-day span {
  display: block;
}

.norela-day strong {
  color: var(--norela-brand);
  font-size: 12px;
  text-transform: capitalize;
}

.norela-day span {
  color: rgba(31, 29, 28, 0.54);
  font-size: 10px;
  margin-top: 3px;
}

.norela-hours {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.norela-hour {
  font-size: 12px;
  padding: 12px 6px;
}

.norela-day.is-selected,
.norela-hour.is-selected {
  background: var(--norela-brand);
  border-color: var(--norela-brand);
  color: #fff;
}

.norela-day.is-selected strong,
.norela-day.is-selected span {
  color: #fff;
}

.norela-step label {
  color: var(--norela-brand);
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 11px;
  text-transform: uppercase;
}

.norela-step input[type="text"],
.norela-step input[type="tel"],
.norela-step input[type="email"],
.norela-step textarea {
  background: rgba(250, 248, 246, 0.56);
  border: 1px solid var(--norela-border);
  border-radius: 12px;
  box-sizing: border-box;
  color: var(--norela-ink);
  display: block;
  font: 600 13px/1.4 Inter, sans-serif;
  letter-spacing: 0;
  margin-top: 6px;
  min-height: 42px;
  outline: 0;
  padding: 11px 12px;
  resize: vertical;
  text-transform: none;
  width: 100%;
}

.norela-step input:focus,
.norela-step textarea:focus {
  border-color: var(--norela-brand);
  box-shadow: 0 0 0 3px rgba(161, 130, 110, 0.12);
}

.norela-check {
  align-items: flex-start;
  color: rgba(31, 29, 28, 0.76) !important;
  display: flex !important;
  gap: 9px;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.norela-check input {
  accent-color: var(--norela-brand);
  margin-top: 2px;
}

.norela-policy-check {
  align-items: center !important;
  border: 1px solid var(--norela-border);
  border-radius: 16px;
  color: var(--norela-brand) !important;
  display: grid !important;
  gap: 12px;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  letter-spacing: 0.08em !important;
  margin-top: 22px !important;
  padding: 14px;
  text-transform: uppercase !important;
}

.norela-policy-check input {
  height: 18px;
  margin: 0;
  width: 18px;
}

.norela-policy-check em {
  background: #fbf4fb;
  border: 1px solid rgba(161, 130, 110, 0.16);
  border-radius: 999px;
  color: var(--norela-brand);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  padding: 5px 11px;
}

.norela-policy-check em.is-accepted {
  background: var(--norela-brand);
  color: #fff;
}

.norela-policy-links {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 12px;
}

.norela-policy-links button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--norela-brand);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  padding: 0;
  text-decoration: underline;
}

.norela-policy-links span {
  color: rgba(161, 130, 110, 0.35);
  font-size: 10px;
}

.norela-policy-modal {
  align-items: center;
  background: rgba(31, 29, 28, 0.58);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: absolute;
  z-index: 3;
}

.norela-policy-modal.is-open {
  display: flex;
}

.norela-policy-modal__panel {
  background: #fff;
  border: 1px solid var(--norela-border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(31, 29, 28, 0.24);
  color: rgba(31, 29, 28, 0.66);
  max-height: 72vh;
  max-width: 420px;
  overflow: hidden;
  width: 100%;
}

.norela-policy-modal__panel header {
  align-items: center;
  background: var(--norela-soft);
  border-bottom: 1px solid var(--norela-border);
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
}

.norela-policy-modal__panel strong {
  color: var(--norela-brand);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 16px;
  text-transform: uppercase;
}

.norela-policy-modal__panel button {
  appearance: none;
  background: #fff;
  border: 1px solid var(--norela-border);
  border-radius: 999px;
  color: var(--norela-brand);
  cursor: pointer;
  height: 30px;
  width: 30px;
}

.norela-policy-modal__panel > div {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  max-height: calc(72vh - 60px);
  overflow-y: auto;
  padding: 16px;
}

.norela-policy-modal p {
  margin: 0;
}

.norela-review {
  border: 1px solid var(--norela-border);
  border-radius: 14px;
  overflow: hidden;
}

.norela-review dl {
  margin: 0;
}

.norela-review div {
  align-items: start;
  border-bottom: 1px solid rgba(161, 130, 110, 0.1);
  display: grid;
  gap: 12px;
  grid-template-columns: 104px minmax(0, 1fr);
  padding: 12px 14px;
}

.norela-review div:last-child {
  border-bottom: 0;
}

.norela-review dt {
  color: var(--norela-brand);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.norela-review dd {
  color: var(--norela-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.norela-modal__footer {
  align-items: center;
  border-top-style: solid;
  border-top-width: 1px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 16px 18px;
  position: relative;
  z-index: 2;
}

.norela-modal__footer span {
  color: rgba(31, 29, 28, 0.54);
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.norela-modal__footer strong {
  color: var(--norela-brand);
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  letter-spacing: 0;
  line-height: 1.1;
  white-space: nowrap;
}

.norela-modal__footer nav {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.norela-secondary {
  appearance: none;
  background: #fff;
  border: 1px solid var(--norela-border);
  border-radius: 999px;
  color: var(--norela-brand);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  padding: 12px 15px;
  text-transform: uppercase;
}

@media (max-width: 480px) {
  .norela-modal.is-open {
    align-items: stretch;
    justify-content: center;
    padding: 0;
  }

  .norela-modal__dialog {
    border-radius: 0;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    max-width: 480px;
  }

  /* Header: paso y subtítulo legibles */
  .norela-modal__header {
    padding: 10px 14px;
  }

  .norela-modal__header strong {
    font-size: 11px;
    letter-spacing: 0.24em;
  }

  .norela-modal__header span {
    font-size: 10px;
    margin-top: 2px;
  }

  .norela-icon-button {
    height: 30px;
    width: 30px;
  }

  /* Body con padding justo pero no aplastado */
  .norela-modal__body {
    padding: 12px 16px 8px;
  }

  /* Título de sección: llamativo, no diminuto */
  .norela-step-title {
    font-size: 17px;
    margin: 4px 0 5px;
  }

  /* Subtítulo descriptivo: cómodo de leer */
  .norela-step-copy {
    font-size: 12px;
    margin-bottom: 12px;
  }

  /* Kicker (etiqueta pequeña sobre opciones) */
  .norela-kicker {
    font-size: 10px;
    margin-bottom: 8px;
  }

  .norela-options {
    gap: 8px;
  }

  /* Cards: compactas pero con texto legible */
  .norela-card {
    border-radius: 12px;
    min-height: 0;
    padding: 11px 13px;
  }

  .norela-card strong {
    font-size: 14px;
  }

  .norela-card small {
    font-size: 12px;
    line-height: 1.3;
    margin-top: 3px;
  }

  .norela-card em {
    font-size: 11px;
    margin-top: 4px;
  }

  /* Labels de inputs */
  .norela-step label {
    font-size: 10px;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
  }

  /* Inputs: texto cómodo */
  .norela-step input[type="text"],
  .norela-step input[type="tel"],
  .norela-step input[type="email"],
  .norela-step textarea {
    font-size: 14px;
    min-height: 44px;
    padding: 11px 13px;
  }

  /* Días y horas */
  .norela-day strong {
    font-size: 12px;
  }

  .norela-day span {
    font-size: 10px;
  }

  .norela-hour {
    font-size: 12px;
  }

  .norela-note {
    font-size: 12px;
    margin-top: 10px;
  }

  .norela-hours {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Footer: paso X/Y legible, precio visible, botón prominente */
  .norela-modal__footer {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(88px, 0.36fr) minmax(0, 1fr);
    min-height: 66px;
    padding: 8px 14px;
  }

  .norela-modal__footer span {
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .norela-modal__footer strong {
    font-size: 18px;
  }

  .norela-modal__footer nav {
    min-width: 0;
    width: 100%;
  }

  .norela-modal__footer .norela-secondary {
    display: none;
  }

  .norela-primary {
    font-size: 12px;
    min-width: 0;
    padding: 14px 12px;
    width: 100%;
  }
}
