/*
 * NDIKANDII - Modal compartido de Acuity
 * Misma interfaz utilizada por la Carta de Masajes.
 * Generado: 2026-08-09
 */
.ndk-acuity-modal[hidden] { display: none !important; }
.ndk-acuity-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.ndk-acuity-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 27, 27, 0.72);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.ndk-acuity-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100vw - 40px));
  height: min(920px, calc(100vh - 40px));
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff9f7;
  border: 1px solid rgba(194, 133, 133, 0.22);
  border-radius: 30px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
}
.ndk-acuity-modal__header {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: linear-gradient(135deg, #fff5f3 0%, #fff 100%);
  border-bottom: 1px solid rgba(194, 133, 133, 0.18);
}
.ndk-acuity-modal__logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 14px;
}
.ndk-acuity-modal__heading { min-width: 0; }
.ndk-acuity-modal__eyebrow {
  display: block;
  margin: 0 0 3px;
  color: #c28585;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.ndk-acuity-modal__title {
  margin: 0;
  color: #2d2d2d;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.05;
  font-weight: 400;
}
.ndk-acuity-modal__selection {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ndk-acuity-modal__close {
  position: relative;
  isolation: isolate;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 221, 214, 0.82);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(219, 120, 112, 0.96), rgba(174, 70, 82, 0.96) 55%, rgba(112, 39, 52, 0.98));
  color: #fff;
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.54), inset 0 -4px 8px rgba(70, 21, 31, 0.24), 0 3px 0 rgba(105, 42, 51, 0.25), 0 10px 22px rgba(79, 43, 43, 0.22);
  text-shadow: 0 1px 2px rgba(61, 20, 29, 0.55);
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  font: inherit;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.ndk-acuity-modal__close::before {
  position: absolute;
  top: 3px;
  right: 6px;
  left: 6px;
  z-index: -1;
  height: 42%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,0));
  content: "";
  pointer-events: none;
}
.ndk-acuity-modal__close:hover,
.ndk-acuity-modal__close:focus-visible {
  background: linear-gradient(135deg, rgba(231, 134, 124, 0.98), rgba(188, 76, 87, 0.98) 55%, rgba(126, 43, 56, 1));
  border-color: rgba(255, 234, 229, 0.98);
  box-shadow: inset 0 2px 1px rgba(255,255,255,.66), inset 0 -4px 8px rgba(70,21,31,.22), 0 3px 0 rgba(105,42,51,.28), 0 14px 27px rgba(79,43,43,.28);
  transform: translateY(-1px) scale(1.04);
  outline: none;
}
.ndk-acuity-modal__frame-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.ndk-acuity-modal__status {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: min(420px, calc(100% - 40px));
  padding: 12px 16px;
  border: 1px solid rgba(194, 133, 133, 0.2);
  border-radius: 14px;
  background: rgba(255, 249, 247, 0.96);
  box-shadow: 0 12px 30px rgba(79, 43, 43, 0.12);
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  pointer-events: none;
}
.ndk-acuity-modal__status[hidden] { display: none !important; }
.ndk-acuity-modal__iframe {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 0;
  height: 100%;
  border: 0;
  background: #fff;
  opacity: 1;
  transition: opacity .2s ease;
}
.ndk-acuity-modal__iframe.is-loading { opacity: 0; }
.ndk-acuity-modal__footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px 12px;
  background: #fff9f7;
  border-top: 1px solid rgba(194, 133, 133, 0.14);
}
.ndk-acuity-modal__fallback {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border: 1px solid rgba(194, 133, 133, 0.28);
  border-radius: 999px;
  background: #fff;
  color: #a46969;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.ndk-acuity-modal__fallback:hover,
.ndk-acuity-modal__fallback:focus-visible {
  color: #7f5656;
}
@media (max-width: 640px) {
  .ndk-acuity-modal {
    padding: 0;
  }
  .ndk-acuity-modal__dialog {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }
  .ndk-acuity-modal__header {
    grid-template-columns: 42px 1fr 42px;
    gap: 10px;
    padding: 12px 12px 10px;
  }
  .ndk-acuity-modal__logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }
  .ndk-acuity-modal__eyebrow {
    font-size: 9px;
    letter-spacing: 0.14em;
  }
  .ndk-acuity-modal__title {
    font-size: 1.38rem;
  }
  .ndk-acuity-modal__selection {
    font-size: 11px;
  }
  .ndk-acuity-modal__close {
    width: 38px;
    height: 38px;
  }
  .ndk-acuity-modal__footer {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-motion: reduce) {
  .ndk-acuity-modal__close,
  .ndk-acuity-modal__iframe { transition: none; }
}
