/* ════════════════════════════════════════════
   THEME-ESMERALDA.CSS  v2 — B4 Hero Rescue
   XV Princesa Esmeralda · Khal Calloway Studio
   Carga DESPUÉS de core-structure.css
   ════════════════════════════════════════════ */

/* ── Local fonts: SY Text (Bodoni Moda) · SY Script (Christmas Angely) · SY Caps (Cinzel) ── */
@font-face { font-family: 'SY Text';   src: url('../../assets/fonts/sy-text.woff2') format('woff2');   font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'SY Script'; src: url('../../assets/fonts/sy-script.woff') format('woff'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'SY Caps';   src: url('../../assets/fonts/sy-caps.woff') format('woff');   font-style: normal; font-weight: 400; font-display: swap; }

/* ── Tokens ── */
:root {
  --sy-font-text:   'SY Text', Georgia, 'Times New Roman', serif;
  --sy-font-script: 'SY Script', 'SY Text', cursive;
  --sy-font-caps:   'SY Caps', 'SY Text', Georgia, serif;
  --kc-font:          var(--sy-font-text);
  /* Gate permanece oscuro */
  --gate-bg:          #080e07;
  /* Paleta principal — luminosa */
  --kc-bg:            #F4F1E8;
  --kc-surface:       #FDFBF5;
  --kc-border:        rgba(183,146,78,.22);
  --kc-text:          #1E2519;
  --kc-text-muted:    rgba(30,37,25,.55);
  --kc-accent:        #B7924E;
  --kc-accent-h:      #D7B76D;
  --kc-emerald:       #526B3F;
  --kc-emerald-deep:  #24351F;
  --kc-sage:          #A8BE8A;
  --kc-lily:          #C8D9A6;
  --kc-ivory:         #F8F5EC;
  --kc-gold:          #D7B76D;
  --kc-pond:          #10170F;
  --color-canvas:     #F4F1E8;
  --color-surface:    #FDFBF5;
  --color-ink:        #1E2519;
  --color-primary:    #526B3F;
  --color-accent-noble:#D7B76D;
  --color-focus:      #F5E8B8;
  --color-success:    #A8BE8A;
  --color-warning:    #F2C886;
  --color-error:      #FFB4A1;
  --type-display:     var(--sy-font-script);
  --type-body:        var(--sy-font-text);
}

body {
  font-family: var(--kc-font);
  background: var(--kc-bg);
  color: var(--kc-text);
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--sy-font-text);
  font-weight: 300;
  letter-spacing: .04em;
}

.kc-section-title em {
  font-family: var(--sy-font-script);
  font-style: normal;
  color: var(--kc-emerald);
  font-size: 1.18em;
}

/* ════════════════════
   GATE — El Lirio Real (oscuro, mágico)
   ════════════════════ */
#kc-gate { background: var(--gate-bg); }

.kc-gate-bg {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% 85%, #1a2e16 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 95%, #0e1f0b 0%, transparent 60%),
    #080e07;
}

.kc-pond {
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: min(340px, 90vw); height: 80px;
}
.kc-pond-ripple {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(168,190,138,.2);
  animation: kc-ripple 4s ease-out infinite;
}
.kc-pond-ripple--2 { animation-delay: 2s; border-color: rgba(215,183,109,.12); }
@keyframes kc-ripple {
  0%   { transform: scale(.6); opacity: .7; }
  100% { transform: scale(1.6); opacity: 0; }
}

.kc-fireflies { position: absolute; inset: 0; pointer-events: none; }
.kc-ff {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: #c8d9a6; box-shadow: 0 0 6px 2px rgba(200,217,166,.6);
  animation: kc-ff-float 6s ease-in-out infinite;
}
.kc-ff:nth-child(1)  { top:20%;left:10%;animation-delay:0s;animation-duration:7s }
.kc-ff:nth-child(2)  { top:60%;left:15%;animation-delay:.8s;animation-duration:6s }
.kc-ff:nth-child(3)  { top:30%;left:80%;animation-delay:1.6s;animation-duration:8s }
.kc-ff:nth-child(4)  { top:70%;left:75%;animation-delay:2.4s;animation-duration:5s }
.kc-ff:nth-child(5)  { top:15%;left:50%;animation-delay:3s;animation-duration:9s }
.kc-ff:nth-child(6)  { top:55%;left:40%;animation-delay:.4s;animation-duration:7s }
.kc-ff:nth-child(7)  { top:40%;left:25%;animation-delay:1.2s;animation-duration:6s }
.kc-ff:nth-child(8)  { top:80%;left:55%;animation-delay:2s;animation-duration:8s }
.kc-ff:nth-child(9)  { top:25%;left:65%;animation-delay:3.5s;animation-duration:7s }
.kc-ff:nth-child(10) { top:65%;left:30%;animation-delay:.6s;animation-duration:9s }
.kc-ff:nth-child(11) { top:45%;left:88%;animation-delay:1.8s;animation-duration:6s }
.kc-ff:nth-child(12) { top:10%;left:35%;animation-delay:2.8s;animation-duration:8s }
@keyframes kc-ff-float {
  0%,100% { transform:translate(0,0);      opacity:.2; }
  25%      { transform:translate(8px,-12px);opacity:.9; }
  50%      { transform:translate(-6px,-20px);opacity:.6; }
  75%      { transform:translate(10px,-8px);opacity:.8; }
}

.kc-gate-cta {
  width: 180px; height: 180px; border-radius: 50%;
  border: 1px solid rgba(215,183,109,.3);
  background: radial-gradient(ellipse at center,rgba(36,53,31,.8) 0%,rgba(8,14,7,.95) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .4s;
  box-shadow: 0 0 40px rgba(168,190,138,.08), inset 0 0 30px rgba(0,0,0,.4);
  color: #F8F5EC;
}
.kc-gate-cta::before,.kc-gate-cta::after { pointer-events: none; }
.kc-gate-cta::before {
  content:''; position:absolute; inset:-6px; border-radius:50%;
  border:1px solid rgba(215,183,109,.12);
  animation: kc-gate-pulse 3s ease-in-out infinite;
}
@keyframes kc-gate-pulse {
  0%,100% { transform:scale(1);    opacity:.4; }
  50%      { transform:scale(1.06);opacity:.8; }
}
.kc-gate-cta:hover,.kc-gate-cta:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 0 60px rgba(168,190,138,.18), inset 0 0 30px rgba(0,0,0,.4);
  outline: none;
}
.kc-gate-lily { display:flex; align-items:center; justify-content:center; }
.kc-lily-svg {
  width:72px; height:72px;
  filter: drop-shadow(0 0 8px rgba(168,190,138,.4));
  transition: filter .4s;
}
.kc-gate-cta:hover .kc-lily-svg { filter: drop-shadow(0 0 14px rgba(215,183,109,.6)); }
.kc-gate-label {
  font-family:var(--sy-font-text); font-size:.8rem;
  letter-spacing:.18em; text-transform:uppercase; color:rgba(248,245,236,.4);
}
.kc-gate-cta-text {
  font-family:var(--sy-font-text); font-size:.7rem;
  letter-spacing:.09em; color:rgba(248,245,236,.5); text-align:center; line-height:1.4; padding:0 12px;
}
.kc-gate-credit {
  font-family:var(--sy-font-text); font-size:.65rem;
  letter-spacing:.15em; color:rgba(215,183,109,.35);
}

