/* Sitio público — estilo de la invitación original (oliva, crema, caligrafía). */
body.public, body.welcome, body.sign-page {
  --olive: #9A9D49; --olive-dk: #6f7233; --olive-lt: #f1f1e4;
  --cream: #FDFCF9; --soft: #F4F4F0; --ink: #3A3A3A; --ink-mid: #5f5f5f; --ink-lt: #7A7A7A;
  --rose: #9A9D49; --rose-dk: #6f7233; --gold: #9A9D49; --gold-dk: #6f7233;
  --script: 'Alex Brush', 'Snell Roundhand', 'Apple Chancery', cursive;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Lato', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --focus: 0 0 0 3px rgba(154, 157, 73, .45);
}
body.public { background: #efeee6; color: var(--ink); font-family: var(--serif); font-size: 18px; margin: 0; }
.inv { max-width: 640px; margin: 0 auto; background: #fff; box-shadow: 0 0 24px rgba(0, 0, 0, .06); min-height: 100vh; }
.script { font-family: var(--script); font-weight: 400; color: var(--olive); line-height: 1.1; letter-spacing: 0; }
.label-title { font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--olive); margin: 0 0 18px; }

/* Portada con bienvenida y opciones */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; background: url('../img/foto1.jpg') 50% 35% / cover no-repeat; }
.hero-card { width: 100%; background: rgba(253, 252, 249, .96); border-radius: 30px 30px 0 0; padding: 34px 22px 30px; text-align: center; }
.kicker { font-family: var(--sans); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--ink-lt); margin: 0 0 4px; }
.hero-card h1.script { font-size: clamp(46px, 13vw, 64px); margin: 0 0 6px; }
.hero-date { font-family: var(--sans); font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--ink-mid); margin: 0 0 8px; }
.hero-msg { font-style: italic; color: var(--ink-mid); margin: 0 auto 6px; max-width: 460px; }
.welcome-options { display: flex; flex-direction: column; gap: 12px; margin: 22px auto 8px; max-width: 460px; }
.option { display: flex; align-items: center; gap: 14px; text-align: left; text-decoration: none; color: var(--ink); background: #fff; border: 1.5px solid var(--olive); border-radius: 16px; padding: 14px 16px; min-height: 68px; transition: transform .15s, background .15s, box-shadow .15s; }
.option:hover { background: var(--olive-lt); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(90, 92, 40, .12); }
.option:focus-visible { box-shadow: var(--focus); }
.option svg { flex: 0 0 34px; width: 34px; height: 34px; fill: var(--olive); }
.option strong { display: block; font-family: var(--sans); font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--olive-dk); }
.option small { display: block; font-size: 16px; color: var(--ink-mid); margin-top: 2px; }
.option-gift { background: var(--olive); border-color: var(--olive); }
.option-gift svg { fill: #fff; }
.option-gift strong, .option-gift small { color: #fff; }
.option-gift:hover { background: var(--olive-dk); }
.music-text { font-family: var(--sans); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-lt); margin: 20px 0 10px; }
.play-btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--olive); background: transparent; display: flex; align-items: center; justify-content: center; margin: 0 auto; cursor: pointer; }
.play-btn svg { width: 18px; height: 18px; fill: var(--olive); }
.play-btn .icon-play { margin-left: 3px; }
.play-btn:hover { background: var(--olive); }
.play-btn:hover svg { fill: #fff; }
.play-btn[aria-pressed="true"] .icon-play, .play-btn[aria-pressed="false"] .icon-pause { display: none; }

/* Bloques */
.block { padding: 56px 22px; text-align: center; border-top: 1px solid #f0efe8; }
.block h2.script { font-size: clamp(40px, 11vw, 50px); margin: 0 0 14px; }
.btn-inv { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 34px; border-radius: 30px; border: 1px solid var(--olive); background: var(--olive); color: #fff; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, transform .15s; }
.btn-inv:hover { background: var(--olive-dk); transform: translateY(-1px); }
.btn-inv.outline { background: transparent; color: var(--olive-dk); }
.btn-inv.outline:hover { background: var(--olive); color: #fff; }
.btn-inv[disabled] { opacity: .6; cursor: wait; }
.small-note { font-family: var(--sans); font-size: 13px; color: var(--ink-lt); margin-top: 12px; }

/* Buscador */
.finder { background: var(--cream); }
.finder-help { color: var(--ink-mid); max-width: 480px; margin: 0 auto 18px; }
.finder-form { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
.finder-form input { flex: 1; min-width: 0; min-height: 56px; font-family: var(--sans); font-size: 19px; padding: 10px 16px; border: 1.5px solid #d8d6c4; border-radius: 14px; background: #fff; color: var(--ink); }
.finder-form input:focus { outline: none; border-color: var(--olive); box-shadow: var(--focus); }
.finder-form .btn-inv { min-height: 56px; border-radius: 14px; font-size: 15px; }
.result-area:empty { display: none; }
.result-area { margin-top: 22px; font-family: var(--sans); }
.result-card { background: #fff; border: 2px solid var(--olive); border-radius: 18px; padding: 22px 16px; animation: pop .3s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.result-name { font-family: var(--script); font-size: clamp(34px, 9vw, 44px); color: var(--olive); margin: 0; line-height: 1.1; }
.result-seat { font-family: var(--serif); font-size: clamp(28px, 7vw, 38px); font-weight: 600; color: var(--ink); margin: 6px 0 0; }
.result-seat .sep { color: var(--olive); padding: 0 .25em; }
.result-sub { color: var(--ink-mid); margin: 8px 0 0; font-size: 16px; }
.result-actions { margin-top: 16px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.result-actions .btn { font-family: var(--sans); }
.result-msg { padding: 16px; border-radius: 14px; font-size: 17px; }
.choices { list-style: none; padding: 0; margin: 12px auto 0; max-width: 460px; display: flex; flex-direction: column; gap: 8px; }
.choices button { width: 100%; min-height: 54px; font-size: 18px; font-family: var(--sans); border: 1.5px solid #d8d6c4; background: #fff; border-radius: 14px; cursor: pointer; padding: 10px 14px; }
.choices button:hover, .choices button:focus-visible { border-color: var(--olive); background: var(--olive-lt); }
.btn-gold { background: var(--olive-lt); border-color: #cfd09a; color: var(--olive-dk); }

/* Plano */
.map-section { padding-left: 12px; padding-right: 12px; }
.map-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.map-head .label-title { margin: 0; }
.map-controls { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid #d8d6c4; border-radius: 22px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: transparent; padding: 7px 12px; font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--ink-mid); cursor: pointer; min-height: 36px; }
.seg button[aria-pressed="true"] { background: var(--olive); color: #fff; }
.round-btn { min-width: 36px; height: 36px; border-radius: 18px; border: 1px solid #d8d6c4; background: #fff; font-size: 16px; cursor: pointer; color: var(--ink-mid); }
.round-btn.wide { padding: 0 12px; font-family: var(--sans); font-size: 13px; font-weight: 700; }
.public-map { position: relative; height: min(70vh, 560px); min-height: 340px; border-radius: 18px; overflow: hidden; border: 1px solid #e6e4d6; background: #f6f1ea; }
.public-map canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }

/* Instrucciones de la cena */
.dinner { background: var(--soft); }
.instructions { list-style: none; padding: 0; margin: 0 auto; max-width: 480px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.instructions li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 14px; padding: 14px 16px; font-size: 20px; line-height: 1.35; box-shadow: 0 2px 8px rgba(0, 0, 0, .04); }
.instructions .num { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--olive); color: #fff; font-family: var(--sans); font-weight: 700; font-size: 15px; display: grid; place-items: center; }

/* Invitación */
.verse { background: var(--cream); }
.verse-text { font-style: italic; font-size: 21px; max-width: 420px; margin: 0 auto 12px; }
.verse-cite { display: block; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--ink-lt); margin-bottom: 44px; }
.countdown { display: flex; justify-content: center; gap: 18px; background: var(--soft); border-radius: 10px; padding: 22px; max-width: 380px; margin: 0 auto; }
.countdown div { display: flex; flex-direction: column; align-items: center; }
.countdown span { font-size: 34px; font-weight: 600; color: var(--olive); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown small { font-family: var(--sans); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-lt); margin-top: 4px; }
.event-date { font-size: 28px; font-weight: 600; text-transform: uppercase; margin: 0; }
.event-time { font-family: var(--sans); font-size: 14px; letter-spacing: 2px; color: var(--ink-lt); margin: 10px 0 18px; }
.event-place { font-size: 21px; margin: 0 0 20px; }
.map-img { width: 100%; max-width: 280px; height: auto; border-radius: 8px; margin: 0 auto 20px; box-shadow: 0 4px 12px rgba(0, 0, 0, .08); }
.info { background: var(--soft); }
.info-text { font-size: 19px; margin: 0 0 20px; }
.info-text strong { display: block; margin-top: 6px; font-weight: 600; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.it-list { list-style: none; padding: 0; margin: 0 auto; max-width: 460px; text-align: left; }
.it-list li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid #eee; }
.it-time { flex: 0 0 110px; color: var(--olive-dk); font-family: var(--sans); font-weight: 700; }
.site-foot { text-align: center; padding: 36px 16px 50px; background: var(--cream); }
.site-foot .script { font-size: 34px; }

@media (max-width: 560px) {
  .finder-form { flex-direction: column; }
  .finder-form .btn-inv { width: 100%; }
  .public-map { height: 62vh; }
}
.gift { background: var(--cream); }
.transfer { max-width: 420px; margin: 22px auto 24px; padding: 6px 20px; background: #fff; border: 1.5px solid var(--olive); border-radius: 16px; text-align: left; }
.transfer div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f0efe8; }
.transfer div:last-child { border-bottom: 0; }
.transfer dt { font-family: var(--sans); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-lt); padding-top: 3px; }
.transfer dd { margin: 0; font-family: var(--sans); font-size: 16px; color: var(--ink); text-align: right; overflow-wrap: anywhere; user-select: all; }
.gift .small-note a { color: var(--olive-dk); }
@media (prefers-reduced-motion: reduce) { .option:hover, .btn-inv:hover { transform: none; } }

/* Pantalla de bienvenida y letrero */
body.welcome { min-height: 100vh; display: grid; grid-template-columns: minmax(300px, 420px) 1fr; background: #FDFCF9; }
.welcome-side { padding: 40px 32px; display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 10px; border-right: 1px solid var(--border); background: linear-gradient(#FDFCF9, #F4F4F0); }
.welcome-side h1 { font-family: var(--script); font-size: clamp(46px, 5vw, 70px); color: var(--olive); font-weight: 400; margin: 0; }
.welcome-side .qr { width: min(260px, 70%); margin: 16px auto 4px; background: #fff; padding: 14px; border-radius: 16px; border: 1px solid var(--border); }
.welcome-side .qr canvas, .sign .qr canvas { width: 100%; height: auto; image-rendering: pixelated; }
.welcome-side .url { font-weight: 700; color: var(--ink-mid); word-break: break-all; }
.welcome-map { position: relative; min-height: 100vh; }
.welcome-map canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 860px) { body.welcome { grid-template-columns: 1fr; } .welcome-map { min-height: 70vh; } }

body.sign-page { background: #eee; }
.sign { width: 190mm; min-height: 260mm; margin: 20px auto; background: #fff; padding: 22mm 18mm; text-align: center; display: flex; flex-direction: column; justify-content: center; gap: 8mm; box-shadow: var(--shadow-lg); }
.sign h1 { font-family: var(--script); font-weight: 400; font-size: 64px; margin: 0; color: var(--ink); }
.sign .lead { letter-spacing: .14em; text-transform: uppercase; font-size: 18px; color: var(--ink-mid); }
.sign .qr { width: 85mm; margin: 0 auto; }
.sign .names { font-family: var(--script); font-size: 38px; color: var(--olive); }
.sign-bar { text-align: center; padding: 14px; }
@media print { body.sign-page { background: #fff; } .sign { box-shadow: none; margin: 0 auto; } .sign-bar { display: none; } }
