/* ════════════════════════════════════════════════════════
   STYLES.CSS — "La Suite" · Boda (N18)
   Invitae Studio
   Materia: negro con grano + foil dorado + vellum + cera.
   Los monogramas son arte NEGRO enmascarado (mask-image);
   el dorado lo pinta este CSS — nunca la IA (L-025).
   ════════════════════════════════════════════════════════ */

:root {
  color-scheme: light;
  --charcoal: #171513;
  --charcoal-soft: #27231f;
  --ivory: #f4efe6;
  --ivory-deep: #e2d8c7;
  --ink: #39342f;
  --gold: #b79753;
  --gold-light: #ead69f;
  --wax: #b77d3f;
  --wax-dark: #825226;
  --green: #40503b;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.76, 0, 0.24, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  min-width: 320px;
  overflow: hidden;
  background: #d8d1c6;
  font-family: "Jost", system-ui, sans-serif;
}
button,
input,
a {
  font: inherit;
}
button {
  color: inherit;
}
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}
.serif {
  font-family: "Cormorant Garamond", Georgia, serif;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app {
  position: relative;
  isolation: isolate;
  width: min(100%, 480px);
  height: 100svh;
  min-height: 600px;
  margin-inline: auto;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.12)),
    url("assets/images/fondo-editorial.webp") center / cover no-repeat,
    #ded7cc;
  box-shadow: 0 0 70px rgba(41, 34, 27, 0.28);
}
.app::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 47%,
    transparent 34%,
    rgba(36, 31, 26, 0.16) 110%
  );
}
.app::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.11;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

/* ── Identidad dorada: arte negro como máscara, foil pintado por CSS.
     Robusto en iOS/Android (sustituye filter:url(#raster-gold)). ── */
.gold-mark {
  display: block;
  background: linear-gradient(
    125deg,
    #83672f,
    #c5a65f 28%,
    #f2dfab 50%,
    #b28e47 72%,
    #715626
  );
  -webkit-mask-image: var(--mark);
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-image: var(--mark);
  mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  /* L-029: el foil respira en TODOS los monogramas — lento y tenue */
  animation: foil-breathe 14s ease-in-out infinite;
}
/* Sobre papel claro el dorado se pierde: monograma en tinta.
   El foil (y su respiro) queda solo donde hay fondo oscuro. */
.card-vellum .mini-monogram,
.card-family .card-heading-mark,
.card-place .card-heading-mark,
.card-rsvp .card-heading-mark {
  background: #2b2620;
  animation: none;
  opacity: .88;
}

/* ── Hojas del monograma flotando sobre el fondo ──
   Generadas por app.js · solo transform/opacity (GPU ligera). */