/* ════════════════════
   HERO — Luminoso, editorial, ivory/sage
   ════════════════════ */
#kc-hero {
  min-height: 100dvh;
  background: var(--kc-ivory);
  position: relative;
  overflow: hidden;
}

.kc-hero-bg {
  background:
    radial-gradient(ellipse 90% 40% at 50% 0%, rgba(168,190,138,.18) 0%, transparent 60%),
    radial-gradient(ellipse 70% 30% at 50% 100%, rgba(215,183,109,.12) 0%, transparent 60%),
    #F8F5EC;
}

/* Esquinas ornamentales */
.kc-hero-corner {
  position: absolute; width: 80px; height: 80px; pointer-events: none; z-index: 0;
}
.kc-hero-corner--tl { top: 20px; left: 16px;
  border-top: 1px solid rgba(183,146,78,.35); border-left: 1px solid rgba(183,146,78,.35); }
.kc-hero-corner--tr { top: 20px; right: 16px;
  border-top: 1px solid rgba(183,146,78,.35); border-right: 1px solid rgba(183,146,78,.35); }
.kc-hero-corner--bl { bottom: 50px; left: 16px;
  border-bottom: 1px solid rgba(183,146,78,.35); border-left: 1px solid rgba(183,146,78,.35); }
.kc-hero-corner--br { bottom: 50px; right: 16px;
  border-bottom: 1px solid rgba(183,146,78,.35); border-right: 1px solid rgba(183,146,78,.35); }

.kc-hero-content { position: relative; z-index: 1; }

.kc-hero-label {
  font-family: var(--sy-font-text);
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--kc-emerald); margin-bottom: .4rem;
}

/* Divisores dorados */
.kc-hero-divider-top,
.kc-hero-divider-mid {
  display: flex; align-items: center; justify-content: center; margin: .8rem auto; width: 100%;
}
.kc-hero-divider-top span,
.kc-hero-divider-mid span {
  display: block; width: min(160px, 40vw); height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(183,146,78,.5) 50%, transparent 100%);
}

/* Retrato principal */
.kc-hero-portrait-wrap {
  display: flex; align-items: center; justify-content: center;
  margin: .6rem auto 1rem;
}
.kc-hero-portrait-frame {
  width: min(220px, 58vw);
  height: min(280px, 74vw);
  border-radius: 50% 50% 46% 46% / 55% 55% 45% 45%;
  overflow: hidden;
  border: 2px solid rgba(183,146,78,.5);
  box-shadow:
    0 0 0 6px rgba(168,190,138,.12),
    0 0 0 8px rgba(183,146,78,.08),
    0 8px 40px rgba(0,0,0,.12);
  position: relative;
}
.kc-hero-portrait-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(248,245,236,.15) 100%);
  pointer-events: none;
}
.kc-hero-portrait-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.kc-hero-ornament {
  display: block; color: rgba(183,146,78,.5); font-size: 1rem;
  margin-bottom: .3rem;
  animation: kc-ornament-glow 3s ease-in-out infinite;
}
@keyframes kc-ornament-glow {
  0%,100% { opacity:.45; } 50% { opacity:.9; }
}

.kc-hero-title {
  font-family: var(--sy-font-script); font-weight: 400;
  font-size: clamp(2.6rem, 10vw, 4.5rem);
  color: var(--kc-emerald-deep);
  margin-bottom: .2rem;
  text-shadow: 0 1px 12px rgba(183,146,78,.15);
}

.kc-hero-subtitle {
  font-family: var(--sy-font-text); font-style: italic;
  font-size: clamp(.85rem, 3vw, 1.05rem);
  color: rgba(82,107,63,.8); margin-bottom: .8rem;
}

.kc-hero-date {
  font-family: var(--sy-font-text);
  font-size: .92rem; letter-spacing: .1em;
  color: var(--kc-text); margin-bottom: .2rem;
}
.kc-hero-venue {
  font-family: var(--sy-font-text);
  font-size: .82rem; color: var(--kc-text-muted); letter-spacing: .06em;
}

.kc-scroll-hint {
  font-family: var(--sy-font-text);
  color: rgba(183,146,78,.5); letter-spacing: .12em;
}

/* ════════════════════
   SECCIONES PRINCIPALES — Ivory/Sage
   ════════════════════ */
#kc-countdown         { background: #EEEBDf; border-top: 1px solid rgba(183,146,78,.15); border-bottom: 1px solid rgba(183,146,78,.15); }
#kc-narrative         { background: var(--kc-ivory); }
#kc-event-info        { background: #F0EDE3; }
#kc-itinerary         { background: var(--kc-ivory); }
#kc-protocol-social   { background: #F0EDE3; }
#kc-dresscode         { background: var(--kc-ivory); }
#kc-gallery {
  background: linear-gradient(175deg, #EBE8DC 0%, #F0EDE3 55%, #E8E5D8 100%);
  position: relative;
  overflow: hidden;
}
/* Champagne hairline top rule */
#kc-gallery::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(183,146,78,.35) 30%, rgba(183,146,78,.55) 50%, rgba(183,146,78,.35) 70%, transparent 100%);
  pointer-events: none;
}
/* Sage botanical glow — bottom atmospheric */
#kc-gallery::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 70%; height: 180px;
  background: radial-gradient(ellipse at center bottom, rgba(168,190,138,.1) 0%, transparent 70%);
  pointer-events: none;
}

/* ── MEMORY WALL TYPOGRAPHY ── */
.kc-memory-eyebrow {
  font-family: var(--sy-font-text);
  font-size: .65rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--kc-accent);
  text-align: center;
  margin-bottom: .4rem;
  display: block;
}
.kc-memory-subtitle {
  font-family: var(--sy-font-text);
  font-size: .88rem;
  font-style: italic;
  color: var(--kc-text-muted);
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 320px;
  line-height: 1.65;
}

/* ── WALL LAYOUT — MOBILE FIRST ── */
.kc-memory-wall {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* ── MEMORY CARD BASE ── */
.kc-memory-card {
  background: rgba(250,248,243,.95);
  border: 1px solid rgba(183,146,78,.2);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 2px 8px rgba(0,0,0,.05),
    0 8px 28px rgba(0,0,0,.07),
    inset 0 1px 0 rgba(255,255,255,.8);
  transition: transform .4s cubic-bezier(.22,.68,0,1.2), box-shadow .4s;
}
.kc-memory-card:hover {
  transform: translateY(-5px) rotate(.3deg);
  box-shadow:
    0 4px 12px rgba(0,0,0,.07),
    0 18px 44px rgba(0,0,0,.13);
}
/* Champagne inner top accent */
.kc-memory-card::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(183,146,78,.55), transparent);
  pointer-events: none;
  z-index: 3;
}
/* Subtle emerald corner shadow */
.kc-memory-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle at bottom right, rgba(53,84,45,.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ── PHOTO WRAP ── */
.kc-memory-photo-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}
.kc-memory-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s cubic-bezier(.22,.68,0,1.05);
}
.kc-memory-card:hover .kc-memory-photo {
  transform: scale(1.06);
}

