/* ============================================================
   KC-RSVP ⭐ CSS — Zapatilla de Cristal · KC-Styles
   Khal Calloway Studio
   ============================================================ */

/* ── SECCIÓN RSVP · TERCIOPELO Y CENITAL ── */
#rsvp.section {
  isolation: isolate;
  overflow: hidden;
  max-width: 620px;
  padding-top: clamp(70px, 15vw, 112px);
  padding-bottom: clamp(78px, 15vw, 118px);
  background:
    radial-gradient(ellipse 62% 42% at 50% 0%, rgba(var(--dp-metal-luz-rgb), .28), transparent 70%),
    var(--dp-medianoche);
}
/* Preserve the contract's :not(...) stacking guard; the cenital is painted on the section itself. */
#rsvp > :not(.kc-rsvp-spotlight) { position: relative; z-index: 1; }

/* ── MARCA DE PROSCENIO / CORONA DE LA SECCIÓN ── */
#rsvp .kc-rsvp-ritual-mark {
  width: clamp(150px, 46vw, 188px);
  margin: 0 auto 15px;
  color: var(--dp-metal-luz);
  filter: drop-shadow(0 7px 16px rgba(var(--dp-ceniza-lavanda-rgb), .18));
  pointer-events: none;
}
#rsvp .kc-rsvp-ritual-mark svg {
  display: block;
  width: 100%;
  overflow: visible;
  pointer-events: none;
  animation: capturaCameraFloat 5.5s ease-in-out infinite;
}
#rsvp .kc-rsvp-ritual-mark path,
#rsvp .kc-rsvp-eyebrow-diamond path {
  vector-effect: non-scaling-stroke;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#rsvp .kc-rsvp-crown {
  fill: none;
  stroke-width: 1.35;
}
#rsvp .kc-rsvp-crown-base {
  fill: rgba(var(--dp-ceniza-lavanda-rgb), .16);
  stroke-width: .9;
}
#rsvp .kc-rsvp-crown-arc {
  fill: none;
  stroke: rgba(var(--dp-marfil-luna-rgb), .82);
  stroke-width: .7;
}
#rsvp .kc-rsvp-crown-jewel {
  fill: rgba(var(--dp-marfil-luna-rgb), .22);
  stroke-width: .8;
}
#rsvp .kc-rsvp-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  margin: 0;
  color: var(--dp-marfil-luna);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .27em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .72);
}
#rsvp .kc-rsvp-eyebrow-diamond {
  flex: 0 0 auto;
  width: 15px;
  height: 13px;
  overflow: visible;
  color: var(--dp-metal-luz);
  pointer-events: none;
}
#rsvp .kc-rsvp-eyebrow-diamond path:first-child {
  fill: rgba(var(--dp-ceniza-lavanda-rgb), .2);
  stroke-width: 1;
}
#rsvp .kc-rsvp-eyebrow-diamond path:last-child {
  fill: none;
  stroke: rgba(var(--dp-marfil-luna-rgb), .86);
  stroke-width: .65;
}
#rsvp .kc-rsvp-title {
  max-width: none;
  margin: 0 auto;
  color: var(--dp-marfil-luna);
  font-family: 'Cinzel', var(--f-display), serif;
  font-size: clamp(1.25rem, 6.2vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.12;
  white-space: nowrap;
}
#rsvp .kc-rsvp-title em { color: var(--dp-metal-luz); }
#rsvp .kc-rsvp-intro {
  max-width: 21rem;
  margin: 15px auto 0;
  color: rgba(var(--dp-marfil-luna-rgb), .74);
  font-family: var(--f-display);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.48;
}

/* ── MESA / TAQUILLA TEATRAL ── */
#rsvp .kc-rsvp-form {
  position: relative;
  overflow: hidden;
  max-width: 430px;
  margin: 28px auto 0;
  padding: clamp(24px, 6vw, 34px);
  border-top: 1px solid rgba(var(--dp-metal-base-rgb), .72);
  border-bottom: 1px solid rgba(var(--dp-metal-base-rgb), .48);
  border-inline: 1px solid rgba(var(--dp-metal-base-rgb), .24);
  border-radius: 0;
  background: linear-gradient(90deg, rgba(var(--dp-marfil-luna-rgb), .035), transparent 12% 88%, rgba(var(--dp-marfil-luna-rgb), .035));
  box-shadow: inset 0 1px 0 rgba(var(--dp-marfil-luna-rgb), .1), 0 23px 48px rgba(0, 0, 0, .38);
  text-align: left;
}
#rsvp .kc-rsvp-form::before,
#rsvp .kc-rsvp-form::after {
  position: absolute;
  width: 36px;
  height: 36px;
  border-color: rgba(var(--dp-metal-luz-rgb), .72);
  content: '';
  pointer-events: none;
}
#rsvp .kc-rsvp-form::before { top: 8px; left: 8px; border-top: 1px solid; border-left: 1px solid; }
#rsvp .kc-rsvp-form::after { right: 8px; bottom: 8px; border-right: 1px solid; border-bottom: 1px solid; }
#rsvp .kc-rsvp-form[data-state='submitting']::before,
#rsvp .kc-rsvp-form[data-state='submitting']::after { animation: kcRsvpBorderSignal 1.25s ease-in-out infinite alternate; }