.leaves {
  position: absolute;
  inset: 0;
  z-index: 15; /* frente al sobre (10), detrás de las tarjetas (30) */
  overflow: hidden;
  pointer-events: none;
}
.leaf {
  position: absolute;
  top: -6%;
  color: #d9bc7c;
  filter: drop-shadow(0 2px 3px rgba(30, 24, 18, 0.35));
  animation: leaf-fall var(--fall-duration, 24s) linear var(--fall-delay, 0s)
    infinite;
}
.leaf svg {
  display: block;
  width: 100%;
  height: 100%;
  animation: leaf-sway var(--sway-duration, 5s) ease-in-out infinite alternate;
}
@keyframes leaf-fall {
  0% {
    transform: translateY(-8vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: var(--leaf-opacity, 0.55);
  }
  86% {
    opacity: var(--leaf-opacity, 0.55);
  }
  100% {
    transform: translateY(112vh) translateX(var(--drift, 40px))
      rotate(var(--spin, 300deg));
    opacity: 0;
  }
}
@keyframes leaf-sway {
  from {
    transform: translateX(-9px) rotate(-14deg);
  }
  to {
    transform: translateX(9px) rotate(14deg);
  }
}

/* Barra superior */
.topbar {
  position: absolute;
  z-index: 70;
  top: max(14px, env(safe-area-inset-top));
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}
.app.is-open .topbar {
  opacity: 1;
  pointer-events: auto;
}
.suite-mark,
.icon-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(23, 21, 19, 0.78);
  color: var(--ivory);
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.suite-mark {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.top-actions {
  display: flex;
  gap: 8px;
}
.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  place-items: center;
  cursor: pointer;
}
.icon-button svg {
  width: 15px;
  height: 15px;
}

/* Escenario del sobre */
.stage {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  perspective: 1700px;
  transition:
    transform 1.2s var(--ease),
    filter 0.8s;
}
.app.has-card .stage {
  transform: translateY(28%) scale(0.72);
  filter: saturate(0.78) brightness(0.72);
  pointer-events: none;
}
.envelope {
  position: relative;
  width: min(300px, 72vw);
  aspect-ratio: 0.71;
  transform-style: preserve-3d;
  filter: drop-shadow(0 25px 30px rgba(35, 28, 23, 0.34));
}
.envelope-back {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  border: 1px solid rgba(231, 212, 161, 0.12);
  border-radius: 5px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.035), transparent 38%),
    #1a1816;
  box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.52);
}
.envelope-back::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(183, 151, 83, 0.11);
  border-radius: 3px;
}
.paper-edges {
  position: absolute;
  z-index: 5;
  top: 18px;
  right: -2px;
  bottom: 18px;
  width: 17px;
  border-radius: 0 3px 3px 0;
  background: repeating-linear-gradient(90deg, #d8cfbf 0 2px, #f0e9dd 2px 4px);
  box-shadow: 4px 0 8px rgba(0, 0, 0, 0.24);
  opacity: 0.78;
}
.pocket {
  position: absolute;
  z-index: 14;
  right: -2px;
  top: 8px;
  bottom: 8px;
  width: 12px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(
    90deg,
    #070605,
    #26221d 60%,
    #77613b 94%,
    #c0a366
  );
  box-shadow: -7px 0 12px rgba(0, 0, 0, 0.48);
}
.cover {
  position: absolute;
  inset: 0;
  z-index: 22;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 1.55s var(--ease-inout);
  -webkit-tap-highlight-color: transparent;
}
.app.is-open .cover {
  transform: rotateY(-156deg);
}
.cover-face,
.cover-back {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(231, 212, 161, 0.14);
  border-radius: 5px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.cover-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.055), transparent 30%),
    radial-gradient(circle at 52% 42%, #292521, #171513 62%, #0e0d0c);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset -18px 0 30px rgba(0, 0, 0, 0.24);
}
.cover-face::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(183, 151, 83, 0.14);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 56%, 5% 50%, 0 44%);
}
.cover-face::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 130 130' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='.18'/%3E%3C/svg%3E");
}
.cover-back {
  transform: rotateY(180deg);
  background:
    linear-gradient(70deg, rgba(183, 151, 83, 0.1), transparent 30%), #12100f;
  box-shadow: inset 18px 0 25px rgba(0, 0, 0, 0.35);
}
.cover-back::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(183, 151, 83, 0.1);
}
.cover-brand {
  position: relative;
  z-index: 2;
  width: 190px;
  height: 190px;
  filter: drop-shadow(0 4px 12px rgba(225, 194, 117, 0.17));
}
@keyframes foil-breathe {
  0%,
  100% {
    opacity: 0.82;
  }
  50% {
    opacity: 1;
  }
}
.seal {
  position: relative;
  z-index: 3;
  width: 76px;
  margin-top: 20px;
  filter: drop-shadow(0 7px 9px rgba(0, 0, 0, 0.5));
  transition:
    opacity 0.45s,
    transform 0.58s var(--bounce);
}
.app.is-open .seal {
  opacity: 0;
  transform: translate(28px, 20px) rotate(36deg) scale(0.18);
}
.open-hint {
  position: relative;
  z-index: 3;
  margin: 17px 0 0;
  color: rgba(244, 239, 230, 0.52);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  animation: breathe 2.4s ease-in-out infinite;
}
@keyframes breathe {
  50% {
    opacity: 0.46;
  }
}

