/* Tema premium de Lesly Pamela. El motor y el CSS base de Auras RSVP v1 permanecen intactos. */
.auras-rsvp-host {
  width: min(100%, 760px);
  margin: 38px auto 84px;
  text-align: left;
  scroll-margin-top: 36px;
}

.auras-rsvp-host > .auras-rsvp-error,
.auras-rsvp-host > p {
  display: block;
  color: #f7f0df;
  text-align: center;
  line-height: 1.7;
}

.auras-rsvp {
  --rsvp-navy: #0d2348;
  --rsvp-blue: #173da3;
  --rsvp-blue-2: #2453bd;
  --rsvp-cream: #fffaf0;
  --rsvp-cream-2: #f7f0df;
  --rsvp-gold: #cfad76;
  --rsvp-gold-soft: #ead9b6;
  --rsvp-ink: #172743;
  --rsvp-muted: #657187;
  position: relative;
  width: 100%;
  max-width: none;
  gap: 1.2rem;
  padding: clamp(28px, 5vw, 52px);
  overflow: visible;
  background:
    radial-gradient(circle at 10% 0%, rgba(207, 173, 118, .14), transparent 31%),
    linear-gradient(180deg, #fffdf8 0%, #f8f0df 100%);
  color: var(--rsvp-ink);
  border: 1px solid rgba(207, 173, 118, .78);
  border-radius: 30px;
  outline: 1px solid rgba(247, 240, 223, .12);
  box-shadow: 0 30px 85px rgba(1, 9, 30, .48), 0 8px 24px rgba(1, 9, 30, .18);
  font: 400 1rem/1.55 'DM Sans', Arial, sans-serif;
  text-align: left;
}

.auras-rsvp::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  width: 76px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--rsvp-gold), transparent);
  transform: translateX(-50%);
  opacity: .95;
}

.auras-rsvp h2 {
  max-width: 620px;
  margin: 0 auto .85rem;
  color: var(--rsvp-blue);
  font: 400 clamp(2.15rem, 5vw, 3.65rem)/1.06 'Italiana', Georgia, serif;
  letter-spacing: -.025em;
  text-align: center;
  text-wrap: balance;
}

.auras-rsvp h2::after {
  content: '✦';
  display: block;
  margin-top: .7rem;
  color: #b88645;
  font: 400 .68rem/1 'DM Sans', Arial, sans-serif;
  letter-spacing: .25em;
}

.auras-rsvp label,
.auras-rsvp legend,
.auras-rsvp-question strong {
  color: var(--rsvp-ink);
  font-weight: 700;
}

.auras-rsvp > label:not(:has(input[type="checkbox"])),
.auras-rsvp [data-auras-party] > label {
  display: grid;
  gap: .5rem;
}

.auras-rsvp legend {
  padding: 0 .5rem;
  color: var(--rsvp-navy);
}