/* ── CAPTION ── */
.kc-memory-caption {
  font-family: var(--sy-font-text);
  font-size: .9rem;
  font-style: italic;
  color: var(--kc-text-muted);
  text-align: center;
  padding: .65rem 1rem .6rem;
  letter-spacing: .02em;
  line-height: 1.4;
}

/* ── FEATURED CARD ── */
.kc-memory-card--featured .kc-memory-photo-wrap {
  aspect-ratio: 3 / 4;
}
.kc-memory-card--featured .kc-memory-caption {
  font-size: 1rem;
  padding: .8rem 1.1rem .65rem;
  color: var(--kc-text);
}

/* ── XV SEAL ── */
.kc-memory-seal {
  position: absolute;
  top: .8rem; right: .8rem;
  width: 38px; height: 38px;
  background: var(--kc-emerald-deep);
  border: 1.5px solid rgba(215,183,109,.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sy-font-text);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--kc-gold);
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 2px 10px rgba(0,0,0,.25), 0 0 0 3px rgba(183,146,78,.1);
}

/* ── THUMBNAIL GRID ── */
.kc-memory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.kc-memory-grid .kc-memory-card { border-radius: 14px; }
.kc-memory-grid .kc-memory-photo-wrap { aspect-ratio: 1 / 1; }
.kc-memory-grid .kc-memory-caption { font-size: .78rem; padding: .5rem .8rem .45rem; }

/* ── DESKTOP: Asymmetric editorial wall ── */
@media (min-width: 640px) {
  .kc-memory-wall {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 1rem;
    align-items: start;
  }
  .kc-memory-card--featured { grid-row: 1; }
  .kc-memory-grid { gap: .85rem; }
}
@media (min-width: 900px) {
  .kc-memory-wall { grid-template-columns: 1.25fr 1fr; gap: 1.25rem; }
  .kc-memory-grid { grid-template-columns: 1fr 1fr; }
  .kc-memory-grid .kc-memory-photo-wrap { aspect-ratio: 4/3; }
}
#kc-gifts             { background: var(--kc-ivory); }
#kc-trivia            { background: #F0EDE3; }
#kc-rsvp              { background: var(--kc-emerald-deep); }
#kc-ticket            { background: #1a2e16; }
#kc-capture           { background: var(--kc-ivory); }
#kc-secret            { background: #F0EDE3; }
#kc-footer            { background: var(--kc-emerald-deep); border-top: 1px solid rgba(215,183,109,.15); }

/* ── COUNTDOWN CAPSULAS ── */
#kc-countdown { text-align: center; }
#kc-countdown .kc-section-title { color: var(--kc-text); }
#kc-countdown .kc-section-title em { color: var(--kc-accent); }
.kc-countdown-grid { gap: .75rem; justify-content: center; margin: 1.5rem auto; }
.kc-unit {
  background: var(--kc-surface);
  border: 1px solid rgba(183,146,78,.28);
  border-radius: 18px;
  padding: 1.2rem .9rem .75rem;
  min-width: 74px;
  box-shadow: 0 2px 18px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,.55);
  position: relative;
  overflow: hidden;
}
.kc-unit::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 36px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(183,146,78,.7), transparent);
  border-radius: 0 0 2px 2px;
  pointer-events: none;
}
.kc-num {
  font-family: var(--sy-font-text);
  font-weight: 300;
  font-size: clamp(2.2rem, 7vw, 3rem);
  line-height: 1;
  color: var(--kc-emerald-deep);
  display: block;
}
.kc-unit-label {
  display: block;
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--kc-accent);
  margin-top: .45rem;
}

/* ── NARRATIVA ── */
.kc-narrative-inner { text-align: center; }
.kc-narrative-ornament {
  font-size: 2rem; color: var(--kc-accent); opacity: .6; margin-bottom: .5rem;
  font-family: var(--sy-font-text);
}
.kc-narrative-quote {
  font-family: var(--sy-font-text); font-style: italic;
  font-size: clamp(1rem, 3.5vw, 1.22rem); line-height: 1.8;
  color: rgba(30,37,25,.7);
  border-left: 2px solid rgba(183,146,78,.4);
  padding-left: 1.2rem; margin: 1.2rem auto; max-width: 480px; text-align: left;
}
.kc-narrative-firma {
  font-family: var(--sy-font-script); font-size: 1.4rem; color: var(--kc-emerald);
}

/* ── FAMILIA — PHOTO CARDS ── */
.kc-familia-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.kc-padrinos-grid { grid-template-columns: minmax(0, 1fr); }
.kc-familia-pair-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  min-width: 0;
}
.kc-familia-column { min-width: 0; }
#kc-protocol-social .kc-familia-column .kc-section-title {
  margin: 0 0 1rem;
  text-align: center;
}
.kc-familia-column .kc-familia-grid { margin-top: 0; }

/* One portrait remains centered instead of stranded in the first column. */
.kc-familia-grid > .kc-familia-card:only-child {
  grid-column: 1 / -1;
  width: min(100%, 22rem);
  justify-self: center;
}

/* An odd final card stays centered on two-column desktop layouts. */
.kc-padrinos-grid .kc-familia-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: min(100%, 22rem);
  max-width: 22rem;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .kc-familia-grid,
  .kc-padrinos-grid,
  .kc-corte-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kc-familia-grid > .kc-familia-card--photo {
    width: min(100%, 22rem);
    justify-self: center;
  }
}

@media (max-width: 599px) {
  .kc-familia-grid > .kc-familia-card--photo {
    width: min(100%, 20rem);
    justify-self: center;
  }
  .kc-familia-grid > .kc-familia-card:only-child,
  .kc-padrinos-grid .kc-familia-card:last-child:nth-child(odd) {
    width: min(100%, 20rem);
    max-width: 20rem;
    justify-self: center;
  }
}

/* ── Base card ── */
.kc-familia-card {
  background: var(--kc-surface);
  min-width: 0;
  border: 1px solid rgba(183,146,78,.2);
  border-radius: 16px;
  padding: 1rem .85rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  transition: border-color .3s, box-shadow .3s;
  box-shadow: 0 2px 14px rgba(0,0,0,.05);
}
.kc-familia-card:hover {
  border-color: rgba(183,146,78,.42);
  box-shadow: 0 6px 22px rgba(0,0,0,.09);
}

/* ── Portrait cards (with photo) — image-first, edge-to-edge ── */
.kc-familia-card--photo {
  padding: 0;
  overflow: hidden;
  gap: 0;
  align-items: stretch;
}
.kc-familia-photo-wrap {
  width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 0;
  border: none;
  box-shadow: none;
  flex-shrink: 0;
  position: relative;
}
/* Subtle gold hairline at bottom of image */
.kc-familia-photo-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(183,146,78,.25);
  pointer-events: none;
}
.kc-familia-photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; display: block; }
.kc-familia-photo--padrinos { object-position: 50% 40%; }
.kc-familia-photo--damas { object-position: 50% 50%; }

