/* Registro público y consulta de invitados */
.public-account-overlay {
  position: fixed;
  inset: 0;
  z-index: 1700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(11, 18, 32, 0.76);
  overflow-y: auto;
}

.public-account-overlay.is-open { display: flex; }

.public-account-modal {
  width: min(760px, 100%);
  max-height: calc(100dvh - 44px);
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 26px 75px rgba(0, 0, 0, 0.3);
}

.public-account-modal--compact { width: min(560px, 100%); }

.public-account-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 22px 16px;
  background: #fff;
  border-bottom: 1px solid #e1e5eb;
}

.public-account-header h2 { margin: 0; }
.public-account-header p { margin: 5px 0 0; color: #5e6877; }
.public-account-close {
  border: 0;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.public-account-form { padding: 20px 22px 24px; }
.public-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.public-account-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 10px;
}
.public-account-field--full { grid-column: 1 / -1; }
.public-account-field label { font-weight: 700; }
.public-account-field input,
.public-account-field select,
.public-account-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #b6bec9;
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
  font: inherit;
}
.public-account-field textarea { min-height: 85px; resize: vertical; }
.public-account-field input:focus,
.public-account-field select:focus,
.public-account-field textarea:focus {
  outline: 3px solid rgba(233, 0, 113, 0.14);
  border-color: #e90071;
}
.public-account-field select:disabled { background: #eef1f5; }
.public-account-error {
  min-height: 1.1em;
  color: #a4001d;
  font-size: .84rem;
}
.public-account-terms {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  color: #414a57;
}
.public-account-status {
  min-height: 1.35em;
  margin: 14px 0 0;
  color: #8b003f;
  font-weight: 700;
}
.public-account-submit,
.guest-payment-button,
.guest-link-button,
.account-link-guest-button {
  width: 100%;
  margin-top: 16px;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  background: #e90071;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.public-account-submit:disabled,
.guest-payment-button:disabled,
.guest-link-button:disabled { opacity: .62; cursor: wait; }
.login-inline-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #b30056;
  text-decoration: underline;
  font: inherit;
  cursor: pointer;
}
.login-guest-query { margin: 10px 0 0; text-align: center; }
.guest-result__card {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #dce1e8;
  border-radius: 14px;
  background: #f8f9fb;
}
.guest-result__type {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f8dce9;
  color: #8b003f;
  font-size: .78rem;
  font-weight: 800;
}
.guest-result__card h3 { overflow-wrap: anywhere; }
.guest-result__items { display: grid; gap: 7px; padding: 0; list-style: none; }
.guest-result__items li { display: flex; justify-content: space-between; gap: 12px; }
.account-link-guest-box {
  margin-top: 22px;
  padding: 16px;
  border: 1px dashed #b9c1cd;
  border-radius: 14px;
  background: #f8f9fb;
}
.account-link-guest-box h4 { margin: 0 0 6px; }
.account-link-guest-box p { margin: 0; color: #596473; }

@media (max-width: 650px) {
  .public-account-overlay { align-items: stretch; padding: 0; }
  .public-account-modal { width: 100%; max-height: 100dvh; border-radius: 0; }
  .public-account-grid { grid-template-columns: 1fr; }
  .public-account-field--full { grid-column: auto; }
  .public-account-header { padding: 16px; }
  .public-account-form { padding: 16px; }
}



.guest-payment-hint {
  margin: 14px 0 0;
  padding: 11px 12px;
  border-radius: 10px;
  background: #fff4d6;
  color: #6f4c00;
  font-weight: 700;
}

.guest-payment-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 15px;
  border: 1px solid #dce1e8;
  border-radius: 14px;
  background: #f8f9fb;
}

.guest-payment-summary p {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
}

.guest-payment-summary span { color: #596473; }
.guest-payment-summary strong { text-align: right; overflow-wrap: anywhere; }
.public-account-field small { color: #596473; }

.guest-payment-result {
  display: grid;
  gap: 5px;
  margin-top: 15px;
  padding: 14px;
  border: 1px solid #b8dfc5;
  border-radius: 12px;
  background: #effaf2;
  color: #14532d;
}

@media (max-width: 650px) {
  .guest-payment-summary p {
    display: grid;
    gap: 3px;
  }

  .guest-payment-summary strong { text-align: left; }
}

/* ==============================
   CONSULTA DE INVITADO EN LOGIN
============================== */

.login-guest-access {
  margin-top: 18px;
  text-align: center;
}

.login-guest-access__divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7a8493;
  font-size: .9rem;
}

.login-guest-access__divider::before,
.login-guest-access__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e1e5eb;
}

.login-guest-access__prompt {
  margin: 12px 0 9px;
  color: #4d5868;
}

.login-guest-access__button {
  width: 100%;
  border: 1px solid #e90071;
  border-radius: 10px;
  padding: 10px 14px;
  background: #ffffff;
  color: #b30056;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.login-guest-access__button:hover {
  background: #fff1f7;
}

/* ==============================
   SEGUIMIENTO DESPUÉS DE REPORTAR PAGO
============================== */

.guest-payment-result__followup-text {
  margin: 10px 0 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(20, 83, 45, .16);
  color: #334155;
  line-height: 1.45;
}

.guest-payment-followup {
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-radius: 11px;
  padding: 12px 16px;
  background: #2167d5;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}

.guest-payment-followup:hover {
  filter: brightness(.95);
  transform: translateY(-1px);
}

.guest-payment-followup:disabled {
  opacity: .68;
  cursor: wait;
  transform: none;
}