/* ── CAMPOS ── */
#rsvp .kc-rsvp-field-group { position: relative; z-index: 1; margin-top: 21px; }
#rsvp .kc-rsvp-field-group:first-child { margin-top: 0; }
#rsvp .kc-rsvp-field-group label {
  display: block;
  margin-bottom: 9px;
  color: rgba(var(--dp-marfil-luna-rgb), .88);
  font-family: var(--f-eyebrow);
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .21em;
  text-transform: uppercase;
}
#rsvp .kc-rsvp-field-group input,
#rsvp .kc-rsvp-field-group textarea,
#rsvp .kc-rsvp-field-group select {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid rgba(var(--dp-metal-base-rgb), .42);
  border-radius: 0;
  background: rgba(var(--dp-marfil-luna-rgb), .055);
  box-shadow: inset 0 1px 0 rgba(var(--dp-marfil-luna-rgb), .07);
  color: var(--dp-marfil-luna);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.3;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
#rsvp .kc-rsvp-field-group textarea { min-height: 86px; resize: vertical; }
#rsvp .kc-rsvp-field-group select option { background: var(--dp-medianoche); color: var(--dp-marfil-luna); }
#rsvp .kc-rsvp-field-group input::placeholder,
#rsvp .kc-rsvp-field-group textarea::placeholder { color: rgba(var(--dp-marfil-luna-rgb), .54); }
#rsvp .kc-rsvp-field-group input:hover,
#rsvp .kc-rsvp-field-group textarea:hover,
#rsvp .kc-rsvp-field-group select:hover { border-color: rgba(var(--dp-metal-luz-rgb), .72); }
#rsvp .kc-rsvp-field-group input:focus-visible,
#rsvp .kc-rsvp-field-group textarea:focus-visible,
#rsvp .kc-rsvp-field-group select:focus-visible {
  border-color: var(--color-focus);
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  background: rgba(var(--dp-marfil-luna-rgb), .1);
  box-shadow: inset 0 1px 0 rgba(var(--dp-marfil-luna-rgb), .12);
}

/* ── DECISIÓN DE ASISTENCIA · VARA DE TELÓN ── */
#rsvp .kc-rsvp-attendance {
  min-inline-size: 0;
  margin-top: 21px;
  padding: 0;
  border: 0;
}
#rsvp .kc-rsvp-attendance legend {
  margin-bottom: 9px;
  padding: 0;
  color: rgba(var(--dp-marfil-luna-rgb), .88);
  font-family: var(--f-eyebrow);
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .21em;
  text-transform: uppercase;
}
#rsvp .kc-rsvp-attendance-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#rsvp .kc-rsvp-attendance-option { position: relative; display: block; }
/* El radio nativo sigue vivo y enfocable: sin él no hay teclado ni lector de pantalla. */
#rsvp .kc-rsvp-attendance-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
#rsvp .kc-rsvp-attendance-face {
  position: relative;
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  border: 1px solid rgba(var(--dp-metal-base-rgb), .42);
  border-radius: 0;
  background: rgba(var(--dp-marfil-luna-rgb), .055);
  box-shadow: inset 0 1px 0 rgba(var(--dp-marfil-luna-rgb), .07);
  color: rgba(var(--dp-marfil-luna-rgb), .78);
  font-family: var(--f-eyebrow);
  font-size: .56rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-align: center;
  text-transform: uppercase;
  transition: border-color .25s ease, background .25s ease, color .25s ease;
}
/* La vara del telón baja sobre la opción elegida. */
#rsvp .kc-rsvp-attendance-face::after {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--dp-metal-base);
  content: '';
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .26s var(--ease-silk, ease);
}
#rsvp .kc-rsvp-attendance-option input:hover + .kc-rsvp-attendance-face { border-color: rgba(var(--dp-metal-luz-rgb), .72); }
#rsvp .kc-rsvp-attendance-option input:checked + .kc-rsvp-attendance-face {
  border-color: var(--dp-metal-luz);
  background: rgba(var(--dp-metal-luz-rgb), .14);
  color: var(--dp-marfil-luna);
}
#rsvp .kc-rsvp-attendance-option input:checked + .kc-rsvp-attendance-face::after { transform: scaleX(1); }
#rsvp .kc-rsvp-attendance-option input:focus-visible + .kc-rsvp-attendance-face {
  border-color: var(--color-focus);
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
@media (max-width: 359px) {
  #rsvp .kc-rsvp-attendance-options { grid-template-columns: 1fr; }
}

/* El telón sube por partes: los campos entran cuando el invitado ya decidió. */
#rsvp .kc-rsvp-form[data-attendance] #kc-rsvp-name-group,
#rsvp .kc-rsvp-form[data-attendance] #kc-rsvp-passes-group,
#rsvp .kc-rsvp-form[data-attendance] .kc-rsvp-allocation-note,
#rsvp .kc-rsvp-form[data-attendance] .kc-rsvp-submit {
  animation: kcFieldReveal .38s var(--ease-silk, ease) both;
}

/* ── NOTA DE PASES ── */
#rsvp .kc-rsvp-allocation-note {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  padding: 9px 11px;
  border-left: 1px solid rgba(var(--dp-metal-luz-rgb), .78);
  color: rgba(var(--dp-marfil-luna-rgb), .72);
  font-family: var(--f-body);
  font-size: .73rem;
  font-style: italic;
  line-height: 1.5;
}
#rsvp .kc-rsvp-allocation-note.is-warning { border-left-color: var(--dp-metal-luz); color: var(--dp-marfil-luna); background: rgba(var(--dp-metal-luz-rgb), .12); }

