/* ============================================================
   KC-RSVP ⭐ CSS — Telón de Terciopelo · muestra pública
   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(250, 177, 170, .28), transparent 70%),
    #120F13;
}
/* 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 / BALLET ── */
#rsvp .kc-rsvp-ritual-mark {
  width: 78px;
  margin: 0 auto 13px;
  color: #FAB1AA;
}
#rsvp .kc-rsvp-ritual-mark svg {
  display: block;
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#rsvp .kc-rsvp-eyebrow {
  color: #FFF7F0;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .27em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .72);
}
#rsvp .kc-rsvp-title { margin: 0; color: #FFF7F0; font-size: clamp(2.35rem, 10vw, 3.65rem); letter-spacing: -.02em; }
#rsvp .kc-rsvp-title em { color: #FAB1AA; }
#rsvp .kc-rsvp-intro {
  max-width: 21rem;
  margin: 15px auto 0;
  color: rgba(255, 247, 240, .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(201, 166, 107, .72);
  border-bottom: 1px solid rgba(201, 166, 107, .48);
  border-inline: 1px solid rgba(201, 166, 107, .24);
  border-radius: 0;
  background: linear-gradient(90deg, rgba(255, 247, 240, .035), transparent 12% 88%, rgba(255, 247, 240, .035));
  box-shadow: inset 0 1px 0 rgba(255, 247, 240, .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(250, 177, 170, .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(255, 247, 240, .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 select {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid rgba(201, 166, 107, .42);
  border-radius: 0;
  background: rgba(255, 247, 240, .055);
  box-shadow: inset 0 1px 0 rgba(255, 247, 240, .07);
  color: #FFF7F0;
  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 select option { background: #120F13; color: #FFF7F0; }
#rsvp .kc-rsvp-field-group input::placeholder { color: rgba(255, 247, 240, .54); }
#rsvp .kc-rsvp-field-group input:hover,
#rsvp .kc-rsvp-field-group select:hover { border-color: rgba(250, 177, 170, .72); }
#rsvp .kc-rsvp-field-group input:focus-visible,
#rsvp .kc-rsvp-field-group select:focus-visible {
  border-color: #FAB1AA;
  outline: 2px solid rgba(250, 177, 170, .45);
  outline-offset: 2px;
  background: rgba(255, 247, 240, .1);
  box-shadow: inset 0 1px 0 rgba(255, 247, 240, .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(255, 247, 240, .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(201, 166, 107, .42);
  border-radius: 0;
  background: rgba(255, 247, 240, .055);
  box-shadow: inset 0 1px 0 rgba(255, 247, 240, .07);
  color: rgba(255, 247, 240, .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: #C9A66B;
  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(250, 177, 170, .72); }
#rsvp .kc-rsvp-attendance-option input:checked + .kc-rsvp-attendance-face {
  border-color: #FAB1AA;
  background: rgba(250, 177, 170, .14);
  color: #FFF7F0;
}
#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: #FAB1AA;
  outline: 2px solid rgba(250, 177, 170, .45);
  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(250, 177, 170, .78);
  color: rgba(255, 247, 240, .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: #FAB1AA; color: #FFF7F0; background: rgba(250, 177, 170, .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 #FAB1AA;
  border-radius: 0;
  background: #FAB1AA;
  box-shadow: inset 0 1px 0 rgba(255, 247, 240, .64), 0 11px 22px rgba(0, 0, 0, .3);
  color: #120F13;
  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(18, 15, 19, .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: #FFF7F0; box-shadow: inset 0 1px 0 #fff, 0 15px 26px rgba(0, 0, 0, .38); }
#rsvp .kc-rsvp-submit:focus-visible { outline: 2px solid #FFF7F0; outline-offset: 4px; }
#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(250, 177, 170, .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(18, 15, 19, .22);
  border-top-color: #120F13;
  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(255, 247, 240, .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(237, 204, 134, .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(222, 145, 108, .38);
  border-left-width: 2px;
  border-radius: 3px;
  background: rgba(99, 44, 35, .27);
  color: #f0c1a3;
  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(201, 166, 107, .88);
  border-radius: 0;
  background:
    radial-gradient(circle at 0 50%, #120F13 0 9px, transparent 10px),
    radial-gradient(circle at 100% 50%, #120F13 0 9px, transparent 10px),
    #FFF7F0;
  box-shadow: 0 25px 52px rgba(0, 0, 0, .44);
  color: #120F13;
  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(201, 166, 107, .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(18, 15, 19, .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: #A97868; 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: #C9A66B;
}
.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: #8C5A52; 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: #120F13; 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: #8C5A52; 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: #C9A66B; font-size: .6rem; letter-spacing: .15em; }
.kc-ticket-guest-label { position: relative; z-index: 1; margin: 0; color: rgba(18, 15, 19, .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: #120F13; 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(169, 120, 104, .62); border-radius: 0; background: rgba(250, 177, 170, .16); color: #120F13; 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: #120F13; 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: #8C5A52; 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(201, 166, 107, .72); border-radius: 0; background: #FFF7F0; box-shadow: 0 0 0 4px rgba(201, 166, 107, .1); }
.kc-qr-corner { position: absolute; width: 12px; height: 12px; border-color: #C9A66B; 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(18, 15, 19, .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(18, 15, 19, .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(18, 15, 19, .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(250, 177, 170, .78); border-radius: 0; background: transparent; color: #FFF7F0; 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: #FFF7F0; background: #FAB1AA; color: #120F13; }
.kc-ticket-share-btn:focus-visible { outline: 2px solid #FFF7F0; 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(201, 166, 107, .88);
  background:
    radial-gradient(ellipse 78% 54% at 50% 0%, rgba(250, 177, 170, .16), transparent 72%),
    #120F13;
  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(255, 247, 240, .62); font-family: var(--f-eyebrow); font-size: .49rem; letter-spacing: .25em; text-transform: uppercase; }
.kc-rsvp-farewell-guest { margin: 14px 0 0; color: #FFF7F0; 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(255, 247, 240, .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(255, 247, 240, .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(255, 247, 240, .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(201, 166, 107, .78);
  border-inline: 1px solid rgba(201, 166, 107, .2);
  border-bottom: 1px solid rgba(201, 166, 107, .2);
  background: linear-gradient(180deg, rgba(255, 247, 240, .05), rgba(255, 247, 240, .015));
}
.kc-fs-venue-act { margin: 0; color: #A97868; font-family: var(--f-eyebrow); font-size: .47rem; letter-spacing: .22em; text-transform: uppercase; }
.kc-fs-venue-name { margin: 9px 0 0; color: #FFF7F0; 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: #FAB1AA; font-family: var(--f-eyebrow); font-size: .55rem; letter-spacing: .2em; text-transform: uppercase; }
.kc-fs-venue-address { margin: 9px 0 0; color: rgba(255, 247, 240, .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(250, 177, 170, .78);
  background: transparent;
  color: #FFF7F0;
  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: #FFF7F0; background: #FAB1AA; color: #120F13; }
.kc-fs-venue-map:focus-visible { outline: 2px solid #FFF7F0; 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(250, 177, 170, .26), transparent 70%), #120F13; }
#kc-fs-ticket { width: 100%; max-width: 440px; padding: 32px 20px 48px; margin-inline: auto; text-align: center; }
.kc-fs-error { color: rgba(255, 247, 240, .85); 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(--kc-velvet-black, #120F13);
  background:
    radial-gradient(ellipse at 12% 88%, color-mix(in srgb, var(--kc-apricot-blush) 10%, transparent), transparent 38%),
    radial-gradient(ellipse at 88% 14%, color-mix(in srgb, var(--kc-tulle-pink) 24%, transparent), transparent 42%),
    repeating-linear-gradient(94deg, color-mix(in srgb, var(--kc-wine-shadow) 2.2%, transparent) 0 1px, transparent 1px 6px),
    var(--kc-ivory-paper, #FFF7F0);
  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, #C9A66B 0%, #A97868 52%, #6E4038 100%);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 247, 240, .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: #8C5A52; }

#rsvp .kc-rsvp-field-group input,
#rsvp .kc-rsvp-field-group select {
  border-color: rgba(169, 120, 104, .52);
  background: rgba(255, 255, 255, .58);
  box-shadow: inset 0 1px 2px rgba(110, 64, 56, .09);
  color: #120F13;
}
#rsvp .kc-rsvp-field-group select option { background: #FFF7F0; color: #120F13; }
#rsvp .kc-rsvp-field-group input::placeholder { color: rgba(18, 15, 19, .62); }
#rsvp .kc-rsvp-field-group input:hover,
#rsvp .kc-rsvp-field-group select:hover { border-color: rgba(169, 120, 104, .88); }
#rsvp .kc-rsvp-field-group input:focus-visible,
#rsvp .kc-rsvp-field-group select:focus-visible {
  border-color: #A97868;
  outline: 2px solid rgba(169, 120, 104, .6);
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(110, 64, 56, .12);
}

#rsvp .kc-rsvp-attendance-face {
  border-color: rgba(169, 120, 104, .52);
  background: rgba(255, 255, 255, .5);
  box-shadow: inset 0 1px 2px rgba(110, 64, 56, .08);
  color: rgba(18, 15, 19, .74);
}
#rsvp .kc-rsvp-attendance-option input:hover + .kc-rsvp-attendance-face { border-color: rgba(169, 120, 104, .88); }
#rsvp .kc-rsvp-attendance-option input:checked + .kc-rsvp-attendance-face {
  border-color: #A97868;
  background: rgba(250, 177, 170, .3);
  color: #120F13;
}
#rsvp .kc-rsvp-attendance-option input:focus-visible + .kc-rsvp-attendance-face {
  border-color: #A97868;
  outline: 2px solid rgba(169, 120, 104, .6);
}

/* 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(18, 15, 19, .7); }
#rsvp .kc-rsvp-decline-note {
  padding: 11px 14px;
  border-top: 1px solid rgba(201, 166, 107, .6);
  background: rgba(250, 177, 170, .16);
  color: #6E4038;
}

#rsvp .kc-rsvp-allocation-note { border-left-color: #A97868; color: rgba(18, 15, 19, .68); }
#rsvp .kc-rsvp-allocation-note.is-warning { border-left-color: #8C5A52; background: rgba(169, 120, 104, .12); color: #120F13; }

#rsvp .kc-rsvp-submit {
  border-color: #A97868;
  box-shadow: inset 0 1px 0 rgba(255, 247, 240, .6), 0 10px 20px rgba(110, 64, 56, .26);
}
#rsvp .kc-rsvp-submit:hover:not(:disabled) {
  background: #A97868;
  box-shadow: inset 0 1px 0 rgba(255, 247, 240, .32), 0 14px 24px rgba(110, 64, 56, .34);
  color: #FFF7F0;
}
#rsvp .kc-rsvp-submit:focus-visible { outline-color: #6E4038; }

#rsvp .kc-rsvp-status { color: #8C5A52; }
/* 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(140, 90, 82, .55);
  background: rgba(169, 120, 104, .14);
  color: #6E2B22;
}

/* 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 ── */
@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-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; }
}
