/*!
 * Luxury Wedding Invitation 3D — estilos.
 */
:root {
  --lwi-ivory: #fbf7ef;
  --lwi-paper: #f6efe3;
  --lwi-cream: #efe4d1;
  --lwi-gold: #c29a4f;
  --lwi-gold-d: #94692a;
  --lwi-gold-l: #e6cf9c;
  --lwi-ink: #5b4730;
  --lwi-ink-soft: #8a7454;
  --lwi-script: 'Pinyon Script', 'Great Vibes', 'Snell Roundhand', cursive;
  --lwi-serif: 'Cormorant Garamond', 'Cormorant', 'Garamond', Georgia, serif;
  --lwi-col: 480px;
  --lwi-ease: cubic-bezier(.2, .7, .2, 1);
}

html.lwi-locked, html.lwi-locked body { overflow: hidden; height: 100%; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

.lwi-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 760px at 12% 8%, rgba(120, 86, 44, .55), transparent 62%),
    radial-gradient(900px 700px at 92% 92%, rgba(98, 70, 36, .5), transparent 60%),
    linear-gradient(160deg, #2b2014, #15100a 70%);
  background-attachment: fixed;
  color: var(--lwi-ink);
}
.lwi-backdrop { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.lwi-backdrop i {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 196, 120, .5), rgba(232, 196, 120, 0) 70%);
  filter: blur(2px); animation: lwi-float 18s ease-in-out infinite alternate;
}

.lwi-app {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--lwi-col);
  margin: 0 auto; min-height: 100vh;
  background: var(--lwi-ivory);
  font-family: var(--lwi-serif);
  color: var(--lwi-ink);
  overflow-x: hidden;
  overflow-x: clip;
  box-shadow: 0 0 0 1px rgba(214, 180, 112, .25), 0 30px 120px rgba(0, 0, 0, .55);
  -webkit-tap-highlight-color: transparent;
}
.lwi-app *, .lwi-app *::before, .lwi-app *::after { box-sizing: border-box; }
.lwi-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.lwi-app p, .lwi-app h1, .lwi-app h2, .lwi-app h3 { margin: 0; }