/* Text area below portrait image */
.kc-familia-card--photo .kc-familia-nombre {
  margin-top: .65rem;
  padding: 0 .65rem;
}
.kc-familia-card--photo .kc-familia-rol {
  padding: 0 .65rem;
  margin-bottom: .75rem;
}

/* ── No-photo cards — elegant placeholder ── */
.kc-familia-card--nophoto {
  min-height: 180px;
  justify-content: center;
  gap: .5rem;
}
.kc-familia-icon-area {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(168,190,138,.1);
  border: 1px solid rgba(183,146,78,.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Court of Honor — landscape group photos ── */
.kc-familia-card--damas.kc-familia-card--photo .kc-familia-photo-wrap {
  aspect-ratio: 4 / 3;
}

/* ── Typography ── */
.kc-familia-nombre {
  font-family: var(--sy-font-text);
  font-size: .95rem;
  color: var(--kc-text);
  font-weight: 400;
  line-height: 1.3;
}
.kc-familia-rol {
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #465D38;
  line-height: 1.45;
}
.kc-section-title--padrinos { margin-top: 3rem; }

/* ── GALLERY ORNAMENT SVG ── */
.kc-gallery-ornament {
  display: flex;
  justify-content: center;
  margin: .6rem auto 1rem;
  pointer-events: none;
}
.kc-gallery-ornament svg { opacity: 0; transition: opacity .8s ease; } /* kc-reveal manages reveal */

/* ── SCROLL REVEAL — CSS-only (IntersectionObserver en index.html) ── */
.kc-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .65s cubic-bezier(.22,.68,0,1.05),
    transform .65s cubic-bezier(.22,.68,0,1.15);
  transition-delay: var(--kc-reveal-delay, 0s);
}
.kc-reveal.kc-revealed {
  opacity: 1;
  transform: translateY(0);
}
.kc-gallery-ornament svg.kc-revealed { opacity: 1; }

/* ── CARDS ── */
.kc-card {
  background: var(--kc-surface);
  border: 1px solid rgba(183,146,78,.18); border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: border-color .3s, transform .25s;
}
.kc-card:hover { border-color: rgba(183,146,78,.35); transform: translateY(-2px); }
.kc-card-time { color: var(--kc-emerald); }

/* ── ITINERARIO — TIMELINE CEREMONIAL ── */
#kc-itinerary { padding-bottom: 3.5rem; }

.kc-itinerary-toggle {
  background: transparent;
  border: 1px solid rgba(183,146,78,.3);
  border-radius: 99px;
  padding: .5rem 1.4rem;
  display: inline-flex;
  margin: 0 auto 1rem;
  font-family: var(--sy-font-text);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--kc-emerald);
  width: auto;
}
.kc-itinerary-toggle-wrap { display: flex; flex-direction: column; align-items: center; }
.kc-itinerary-body { width: 100%; }

/* ── Timeline ── */
.kc-timeline {
  list-style: none;
  padding: .5rem 0 .5rem 0;
  position: relative;
  margin-top: .5rem;
}
/* Vertical champagne connector line */
.kc-timeline::before {
  content: '';
  position: absolute;
  left: 68px;
  top: 1.8rem;
  bottom: 1.8rem;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(183,146,78,.4) 8%,
    rgba(183,146,78,.4) 92%,
    transparent 100%
  );
  pointer-events: none;
}
/* Override core-structure.css grid */
.kc-timeline li {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 0 1.1rem;
  padding: 1.1rem 0;
  position: relative;
  align-items: start;
}
/* Diamond connector dot */
.kc-timeline li::before {
  content: '';
  position: absolute;
  left: 62px;
  top: 1.4rem;
  width: 13px;
  height: 13px;
  background: var(--kc-ivory);
  border: 1.5px solid var(--kc-gold);
  border-radius: 3px;
  transform: rotate(45deg);
  z-index: 1;
  pointer-events: none;
}
.kc-tl-time {
  font-family: var(--sy-font-text);
  font-size: .78rem;
  font-weight: 600;
  color: var(--kc-accent);
  letter-spacing: .04em;
  text-align: right;
  padding-top: 1px;
  padding-right: .4rem;
  line-height: 1.4;
}
.kc-tl-label {
  font-family: var(--sy-font-text);
  font-size: .97rem;
  color: var(--kc-text);
  line-height: 1.45;
  padding-left: .6rem;
}

/* ── DRESS CODE ── */
.kc-dc-card { background:var(--kc-surface); border-color:rgba(183,146,78,.18); }
.kc-dc-card h4 { color:var(--kc-text); }

