/* ═══════════════════════════════════════════════
   App de Boda — Edición Premium
   Marfil · Champán · Oro
   ═══════════════════════════════════════════════ */
:root {
  --ivory: #faf6f0;
  --ivory-2: #f4ecdf;
  --champagne: #ecdfc8;
  --blush: #e9d7cd;
  --gold-1: #d8bc8a;
  --gold-2: #b08d57;
  --gold-3: #8f6f42;
  --ink: #2b2125;
  --ink-soft: #4a3c40;
  --muted: #9b8a80;
  --white: #ffffff;
  --shadow: 0 24px 60px -18px rgba(43, 33, 37, 0.22);
  --shadow-sm: 0 8px 26px -8px rgba(43, 33, 37, 0.16);
  --hairline: 1px solid rgba(176, 141, 87, 0.22);
  --radius: 26px;
  --radius-sm: 16px;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --script: "Great Vibes", "Snell Roundhand", "Brush Script MT", cursive;
  --sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; min-height: 100%; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fondo fijo: degradado suave + halo superior */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1000px 520px at 50% -8%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 55%),
    radial-gradient(800px 600px at 85% 110%, rgba(233,215,205,0.55) 0%, rgba(233,215,205,0) 60%),
    radial-gradient(700px 500px at 8% 90%, rgba(236,223,200,0.6) 0%, rgba(236,223,200,0) 55%),
    linear-gradient(168deg, var(--ivory) 0%, var(--ivory-2) 100%);
}
/* Grano sutil, acabado papel */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

.container { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 20px; }

/* ───────────── Tipografía ───────────── */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: 0.3px; margin: 0; }
.script { font-family: var(--script); font-weight: 400; }
.muted { color: var(--muted); }
.center { text-align: center; }

.eyebrow {
  font-family: var(--sans); font-weight: 500;
  font-size: 0.72rem; letter-spacing: 5px; text-transform: uppercase;
  color: var(--gold-2);
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-1));
}
.eyebrow::after { background: linear-gradient(90deg, var(--gold-1), transparent); }

.gold-text {
  background: linear-gradient(105deg, var(--gold-3) 0%, var(--gold-1) 38%, var(--gold-2) 60%, #e7d3a4 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ───────────── Ornamentos ───────────── */
.divider {
  width: auto; height: auto; margin: 26px auto;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  color: var(--gold-2); font-size: 11px;
}
.divider::before, .divider::after {
  content: ""; width: 74px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-1));
}
.divider::after { background: linear-gradient(90deg, var(--gold-1), transparent); }
.divider i {
  width: 7px; height: 7px; transform: rotate(45deg);
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  display: inline-block;
}

/* Monograma */
.crest {
  width: 108px; height: 108px; margin: 0 auto 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(160deg, #fffdf9, var(--ivory-2));
  border: 1px solid rgba(176, 141, 87, 0.35);
  box-shadow:
    0 0 0 7px rgba(250, 246, 240, 0.9),
    0 0 0 8px rgba(176, 141, 87, 0.28),
    var(--shadow-sm);
  font-family: var(--serif); font-size: 1.9rem; font-weight: 600;
  color: var(--gold-2);
  position: relative;
  animation: crestIn 1.1s cubic-bezier(.2,.8,.25,1) both;
}
.crest .amp { font-family: var(--script); font-size: 1.5rem; margin: 0 3px; color: var(--gold-1); }

@keyframes crestIn {
  from { opacity: 0; transform: translateY(14px) scale(.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Aparición escalonada */
.reveal { animation: fadeUp .9s cubic-bezier(.2,.8,.25,1) both; }
.reveal.d1 { animation-delay: .12s; }
.reveal.d2 { animation-delay: .24s; }
.reveal.d3 { animation-delay: .38s; }
.reveal.d4 { animation-delay: .52s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ───────────── Botones ───────────── */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: none; border-radius: 999px;
  padding: 17px 30px;
  font-size: 0.95rem; font-weight: 500; font-family: var(--sans);
  letter-spacing: 1.6px; text-transform: uppercase;
  cursor: pointer; text-decoration: none; user-select: none;
  transition: transform .14s ease, box-shadow .25s ease, background .25s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: .55; cursor: default; }

/* Brillo que recorre el botón */
.btn-primary::after, .btn-gold::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,0.28) 50%, transparent 58%);
  transform: translateX(-130%);
}
.btn-primary:hover::after, .btn-gold:hover::after {
  transform: translateX(130%); transition: transform .8s ease;
}

.btn-primary {
  background: linear-gradient(150deg, #3a2e33, var(--ink) 55%, #1d1518);
  color: #f4ead8;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(216, 188, 138, 0.35);
}
.btn-primary:hover { box-shadow: var(--shadow); }

.btn-gold {
  background: linear-gradient(135deg, #dcc190 0%, var(--gold-2) 55%, #a5834e 100%);
  color: #2b2125;
  box-shadow: 0 10px 28px -8px rgba(176, 141, 87, 0.55);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink-soft);
  border: var(--hairline);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.9); }
.btn-block { width: 100%; }

/* ───────────── Tarjetas ───────────── */
.card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  outline: var(--hairline);
  outline-offset: -5px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
}