.auras-rsvp fieldset,
.auras-rsvp-question,
.auras-rsvp-receipt {
  min-width: 0;
  border: 1px solid rgba(190, 161, 111, .56);
  border-radius: 20px;
  background: rgba(255, 253, 248, .82);
  padding: 1.15rem 1.2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.auras-rsvp fieldset {
  display: grid;
  gap: .6rem;
}

.auras-rsvp-question p,
.auras-rsvp-question small {
  display: block;
  margin: .4rem 0 .8rem;
  color: var(--rsvp-muted);
  line-height: 1.5;
}

.auras-rsvp fieldset label,
.auras-rsvp-question label {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 0;
  padding: .78rem .9rem;
  border: 1px solid rgba(172, 161, 133, .48);
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
  font-weight: 500;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.auras-rsvp fieldset label:hover,
.auras-rsvp-question label:hover {
  border-color: rgba(23, 61, 163, .5);
  background: #fff;
  transform: translateY(-1px);
}

.auras-rsvp fieldset label:has(input:checked),
.auras-rsvp-question label:has(input:checked) {
  border-color: rgba(23, 61, 163, .75);
  background: rgba(23, 61, 163, .06);
  box-shadow: 0 8px 22px rgba(23, 61, 163, .08);
}

.auras-rsvp label:has(input[name="privacy_ack"]),
.auras-rsvp label:has(input[name="sensitive_consent"]) {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin: 0;
  padding: .9rem 1rem;
  border: 1px solid rgba(207, 173, 118, .52);
  border-radius: 14px;
  background: rgba(255, 255, 255, .54);
  font-weight: 500;
  cursor: pointer;
}

.auras-rsvp input[type="checkbox"],
.auras-rsvp input[type="radio"] {
  accent-color: var(--rsvp-blue);
  inline-size: 1.2rem;
  block-size: 1.2rem;
  flex: 0 0 auto;
  margin: .1rem 0 0;
}

.auras-rsvp input:not([type="checkbox"]):not([type="radio"]),
.auras-rsvp textarea,
.auras-rsvp select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 54px;
  padding: .9rem 1rem;
  border: 1px solid rgba(172, 161, 133, .72);
  border-radius: 14px;
  background: rgba(255, 255, 255, .9);
  color: var(--rsvp-ink);
  box-shadow: inset 0 1px 2px rgba(23, 39, 67, .04);
  font: inherit;
  text-align: left;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.auras-rsvp input:not([type="checkbox"]):not([type="radio"]):hover,
.auras-rsvp textarea:hover,
.auras-rsvp select:hover {
  border-color: rgba(23, 61, 163, .5);
  background: #fff;
}

.auras-rsvp input:not([type="checkbox"]):not([type="radio"]):focus,
.auras-rsvp textarea:focus,
.auras-rsvp select:focus {
  border-color: var(--rsvp-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(23, 61, 163, .1), 0 10px 24px rgba(23, 61, 163, .06);
  outline: none;
}

.auras-rsvp textarea {
  min-height: 7rem;
  resize: vertical;
}

.auras-rsvp input:disabled,
.auras-rsvp textarea:disabled,
.auras-rsvp select:disabled {
  background: #ebe6dc;
  color: #7a8190;
}

.auras-rsvp a {
  width: fit-content;
  color: var(--rsvp-blue);
  text-decoration-color: rgba(23, 61, 163, .35);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  font-weight: 700;
  overflow-wrap: anywhere;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.auras-rsvp a:hover {
  color: var(--rsvp-blue-2);
  text-decoration-color: currentColor;
}

.auras-rsvp button {
  width: 100%;
  border: 1px solid rgba(207, 173, 118, .9);
  border-radius: 15px;
  background: linear-gradient(135deg, #173da3 0%, #102e79 100%);
  color: #fffaf0;
  padding: 1.05rem 1.25rem;
  box-shadow: 0 14px 30px rgba(16, 46, 121, .22), inset 0 1px 0 rgba(255, 255, 255, .12);
  font: 700 .8rem/1.4 'DM Sans', Arial, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.auras-rsvp button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(16, 46, 121, .26), inset 0 1px 0 rgba(255, 255, 255, .14);
}

.auras-rsvp button:active {
  transform: translateY(0);
}

.auras-rsvp button:disabled {
  opacity: .62;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.auras-rsvp :focus-visible {
  outline: 3px solid #b06a25;
  outline-offset: 3px;
}

/* Edición de una confirmación anterior: secundaria, explicada y colapsada. */
.auras-rsvp-edit {
  position: relative;
  margin: .15rem 0 .1rem;
  padding: 1rem;
  border: 1px solid rgba(207, 173, 118, .5);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(23, 61, 163, .045), rgba(207, 173, 118, .08));
}

.auras-edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.auras-edit-copy {
  min-width: 0;
}

.auras-edit-copy strong {
  display: block;
  color: var(--rsvp-navy);
  font-size: .98rem;
  line-height: 1.3;
}

.auras-edit-copy small {
  display: block;
  margin-top: .2rem;
  color: var(--rsvp-muted);
  font-size: .82rem;
  line-height: 1.45;
}

.auras-edit-actions {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex: 0 0 auto;
}

.auras-rsvp .auras-edit-toggle {
  width: auto;
  padding: .62rem .8rem;
  border: 1px solid rgba(23, 61, 163, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  color: var(--rsvp-blue);
  box-shadow: none;
  font-size: .69rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auras-rsvp .auras-edit-toggle:hover {
  background: #fff;
  border-color: rgba(23, 61, 163, .45);
  box-shadow: 0 7px 18px rgba(23, 61, 163, .08);
}

.auras-edit-info-wrap {
  position: relative;
  display: inline-flex;
}

.auras-rsvp .auras-edit-info {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(207, 173, 118, .8);
  border-radius: 50%;
  background: #fffaf0;
  color: #9a6b31;
  box-shadow: none;
  font: 800 .92rem/1 'DM Sans', Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

.auras-rsvp .auras-edit-info:hover {
  background: #fff;
  box-shadow: 0 7px 18px rgba(154, 107, 49, .1);
}

.auras-edit-tooltip {
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, calc(100vw - 80px));
  padding: .9rem 1rem;
  border: 1px solid rgba(207, 173, 118, .62);
  border-radius: 14px;
  background: #10264d;
  color: #fffaf0;
  box-shadow: 0 18px 42px rgba(1, 9, 30, .26);
  font-size: .84rem;
  line-height: 1.55;
  text-align: left;
}

.auras-edit-tooltip::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 11px;
  width: 12px;
  height: 12px;
  border-left: 1px solid rgba(207, 173, 118, .62);
  border-top: 1px solid rgba(207, 173, 118, .62);
  background: #10264d;
  transform: rotate(45deg);
}

.auras-edit-tooltip strong {
  display: block;
  margin-bottom: .3rem;
  color: #f1d9a5;
}

.auras-edit-panel {
  display: grid;
  gap: .9rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(207, 173, 118, .38);
}

.auras-edit-panel[hidden],
.auras-edit-tooltip[hidden] {
  display: none !important;
}

.auras-edit-panel label {
  display: grid !important;
  gap: .45rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  transform: none !important;
  cursor: default !important;
}

.auras-edit-field-title {
  color: var(--rsvp-ink);
  font-weight: 700;
}

.auras-edit-field-hint {
  margin-top: -.05rem;
  color: var(--rsvp-muted);
  font-size: .78rem;
  font-weight: 400;
  line-height: 1.45;
}

.auras-rsvp-error {
  color: #902545;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.auras-rsvp-receipt {
  border-color: rgba(55, 105, 78, .55);
  background: linear-gradient(180deg, #fbfff9 0%, #eef7ef 100%);
  box-shadow: 0 16px 34px rgba(36, 85, 58, .08);
}

.auras-rsvp-receipt strong {
  color: #24553a;
  font-size: 1.05rem;
}

.auras-rsvp-receipt p {
  margin: .7rem 0;
  color: #355445;
}

.auras-rsvp-receipt output {
  display: block;
  padding: .85rem;
  border: 1px dashed rgba(55, 105, 78, .42);
  border-radius: 12px;
  background: #fff;
  color: var(--rsvp-ink);
  font-size: .82rem;
  word-break: break-all;
  user-select: text;
}

.auras-rsvp [hidden] {
  display: none !important;
}

.auras-rsvp-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

#rsvp-button:disabled {
  opacity: .55;
  cursor: default;
  transform: none;
}

.rsvp-note[hidden] {
  display: none;
}

@media (max-width: 700px) {
  .auras-rsvp-host {
    margin: 30px auto 65px;
  }

  .auras-rsvp {
    padding: 28px 18px 24px;
    gap: 1rem;
    border-radius: 22px;
  }

  .auras-rsvp h2 {
    font-size: clamp(2rem, 11vw, 2.8rem);
  }

  .auras-rsvp fieldset,
  .auras-rsvp-question,
  .auras-rsvp-receipt {
    padding: 1rem;
    border-radius: 17px;
  }

  .auras-edit-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .auras-edit-actions {
    width: 100%;
  }

  .auras-rsvp .auras-edit-toggle {
    flex: 1 1 auto;
  }

  /*
   * MÓVIL: el tooltip NO usa position:fixed.
   * La invitación tiene capas/animaciones que pueden crear containing blocks
   * para elementos fixed en navegadores móviles. Lo anclamos a la tarjeta
   * de edición, que ya es position:relative.
   */
  .auras-rsvp-edit {
    overflow: visible;
  }

  .auras-edit-actions {
    position: relative;
    overflow: visible;
  }

  .auras-edit-info-wrap {
    position: static;
    z-index: auto;
  }

  .auras-rsvp .auras-edit-info {
    position: relative;
    z-index: 2;
    width: 40px;
    height: 40px;
    min-width: 40px;
    flex: 0 0 40px;
    touch-action: manipulation;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
  }

  .auras-edit-tooltip {
    position: absolute;
    z-index: 120;
    left: 12px;
    right: 12px;
    top: calc(100% + 10px);
    bottom: auto;
    width: auto;
    max-height: none;
    overflow: visible;
    padding: 1rem 1.05rem;
    border-radius: 16px;
    box-shadow:
      0 22px 52px rgba(1, 9, 30, .38),
      0 7px 20px rgba(1, 9, 30, .18);
    transform: none;
    overscroll-behavior: auto;
  }

  .auras-edit-tooltip::before {
    display: block;
    top: -6px;
    right: 16px;
  }

  /*
   * Reserva espacio real cuando la ayuda está abierta para que no cubra
   * privacidad ni el botón de envío.
   */
  .auras-rsvp-edit:has(.auras-edit-tooltip:not([hidden])) {
    margin-bottom: 170px;
  }
}

.auras-rsvp-host[hidden] {
  display: none;
}

@media (max-width: 380px) {
  .auras-edit-tooltip {
    left: 8px;
    right: 8px;
    width: auto;
    padding: .9rem;
    font-size: .81rem;
  }

  .auras-rsvp-edit:has(.auras-edit-tooltip:not([hidden])) {
    margin-bottom: 195px;
  }
}
