/* Boda y punto. — estructura común de las invitaciones de demostración.
   Cada demo define su aspecto con variables y unas pocas reglas propias. */

@font-face { font-family: "Fraunces"; src: url("../assets/fonts/fraunces-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../assets/fonts/fraunces-var-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f7f5f0; --ink: #111; --soft: #4a4640; --accent: #111; --panel: #ece8df; --on-accent: #fff;
  --display: "Fraunces", Georgia, serif; --text: "Inter", system-ui, sans-serif;
  --m: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { overflow-x: hidden; margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.55 var(--text); -webkit-font-smoothing: antialiased; padding-bottom: 64px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { list-style: none; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Aviso fijo: es un ejemplo */
.demo-flag {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px;
  min-height: 56px; padding: 8px clamp(16px, 3vw, 32px) calc(8px + env(safe-area-inset-bottom));
  background: #0b0b0c; color: #efe6d6; font: 500 14px/1.35 "Inter", system-ui, sans-serif;
}
.demo-flag strong { font-weight: 700; }
.demo-flag a { color: #0b0b0c; background: #c9a24b; text-decoration: none; font-weight: 700; padding: 10px 14px; white-space: nowrap; }
.demo-flag a:hover { background: #b38c38; }

/* Secciones */
.cover { min-height: 100svh; padding: var(--m); display: flex; flex-direction: column; justify-content: center; gap: 24px; position: relative; overflow: hidden; }
.hello { font: italic 400 clamp(22px, 3vw, 32px)/1.2 var(--display); color: var(--soft); }
.names { font: 400 clamp(64px, 14vw, 200px)/0.9 var(--display); letter-spacing: -0.04em; }
.announce { font-size: clamp(18px, 2vw, 22px); max-width: 28em; }
.scroll-cue { font-size: 15px; color: var(--soft); }

.block { padding: clamp(80px, 12vw, 160px) var(--m); display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.block h2 { font: 400 clamp(40px, 6vw, 84px)/1 var(--display); letter-spacing: -0.03em; }
.block .text { max-width: 34em; }

.when { display: grid; gap: 8px; }
.when__date { font: 400 clamp(30px, 4vw, 52px)/1.1 var(--display); }
.countdown { display: flex; flex-wrap: wrap; gap: 24px; font-variant-numeric: tabular-nums; }
.countdown div { display: grid; }
.countdown b { font: 500 clamp(36px, 5vw, 64px)/1 var(--display); }
.countdown span { font-size: 14px; color: var(--soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px;
  background: var(--accent); color: var(--on-accent); border: 0; border-radius: var(--radius, 0);
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), opacity .2s;
}
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.98); }
.btn--quiet { background: var(--panel); color: inherit; }

.program { display: grid; gap: 2px; max-width: 760px; }
.program li { display: grid; grid-template-columns: 5.5em 1fr; gap: 16px; padding: 18px 20px; background: var(--panel); }
.program li:nth-child(even) { background: transparent; }
.program time { font: 500 22px/1.2 var(--display); }
.program strong { display: block; font-weight: 600; }
.program span { color: var(--soft); font-size: 16px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 40px 32px; width: 100%; max-width: 1100px; }
.facts h3 { font: 500 26px/1.15 var(--display); margin-bottom: 8px; }

/* Confirmación */
.rsvp { display: grid; gap: 22px; max-width: 560px; }
.rsvp fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.rsvp legend, .rsvp label.lbl { font-weight: 600; margin-bottom: 4px; padding: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { position: relative; min-height: 48px; display: inline-flex; align-items: center; padding: 0 18px; background: var(--panel); cursor: pointer; border-radius: var(--radius, 0); }
.opts input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opts label:has(input:checked) { background: var(--accent); color: var(--on-accent); }
.opts label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.rsvp input[type="text"], .rsvp select, .rsvp textarea { width: 100%; min-height: 50px; padding: 12px 14px; background: #fff; color: #111; border: 1px solid #9a9488; border-radius: var(--radius, 0); }
.rsvp-msg { padding: 20px; background: var(--panel); display: grid; gap: 8px; }
.rsvp-msg h3 { font: 500 26px/1.2 var(--display); }

.made { padding: 64px var(--m) 48px; font-size: 15px; color: var(--soft); }
.made a { font-weight: 600; }

/* Entradas */
.js .in { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .in.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .in { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
  body { padding-bottom: 124px; }
  .demo-flag { font-size: 13px; }
  .program li { grid-template-columns: 4.5em 1fr; padding: 16px; }
}