/* ── ADMISIÓN ── */
#rsvp .kc-rsvp-submit {
  position: relative;
  isolation: isolate;
  z-index: 1;
  width: 100%;
  min-height: 56px;
  margin-top: 24px;
  padding: 13px 18px;
  overflow: hidden;
  border: 1px solid var(--dp-metal-luz);
  border-radius: 0;
  background: var(--dp-metal-luz);
  box-shadow: inset 0 1px 0 rgba(var(--dp-marfil-luna-rgb), .64), 0 11px 22px rgba(0, 0, 0, .3);
  color: var(--dp-medianoche);
  font-family: var(--f-eyebrow);
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .21em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .22s ease, box-shadow .3s ease, background .3s ease;
}
#rsvp .kc-rsvp-submit::after {
  position: absolute;
  z-index: -1;
  inset: auto 11% 7px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--dp-medianoche-rgb), .58), transparent);
  content: '';
  opacity: .7;
}
#rsvp .kc-rsvp-submit-label { position: relative; z-index: 1; }
#rsvp .kc-rsvp-submit:hover:not(:disabled) { transform: translateY(-2px); background: var(--dp-marfil-luna); box-shadow: inset 0 1px 0 var(--dp-marfil-luna), 0 15px 26px rgba(0, 0, 0, .38); }
#rsvp .kc-rsvp-submit:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
#rsvp .kc-rsvp-submit:active:not(:disabled) { transform: translateY(0) scale(.978); }
#rsvp .kc-rsvp-submit:disabled { cursor: wait; }
#rsvp .kc-rsvp-form[data-state='submitting'] .kc-rsvp-submit {
  border-color: rgba(var(--dp-metal-luz-rgb), .78);
  position: relative;
  overflow: hidden;
  color: transparent !important;
}
#rsvp .kc-rsvp-form[data-state='submitting'] .kc-rsvp-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(var(--dp-medianoche-rgb), .22);
  border-top-color: var(--dp-medianoche);
  border-radius: 50%;
  animation: kcSpinnerRing .8s linear infinite;
}
#rsvp .kc-rsvp-form[data-state='submitting'] .kc-rsvp-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(var(--dp-marfil-luna-rgb), .4) 50%, transparent 80%);
  animation: kcSubmitShimmer 1.4s ease-in-out infinite;
}
#rsvp .kc-rsvp-form[data-state='confirmed'] .kc-rsvp-submit { animation: none; }

/* ── STATUS / ERROR ── */
#rsvp .kc-rsvp-status {
  position: relative; z-index: 1;
  min-height: 1.5em;
  margin: 13px 0 0;
  color: rgba(var(--dp-metal-base-rgb), .85);
  font-family: var(--f-display);
  font-size: .92rem;
  font-style: italic;
  text-align: center;
}
#rsvp .kc-rsvp-error {
  position: relative; z-index: 1;
  margin: 13px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(var(--dp-metal-base-rgb), .38);
  border-left-width: 2px;
  border-radius: 3px;
  background: rgba(var(--dp-lacre-hondo-rgb), .27);
  color: var(--color-danger);
  font-family: var(--f-body);
  font-size: .78rem;
  line-height: 1.5;
}

/* ── TICKET HOST ── */
#rsvp .kc-rsvp-ticket-host { margin-top: 6px; }

/* ============================================================
   PASE DE ADMISIÓN · PAPEL MARFIL, FILETE Y PERFORACIÓN
   ============================================================ */
#rsvp .kc-ticket,
#kc-fs-ticket .kc-ticket {
  position: relative;
  overflow: hidden;
  max-width: 400px;
  margin-inline: auto;
  padding: clamp(28px, 8vw, 40px) clamp(20px, 6vw, 32px) 24px;
  border: 1px solid rgba(var(--dp-metal-base-rgb), .88);
  border-radius: 0;
  background:
    radial-gradient(circle at 0 50%, var(--dp-medianoche) 0 9px, transparent 10px),
    radial-gradient(circle at 100% 50%, var(--dp-medianoche) 0 9px, transparent 10px),
    var(--dp-marfil-luna);
  box-shadow: 0 25px 52px rgba(0, 0, 0, .44);
  color: var(--dp-medianoche);
  text-align: center;
  animation: kcTicketReveal .75s cubic-bezier(.2, 1, .3, 1) both;
}
#rsvp .kc-ticket::before,
#kc-fs-ticket .kc-ticket::before {
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(var(--dp-metal-base-rgb), .7);
  content: '';
  pointer-events: none;
}

/* El contrato conserva el nodo; ahora es perforación estática, no partículas. */
.kc-ticket-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.kc-tp { position: absolute; color: rgba(var(--dp-medianoche-rgb), .38); font-size: .8rem; line-height: 1; }
.kc-tp-1 { top: 23%; left: 5px; }
.kc-tp-2 { top: 39%; right: 5px; }
.kc-tp-3 { bottom: 39%; left: 5px; }
.kc-tp-4 { bottom: 23%; right: 5px; }