/* ═══════════════ LANDING ═══════════════ */
.landing {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 52px 0 60px;
}
.landing h1 { font-size: 2.1rem; line-height: 1.12; font-weight: 500; letter-spacing: 1px; }
.landing .names {
  font-family: var(--script);
  font-size: 3.4rem; line-height: 1.25; margin-top: 8px;
}
.landing .date {
  margin-top: 14px; letter-spacing: 6px; text-transform: uppercase;
  font-size: .74rem; font-weight: 500; color: var(--ink-soft);
}
.lead { max-width: 430px; margin: 0 auto 24px; line-height: 1.65; font-size: .98rem; }

/* Formulario del código */
.code-form { display: flex; flex-direction: column; gap: 16px; }
.code-input {
  width: 100%; text-align: center;
  font-family: var(--sans); font-weight: 500;
  font-size: 1.25rem; letter-spacing: 7px; text-transform: uppercase;
  padding: 18px 14px 17px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(176, 141, 87, 0.4);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  outline: none;
  transition: border .25s, box-shadow .25s, background .25s;
}
.code-input:focus {
  border-color: var(--gold-2);
  background: #fff;
  box-shadow: 0 0 0 5px rgba(176, 141, 87, 0.14), 0 10px 30px -12px rgba(176,141,87,.45);
}
.code-input::placeholder { color: #cbb9a4; letter-spacing: 5px; font-weight: 400; }

.msg { min-height: 22px; font-size: .9rem; margin: 2px 0 0; letter-spacing: .3px; }
.msg.error { color: #a8453c; }
.msg.ok { color: #5b7a52; }

/* Tarjeta de instalación */
.install-card { margin-top: 24px; }
.install-card h3 { font-size: 1.35rem; margin-bottom: 6px; font-weight: 500; }
.os-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(176, 141, 87, 0.4);
  background: rgba(255,255,255,0.6);
  border-radius: 999px; padding: 7px 18px;
  font-size: .74rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold-3); margin: 10px 0 16px; font-weight: 500;
}
.steps { text-align: left; margin: 12px 0 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 14px; align-items: flex-start; padding: 9px 0; font-size: .95rem; line-height: 1.5; }
.steps .n {
  flex: 0 0 26px; height: 26px; margin-top: 1px;
  border-radius: 50%;
  border: 1px solid var(--gold-1);
  background: linear-gradient(160deg, #fffdf9, var(--ivory-2));
  color: var(--gold-3); font-size: .78rem; font-weight: 600;
  display: grid; place-items: center;
  font-family: var(--serif);
}
.share-ic { display: inline-block; vertical-align: -3px; }

.foot {
  margin-top: 34px; font-size: .72rem; color: var(--muted);
  letter-spacing: 3px; text-transform: uppercase;
}

/* Pétalos (canvas) */
#petals {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
}
.landing > * { position: relative; z-index: 1; }

/* ═══════════════ APP ═══════════════ */
.appbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 246, 240, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(176, 141, 87, 0.18);
}
.appbar-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.appbar .title { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.15; }
.appbar .title small {
  display: block; font-family: var(--sans); font-weight: 500;
  font-size: .62rem; color: var(--gold-2);
  letter-spacing: 3.5px; text-transform: uppercase; margin-top: 2px;
}
.icon-btn {
  border: var(--hairline); background: rgba(255,255,255,0.7);
  border-radius: 50%; width: 42px; height: 42px;
  font-size: 1.05rem; cursor: pointer; color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  transition: transform .14s, background .2s;
  backdrop-filter: blur(8px);
}
.icon-btn:active { transform: scale(.94); }
.icon-btn:hover { background: #fff; }

/* Acciones principales */
.hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.action-tile {
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.85);
  outline: var(--hairline); outline-offset: -5px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px 16px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  transition: transform .16s ease, box-shadow .3s;
  color: var(--ink);
}
.action-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.action-tile:active { transform: scale(0.97); }
.action-tile .emoji {
  width: 66px; height: 66px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(176, 141, 87, 0.45);
  background: linear-gradient(160deg, #fffdf9, var(--ivory-2));
  box-shadow: 0 0 0 6px rgba(250,246,240,.8), 0 0 0 7px rgba(176,141,87,.2);
  color: var(--gold-2);
}
.action-tile .label {
  font-family: var(--serif); font-weight: 600; font-size: 1.25rem; letter-spacing: .5px;
}
.action-tile .sub {
  font-size: .64rem; color: var(--muted);
  letter-spacing: 2.5px; text-transform: uppercase; font-weight: 500;
}

/* Tabs */
.tabs {
  display: flex; gap: 6px;
  background: rgba(255,255,255,0.55);
  border: var(--hairline);
  padding: 6px; border-radius: 999px; margin: 8px 0 20px;
  backdrop-filter: blur(8px);
}
.tab {
  flex: 1; border: none; background: transparent;
  padding: 12px; border-radius: 999px;
  font-family: var(--sans); font-weight: 500;
  font-size: .78rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--muted); cursor: pointer;
  transition: all .25s;
}
.tab.active {
  background: linear-gradient(150deg, #3a2e33, var(--ink));
  color: #f4ead8;
  box-shadow: 0 8px 20px -6px rgba(43,33,37,.4);
}

/* Galería */
.gallery-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.gallery-head h3 { font-size: 1.3rem; font-weight: 600; }
.chip-row { display: flex; gap: 8px; }
.chip {
  border: 1px solid rgba(176, 141, 87, 0.38);
  background: rgba(255,255,255,0.6);
  border-radius: 999px; padding: 8px 16px;
  font-size: .68rem; letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; color: var(--ink-soft); font-weight: 500;
  transition: all .22s;
}
.chip.active {
  background: linear-gradient(135deg, #dcc190, var(--gold-2));
  color: #2b2125; border-color: transparent;
  box-shadow: 0 6px 16px -5px rgba(176,141,87,.6);
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grid-item {
  position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden;
  background: linear-gradient(140deg, var(--ivory-2), var(--blush));
  cursor: pointer; box-shadow: var(--shadow-sm);
  animation: tileIn .5s cubic-bezier(.2,.8,.25,1) both;
}
@keyframes tileIn {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.grid-item img, .grid-item video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.2,.8,.25,1);
}
.grid-item:hover img, .grid-item:hover video { transform: scale(1.07); }
.grid-item .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 0; pointer-events: none;
}
.grid-item .play::before {
  content: "▶"; font-size: 14px; color: #fff;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(25, 18, 20, 0.42);
  border: 1px solid rgba(255,255,255,0.55);
  display: grid; place-items: center; padding-left: 3px;
  backdrop-filter: blur(4px);
}
.grid-item .tag {
  position: absolute; left: 7px; bottom: 7px;
  font-size: .64rem; letter-spacing: .5px; color: #fff;
  background: rgba(25, 18, 20, 0.5);
  backdrop-filter: blur(6px);
  padding: 3px 9px; border-radius: 999px; max-width: 85%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.count-note {
  font-size: .68rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
  margin: -4px 0 12px; text-align: right;
}

/* Esqueletos de carga (shimmer) */
.grid-item.skeleton {
  pointer-events: none;
  background: linear-gradient(100deg, var(--ivory-2) 40%, #fffdf9 50%, var(--ivory-2) 60%);
  background-size: 200% 100%;
  animation: skel 1.3s linear infinite;
  box-shadow: none;
}
@keyframes skel {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 12px; opacity: .8; }
.empty p { font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.6; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(20, 14, 16, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none; align-items: center; justify-content: center; flex-direction: column;
}
.lightbox.open { display: flex; animation: lbIn .28s ease; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox .media-wrap { max-width: 100%; max-height: 78vh; display: flex; align-items: center; justify-content: center; }
.lightbox img, .lightbox video {
  max-width: 94vw; max-height: 76vh; border-radius: 12px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
}
.lightbox .lb-bar { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); color: #fff; }
.lightbox .lb-info { font-size: .85rem; opacity: .85; letter-spacing: .4px; white-space: nowrap; }
.lb-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 560px) {
  .lightbox .lb-bar { flex-direction: column; gap: 14px; text-align: center; }
  .lb-btn { padding: 9px 14px; font-size: .7rem; }
}
.lb-btn {
  background: rgba(255,255,255,0.12); color: #f4ead8;
  border: 1px solid rgba(216,188,138,.4);
  border-radius: 999px; padding: 10px 18px;
  font-weight: 500; font-size: .74rem; letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; text-decoration: none;
  backdrop-filter: blur(6px);
}
.lb-btn.danger {
  border-color: rgba(224, 130, 118, 0.55);
  color: #f2beb5;
}
.lb-close {
  position: absolute; top: 16px; right: 18px; z-index: 2;
  font-size: 20px; color: #fff; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(216,188,138,.45);
  color: #f4ead8; font-size: 26px; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
  backdrop-filter: blur(6px);
  padding-bottom: 4px;
  transition: background .2s, transform .15s;
}
.lb-nav:hover { background: rgba(255,255,255,0.2); }
.lb-nav:active { transform: translateY(-50%) scale(.92); }
.lb-nav.prev { left: 14px; }
.lb-nav.next { right: 14px; }
.lb-counter {
  display: inline-block; margin-right: 12px;
  color: var(--gold-1); font-weight: 500; letter-spacing: 1.5px; font-size: .78rem;
}

/* Barra de subida */
.uploader {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  transform: translateY(120%); transition: transform .35s cubic-bezier(.2,.8,.25,1);
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
}
.uploader.show { transform: translateY(0); }
.uploader-card {
  max-width: 740px; margin: 0 auto;
  background: linear-gradient(150deg, #362a2f, var(--ink));
  color: #f4ead8;
  border: 1px solid rgba(216,188,138,.35);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 22px;
}
.uploader .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.uploader .row strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; letter-spacing: .4px; }
.uploader .muted { color: rgba(244,234,216,.6); font-size: .78rem; letter-spacing: 1px; }
.progress { height: 6px; background: rgba(255,255,255,.14); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.progress > i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold-1), #e7d3a4, var(--gold-2));
  background-size: 200% 100%;
  animation: progressGlow 1.6s linear infinite;
  transition: width .25s;
}
@keyframes progressGlow { from { background-position: 0% 0; } to { background-position: 200% 0; } }

/* Modales */
.modal-bg {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(25, 18, 20, 0.5);
  backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-bg.open { display: flex; animation: lbIn .25s ease; }
.modal {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.9);
  outline: var(--hairline); outline-offset: -5px;
  border-radius: var(--radius); padding: 32px 28px;
  max-width: 400px; width: 100%; text-align: center; box-shadow: var(--shadow);
  animation: fadeUp .35s cubic-bezier(.2,.8,.25,1) both;
}
.modal h3 { font-size: 1.5rem; font-weight: 500; }
.modal input {
  width: 100%; padding: 15px; border-radius: var(--radius-sm);
  border: 1px solid rgba(176,141,87,.4);
  font-family: var(--sans); font-size: 1.05rem; text-align: center;
  margin: 18px 0 14px; outline: none; background: #fff;
  transition: border .25s, box-shadow .25s;
}
.modal input:focus { border-color: var(--gold-2); box-shadow: 0 0 0 4px rgba(176,141,87,.14); }

/* Toast */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(150deg, #362a2f, var(--ink));
  color: #f4ead8;
  border: 1px solid rgba(216,188,138,.4);
  padding: 13px 24px; border-radius: 999px;
  font-size: .86rem; letter-spacing: .5px;
  opacity: 0; transition: all .35s cubic-bezier(.2,.8,.25,1);
  z-index: 90; pointer-events: none; max-width: 90vw;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Corazones al subir */
.heart-float {
  position: fixed; z-index: 95; pointer-events: none;
  font-size: 20px; bottom: 80px;
  animation: heartUp 1.7s ease-out forwards;
}
@keyframes heartUp {
  0%   { opacity: 0; transform: translateY(0) scale(.5) rotate(0deg); }
  12%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-46vh) scale(1.25) rotate(14deg); }
}

/* ═══════════════ PÁGINA QR ═══════════════ */
.qr-page {
  position: relative; z-index: 1;
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 36px 0;
}
.qr-card { text-align: center; max-width: 460px; width: 100%; padding: 40px 32px; }
.qr-frame {
  display: inline-block; padding: 14px;
  border: 1px solid rgba(176,141,87,.45);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(250,246,240,.9), 0 0 0 7px rgba(176,141,87,.25), var(--shadow-sm);
}
.qr-card img { width: 240px; height: 240px; display: block; border-radius: 8px; }
.qr-names { font-family: var(--script); font-size: 2.6rem; line-height: 1.3; margin: 4px 0 2px; }
.qr-code-box {
  font-family: var(--sans); font-weight: 500;
  font-size: 1.05rem; letter-spacing: 6px; text-transform: uppercase;
  color: var(--ink); margin: 18px 0 4px;
}
.qr-code-label {
  font-size: .66rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold-2); font-weight: 500;
}
.url-box {
  font-size: .8rem; word-break: break-all; color: var(--muted);
  background: rgba(236,223,200,.4);
  border: 1px solid rgba(176,141,87,.2);
  padding: 10px 14px; border-radius: 12px; margin-top: 14px;
}

/* ───────────── Responsive / util ───────────── */
@media (max-width: 400px) {
  .landing h1 { font-size: 1.8rem; }
  .landing .names { font-size: 2.7rem; }
  .grid { gap: 6px; }
  .card { padding: 26px 20px; }
}
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}
@media print {
  body { background: #fff; }
  body::before, body::after, #petals { display: none !important; }
  .no-print { display: none !important; }
  .card { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  #petals { display: none; }
}