/* Las piezas */
.cards {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  perspective: 1300px;
}
.card {
  --rotation: 0deg;
  --stack-x: 0px;
  --stack-y: 0px;
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(310px, 76vw);
  aspect-ratio: 0.7;
  overflow: hidden;
  padding: 28px 25px 25px;
  border-radius: 3px;
  color: var(--ink);
  text-align: center;
  opacity: 0;
  clip-path: inset(0 94% 0 0 round 3px);
  transform: translate(-50%, -50%) translate(56px, 18px) rotate(3deg)
    scale(0.94);
  transform-origin: center;
  box-shadow: 0 24px 48px rgba(40, 32, 25, 0.33);
  pointer-events: none;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.13;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.46' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='.24'/%3E%3C/svg%3E");
}
.card.is-extracting {
  animation: extract-card 1.22s var(--ease) forwards;
  pointer-events: auto;
}
.card.is-stacked {
  opacity: 1;
  clip-path: inset(0 0 0 0 round 3px);
  transform: translate(-50%, -50%) translate(var(--stack-x), var(--stack-y))
    rotate(var(--rotation)) scale(0.985);
  pointer-events: none;
  transition:
    transform 0.55s var(--ease),
    filter 0.55s,
    opacity 0.55s;
  filter: brightness(0.76) saturate(0.78);
}
.card.is-active {
  opacity: 1;
  clip-path: inset(0 0 0 0 round 3px);
  transform: translate(-50%, -50%) rotate(var(--rotation));
  pointer-events: auto;
  filter: none;
}
.card.is-returning {
  animation: return-card 0.9s var(--ease-inout) forwards;
  pointer-events: none;
}
@keyframes extract-card {
  0% {
    opacity: 0.24;
    clip-path: inset(0 94% 0 0 round 3px);
    transform: translate(-50%, -50%) translate(58px, 18px) rotate(3deg)
      scale(0.94);
  }
  42% {
    opacity: 0.72;
    clip-path: inset(0 0 0 0 round 3px);
    transform: translate(-50%, -50%) translate(178px, -6px) rotate(7deg)
      scale(0.97);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0 round 3px);
    transform: translate(-50%, -50%) rotate(var(--rotation));
  }
}
@keyframes return-card {
  0% {
    opacity: 1;
    clip-path: inset(0 0 0 0 round 3px);
    transform: translate(-50%, -50%) rotate(var(--rotation));
  }
  50% {
    opacity: 0.7;
    clip-path: inset(0 0 0 0 round 3px);
    transform: translate(-50%, -50%) translate(178px, -6px) rotate(7deg)
      scale(0.97);
  }
  100% {
    opacity: 0.16;
    clip-path: inset(0 94% 0 0 round 3px);
    transform: translate(-50%, -50%) translate(58px, 18px) rotate(3deg)
      scale(0.94);
  }
}

.card-vellum {
  --rotation: -1deg;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(239, 234, 224, 0.79);
  backdrop-filter: blur(10px) saturate(0.82);
  -webkit-backdrop-filter: blur(10px) saturate(0.82);
  box-shadow:
    0 24px 50px rgba(40, 32, 25, 0.28),
    inset 0 0 35px rgba(255, 255, 255, 0.23);
}
/* Fallback vellum: sin backdrop-filter (Android medio) el papel
   se vuelve más opaco para que el texto siga siendo digno. */