.kc-ticket-header { position: relative; z-index: 1; margin-bottom: 10px; }
.kc-ticket-crown-ornament { color: var(--dp-ceniza-lavanda); font-family: var(--f-eyebrow); font-size: .52rem; letter-spacing: .22em; }
.kc-ticket .kc-signature-ribbon,
#kc-fs-ticket .kc-ticket .kc-signature-ribbon {
  display: block;
  width: min(13.5rem, 68vw);
  height: auto;
  margin: 10px auto 0;
  color: var(--dp-metal-base);
}
.kc-ticket .kc-signature-ribbon-stroke,
.kc-ticket .kc-signature-ribbon-thread { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.kc-ticket .kc-signature-ribbon-stroke { stroke-width: 1.15; stroke-dasharray: 7 5; stroke-dashoffset: 3; }
.kc-ticket .kc-signature-ribbon-thread { stroke-width: .6; stroke-dasharray: 2 6; stroke-dashoffset: 1; opacity: .68; }

.kc-ticket-status { position: relative; z-index: 1; margin: 0; color: var(--dp-lacre); font-family: var(--f-eyebrow); font-size: .49rem; letter-spacing: .25em; text-transform: uppercase; }
.kc-ticket-event { position: relative; z-index: 1; margin: 10px 0 0; color: var(--dp-medianoche); font-family: var(--f-display); font-size: clamp(1.5rem, 6vw, 1.9rem); font-weight: 500; line-height: 1.1; }
.kc-ticket-celebrant { position: relative; z-index: 1; margin: 6px 0 0; color: var(--dp-lacre); font-family: var(--f-display); font-size: clamp(1.15rem, 4.5vw, 1.45rem); font-style: italic; line-height: 1.2; }
.kc-ticket-rule { position: relative; z-index: 1; margin: 16px 0; color: var(--dp-metal-base); font-size: .6rem; letter-spacing: .15em; }
.kc-ticket-guest-label { position: relative; z-index: 1; margin: 0; color: rgba(var(--dp-medianoche-rgb), .62); font-family: var(--f-eyebrow); font-size: .47rem; letter-spacing: .16em; text-transform: uppercase; }
.kc-ticket-guest { position: relative; z-index: 1; margin: 7px 0 0; color: var(--dp-medianoche); font-family: var(--f-display); font-size: clamp(1.4rem, 5.5vw, 1.8rem); font-style: italic; line-height: 1.15; }
.kc-ticket-passes { position: relative; z-index: 1; display: inline-block; margin-top: 10px; padding: 6px 14px; border: 1px solid rgba(var(--dp-ceniza-lavanda-rgb), .62); border-radius: 0; background: rgba(var(--dp-metal-luz-rgb), .16); color: var(--dp-medianoche); font-family: var(--f-eyebrow); font-size: .53rem; letter-spacing: .19em; text-transform: uppercase; }
.kc-ticket-date { position: relative; z-index: 1; margin: 13px 0 0; color: var(--dp-medianoche); font-family: var(--f-eyebrow); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; }
.kc-ticket-venue { position: relative; z-index: 1; margin: 6px 0 0; color: var(--dp-lacre); font-family: var(--f-eyebrow); font-size: .5rem; letter-spacing: .17em; text-transform: uppercase; }

/* QR: panel técnico marfil limpio, 180 × 180 px sin ornamento sobre módulos. */
.kc-ticket-qr-wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 22px auto 0; }
.kc-ticket-qr-frame { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 12px; border: 1px solid rgba(var(--dp-metal-base-rgb), .72); border-radius: 0; background: var(--dp-marfil-luna); box-shadow: 0 0 0 4px rgba(var(--dp-metal-base-rgb), .1); }
.kc-qr-corner { position: absolute; width: 12px; height: 12px; border-color: var(--dp-metal-base); border-style: solid; border-width: 0; pointer-events: none; }
.kc-qr-corner-tl { top: 4px; left: 4px; border-top-width: 1px; border-left-width: 1px; }
.kc-qr-corner-tr { top: 4px; right: 4px; border-top-width: 1px; border-right-width: 1px; }
.kc-qr-corner-bl { bottom: 4px; left: 4px; border-bottom-width: 1px; border-left-width: 1px; }
.kc-qr-corner-br { right: 4px; bottom: 4px; border-right-width: 1px; border-bottom-width: 1px; }
.kc-ticket-qr-img { display: block; width: 180px; height: 180px; border-radius: 0; image-rendering: pixelated; }
.kc-ticket-qr-hint { margin: 0; color: rgba(var(--dp-medianoche-rgb), .62); font-family: var(--f-eyebrow); font-size: .44rem; letter-spacing: .16em; text-transform: uppercase; }
.kc-ticket-id { position: relative; z-index: 1; margin-top: 14px; color: rgba(var(--dp-medianoche-rgb), .48); font-family: var(--f-eyebrow); font-size: .44rem; letter-spacing: .22em; text-transform: uppercase; }
.kc-ticket-brand { position: relative; z-index: 1; margin-top: 10px; color: rgba(var(--dp-medianoche-rgb), .5); font-family: var(--f-eyebrow); font-size: .38rem; letter-spacing: .18em; text-transform: uppercase; }

/* Guardar Pase permanece hermano de .kc-ticket y no entra a la captura. */
.kc-ticket-share { display: flex; justify-content: center; margin-top: 16px; }
.kc-ticket-share-btn { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 10px 22px; border: 1px solid rgba(var(--dp-metal-luz-rgb), .78); border-radius: 0; background: transparent; color: var(--dp-marfil-luna); font-family: var(--f-eyebrow); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; transition: background .3s ease, border-color .3s ease, color .3s ease; }
.kc-ticket-share-btn:hover:not(:disabled) { border-color: var(--dp-marfil-luna); background: var(--dp-metal-luz); color: var(--dp-medianoche); }
.kc-ticket-share-btn:focus-visible { outline: 2px solid var(--dp-marfil-luna); outline-offset: 4px; }
.kc-ticket-share-btn:disabled { opacity: .55; cursor: wait; }

/* Quien declina ya no está en la taquilla: la mesa se retira y queda solo la despedida. */
#rsvp .kc-rsvp-form[data-attendance='No'][data-state='confirmed'],
#rsvp .kc-rsvp-form[data-attendance='No'][data-state='restored'] {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
#rsvp .kc-rsvp-form[data-attendance='No'][data-state='confirmed']::before,
#rsvp .kc-rsvp-form[data-attendance='No'][data-state='confirmed']::after,
#rsvp .kc-rsvp-form[data-attendance='No'][data-state='restored']::before,
#rsvp .kc-rsvp-form[data-attendance='No'][data-state='restored']::after { display: none; }