/* ── GALLERY ── */
.kc-gal-card { border-color: rgba(183,146,78,.2); border-radius:16px; box-shadow:0 2px 12px rgba(0,0,0,.08); }
.kc-gal-placeholder { background: #E8E5D9; }
.kc-gal-placeholder-inner { color: var(--kc-text-muted); }
.kc-dot-active { background: var(--kc-accent); }
.kc-gal-hint { color: var(--kc-text-muted); }

/* ── GIFTS ── */
.kc-gifts-card { background:var(--kc-surface); border-color:rgba(183,146,78,.18); box-shadow:0 2px 12px rgba(0,0,0,.06); }
.kc-gifts-card h3 { color:var(--kc-text-muted); }
.kc-clabe-label { color:var(--kc-emerald); }
.kc-clabe-toggle-btn { background:var(--kc-surface); border-color:rgba(183,146,78,.2); color:var(--kc-text); font-family:var(--sy-font-text); }
.kc-clabe-box { background:rgba(0,0,0,.03); border-color:rgba(183,146,78,.15); }

/* ── RSVP — vuelve a oscuro para contraste elegante ── */
#kc-rsvp .kc-section-title { color: var(--kc-ivory); }
#kc-rsvp .kc-section-title em { color: var(--kc-gold); }
#kc-rsvp .kc-rsvp-deadline { color: #F0E5CA; font-size: 1rem; font-weight: 500; line-height: 1.5; }

.kc-rsvp-card {
  background: rgba(248,245,236,.06);
  border: 1px solid rgba(215,183,109,.2); border-radius: 16px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.kc-field label { font-family:var(--sy-font-text); font-size:.9rem; color:rgba(248,245,236,.7); }
.kc-field input,.kc-field select {
  background:rgba(8,14,7,.6); border-color:rgba(215,183,109,.25);
  color:var(--kc-ivory); font-family:var(--sy-font-text); border-radius:8px;
}
.kc-field input:focus,.kc-field select:focus { border-color:var(--kc-gold); }
.kc-radio-label span { font-family:var(--sy-font-text); font-size:.95rem; color:var(--kc-ivory); }

/* ── BUTTONS ── */
.kc-btn-primary {
  background: linear-gradient(135deg,#D7B76D 0%,#B7924E 100%);
  color: #1E2519; font-family:var(--sy-font-text);
  letter-spacing:.1em; font-size:.9rem; font-weight:500;
  border-radius:8px; min-height:44px;
}
.kc-btn-primary:hover { opacity:.88; transform:translateY(-1px); }
.kc-btn-outline {
  border-color:rgba(183,146,78,.4); color:var(--kc-emerald);
  font-family:var(--sy-font-text); letter-spacing:.06em;
  border-radius:8px; min-height:40px;
}
.kc-btn-outline:hover { border-color:var(--kc-accent); background:rgba(183,146,78,.07); }
.kc-btn-secondary { border-color:rgba(183,146,78,.25); color:var(--kc-text); font-family:var(--sy-font-text); }

/* ── TICKET ── */
#kc-ticket .kc-section-title { color: var(--kc-ivory); }
#kc-ticket .kc-section-title em { color: var(--kc-gold); }
.kc-ticket-card {
  background: linear-gradient(160deg,rgba(36,53,31,.92) 0%,rgba(8,14,7,.97) 100%);
  border: 1px solid rgba(215,183,109,.28); border-radius:18px;
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  box-shadow: 0 8px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(215,183,109,.1);
}
.kc-ticket-label { color:var(--kc-gold); letter-spacing:.2em; font-family:var(--sy-font-text); }
.kc-ticket-divider { border-color:rgba(215,183,109,.2); }
.kc-ticket-guest-label { color:var(--kc-gold); font-family:var(--sy-font-text); }
.kc-ticket-brand { color:rgba(215,183,109,.4); font-family:var(--sy-font-text); letter-spacing:.15em; }

/* ── STANDALONE OVERLAYS ── */
.kc-standalone-overlay { background: var(--kc-emerald-deep); }
.kc-standalone-overlay .kc-ticket-card { /* hereda estilos de .kc-ticket-card */ }

/* ── AUDIO TOGGLE ── */
.kc-audio-toggle {
  background:rgba(248,245,236,.92); border-color:rgba(183,146,78,.3);
  box-shadow:0 4px 20px rgba(0,0,0,.15); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
}
.kc-audio-bars span { background: var(--kc-emerald); }
.kc-audio-icon { color: var(--kc-emerald-deep); }

/* ── FOOTER ── */
.kc-footer-dedication,.kc-footer-date { font-family:var(--sy-font-text); color:rgba(248,245,236,.7); }
.kc-footer-brand { color:rgba(215,183,109,.4); font-family:var(--sy-font-text); letter-spacing:.15em; }
.kc-footer-brand:hover { color:var(--kc-gold); }

/* ── SECRET ── */
.kc-secret-trigger { border-color:rgba(183,146,78,.25); color:var(--kc-text-muted); font-family:var(--sy-font-text); }
.kc-secret-trigger:hover { border-color:rgba(183,146,78,.45); color:var(--kc-text); }
.kc-secret-msg { background:var(--kc-surface); border-color:rgba(183,146,78,.18); }
.kc-secret-msg blockquote { color:var(--kc-text-muted); }

/* ── CAPTURE ── */
#kc-capture { text-align:center; }

/* ── FOCUS ── */
:focus-visible { outline-color: var(--kc-accent); }

/* ════════════════════
   B6-B5 — GLOBAL MOBILE RHYTHM PASS
   ════════════════════ */

/* Section headings: always centered in main flow */
#kc-narrative .kc-section-title,
#kc-countdown .kc-section-title,
#kc-itinerary .kc-section-title,
#kc-event-info .kc-section-title,
#kc-protocol-social .kc-section-title,
#kc-dresscode .kc-section-title,
#kc-gallery .kc-section-title,
#kc-gifts .kc-section-title {
  text-align: center;
}

/* Section inner max-width consistent across all sections */
.kc-section-inner {
  max-width: 600px;
  padding-left: 0;
  padding-right: 0;
}

/* Section padding — tighter on 360px */
@media (max-width: 390px) {
  section { padding: 3rem .9rem; }
  .kc-familia-grid { gap: 1rem; }
  .kc-familia-card--nophoto { min-height: 150px; }
}

/* Tablet and desktop retain a deliberate two-column family composition. */
@media (min-width: 600px) {
  .kc-section-inner { max-width: 680px; }
  .kc-familia-grid { gap: 1rem; }
  .kc-familia-pair-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}
@media (min-width: 768px) {
  .kc-section-inner { max-width: 720px; }
  .kc-familia-grid,
  .kc-padrinos-grid,
  .kc-corte-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Gallery section heading */
#kc-gallery .kc-section-title { margin-bottom: 1.5rem; }

/* Dress code section — center theme label */
.kc-dc-theme { text-align: center; font-family: var(--sy-font-text); font-size: .88rem; }
.kc-dc-palette { justify-content: center; }

/* Cards (event-info / Dónde & Cuándo) — remove emoji-like card-icon reliance */
.kc-card-icon { display: none; } /* icons still in JS but they look dated — hide for now */
.kc-card { padding: 1.2rem; }
.kc-card-title {
  font-family: var(--sy-font-text);
  font-size: 1rem;
  font-weight: 400;
  color: var(--kc-text);
}
.kc-card-time {
  font-family: var(--sy-font-text);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--kc-emerald);
  letter-spacing: .04em;
}

/* Gifts section subtle fix */
#kc-gifts .kc-section-title { margin-bottom: 1.5rem; }

/* Footer rhythm */
#kc-footer { padding: 3.5rem 1rem; }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .kc-ff,.kc-pond-ripple,.kc-gate-cta::before,.kc-hero-ornament {
    animation: none !important;
  }
  .kc-unit::before { display: none; }
  /* CSS reveal: forzar visibilidad inmediata */
  .kc-reveal,
  .kc-gallery-ornament svg {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  /* B6-D reduced-motion overrides */
  #kc-rsvp-submit.is-forging { animation: none !important; }
  #kc-rsvp-form.kc-fading-out { transition: none !important; opacity: 0 !important; }
  #kc-ticket.kc-ticket-entering { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ═════════════════════════════════════════
   B6-D — RSVP/TICKET PREMIUM SKIN
   Princesa Esmeralda · Khal Calloway Studio
   ═════════════════════════════════════════ */

/* ── B6-D1: RSVP ROYAL SKIN ── */

/* Enhanced RSVP card — ceremonial chamber */
.kc-rsvp-card {
  background: rgba(36,53,31,.55);
  border: 1px solid rgba(215,183,109,.28);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 48px rgba(0,0,0,.32), inset 0 1px 0 rgba(215,183,109,.15);
  position: relative;
  overflow: hidden;
}
.kc-rsvp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 5%, rgba(215,183,109,.7) 40%, rgba(248,236,180,1) 50%, rgba(215,183,109,.7) 60%, transparent 95%);
  pointer-events: none;
}
.kc-rsvp-card::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(82,107,63,.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Field labels — uppercase champagne */
.kc-field > label {
  font-family: var(--sy-font-text);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: #E8D6A4;
  display: block;
  margin-bottom: .5rem;
}
.kc-optional-badge {
  font-size: .65rem;
  letter-spacing: .1em;
  color: rgba(215,183,109,.45);
  text-transform: uppercase;
  margin-left: .4rem;
  vertical-align: middle;
}

/* Text inputs — premium dark glass */
.kc-field input[type="text"] {
  background: rgba(8,14,7,.6);
  border: 1px solid rgba(215,183,109,.22);
  border-radius: 10px;
  color: var(--kc-ivory);
  font-family: var(--sy-font-text);
  font-size: 1rem;
  padding: .75rem 1rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .25s, box-shadow .25s;
  -webkit-appearance: none;
}
.kc-field input[type="text"]:focus-visible {
  border-color: var(--kc-gold);
  box-shadow: 0 0 0 3px rgba(215,183,109,.18);
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
.kc-field input[type="text"]::placeholder {
  color: rgba(248,245,236,.68);
  font-style: italic;
}

/* Field validation errors */
.kc-field-error {
  font-family: var(--sy-font-text);
  font-size: .78rem;
  color: rgba(255,180,120,.85);
  letter-spacing: .04em;
  margin-top: .35rem;
  display: block;
}

/* Dynamic number allocation — no hardcoded guest-count ceiling */
#kc-field-passes {
  background: rgba(8,14,7,.6);
  border: 1px solid rgba(215,183,109,.22);
  border-radius: 10px;
  color: var(--kc-ivory);
  font-family: var(--sy-font-text);
  font-size: 1rem;
  letter-spacing: .04em;
  padding: .75rem 1rem;
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  appearance: auto;
  -webkit-appearance: auto;
  transition: border-color .25s, box-shadow .25s;
}
#kc-field-passes:focus-visible {
  border-color: var(--kc-gold);
  box-shadow: 0 0 0 3px rgba(215,183,109,.18);
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
#kc-field-passes:disabled { opacity: .72; cursor: not-allowed; }
.kc-field-hint { display: block; color: rgba(248,245,236,.92); font-size: 1rem; font-weight: 500; line-height: 1.45; margin-top: .4rem; }
.kc-field-hint strong { color: #F2D992; font-weight: 600; }
.kc-field-label { display: block; color: #E8D6A4; font: 600 .9rem/1.4 var(--sy-font-text); letter-spacing: .06em; margin: 0 0 .5rem; }
.kc-radio-label:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* Companion name inputs */
.kc-companion-name {
  background: rgba(8,14,7,.55);
  border: 1px solid rgba(215,183,109,.18);
  border-radius: 10px;
  color: var(--kc-ivory);
  font-family: var(--sy-font-text);
  font-size: .9rem;
  padding: .65rem .9rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .25s;
  -webkit-appearance: none;
}
.kc-companion-name:focus { border-color: var(--kc-gold); outline: none; box-shadow: 0 0 0 3px rgba(215,183,109,.15); }

/* Custom radio choice cards */
.kc-radio-group {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  margin-top: .3rem;
}
.kc-radio-label {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex: 1;
  min-width: 130px;
  background: rgba(8,14,7,.5);
  border: 1px solid rgba(215,183,109,.18);
  border-radius: 10px;
  padding: .8rem 1rem;
  cursor: pointer;
  transition: border-color .25s, background .25s, box-shadow .25s;
  position: relative;
}
.kc-radio-label:hover { border-color: rgba(215,183,109,.45); background: rgba(215,183,109,.07); }
/* Visually hidden native radio — preserved for a11y/validation */
.kc-radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  margin: 0; padding: 0;
  pointer-events: none;
}
/* Custom radio dot */
.kc-radio-label::before {
  content: '';
  flex-shrink: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(215,183,109,.45);
  background: transparent;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
/* :has() — checked state. Fallback: JS adds .kc-radio-checked */
.kc-radio-label:has(input:checked),
.kc-radio-label.kc-radio-checked {
  border-color: var(--kc-gold);
  background: rgba(215,183,109,.1);
  box-shadow: 0 0 0 2px rgba(215,183,109,.18);
}
.kc-radio-label:has(input:checked)::before,
.kc-radio-label.kc-radio-checked::before {
  background: var(--kc-gold);
  border-color: var(--kc-gold);
  box-shadow: 0 0 0 3px rgba(215,183,109,.22);
}
.kc-radio-label span {
  font-family: var(--sy-font-text);
  font-size: .97rem;
  font-weight: 500;
  color: var(--kc-ivory);
  line-height: 1.3;
}

/* Submit button — royal gold gradient */
#kc-rsvp-submit {
  width: 100%;
  position: relative;
  overflow: hidden;
  font-family: var(--sy-font-text);
  font-size: 1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 500;
  background: linear-gradient(135deg, #D7B76D 0%, #B7924E 55%, #D7B76D 100%);
  background-size: 200% 100%;
  border: none;
  border-radius: 10px;
  color: #171A13;
  min-height: 52px;
  cursor: pointer;
  transition: background-position .5s, box-shadow .3s, transform .2s;
  margin-top: .5rem;
}
#kc-rsvp-submit:hover:not(:disabled) {
  background-position: 100% 0;
  box-shadow: 0 6px 24px rgba(183,146,78,.38);
  transform: translateY(-1px);
}
#kc-rsvp-submit:focus-visible { outline: 2px solid var(--kc-gold); outline-offset: 3px; }

/* ── B6-D2: CINEMATIC SUBMIT STATE ── */

/* Forging shimmer on button */
#kc-rsvp-submit.is-forging {
  background: linear-gradient(90deg, #B7924E 0%, #D7B76D 30%, #F5E09A 50%, #D7B76D 70%, #B7924E 100%);
  background-size: 300% 100%;
  animation: kc-forge-shimmer 1.6s linear infinite;
  color: #171A13;
  cursor: not-allowed;
  pointer-events: none;
}
@keyframes kc-forge-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Form graceful fade-out */
#kc-rsvp-form.kc-fading-out {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .42s ease, transform .42s ease;
  pointer-events: none;
}

/* Success message above ticket */
#kc-rsvp-success {
  font-family: var(--sy-font-text);
  font-size: 1rem;
  font-style: italic;
  color: var(--kc-sage);
  text-align: center;
  letter-spacing: .04em;
}