@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  .card-vellum {
    background: rgba(241, 236, 226, 0.94);
  }
}
.vellum-content {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 126px; /* espacio del monograma; el texto se centra en lo que resta */
}
.mini-monogram {
  width: 248px;
  height: 62px;
}
.parents {
  margin: 6px 0 17px;
  color: rgba(57, 52, 47, 0.68);
  font-size: 7.8px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.names {
  margin: 0;
  font-family: "Italiana", "Cormorant Garamond", serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}
.ampersand {
  margin: 5px 0 1px;
  color: #987635;
  font-family: "Parisienne", cursive;
  font-size: 27px;
}
.invitation-copy {
  margin: 17px 0 0;
  color: rgba(57, 52, 47, 0.72);
  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  font-style: italic;
  line-height: 1.5;
}

.card-date {
  --rotation: 1.1deg;
  display: grid;
  place-items: center;
  border: 1px solid rgba(234, 214, 159, 0.35);
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.045), transparent 35%),
    #1b1917;
  color: var(--ivory);
}
.card-date::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(183, 151, 83, 0.34);
}
.date-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 66px;
}
.eyebrow {
  margin: 0;
  color: var(--gold-light);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.date-weekday {
  margin: 18px 0 -4px;
  color: var(--gold);
  font-family: "Parisienne", cursive;
  font-size: 31px;
}
.date-number {
  margin: 0;
  font-family: "Italiana", serif;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.ornament-line {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 14px auto;
  color: var(--gold);
}
.ornament-line::before,
.ornament-line::after {
  content: "";
  width: 48px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.event-time {
  margin: 0;
  color: rgba(244, 239, 230, 0.68);
  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  line-height: 1.65;
}
.countdown {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 22px;
}
.countdown strong {
  display: block;
  font-family: "Italiana", serif;
  font-size: 21px;
  font-weight: 400;
}
.countdown small {
  display: block;
  margin-top: 3px;
  color: var(--gold);
  font-size: 7px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card-family {
  --rotation: -1.35deg;
  padding-top: 126px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.55), transparent 32%), #eee6d9;
}
.card-family::before,
.card-place::before,
.card-rsvp::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(154, 122, 58, 0.35);
  pointer-events: none;
}
.card-heading-mark {
  width: 214px;
  height: 54px;
}
/* ═══ PERILLA: altura del monograma en TODAS las piezas ═══
   Sube/baja este top y toda la suite se homologa (pieza i incluida).
   La portada del sobre no pasa por aquí. */
.card > .card-heading-mark,
.card-vellum .mini-monogram {
  position: absolute;
  z-index: 4;
  top: 20px; /* ← AQUÍ */
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
}
.card-kicker {
  margin: 4px 0 8px;
  color: #8e6d31;
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.card-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 25px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.1;
}
.family-list {
  display: grid;
  gap: 16px;
  margin-top: 27px;
}
.family-block {
  position: relative;
}
.family-block:first-child::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 42px;
  height: 1px;
  background: rgba(154, 122, 58, 0.38);
  transform: translateX(-50%);
}
.family-role {
  margin: 0 0 4px;
  color: #927239;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.family-name {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 600;
}
.family-note {
  margin: 23px 0 0;
  color: rgba(57, 52, 47, 0.65);
  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  font-style: italic;
}

.card-place {
  --rotation: 0.8deg;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 126px;
  background:
    radial-gradient(
      circle at 50% 20%,
      rgba(183, 151, 83, 0.1),
      transparent 32%
    ),
    #f2ebdf;
}
.venue-sketch {
  width: 150px;
  height: 80px;
  margin: 9px 0 2px;
  color: #7d663a;
}
.venue-name {
  margin: 0;
  font-family: "Italiana", serif;
  font-size: 25px;
  line-height: 1.18;
  text-transform: uppercase;
}
.venue-address {
  margin: 13px 0 0;
  color: rgba(57, 52, 47, 0.68);
  font-size: 9px;
  line-height: 1.65;
}
.dress-code {
  margin: 12px 0 0;
  color: #7a602e;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.paper-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 17px;
  padding: 0 20px;
  border: 1px solid rgba(57, 52, 47, 0.34);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.card-rsvp {
  --rotation: -0.65deg;
  display: grid;
  place-items: center;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.6), transparent 30%), #e8dfd0;
}
.rsvp-content {
  position: relative;
  z-index: 3;
  width: 100%;
}
.card-rsvp .rsvp-content {
  padding-top: 66px;
}
.signature-input {
  width: 100%;
  margin: 25px 0 5px;
  padding: 7px 4px;
  border: 0;
  border-bottom: 1px solid rgba(57, 52, 47, 0.42);
  background: transparent;
  color: #2f2a26;
  font-family: "Parisienne", cursive;
  font-size: 27px;
  text-align: center;
}
.signature-input::placeholder {
  color: rgba(57, 52, 47, 0.3);
  font-size: 19px;
}
.signature-label {
  margin: 0;
  color: #8e6d31;
  font-size: 7px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.seal-action {
  min-height: 42px;
  margin-top: 20px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--gold-light);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
}
.confirmed {
  display: none;
}
.card-rsvp.is-confirmed .rsvp-form {
  display: none;
}
.card-rsvp.is-confirmed .confirmed {
  display: block;
}
.confirmed-name {
  margin: 11px 0 0;
  font-family: "Parisienne", cursive;
  font-size: 34px;
}
.confirmed-copy {
  margin: 9px 0 0;
  color: rgba(57, 52, 47, 0.7);
  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  line-height: 1.5;
}
.rsvp-stamp {
  position: absolute;
  z-index: 5;
  right: 18px;
  bottom: 28px;
  width: 78px;
  opacity: 0;
  transform: scale(2.4) rotate(18deg);
  filter: drop-shadow(0 5px 8px rgba(80, 50, 24, 0.3));
}
.card-rsvp.is-confirmed .rsvp-stamp {
  opacity: 1;
  transform: scale(1) rotate(-8deg);
  transition:
    opacity 0.2s,
    transform 0.65s var(--bounce);
}
.folio {
  position: absolute;
  right: 15px;
  bottom: 12px;
  color: #8e6d31;
  font-family: "Cormorant Garamond", serif;
  font-size: 9px;
  font-style: italic;
}