/* ── DESPEDIDA · TERCIOPELO, NO PAPEL. SIN QR, SIN FILETE DE ADMISIÓN. ── */
#rsvp .kc-rsvp-farewell {
  position: relative;
  max-width: 400px;
  margin: 6px auto 0;
  padding: clamp(28px, 8vw, 38px) clamp(20px, 6vw, 30px) clamp(24px, 6vw, 30px);
  border-top: 1px solid rgba(var(--dp-metal-base-rgb), .88);
  background:
    radial-gradient(ellipse 78% 54% at 50% 0%, rgba(var(--dp-metal-luz-rgb), .16), transparent 72%),
    var(--dp-medianoche);
  box-shadow: 0 22px 46px rgba(0, 0, 0, .42);
  text-align: center;
  animation: kcTicketReveal .75s cubic-bezier(.2, 1, .3, 1) both;
}
.kc-rsvp-farewell-eyebrow { margin: 0; color: rgba(var(--dp-marfil-luna-rgb), .62); font-family: var(--f-eyebrow); font-size: .49rem; letter-spacing: .25em; text-transform: uppercase; }
.kc-rsvp-farewell-guest { margin: 14px 0 0; color: var(--dp-marfil-luna); font-family: var(--f-display); font-size: clamp(1.4rem, 5.5vw, 1.8rem); font-style: italic; line-height: 1.15; }
.kc-rsvp-farewell-body { max-width: 19rem; margin: 14px auto 0; color: rgba(var(--dp-marfil-luna-rgb), .74); font-family: var(--f-display); font-size: 1rem; font-style: italic; line-height: 1.5; }
.kc-rsvp-farewell-brand { margin: 20px 0 0; color: rgba(var(--dp-marfil-luna-rgb), .42); font-family: var(--f-eyebrow); font-size: .38rem; letter-spacing: .18em; text-transform: uppercase; }

/* ── BOLETO GUÍA · UBICACIONES DEL PASE ESCANEADO ── */
.kc-fs-venues { margin-top: 30px; text-align: left; }
.kc-fs-venues-title {
  margin: 0 0 4px;
  color: rgba(var(--dp-marfil-luna-rgb), .72);
  font-family: var(--f-eyebrow);
  font-size: .5rem;
  letter-spacing: .25em;
  text-align: center;
  text-transform: uppercase;
}
.kc-fs-venue {
  position: relative;
  margin-top: 16px;
  padding: 20px 18px 18px;
  border-top: 1px solid rgba(var(--dp-metal-base-rgb), .78);
  border-inline: 1px solid rgba(var(--dp-metal-base-rgb), .2);
  border-bottom: 1px solid rgba(var(--dp-metal-base-rgb), .2);
  background: linear-gradient(180deg, rgba(var(--dp-marfil-luna-rgb), .05), rgba(var(--dp-marfil-luna-rgb), .015));
}
.kc-fs-venue-act { margin: 0; color: var(--dp-ceniza-lavanda); font-family: var(--f-eyebrow); font-size: .47rem; letter-spacing: .22em; text-transform: uppercase; }
.kc-fs-venue-name { margin: 9px 0 0; color: var(--dp-marfil-luna); font-family: var(--f-display); font-size: clamp(1.15rem, 4.6vw, 1.4rem); font-weight: 500; line-height: 1.18; }
.kc-fs-venue-time { margin: 7px 0 0; color: var(--dp-metal-luz); font-family: var(--f-eyebrow); font-size: .55rem; letter-spacing: .2em; text-transform: uppercase; }
.kc-fs-venue-address { margin: 9px 0 0; color: rgba(var(--dp-marfil-luna-rgb), .72); font-family: var(--f-body); font-size: .8rem; font-style: italic; line-height: 1.5; }
.kc-fs-venue-map {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 14px;
  padding: 10px 20px;
  border: 1px solid rgba(var(--dp-metal-luz-rgb), .78);
  background: transparent;
  color: var(--dp-marfil-luna);
  font-family: var(--f-eyebrow);
  font-size: .55rem;
  letter-spacing: .18em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.kc-fs-venue-map:hover { border-color: var(--dp-marfil-luna); background: var(--dp-metal-luz); color: var(--dp-medianoche); }
.kc-fs-venue-map:focus-visible { outline: 2px solid var(--dp-marfil-luna); outline-offset: 4px; }

/* ── MODO STANDALONE ── */
body.kc-standalone-mode { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: radial-gradient(ellipse 62% 42% at 50% 0%, rgba(var(--dp-metal-luz-rgb), .26), transparent 70%), var(--dp-medianoche); }
#kc-fs-ticket { width: 100%; max-width: 440px; padding: 32px 20px 48px; margin-inline: auto; text-align: center; }
.kc-fs-error { color: var(--color-danger); font-family: var(--f-body); font-size: .9rem; font-style: italic; }

/* ============================================================
   PERGAMINO · MISMO PAPEL QUE "PROGRAMA DE LA NOCHE"
   Va al final a propósito: reescribe los roles de color del
   formulario, que nació claro-sobre-terciopelo.
   ============================================================ */
#rsvp .kc-rsvp-form {
  padding: clamp(34px, 8vw, 46px) clamp(22px, 6vw, 34px);
  border: 0;
  border-radius: 2px;
  color: var(--dp-medianoche, var(--dp-medianoche));
  background:
    radial-gradient(ellipse at 12% 88%, color-mix(in srgb, var(--dp-metal-luz) 10%, transparent), transparent 38%),
    radial-gradient(ellipse at 88% 14%, color-mix(in srgb, var(--dp-cristal) 24%, transparent), transparent 42%),
    repeating-linear-gradient(94deg, color-mix(in srgb, var(--dp-ciruela) 2.2%, transparent) 0 1px, transparent 1px 6px),
    var(--dp-marfil-luna, var(--dp-marfil-luna));
  box-shadow: 0 26px 54px rgba(0, 0, 0, .5);
}