/* Ticket entrance animation */
#kc-ticket { transition: none; }
#kc-ticket.kc-ticket-entering {
  animation: kc-ticket-enter .65s cubic-bezier(.22,.68,0,1.05) both;
}
@keyframes kc-ticket-enter {
  from { opacity: 0; transform: translateY(28px) scale(.97); filter: blur(2px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
#kc-ticket .kc-section-title { color: var(--kc-ivory); }
#kc-ticket .kc-section-title em { color: var(--kc-gold); }

/* ── B6-D3: TICKET INLINE PREMIUM SKIN ── */

.kc-ticket-card {
  background: linear-gradient(155deg, rgba(36,53,31,.97) 0%, rgba(20,34,17,.99) 55%, rgba(8,14,7,1) 100%);
  border: 1px solid rgba(215,183,109,.32);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 8px 48px rgba(0,0,0,.5),
    0 0 0 1px rgba(215,183,109,.07),
    inset 0 1px 0 rgba(215,183,109,.2);
  position: relative;
  overflow: hidden;
}
/* Champagne top rule */
.kc-ticket-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent 5%, rgba(215,183,109,.65) 35%, rgba(248,240,185,1) 50%, rgba(215,183,109,.65) 65%, transparent 95%);
  pointer-events: none;
  z-index: 2;
}
/* Diagonal watermark */
.kc-ticket-card::after {
  content: 'MUESTRA · NO ACREDITA ACCESO';
  position: absolute;
  bottom: 3.5rem; left: 50%;
  transform: translateX(-50%) rotate(-18deg);
  font-family: var(--sy-font-text);
  font-size: .78rem;
  color: rgba(248,245,236,.04);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  letter-spacing: .05em;
}

/* Ticket field hierarchy */
.kc-ticket-label {
  font-family: var(--sy-font-text);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--kc-gold);
  display: block;
  margin-bottom: .35rem;
}
#kc-ticket-event-inline,
#kc-ticket-event {
  font-family: var(--sy-font-text);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--kc-ivory);
  letter-spacing: .06em;
  margin: 0 0 .2rem;
}
#kc-ticket-hosts-inline,
#kc-ticket-hosts {
  font-family: var(--sy-font-text);
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(248,245,236,.9);
  display: block;
  line-height: 1.15;
}
#kc-ticket-date-inline,
#kc-ticket-date {
  font-family: var(--sy-font-text);
  font-size: .82rem;
  color: var(--kc-lily);
  letter-spacing: .08em;
}
#kc-ticket-venue-inline,
#kc-ticket-venue {
  font-family: var(--sy-font-text);
  font-size: .78rem;
  color: var(--kc-lily);
  letter-spacing: .06em;
}
.kc-ticket-divider { border-color: rgba(215,183,109,.18); margin: .9rem 0; }
.kc-ticket-guest-label {
  font-family: var(--sy-font-text);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(248,245,236,.86);
  display: block;
  margin-bottom: .3rem;
}
#kc-ticket-guest-inline,
#kc-ticket-guest {
  font-family: var(--sy-font-text);
  font-size: clamp(1.45rem, 6vw, 2rem);
  font-weight: 500;
  color: var(--kc-ivory);
  display: block;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
