.llum-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgb(62 80 74 / 68%);
}

.llum-modal[hidden] {
  display: none;
}

.llum-modal__panel {
  position: relative;
  width: 100%;
  max-height: calc(100dvh - 48px);
  overflow: auto;
  border-radius: 18px;
  color: #3E504A;
  background: #FFFFFF;
  box-shadow: 0 24px 70px rgb(62 80 74 / 28%);
  animation: llum-modal-enter 180ms ease-out;
}

.llum-modal__panel--guide {
  max-width: 520px;
  padding: 40px;
  border: 1px solid #AFC4BD;
  background: #F7F2E9;
}

.llum-modal__panel--booking {
  width: 100%;
  height: calc(100dvh - 48px);
  overflow: hidden;
  background: #FFFFFF;
}

.llum-modal__booking-frame {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  border: 0;
}

.llum-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #3E504A;
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgb(62 80 74 / 18%);
  font: inherit;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.llum-modal__title {
  margin: 0 52px 28px 0;
  color: #3E504A;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
}

.llum-modal__form {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.llum-modal__field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #3E504A;
  font-weight: 600;
}

.llum-modal__field input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #AFC4BD;
  border-radius: 8px;
  box-sizing: border-box;
  color: #3E504A;
  background: #FFFFFF;
  font: inherit;
}

.llum-modal__field input:focus,
.llum-modal__close:focus,
.llum-modal__submit:focus,
.llum-modal__consent input:focus {
  outline: 3px solid #B66C45;
  outline-offset: 2px;
}

.llum-modal__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #3E504A;
  line-height: 1.45;
}

.llum-modal__consent input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: #B66C45;
}

.llum-modal__consent a,
.llum-modal__status a {
  color: #3E504A;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.llum-modal__consent a:hover,
.llum-modal__status a:hover {
  text-decoration-thickness: 2px;
}

.llum-modal__consent a:focus,
.llum-modal__status a:focus {
  border-radius: 2px;
  outline: 3px solid #B66C45;
  outline-offset: 2px;
}

.llum-modal__submit {
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  color: #FFFFFF;
  background: #3E504A;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.llum-modal__submit:hover:not(:disabled) {
  background: #3E504A;
  box-shadow: 0 4px 0 #B66C45;
}

.llum-modal__submit:focus {
  background: #3E504A;
  outline: 3px solid #B66C45;
  outline-offset: 3px;
}

.llum-modal__submit:disabled {
  border: 1px solid #3E504A;
  color: #3E504A;
  background: #AFC4BD;
  cursor: wait;
}

.llum-modal__status {
  min-height: 24px;
  color: #3E504A;
  line-height: 1.45;
}

.llum-modal__status--error {
  color: #3E504A;
}

.llum-modal__honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.llum-modal__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.llum-modal__focus-guard {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.elementor-element.elementor-element-b21608f,
.elementor-element.elementor-element-359a0eed,
.elementor-element.elementor-element-f3c21ee,
.elementor-element.elementor-element-0c1847d,
.elementor-element.elementor-element-e2627f8,
.elementor-element.elementor-element-3a08708,
.elementor-element.elementor-element-cfea02c {
  pointer-events: none !important;
}

@keyframes llum-modal-enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 767px) {
  .llum-modal {
    padding: 0;
  }

  .llum-modal__panel {
    width: calc(100% - 24px);
    margin: 12px;
    max-height: calc(100dvh - 24px);
    overflow-x: hidden;
    border-radius: 14px;
  }

  .llum-modal__panel--guide {
    padding: 28px 18px 22px;
  }

  .llum-modal--booking {
    width: 100vw;
    height: 100dvh;
  }

  .llum-modal__panel--booking {
    width: 100vw;
    height: 100dvh;
    margin: 0;
    max-height: 100dvh;
    border-radius: 0;
  }

  .llum-modal--booking .llum-modal__close {
    top: calc(12px + env(safe-area-inset-top));
    right: calc(12px + env(safe-area-inset-right));
  }

  .llum-modal__field input,
  .llum-modal__submit,
  .llum-modal__close {
    min-height: 44px;
  }

  .llum-modal__field input {
    font-size: 16px;
  }

  .llum-modal__consent {
    min-height: 44px;
    padding: 10px 0;
    box-sizing: border-box;
  }
}

@media (min-width: 783px) {
  body.admin-bar #wpadminbar #wp-admin-bar-root-default {
    float: left !important;
  }

  body.admin-bar #wpadminbar #wp-admin-bar-top-secondary {
    float: right !important;
  }

  body.admin-bar #wpadminbar .quicklinks .ab-top-menu > li {
    float: left !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .llum-modal__panel {
    animation: none;
  }
}

/* La guía conserva la paleta Llum aunque Elementor cargue estilos globales después. */
#llum-guide-modal .llum-modal__submit {
  border: 1px solid #B66C45 !important;
  color: #FFFFFF !important;
  background: #B66C45 !important;
  box-shadow: none !important;
}

#llum-guide-modal .llum-modal__submit:hover:not(:disabled),
#llum-guide-modal .llum-modal__submit:focus:not(:disabled) {
  border-color: #B66C45 !important;
  color: #FFFFFF !important;
  background: #B66C45 !important;
  box-shadow: 0 4px 0 #3E504A !important;
}

#llum-guide-modal .llum-modal__close {
  border: 1px solid #3E504A !important;
  color: #FFFFFF !important;
  background: #3E504A !important;
  box-shadow: 0 2px 12px rgb(62 80 74 / 18%) !important;
}

#llum-guide-modal .llum-modal__close:hover,
#llum-guide-modal .llum-modal__close:focus {
  border-color: #3E504A !important;
  color: #FFFFFF !important;
  background: #3E504A !important;
}