/* Las varillas del rollo: reemplazan las escuadras de proscenio, sin tocar el DOM. */
#rsvp .kc-rsvp-form::before,
#rsvp .kc-rsvp-form::after {
  top: auto;
  right: -7px;
  bottom: auto;
  left: -7px;
  width: auto;
  height: 11px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--dp-metal-base) 0%, var(--dp-ceniza-lavanda) 52%, var(--dp-lacre-hondo) 100%);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(var(--dp-marfil-luna-rgb), .42);
}
#rsvp .kc-rsvp-form::before { top: -7px; }
#rsvp .kc-rsvp-form::after { bottom: -7px; }

/* El desenrollado. El estado cerrado solo existe si el JS armó el gesto. */
#rsvp .kc-rsvp-form.kc-scroll-armed { clip-path: inset(0 0 100% 0); }
#rsvp .kc-rsvp-form.kc-scroll-armed.is-unrolled {
  animation: kcScrollUnroll .95s var(--kc-ease-curtain, cubic-bezier(.7, 0, .2, 1)) both;
}

/* ── Roles de color sobre papel ── */
#rsvp .kc-rsvp-field-group label,
#rsvp .kc-rsvp-attendance legend { color: var(--dp-lacre); }

#rsvp .kc-rsvp-field-group input,
#rsvp .kc-rsvp-field-group textarea,
#rsvp .kc-rsvp-field-group select {
  border-color: rgba(var(--dp-ceniza-lavanda-rgb), .52);
  background: rgba(var(--dp-marfil-luna-rgb), .58);
  box-shadow: inset 0 1px 2px rgba(var(--dp-lacre-hondo-rgb), .09);
  color: var(--dp-medianoche);
}
#rsvp .kc-rsvp-field-group select option { background: var(--dp-marfil-luna); color: var(--dp-medianoche); }
#rsvp .kc-rsvp-field-group input::placeholder,
#rsvp .kc-rsvp-field-group textarea::placeholder { color: rgba(var(--dp-medianoche-rgb), .62); }
#rsvp .kc-rsvp-field-group input:hover,
#rsvp .kc-rsvp-field-group textarea:hover,
#rsvp .kc-rsvp-field-group select:hover { border-color: rgba(var(--dp-ceniza-lavanda-rgb), .88); }
#rsvp .kc-rsvp-field-group input:focus-visible,
#rsvp .kc-rsvp-field-group textarea:focus-visible,
#rsvp .kc-rsvp-field-group select:focus-visible {
  border-color: var(--color-focus);
  outline: 2px solid var(--color-focus);
  background: var(--dp-marfil-luna);
  box-shadow: inset 0 1px 2px rgba(var(--dp-lacre-hondo-rgb), .12);
}

#rsvp .kc-rsvp-attendance-face {
  border-color: rgba(var(--dp-ceniza-lavanda-rgb), .52);
  background: rgba(var(--dp-marfil-luna-rgb), .5);
  box-shadow: inset 0 1px 2px rgba(var(--dp-lacre-hondo-rgb), .08);
  color: rgba(var(--dp-medianoche-rgb), .74);
}
#rsvp .kc-rsvp-attendance-option input:hover + .kc-rsvp-attendance-face { border-color: rgba(var(--dp-ceniza-lavanda-rgb), .88); }
#rsvp .kc-rsvp-attendance-option input:checked + .kc-rsvp-attendance-face {
  border-color: var(--dp-ceniza-lavanda);
  background: rgba(var(--dp-metal-luz-rgb), .3);
  color: var(--dp-medianoche);
}
#rsvp .kc-rsvp-attendance-option input:focus-visible + .kc-rsvp-attendance-face {
  border-color: var(--color-focus);
  outline: 2px solid var(--color-focus);
}

/* Leyenda que invita antes de decidir, y el abrazo para quien no puede venir. */
#rsvp .kc-rsvp-attendance-hint,
#rsvp .kc-rsvp-decline-note {
  margin: 13px 0 0;
  font-family: var(--f-display);
  font-size: .86rem;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
  animation: kcFieldReveal .4s var(--ease-silk, ease) both;
}
#rsvp .kc-rsvp-attendance-hint { color: rgba(var(--dp-medianoche-rgb), .7); }
#rsvp .kc-rsvp-decline-note {
  padding: 11px 14px;
  border-top: 1px solid rgba(var(--dp-metal-base-rgb), .6);
  background: rgba(var(--dp-metal-luz-rgb), .16);
  color: var(--dp-lacre-hondo);
}

#rsvp .kc-rsvp-allocation-note { border-left-color: var(--dp-ceniza-lavanda); color: rgba(var(--dp-medianoche-rgb), .68); }
#rsvp .kc-rsvp-allocation-note.is-warning { border-left-color: var(--color-warning); background: rgba(var(--dp-ceniza-lavanda-rgb), .12); color: var(--color-warning); }