#kc-ticket-passes-inline,
#kc-ticket-passes {
  font-family: var(--sy-font-text);
  font-size: .85rem;
  color: var(--kc-lily);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.kc-ticket-code {
  font-family: var(--sy-font-text);
  font-size: .58rem;
  letter-spacing: .08em;
  color: rgba(248,245,236,.72);
  word-break: break-all;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.kc-ticket-brand {
  font-family: var(--sy-font-text);
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(248,245,236,.82);
  display: block;
  margin-top: .3rem;
}
/* Standalone link button */
#kc-ticket-standalone-link {
  font-family: var(--sy-font-text);
  font-size: .7rem;
  letter-spacing: .1em;
  color: rgba(215,183,109,.6);
  border-color: rgba(215,183,109,.2);
  border-radius: 99px;
  padding: .45rem 1.1rem;
  display: inline-block;
  margin-top: .5rem;
  text-decoration: none;
  transition: color .25s, border-color .25s;
}
#kc-ticket-standalone-link:hover { color: var(--kc-gold); border-color: rgba(215,183,109,.5); }
#kc-ticket-map-link,
#kc-ticket-map-link-inline {
  font-family: var(--sy-font-text);
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--kc-lily);
  border-color: rgba(200,217,166,.55);
  border-radius: 99px;
  padding: .45rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: .35rem .2rem 0;
  text-decoration: none;
}