/* ---------- tipografía ---------- */
.lwi-script { font-family: var(--lwi-script); font-weight: 400; letter-spacing: 0; }
.lwi-gold-text {
  background: linear-gradient(100deg, #9a6d26 0%, #cfa75a 22%, #f3dfa2 40%, #c69a4b 58%, #a87b30 78%, #e2c27a 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  padding: .12em .32em; margin: -.12em -.32em;
  animation: lwi-gold 7s linear infinite;
}
.lwi-kicker {
  font-family: var(--lwi-serif); font-size: 12.5px; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase; color: var(--lwi-ink-soft);
}
.lwi-title { font-size: clamp(44px, 12.5vw, 60px); line-height: 1.15; display: inline-block; }

/* ---------- sobre 3D ---------- */
.lwi-envelope {
  position: fixed; top: 0; left: 50%; z-index: 60;
  width: 100%; max-width: var(--lwi-col); height: 100vh; height: 100dvh;
  transform: translateX(-50%);
  perspective: 1500px; perspective-origin: 50% 50%;
  overflow: hidden;
  background: #2a1f13;
  transition: opacity .9s ease, filter .9s ease;
}
.lwi-env-inner {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 50%, #fffbef 0%, #f6dd9c 22%, #d6aa55 52%, #9d7130 82%, #6d4c1f 100%);
}
.lwi-env-light {
  position: absolute; left: 50%; top: 50%; width: 140%; aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(.2); opacity: 0;
  background: radial-gradient(circle, #fff 0%, rgba(255, 246, 214, .95) 18%, rgba(255, 224, 150, .55) 38%, rgba(255, 214, 130, 0) 66%);
  transition: transform 1.6s cubic-bezier(.3, .6, .2, 1), opacity 1s ease;
}
.lwi-env-rays {
  position: absolute; left: 50%; top: 50%; width: 220%; aspect-ratio: 1;
  transform: translate(-50%, -50%); opacity: 0;
  background: repeating-conic-gradient(from 0deg, rgba(255, 246, 210, .55) 0deg 3deg, rgba(255, 246, 210, 0) 3deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 8%, transparent 52%); mask: radial-gradient(circle, #000 8%, transparent 52%);
  transition: opacity 1.2s ease;
}
.lwi-flap {
  position: absolute; inset: 0;
  transition: transform 1.7s cubic-bezier(.6, .02, .22, 1);
  will-change: transform;
}
.lwi-flap--top, .lwi-flap--bottom { filter: drop-shadow(0 3px 4px rgba(110, 80, 40, .26)); }
.lwi-flap--top { filter: drop-shadow(0 5px 6px rgba(110, 80, 40, .3)); }
.lwi-flap-face {
  position: absolute; inset: 0;
  background: var(--lwi-emboss, none) center / cover no-repeat, var(--lwi-paper);
}
.lwi-flap--top .lwi-flap-face { clip-path: polygon(-1% 0, 101% 0, 50% 50.6%); }
.lwi-flap--bottom .lwi-flap-face { clip-path: polygon(-1% 100%, 101% 100%, 50% 49.4%); }
.lwi-flap--left .lwi-flap-face { clip-path: polygon(0 -1%, 50.6% 50%, 0 101%); }
.lwi-flap--right .lwi-flap-face { clip-path: polygon(100% -1%, 49.4% 50%, 100% 101%); }
.lwi-flap--left .lwi-flap-face, .lwi-flap--right .lwi-flap-face { filter: brightness(.975); }
.lwi-flap--top { transform-origin: 50% 0; }
.lwi-flap--bottom { transform-origin: 50% 100%; }
.lwi-flap--left { transform-origin: 0 50%; }
.lwi-flap--right { transform-origin: 100% 50%; }

.lwi-env-shimmer {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: var(--lwi-mask, none) center / cover no-repeat; mask: var(--lwi-mask, none) center / cover no-repeat;
  background: linear-gradient(118deg, rgba(212, 166, 76, 0) 38%, rgba(212, 166, 76, .75) 46%, rgba(255, 238, 190, .95) 50%, rgba(212, 166, 76, .75) 54%, rgba(212, 166, 76, 0) 62%) 0 0 / 300% 300% no-repeat;
  animation: lwi-sweep 5.5s ease-in-out 1.2s infinite;
  opacity: .9;
}
.lwi-env-sparks { position: absolute; inset: 0; pointer-events: none; }
.lwi-spark, .lwi-burst {
  position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  background: radial-gradient(circle, #fffbe8 0 12%, rgba(255, 220, 140, .9) 22%, rgba(255, 220, 140, 0) 60%);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
}
.lwi-spark { opacity: 0; animation: lwi-twinkle 4.7s ease-in-out infinite; }
.lwi-burst {
  z-index: 5; pointer-events: none; transform: scale(0);
  animation: lwi-burst 1.4s cubic-bezier(.15, .7, .3, 1) forwards;
}

.lwi-seal {
  position: absolute; left: 50%; top: 50%; z-index: 4;
  width: min(38%, 172px); aspect-ratio: 1; padding: 0; border: 0; background: none;
  transform: translate(-50%, -50%); cursor: pointer; border-radius: 50%;
  filter: drop-shadow(0 6px 10px rgba(92, 64, 28, .38)) drop-shadow(0 1px 1px rgba(92, 64, 28, .3));
  transition: transform .9s cubic-bezier(.5, 0, .2, 1), opacity .8s ease;
  animation: lwi-breathe 3.2s ease-in-out infinite;
}
.lwi-seal svg { display: block; width: 100%; height: 100%; }
.lwi-seal:focus-visible { outline: 2px solid var(--lwi-gold); outline-offset: 6px; }
.lwi-seal-ring {
  position: absolute; inset: -6%; border-radius: 50%;
  border: 1.5px solid rgba(226, 190, 110, .9);
  animation: lwi-ring 2.6s ease-out infinite; pointer-events: none;
}
.lwi-env-hint {
  position: absolute; left: 0; right: 0; top: calc(50% + min(19%, 86px) + 22px); z-index: 4;
  text-align: center; font-family: var(--lwi-serif); font-style: italic; font-size: 17px;
  color: #9b7d4f; letter-spacing: .04em; text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
  animation: lwi-hint 2.6s ease-in-out infinite; transition: opacity .4s;
}

.lwi-envelope.is-pressed .lwi-seal { animation: none; transform: translate(-50%, -50%) scale(.9); transition-duration: .25s; }
.lwi-envelope.is-pressed .lwi-seal-ring, .lwi-envelope.is-pressed .lwi-env-hint { opacity: 0; animation: none; }
.lwi-envelope.is-pressed .lwi-env-shimmer { animation: lwi-sweep-fast 1s ease-in-out forwards; }
.lwi-envelope.is-opening .lwi-env-shimmer, .lwi-envelope.is-opening .lwi-env-sparks { opacity: 0; transition: opacity .3s; }
.lwi-envelope.is-opening .lwi-flap--top { transform: rotateX(-178deg); }
.lwi-envelope.is-opening .lwi-flap--bottom { transform: rotateX(178deg); transition-delay: .18s; }
.lwi-envelope.is-opening .lwi-flap--left { transform: rotateY(150deg); transition-delay: .1s; }
.lwi-envelope.is-opening .lwi-flap--right { transform: rotateY(-150deg); transition-delay: .1s; }
.lwi-envelope.is-opening .lwi-seal { transform: translate(-50%, -150%) scale(.82) rotate(-8deg); opacity: 0; transition: transform 1.2s cubic-bezier(.5, 0, .2, 1), opacity .9s ease .35s; }
.lwi-envelope.is-opening .lwi-env-light { opacity: 1; transform: translate(-50%, -50%) scale(1.6); }
.lwi-envelope.is-opening .lwi-env-rays { opacity: 1; animation: lwi-spin 9s linear infinite; }
.lwi-envelope.is-leaving { opacity: 0; filter: blur(6px) brightness(1.4); pointer-events: none; }

/* ---------- contenido ---------- */
.lwi-main {
  opacity: 0; transform: scale(1.06); filter: blur(8px);
  transition: opacity 1.1s ease, transform 1.6s var(--lwi-ease), filter 1.2s ease;
}
.lwi-main.is-revealed { opacity: 1; transform: none; filter: none; }

/* portada */
.lwi-hero {
  position: relative; height: 100vh; height: 100svh; min-height: 600px; max-height: 1100px;
  overflow: hidden; text-align: center; background: #f6ecdb;
}
.lwi-hero-svg, .lwi-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
.lwi-hero-photo { background: center / cover no-repeat; }
.lwi-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
  background: linear-gradient(to bottom, rgba(251, 247, 239, 0), var(--lwi-ivory) 92%); pointer-events: none;
}
.lwi-dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.lwi-hero-text { position: absolute; z-index: 2; left: 8%; right: 8%; top: 29.5%; }
.lwi-hero .lwi-kicker { font-size: clamp(9px, 2.5vw, 11px); letter-spacing: .2em; color: #8d7350; white-space: nowrap; }
.lwi-hero-names { margin: 14px 0 0; font-weight: 400; line-height: 1; }
.lwi-hero-names .lwi-script { display: table; margin-left: auto; margin-right: auto; font-size: clamp(46px, 13.5vw, 68px); line-height: 1.12; white-space: nowrap; }
.lwi-hero-names .lwi-script:last-child { position: relative; left: 7%; }
.lwi-amp { display: block; font-family: var(--lwi-serif); font-style: italic; font-size: clamp(26px, 7vw, 34px); line-height: 1; margin: -2px 0 -4px 6%; }
.lwi-hero--photo .lwi-hero-text { text-shadow: 0 2px 20px rgba(255, 255, 255, .8); }
.lwi-hero-in { opacity: 0; transform: translateY(18px); filter: blur(4px); transition: opacity 1.2s ease var(--d, 0s), transform 1.4s var(--lwi-ease) var(--d, 0s), filter 1.2s ease var(--d, 0s); }
.lwi-app.is-open .lwi-hero-in { opacity: 1; transform: none; filter: none; }
.lwi-scroll-hint {
  position: absolute; z-index: 3; left: 50%; bottom: 9%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: var(--lwi-script); font-size: 22px; color: #a3824c; text-decoration: none;
}
.lwi-app.is-open .lwi-scroll-hint { transform: translateX(-50%); }
.lwi-scroll-hint svg { width: 22px; height: 22px; animation: lwi-bounce 2s ease-in-out infinite; }

.lwi-lantern-swing { animation: lwi-swing 5.5s ease-in-out infinite; transform-origin: 0 0; }
.lwi-lantern-b .lwi-lantern-swing { animation-delay: -2.4s; animation-duration: 6.3s; }
.lwi-flicker { animation: lwi-flicker 3.4s ease-in-out infinite; }
.lwi-lantern-b .lwi-flicker { animation-delay: -1.3s; }
.lwi-ripple { animation: lwi-ripple 7s ease-in-out infinite; }

/* secciones */
.lwi-section { position: relative; padding: 76px 26px; text-align: center; }
.lwi-corner { position: absolute; top: 0; width: 34%; max-width: 160px; pointer-events: none; opacity: .95; }
.lwi-corner-l { left: 0; }
.lwi-corner-r { right: 0; }
.lwi-divider { display: block; width: 190px; max-width: 70%; height: 20px; margin: 26px auto; }

.lwi-reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s ease var(--d, 0s), transform 1.1s var(--lwi-ease) var(--d, 0s); }
.lwi-reveal.is-visible { opacity: 1; transform: none; }

/* invitación */
.lwi-invite { padding-top: 36px; }
.lwi-invite-card { position: relative; margin: 0 auto; max-width: 400px; padding: 96px 40px 60px; }
.lwi-arch-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lwi-invite-body { position: relative; }
.lwi-crest { display: block; width: 92px; margin: 0 auto 12px; }
.lwi-blessing { font-style: italic; font-size: 16px; line-height: 1.4; color: var(--lwi-ink-soft); margin-bottom: 22px; }
.lwi-invite .lwi-kicker { line-height: 1.8; }
.lwi-name { font-size: clamp(54px, 15vw, 70px); line-height: 1.2; margin-top: 14px; display: inline-block; white-space: nowrap; }
.lwi-parents { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--lwi-ink-soft); line-height: 1.7; margin-top: 2px; }
.lwi-with { font-size: 34px; color: var(--lwi-gold); margin: 14px 0 -6px; }
.lwi-message-title { font-size: 32px; color: var(--lwi-gold-d); margin-bottom: 10px; }
.lwi-message { font-size: 18.5px; line-height: 1.6; font-style: italic; color: var(--lwi-ink); max-width: 330px; margin: 0 auto; }

/* fecha / rascar */
.lwi-date { background: linear-gradient(to bottom, var(--lwi-ivory), #f7f0e3 50%, var(--lwi-ivory)); }
.lwi-hint { font-size: 14.5px; letter-spacing: .08em; color: var(--lwi-ink-soft); margin-top: 6px; }
.lwi-hint span { color: var(--lwi-gold); font-size: 11px; }
.lwi-scratch-row { position: relative; display: flex; justify-content: center; gap: 12px; margin-top: 30px; }
.lwi-scratch-wrap { position: relative; flex: 1 1 0; max-width: 118px; }
.lwi-scratch {
  position: relative; aspect-ratio: 4 / 4.6; border-radius: 12px; overflow: hidden;
  background: linear-gradient(160deg, #fffdf8, #f3e9d8);
  box-shadow: 0 0 0 1px rgba(194, 154, 79, .55), 0 0 0 5px #fbf7ef, 0 0 0 6px rgba(194, 154, 79, .35), 0 10px 24px rgba(120, 88, 40, .18);
  display: flex; align-items: center; justify-content: center; outline: none;
}
.lwi-scratch:focus-visible { box-shadow: 0 0 0 2px var(--lwi-gold), 0 0 0 6px #fbf7ef, 0 0 0 8px var(--lwi-gold); }
.lwi-scratch-value {
  font-family: var(--lwi-serif); font-size: clamp(30px, 9vw, 42px); font-weight: 500; color: var(--lwi-gold-d);
  transform: scale(.85); opacity: .9; transition: transform .8s var(--lwi-ease), opacity .6s;
}
.lwi-scratch-value.is-long { font-size: clamp(17px, 5vw, 23px); font-style: italic; }
.lwi-scratch-foil { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; transition: opacity .7s ease; }
.lwi-scratch-shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .7) 47%, transparent 62%) -160% 0 / 250% 100% no-repeat;
  animation: lwi-card-shine 3.6s ease-in-out infinite;
}
.lwi-scratch-wrap:nth-child(2) .lwi-scratch-shine { animation-delay: .4s; }
.lwi-scratch-wrap:nth-child(3) .lwi-scratch-shine { animation-delay: .8s; }
.lwi-scratch.is-touched .lwi-scratch-shine { opacity: 0; animation: none; }
.lwi-scratch.is-revealed .lwi-scratch-foil { opacity: 0; pointer-events: none; }
.lwi-scratch.is-revealed .lwi-scratch-value { transform: scale(1); opacity: 1; }
.lwi-scratch-label { display: block; margin-top: 14px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--lwi-ink-soft); }
.lwi-date-full { margin-top: 30px; opacity: 0; transform: translateY(12px); transition: opacity 1s ease .3s, transform 1s var(--lwi-ease) .3s; }
.lwi-date-full.is-visible { opacity: 1; transform: none; }
.lwi-date-line { font-size: 21px; font-style: italic; color: var(--lwi-gold-d); margin-top: 8px; }

/* programa */
.lwi-timeline { padding-top: 96px; }
.lwi-tl { position: relative; list-style: none; margin: 18px auto 0; padding: 0; max-width: 400px; }
.lwi-tl-line { position: absolute; left: 50%; top: 10px; bottom: 10px; width: 1px; margin-left: -.5px; background: rgba(194, 154, 79, .28); }
.lwi-tl-progress { position: absolute; inset: 0; background: linear-gradient(to bottom, #e9cf8f, #b98b3e); transform-origin: 50% 0; transform: scaleY(0); }
.lwi-tl-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 150px; }
.lwi-tl-icon { grid-column: 1; grid-row: 1; padding-right: 28px; display: flex; justify-content: flex-end; }
.lwi-tl-text { grid-column: 2; grid-row: 1; padding-left: 28px; text-align: left; }
.lwi-tl-item.is-alt .lwi-tl-icon { grid-column: 2; padding: 0 0 0 28px; justify-content: flex-start; }
.lwi-tl-item.is-alt .lwi-tl-text { grid-column: 1; padding: 0 28px 0 0; text-align: right; }
.lwi-icon { width: 86px; height: 86px; }
.lwi-icon .lwi-d { stroke-dasharray: 1px 1px; stroke-dashoffset: 1px; }
.lwi-reveal.is-visible .lwi-icon .lwi-d { animation: lwi-draw 1.8s ease .25s both; }
.lwi-tl-dot {
  position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px;
  background: linear-gradient(135deg, #f1d996, #b68838); transform: rotate(45deg) scale(0);
  box-shadow: 0 0 0 4px var(--lwi-ivory), 0 0 0 5px rgba(194, 154, 79, .4);
  transition: transform .6s cubic-bezier(.3, 1.6, .5, 1) .3s;
}
.lwi-tl-item.is-visible .lwi-tl-dot { transform: rotate(45deg) scale(1); }
.lwi-tl-time { font-size: 34px; color: var(--lwi-gold-d); line-height: 1; }
.lwi-tl-title { font-size: 17px; font-weight: 600; color: var(--lwi-ink); margin-top: 6px; line-height: 1.25; }
.lwi-tl-sub { font-size: 15px; font-style: italic; color: var(--lwi-ink-soft); margin-top: 2px; }

/* cuenta regresiva */
.lwi-countdown { background: radial-gradient(ellipse at 50% 40%, #fffaf0, #f4ead8 80%); }
.lwi-cd { display: flex; justify-content: center; align-items: flex-start; gap: 6px; margin-top: 26px; }
.lwi-cd-unit { min-width: 64px; display: flex; flex-direction: column; align-items: center; }
.lwi-cd-num {
  font-family: var(--lwi-serif); font-size: clamp(38px, 11vw, 50px); font-weight: 500; line-height: 1;
  color: var(--lwi-gold-d); font-variant-numeric: tabular-nums; display: inline-block;
}
.lwi-cd-num.is-tick { animation: lwi-tick .6s var(--lwi-ease); }
.lwi-cd-sep { font-size: clamp(32px, 9vw, 42px); color: var(--lwi-gold-l); line-height: 1; padding-top: 2px; }
.lwi-cd-label { margin-top: 10px; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--lwi-ink-soft); }
.lwi-cd-done { display: none; font-family: var(--lwi-script); font-size: 38px; color: var(--lwi-gold-d); margin-top: 18px; }
.lwi-app.is-event-day .lwi-cd-done { display: block; }

/* ubicación */
.lwi-location .lwi-kicker { margin-top: 10px; }
.lwi-venue-name { margin-top: 10px; font-size: 22px; letter-spacing: .12em; text-transform: uppercase; color: var(--lwi-ink); }
.lwi-venue-hall { font-size: 19px; font-style: italic; color: var(--lwi-gold-d); margin-top: 4px; }
.lwi-venue-address { font-size: 15.5px; color: var(--lwi-ink-soft); margin-top: 6px; }
.lwi-venue-art { margin: 26px -6px 0; }
.lwi-venue { display: block; width: 100%; height: auto; }
.lwi-venue .lwi-d { stroke-dasharray: 1px 1px; stroke-dashoffset: 1px; }
.lwi-venue-art.is-visible .lwi-d { animation: lwi-draw 2.6s ease .2s both; }
.lwi-map {
  position: relative; margin: 18px auto 0; max-width: 400px; height: 250px; border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(194, 154, 79, .6), 0 0 0 6px #fbf7ef, 0 0 0 7px rgba(194, 154, 79, .3), 0 16px 36px rgba(110, 80, 40, .2);
  background: #efe6d6;
}
.lwi-map iframe { display: block; width: 100%; height: 100%; border: 0; filter: sepia(.25) saturate(.85); }
.lwi-btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding: 14px 26px;
  border-radius: 999px; text-decoration: none; font-family: var(--lwi-serif); font-size: 14px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: #fffaf0;
  background: linear-gradient(110deg, #a87a2e, #dcb969 40%, #b48638 70%, #d7b265) 0 0 / 200% 100%;
  box-shadow: 0 8px 22px rgba(150, 105, 40, .35), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: background-position .8s ease, transform .3s ease;
}
.lwi-btn:hover { background-position: 100% 0; transform: translateY(-1px); }
.lwi-btn svg { width: 18px; height: 18px; }

/* vestimenta */
.lwi-dress { padding-top: 96px; }
.lwi-figures-wrap { margin: 22px auto 0; max-width: 400px; }
.lwi-figures { display: block; width: 100%; height: auto; }
.lwi-dress-text { font-size: 18px; margin-top: 22px; color: var(--lwi-ink); }
.lwi-dress-style { font-size: 34px; margin-top: 4px; display: inline-block; }
.lwi-swatches { list-style: none; padding: 0; margin: 18px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 12px; max-width: 360px; }
.lwi-swatch { display: flex; flex-direction: column; align-items: center; width: 64px; }
.lwi-swatch span { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(194, 154, 79, .45), 0 6px 14px rgba(110, 80, 40, .2); }
.lwi-swatch small { margin-top: 8px; font-size: 12.5px; line-height: 1.2; color: var(--lwi-ink-soft); }
.lwi-dress-note { margin: 26px auto 0; max-width: 320px; font-size: 15.5px; font-style: italic; color: var(--lwi-ink-soft); line-height: 1.5; }

/* cierre */
.lwi-closing { padding-bottom: 110px; background: linear-gradient(to bottom, var(--lwi-ivory), #f3e8d4); }
.lwi-closing-seal { width: 116px; margin: 0 auto 18px; filter: drop-shadow(0 6px 10px rgba(92, 64, 28, .3)); }
.lwi-closing-seal svg { display: block; width: 100%; }
.lwi-closing .lwi-message { margin-top: 10px; }
.lwi-closing-names { font-size: 42px; color: var(--lwi-gold-d); margin: 22px 0 8px; }
.lwi-closing-names span { display: inline-block; white-space: nowrap; }

/* botón de música */
.lwi-music {
  position: fixed; z-index: 70; bottom: 22px; right: max(18px, calc(50% - var(--lwi-col) / 2 + 18px));
  width: 50px; height: 50px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; color: #fffaf0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e7c879, #b2852f 60%, #d8b562);
  box-shadow: 0 8px 20px rgba(120, 84, 30, .4), inset 0 1px 0 rgba(255, 255, 255, .5);
  opacity: 0; transform: scale(.6); pointer-events: none; transition: opacity .6s ease, transform .6s cubic-bezier(.3, 1.6, .5, 1);
}
.lwi-music.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.lwi-music svg { width: 22px; height: 22px; }
.lwi-music .lwi-i-pause, .lwi-music.is-playing .lwi-i-play { display: none; }
.lwi-music.is-playing .lwi-i-pause { display: block; }
.lwi-music-ring { position: absolute; inset: -5px; border-radius: 50%; border: 1px dashed rgba(194, 154, 79, .8); opacity: 0; }
.lwi-music.is-playing .lwi-music-ring { opacity: 1; animation: lwi-rot 8s linear infinite; }
.lwi-music:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- animaciones ---------- */
@keyframes lwi-draw { from { stroke-dashoffset: 1px; } to { stroke-dashoffset: 0px; } }
@keyframes lwi-gold { to { background-position: -220% 0; } }
@keyframes lwi-sweep { 0% { background-position: 110% 110%; } 55%, 100% { background-position: -10% -10%; } }
@keyframes lwi-sweep-fast { 0% { background-position: 110% 110%; opacity: 1; } 100% { background-position: -10% -10%; opacity: 1; } }
@keyframes lwi-twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 12% { opacity: 1; transform: scale(1) rotate(45deg); } 26% { opacity: 0; transform: scale(.4) rotate(90deg); } }
@keyframes lwi-burst { 0% { transform: translate(0, 0) scale(0); opacity: 1; } 60% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(var(--s)) rotate(180deg); opacity: 0; } }
@keyframes lwi-breathe { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.035); } }
@keyframes lwi-ring { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes lwi-hint { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes lwi-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes lwi-rot { to { transform: rotate(360deg); } }
@keyframes lwi-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes lwi-swing { 0%, 100% { transform: rotate(2.6deg); } 50% { transform: rotate(-2.6deg); } }
@keyframes lwi-flicker { 0%, 100% { opacity: .85; } 20% { opacity: 1; } 45% { opacity: .72; } 60% { opacity: .95; } 80% { opacity: .8; } }
@keyframes lwi-ripple { 0%, 100% { opacity: 0; transform: translateX(-6px); } 50% { opacity: .75; transform: translateX(6px); } }
@keyframes lwi-card-shine { 0%, 30% { background-position: 160% 0; } 70%, 100% { background-position: -160% 0; } }
@keyframes lwi-tick { 0% { transform: translateY(-35%); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes lwi-float { 0% { transform: translate(0, 0); } 100% { transform: translate(40px, -60px); } }

/* ---------- pantallas grandes ---------- */
@media (min-width: 720px) {
  :root { --lwi-col: 500px; }
  .lwi-app { border-left: 1px solid rgba(214, 180, 112, .3); border-right: 1px solid rgba(214, 180, 112, .3); }
}
@media (max-width: 360px) {
  .lwi-section { padding-left: 18px; padding-right: 18px; }
  .lwi-icon { width: 70px; height: 70px; }
  .lwi-tl-icon { padding-right: 18px; } .lwi-tl-text { padding-left: 18px; }
  .lwi-tl-item.is-alt .lwi-tl-icon { padding-left: 18px; } .lwi-tl-item.is-alt .lwi-tl-text { padding-right: 18px; }
  .lwi-cd-unit { min-width: 54px; }
}

/* vista previa del editor: sin animaciones de entrada al recargar */
.lwi-instant .lwi-main, .lwi-instant .lwi-reveal, .lwi-instant .lwi-hero-in, .lwi-instant .lwi-tl-dot, .lwi-instant .lwi-date-full { transition: none !important; }
.lwi-instant .lwi-d { animation-duration: .001s !important; animation-delay: 0s !important; }

@media (prefers-reduced-motion: reduce) {
  .lwi-app *, .lwi-envelope * { animation-duration: .001s !important; animation-iteration-count: 1 !important; }
  .lwi-flap, .lwi-main, .lwi-reveal, .lwi-hero-in { transition-duration: .3s !important; }
  html { scroll-behavior: auto; }
  .lwi-icon .lwi-d, .lwi-venue .lwi-d { stroke-dashoffset: 0; animation: none !important; }
}