/* Navegación */
.navigation {
  position: absolute;
  z-index: 65;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: 0.6s var(--ease) 0.4s;
}
.app.has-card .navigation {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav-button {
  display: grid;
  width: 43px;
  height: 43px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  place-items: center;
  background: rgba(23, 21, 19, 0.88);
  color: var(--gold-light);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  backdrop-filter: blur(12px);
}
.nav-button:disabled {
  opacity: 0.32;
  cursor: default;
}
.nav-progress {
  min-width: 104px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(23, 21, 19, 0.88);
  color: var(--ivory);
  text-align: center;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}
.nav-progress strong {
  font-family: "Italiana", serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
}
.progress-line {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 5px;
}
.progress-line i {
  width: 13px;
  height: 1px;
  background: rgba(244, 239, 230, 0.22);
  transition: 0.35s;
}
.progress-line i.is-on {
  background: var(--gold-light);
}

.demo-note {
  position: absolute;
  z-index: 62;
  left: 0;
  right: 0;
  bottom: max(10px, env(safe-area-inset-bottom));
  margin: 0;
  color: rgba(23, 21, 19, 0.46);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
  transition: opacity 0.4s;
}
.app.has-card .demo-note {
  opacity: 0;
}
.demo-note.is-hidden {
  display: none;
}
.toast {
  position: absolute;
  z-index: 85;
  left: 50%;
  bottom: 78px;
  width: max-content;
  max-width: calc(100% - 38px);
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(23, 21, 19, 0.9);
  color: var(--ivory);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: 0.3s var(--ease);
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 720px) {
  body {
    padding-block: 18px;
    background: #bbb3a8;
  }
  .app {
    height: calc(100svh - 36px);


/* ─── Pase QR (homologación Fase C) — materia de la suite ─── */
.places-input { font-family: "Cormorant Garamond", serif; font-size: 19px; margin-top: 14px; }
.pase-qr {
  display: none;
  width: 132px;
  margin: 14px auto 4px;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(154, 122, 58, 0.45);
  box-shadow: 0 6px 16px rgba(40, 32, 25, 0.15);
}
.pase-qr.is-on { display: block; }
.pase-qr canvas { display: block; margin: 0 auto; }
.pase-folio {
  display: none;
  margin: 6px 0 0;
  color: #8e6d31;
  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.08em;
}
.pase-folio.is-on { display: block; }
.pase-guardar { display: none; margin-top: 14px; }
.pase-guardar.is-on { display: inline-flex; }
.pase-link {
  display: none;
  margin: 10px auto 0;
  padding: 6px;
  border: 0;
  background: none;
  color: rgba(57, 52, 47, 0.55);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: underline;
  text-transform: uppercase;
  cursor: pointer;
}
.pase-link.is-on { display: block; }

/* ── Marco de teléfono en escritorio (la invitación es móvil) ── */
@media (min-width: 900px) {
  body { background: radial-gradient(circle at 50% 25%, #2a2622, #12100d 72%); padding: 34px 0; }
  .app {
    height: min(860px, calc(100svh - 68px));
    min-height: 0;
    border: 12px solid #17140f;
    border-radius: 46px;
    box-shadow: 0 0 0 2px #3a342c, 0 44px 110px rgba(0,0,0,.62);
  }
}