/* QR premium frame */
.kc-ticket-qr-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: max-content;
  max-width: 100%;
  height: auto;
  padding: 8px;
  background: #fff;
  border-radius: 4px;
  position: relative;
  margin: .75rem auto;
  overflow: visible;
}
.kc-ticket-qr-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(215,183,109,.3);
  border-radius: 10px;
  pointer-events: none;
}
/* Champagne corner brackets */
.kc-ticket-qr-container::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 13px;
  background:
    linear-gradient(to right,  rgba(215,183,109,.6) 2px, transparent 2px) top left    / 14px 14px no-repeat,
    linear-gradient(to bottom, rgba(215,183,109,.6) 2px, transparent 2px) top left    / 14px 14px no-repeat,
    linear-gradient(to left,   rgba(215,183,109,.6) 2px, transparent 2px) top right   / 14px 14px no-repeat,
    linear-gradient(to bottom, rgba(215,183,109,.6) 2px, transparent 2px) top right   / 14px 14px no-repeat,
    linear-gradient(to right,  rgba(215,183,109,.6) 2px, transparent 2px) bottom left / 14px 14px no-repeat,
    linear-gradient(to top,    rgba(215,183,109,.6) 2px, transparent 2px) bottom left / 14px 14px no-repeat,
    linear-gradient(to left,   rgba(215,183,109,.6) 2px, transparent 2px) bottom right/ 14px 14px no-repeat,
    linear-gradient(to top,    rgba(215,183,109,.6) 2px, transparent 2px) bottom right/ 14px 14px no-repeat;
  pointer-events: none;
}
.kc-ticket-qr-container img,
.kc-ticket-qr-container canvas {
  display: block;
  max-width: none;
  height: auto;
  border-radius: 0;
  position: relative;
  z-index: 1;
}
.kc-qr-error { color: #1E2519; font: 600 .85rem/1.4 var(--sy-font-text); padding: .5rem; }
.kc-qr-recovery-link { color: #24351F; font: 600 .85rem/1.4 var(--sy-font-text); padding: .25rem .5rem; }
.kc-ticket-sigil { width: 46px; height: 46px; object-fit: contain; margin: .15rem auto .5rem; }
.kc-ticket-watermark {
  color: var(--kc-ivory);
  border-top: 1px solid rgba(215,183,109,.28);
  border-bottom: 1px solid rgba(215,183,109,.28);
  font: 600 .62rem/1.5 var(--sy-font-text);
  letter-spacing: .18em;
  padding: .3rem .2rem;
  margin: .4rem 0;
}

/* ── B6-D4: STANDALONE POSTAL MODE ── */

#kc-ticket-overlay {
  background:
    radial-gradient(ellipse 85% 55% at 50% 20%, rgba(82,107,63,.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(36,53,31,.4) 0%, transparent 60%),
    #24351F;
  display: block;
  min-height: 100dvh;
  padding: 1rem;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
.kc-standalone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  width: 100%;
  max-width: 420px;
  min-height: calc(100dvh - 2rem);
  margin: 0 auto;
}
/* Postal eyebrow label */
.kc-standalone-inner > .kc-ticket-card { width: 100%; }
.kc-standalone-back {
  font-family: var(--sy-font-text);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .65rem 1.6rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(215,183,109,.3);
  border-radius: 99px;
  background: transparent;
  color: rgba(215,183,109,.65);
  cursor: pointer;
  transition: border-color .25s, color .25s, box-shadow .25s;
}
.kc-standalone-back:hover { border-color: var(--kc-gold); color: var(--kc-gold); box-shadow: 0 0 12px rgba(215,183,109,.15); }

#kc-map-overlay {
  display: block;
  min-height: 100dvh;
  padding: 1rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  background:
    radial-gradient(ellipse 85% 50% at 50% 0%, rgba(168,190,138,.16) 0%, transparent 62%),
    #F1EBDD;
  color: #1E2519;
}
#kc-map-overlay .kc-standalone-inner {
  max-width: 720px;
  min-height: calc(100dvh - 2rem);
  text-align: center;
}
#kc-map-overlay .kc-demo-stamp {
  color: #3F5A32;
  font: 600 .78rem/1.35 var(--sy-font-text);
  letter-spacing: .14em;
}
#kc-map-title {
  color: #1E2519;
  font-family: var(--sy-font-text);
  font-size: clamp(1.8rem, 7vw, 2.6rem);
}
#kc-map-title:focus {
  outline: 2px solid #3F5A32;
  outline-offset: 4px;
  border-radius: 2px;
}
.kc-map-locations { display: grid; grid-template-columns: 1fr; gap: .8rem; width: 100%; }
.kc-location-card {
  min-width: 0;
  text-align: left;
  padding: 1.15rem;
  background: #FBF8EF;
  color: #1E2519;
  border: 1px solid rgba(63,90,50,.38);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(31,49,26,.08);
}
.kc-location-card p { color: #35432F; font-size: 1rem; line-height: 1.5; }
.kc-location-card h2 { color: #1E2519; font: 600 1.15rem/1.3 var(--sy-font-text); letter-spacing: .02em; }
.kc-location-card .kc-location-overline {
  color: #3F5A32;
  font: 600 .78rem/1.35 var(--sy-font-text);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.kc-location-card .kc-location-time {
  color: #24351F;
  font: 600 1.25rem/1.3 var(--sy-font-text);
  margin: .25rem 0;
}
#kc-map-overlay .kc-demo-note--light {
  color: #1E2519;
  background: #EAE5D7;
  border-color: rgba(63,90,50,.38);
}
#kc-map-overlay .kc-standalone-back {
  color: #24351F;
  background: #FBF8EF;
  border-color: rgba(63,90,50,.55);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
}
#kc-map-overlay .kc-standalone-back:hover {
  color: #1E2519;
  border-color: #3F5A32;
  background: #F4F1E8;
  box-shadow: 0 0 0 2px rgba(63,90,50,.12);
}
#kc-map-overlay .kc-standalone-back:focus-visible,
#kc-map-overlay .kc-location-card .kc-btn:focus-visible {
  outline: 3px solid #3F5A32;
  outline-offset: 3px;
}
#kc-map-overlay .kc-location-card .kc-btn-outline {
  color: #24351F;
  border-color: #526B3F;
  background: transparent;
}
#kc-map-overlay .kc-location-card .kc-btn-outline:hover {
  color: #1E2519;
  border-color: #3F5A32;
  background: #EAE5D7;
}
@media (min-width: 600px) {
  .kc-map-locations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── B6-D5: GUARDAR PASE BUTTON ── */

.kc-ticket-share {
  margin-top: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
}
.kc-ticket-share-btn {
  font-family: var(--sy-font-text);
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: .65rem 1.8rem;
  border: 1px solid rgba(215,183,109,.38);
  border-radius: 99px;
  background: rgba(215,183,109,.06);
  color: var(--kc-gold);
  cursor: pointer;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.kc-ticket-share-btn:hover:not(:disabled) {
  background: rgba(215,183,109,.14);
  border-color: rgba(215,183,109,.6);
  box-shadow: 0 0 16px rgba(215,183,109,.2);
}
.kc-ticket-share-btn:disabled { opacity: .45; cursor: not-allowed; }
.kc-ticket-save-hint {
  font-family: var(--sy-font-text);
  font-size: .72rem;
  font-style: italic;
  color: rgba(248,245,236,.5);
  text-align: center;
  line-height: 1.55;
  max-width: 280px;
}

/* ── B6-D6: CAPTURE-CLEAN MODE ── */

body.kc-capturing #kc-audio-toggle { display: none !important; }

/* ── Demo truth, access states, and mobile-safe RSVP controls ── */
.kc-demo-note {
  width: min(100%, 42rem);
  margin: .65rem auto 1rem;
  padding: .75rem 1rem;
  border: 1px solid rgba(215,183,109,.4);
  border-radius: 8px;
  font: 500 1rem/1.55 var(--sy-font-text);
  text-align: center;
}
.kc-demo-note--dark { color: #F8F5EC; background: rgba(8,14,7,.78); }
.kc-demo-note--light { color: #1E2519; background: #F4F1E8; border-color: rgba(82,107,63,.35); }
.kc-demo-test-link {
  display: inline-block;
  margin-left: .3rem;
  color: #F5E8B8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.kc-demo-test-link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.kc-gal-caption {
  position: absolute;
  z-index: 3;
  inset-inline: 0;
  bottom: 0;
  margin: 0;
  padding: .7rem .85rem;
  color: #F8F5EC;
  background: rgba(8,14,7,.9);
  font: 500 .9rem/1.4 var(--sy-font-text);
  text-align: center;
  pointer-events: none;
}
.kc-ticket-card > * { position: relative; z-index: 1; }
.kc-ticket-card::after { pointer-events: none; }
.kc-ticket-watermark { text-align: center; }
.kc-rsvp-msg { color: #FFB4A1; border-color: rgba(255,180,161,.55); background: rgba(38,18,15,.82); }
#kc-rsvp-error { font-size: .95rem; line-height: 1.45; }
#kc-rsvp-submit:disabled { opacity: .72; cursor: not-allowed; box-shadow: none; transform: none; }
#kc-rsvp-submit.is-forging { -webkit-tap-highlight-color: transparent; }
.kc-rsvp-reset-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: .35rem auto .85rem;
  padding: .6rem 1rem;
  border: 1px solid rgba(82,107,63,.6);
  border-radius: 999px;
  color: #24351F;
  background: #F4F1E8;
  font: 600 .9rem/1.3 var(--sy-font-text);
}
.kc-rsvp-reset-demo:focus-visible { outline: 2px solid #3F5A32; outline-offset: 3px; }
.kc-ticket-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .7rem 1.35rem;
  font-size: 1rem;
  letter-spacing: .1em;
}
.kc-ticket-share-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.kc-ticket-save-hint { max-width: 34rem; color: rgba(248,245,236,.9); font-size: .9rem; }
.kc-ticket-save-hint a {
  display: inline-block;
  margin: .2rem .25rem;
  color: #F5E8B8;
  font-size: 1rem;
  font-style: normal;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .2em;
}
#kc-ticket-route-error { color: #F8F5EC; font: 500 1rem/1.55 var(--sy-font-text); text-align: center; }
#kc-ticket-route-error[hidden] { display: none !important; }
#kc-map-demo-note {
  color: #1E2519;
  background: #EAE5D7;
  border-color: rgba(63,90,50,.38);
  font-size: 1rem;
  line-height: 1.55;
}
#kc-map-ceremony-link,
#kc-map-reception-link { margin-top: .85rem; }

@media (max-width: 480px) {
  #kc-ticket-overlay,
  #kc-map-overlay { padding: .75rem; }
  .kc-standalone-inner,
  #kc-map-overlay .kc-standalone-inner { min-height: calc(100dvh - 1.5rem); }
  .kc-standalone-inner > .kc-ticket-card { padding: 1.25rem .9rem; }
  .kc-ticket-share { width: 100%; margin-top: .45rem; }
  .kc-ticket-share-btn { width: min(100%, 22rem); }
  .kc-map-locations { gap: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  #kc-rsvp-submit.is-forging { animation: none; }
  #kc-ticket.kc-ticket-entering { animation: none; }
  .kc-ticket-share-btn,
  .kc-standalone-back { transition: none; }
}