#rsvp .kc-rsvp-submit {
  border-color: var(--dp-ceniza-lavanda);
  box-shadow: inset 0 1px 0 rgba(var(--dp-marfil-luna-rgb), .6), 0 10px 20px rgba(var(--dp-lacre-hondo-rgb), .26);
}
#rsvp .kc-rsvp-submit:hover:not(:disabled) {
  background: var(--dp-ceniza-lavanda);
  box-shadow: inset 0 1px 0 rgba(var(--dp-marfil-luna-rgb), .32), 0 14px 24px rgba(var(--dp-lacre-hondo-rgb), .34);
  color: var(--dp-marfil-luna);
}
#rsvp .kc-rsvp-submit:focus-visible { outline-color: var(--color-focus); }

#rsvp .kc-rsvp-status { color: var(--dp-lacre); }
/* Sin mensaje no se reserva papel: el pergamino cierra donde termina el contenido. */
#rsvp .kc-rsvp-form:not([data-state]) .kc-rsvp-status,
#rsvp .kc-rsvp-form[data-state='idle'] .kc-rsvp-status { min-height: 0; margin-top: 0; }
#rsvp .kc-rsvp-error {
  border-color: rgba(var(--dp-lacre-rgb), .55);
  background: rgba(var(--dp-ceniza-lavanda-rgb), .14);
  color: var(--color-danger);
}

/* Cerrada la transacción, el pergamino se retira y el pase queda solo sobre el terciopelo. */
#rsvp .kc-rsvp-form[data-state='confirmed'],
#rsvp .kc-rsvp-form[data-state='restored'] {
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  clip-path: none;
  animation: none;
}
#rsvp .kc-rsvp-form[data-state='confirmed']::before,
#rsvp .kc-rsvp-form[data-state='confirmed']::after,
#rsvp .kc-rsvp-form[data-state='restored']::before,
#rsvp .kc-rsvp-form[data-state='restored']::after { display: none; }

/* ============================================================
   ANIMACIONES
   ============================================================ */
@keyframes kcRsvpBorderSignal {
  from { opacity: .42; }
  to { opacity: .92; }
}
@keyframes kcTicketReveal {
  from { opacity: 0; transform: translateY(28px) scale(.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
/* Ranura global 3/3 de cinta signature: exclusivamente el reveal del ticket. */
@keyframes kcTicketRibbonReveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes kcScrollUnroll {
  from { clip-path: inset(0 0 100% 0); transform: translateY(-8px); }
  to { clip-path: inset(0 0 0 0); transform: translateY(0); }
}
@keyframes kcFieldReveal {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes kcSpinnerRing { to { transform: rotate(360deg); } }
@keyframes kcSubmitShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@media (min-width: 700px) {
  #rsvp.section { max-width: 680px; }
  #rsvp .kc-rsvp-form { max-width: 460px; }
  #rsvp .kc-ticket,
  #kc-fs-ticket .kc-ticket { max-width: 420px; }
}

@media (prefers-reduced-motion: no-preference) {
  #rsvp .kc-ticket .kc-signature-ribbon,
  #kc-fs-ticket .kc-ticket .kc-signature-ribbon { opacity: 0; transform: translateY(8px); animation: kcTicketRibbonReveal .7s var(--ease-silk, ease) .24s forwards; }
}

/* ── REDUCED MOTION ── */
/* ── PASE FINAL · cenicienta nocturna ──
   Contraste de lectura y jerarquía de admisión: el pase se lee primero,
   el QR se escanea después. El control vive afuera y jamás entra al PNG. */
#rsvp .kc-ticket,
#kc-fs-ticket .kc-ticket { border-color: var(--dp-ceniza-lavanda); box-shadow: 0 28px 58px rgba(0,0,0,.5), inset 0 0 0 1px rgba(var(--dp-marfil-luna-rgb),.34); }
#rsvp .kc-ticket-status, #rsvp .kc-ticket-celebrant, #rsvp .kc-ticket-venue { color: var(--dp-lacre-hondo); font-weight: 700; }
#rsvp .kc-ticket-guest, #rsvp .kc-ticket-event { color: var(--dp-medianoche); text-shadow: none; }
#rsvp .kc-ticket-guest-label, #rsvp .kc-ticket-date, #rsvp .kc-ticket-id { color: rgba(var(--dp-medianoche-rgb),.78); font-weight: 700; }
#rsvp .kc-ticket-qr-frame { padding: 14px; border-color: var(--dp-medianoche); box-shadow: 0 0 0 5px rgba(var(--dp-ceniza-lavanda-rgb),.16); }
#rsvp .kc-ticket-qr-hint { color: rgba(var(--dp-medianoche-rgb),.82); font-weight: 700; }
#rsvp .kc-ticket-share { margin-top: 20px; }
#rsvp .kc-ticket-share-btn { min-width: min(100%, 18rem); min-height: 50px; border-color: var(--dp-metal-luz); background: var(--dp-metal-luz); box-shadow: 0 10px 22px rgba(0,0,0,.26); color: var(--dp-medianoche); font-weight: 800; }
#rsvp .kc-ticket-share-btn:hover:not(:disabled) { border-color: var(--dp-marfil-luna); background: var(--dp-marfil-luna); }
#rsvp .kc-ticket-share-btn:disabled { opacity: .72; }
.kc-rsvp-capture-clean #musicBtn, .kc-rsvp-capture-clean .music-btn { visibility: hidden !important; }

@media (prefers-reduced-motion: reduce) {
  #rsvp .kc-rsvp-form[data-state='submitting'] .kc-rsvp-submit,
  #rsvp .kc-rsvp-form[data-state='confirmed'] .kc-rsvp-submit,
  #rsvp .kc-rsvp-form[data-state='submitting']::before,
  #rsvp .kc-rsvp-form[data-state='submitting']::after,
  #rsvp .kc-rsvp-ritual-mark svg,
  #rsvp .kc-rsvp-eyebrow-diamond,
  #rsvp .kc-ticket,
  #kc-fs-ticket .kc-ticket,
  #rsvp .kc-rsvp-farewell,
  #rsvp .kc-ticket .kc-signature-ribbon,
  #kc-fs-ticket .kc-ticket .kc-signature-ribbon { animation: none !important; }
  /* La vara del telón aparece sin recorrido: el estado sigue siendo legible. */
  #rsvp .kc-rsvp-attendance-face::after { transition: none; }
  /* El pergamino nace abierto: el gesto se pierde, el contenido no. */
  #rsvp .kc-rsvp-form.kc-scroll-armed { clip-path: none !important; }
  #rsvp .kc-rsvp-form.kc-scroll-armed.is-unrolled { animation: none !important; }
  #rsvp .kc-rsvp-form[data-attendance] #kc-rsvp-name-group,
  #rsvp .kc-rsvp-form[data-attendance] #kc-rsvp-passes-group,
  #rsvp .kc-rsvp-form[data-attendance] .kc-rsvp-allocation-note,
  #rsvp .kc-rsvp-form[data-attendance] .kc-rsvp-submit,
  #rsvp .kc-rsvp-attendance-hint,
  #rsvp .kc-rsvp-decline-note { animation: none !important; }
}

/* ── IDENTIDAD RESERVADA · inscripción grabada, no otra tarjeta ── */
#rsvp .kc-rsvp-reservation {
  position: relative;
  width: min(100% - 34px, 430px);
  margin: 10px auto 0;
  padding: 12px 18px 10px;
  text-align: center;
}
#rsvp .kc-rsvp-reservation::before,
#rsvp .kc-rsvp-reservation::after {
  position: absolute;
  top: 50%;
  width: clamp(22px, 9vw, 42px);
  height: 1px;
  content: '';
  background: linear-gradient(90deg, transparent, rgba(var(--dp-metal-luz-rgb), .7));
  transform: translateY(-50%);
}
#rsvp .kc-rsvp-reservation::before { left: 0; }
#rsvp .kc-rsvp-reservation::after { right: 0; transform: translateY(-50%) scaleX(-1); }
#rsvp .kc-rsvp-reservation-eyebrow,
#rsvp .kc-rsvp-reservation-passes { margin: 0; color: rgba(var(--dp-marfil-luna-rgb), .7); font-family: var(--f-eyebrow); font-size: .5rem; font-weight: 700; letter-spacing: .2em; line-height: 1.5; text-shadow: 0 1px 9px rgba(var(--dp-medianoche-rgb), .9); text-transform: uppercase; }
#rsvp .kc-rsvp-reservation-name { margin: 6px auto 7px; color: var(--dp-marfil-luna); font-family: 'Cinzel', var(--f-display), serif; font-size: clamp(1.34rem, 6.7vw, 2.06rem); font-weight: 600; line-height: 1.1; overflow-wrap: anywhere; text-shadow: 0 1px 0 rgba(var(--dp-metal-luz-rgb), .2), 0 5px 18px rgba(0, 0, 0, .46); text-wrap: balance; }
#rsvp .kc-rsvp-reservation-passes { color: var(--dp-metal-luz); }
#rsvp .kc-rsvp-form { margin-top: 10px; }
#rsvp #kc-rsvp-name-group { display: none !important; }

/* Declined RSVP: a warm optional host-message moment, not a dead end. */
#rsvp .kc-rsvp-form[data-attendance='declined'] #kc-rsvp-extra-fields {
  margin-top: 18px;
  padding: 14px 15px 2px;
  border-left: 2px solid rgba(var(--dp-metal-luz-rgb), .72);
  background: linear-gradient(90deg, rgba(var(--dp-ceniza-lavanda-rgb), .12), transparent 78%);
}
#rsvp .kc-rsvp-form[data-attendance='declined'] #kc-rsvp-extra-fields label {
  color: var(--dp-marfil-luna);
  font-size: .6rem;
  font-weight: 700;
}
#rsvp .kc-rsvp-form[data-attendance='declined'] #kc-rsvp-extra-fields textarea {
  min-height: 104px;
  border-color: rgba(var(--dp-metal-luz-rgb), .52);
  background: rgba(var(--dp-medianoche-rgb), .34);
}

/* ═══════════════════════════════════════════════════════════════
   OP-RSVP-REVEAL — el botón carga la señal de envío
   El motor ya no escribe "Preparando tu pase..." debajo del botón:
   reservaba una línea vacía en el resto del recorrido. La señal de
   "estoy trabajando" pasa al propio botón.
   ═══════════════════════════════════════════════════════════════ */
#rsvp .kc-rsvp-status:empty { min-height: 0; margin: 0; }

#rsvp [aria-busy="true"] .kc-rsvp-submit {
  cursor: progress;
  animation: kcSubmitBreathe 1.4s ease-in-out infinite;
}

@keyframes kcSubmitBreathe {
  0%, 100% { opacity: .74; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  #rsvp [aria-busy="true"] .kc-rsvp-submit { animation: none; opacity: .8; }
}

/* Showroom: formulario inerte + aviso. */
#kc-rsvp-form[inert] { opacity: .55; filter: saturate(.7); }
#rsvp .kc-rsvp-offline { max-width: 21rem; margin: 16px auto 0; color: var(--dp-marfil-luna, #F2EEE4); font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; font-style: italic; line-height: 1.45; text-align: center; }
