/* CrisyBri · Quiet Luxury Editorial (Vogue / Coastal) */
:root {
  --ivory: #F7F3EA;
  --cream: #EFE8DA;
  --white: #FFFcf7;
  --olive: #5C6448;
  --olive-deep: #3E4532;
  --olive-soft: #7A8466;
  --ink: #2C2B26;
  --muted: #6B675C;
  --line: rgba(92, 100, 72, 0.22);
  --serif: 'Antic Didone', 'Libre Bodoni', Georgia, serif;
  --display: 'Antic Didone', 'Libre Bodoni', Georgia, serif;
  --didone: 'Antic Didone', 'Libre Bodoni', Georgia, serif;
  --script: 'Pinyon Script', 'Great Vibes', cursive;
  --flourish: 'Great Vibes', 'Pinyon Script', cursive;
  --sans: 'Manrope', system-ui, sans-serif;
  --safe: env(safe-area-inset-bottom, 0px);
  /* Texturas sutiles Quiet Luxury */
  --tex-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)' opacity='0.55'/%3E%3C/svg%3E");
  --tex-stone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)' opacity='0.5'/%3E%3C/svg%3E");
  --tex-cotton: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)' opacity='0.45'/%3E%3C/svg%3E");
  /* Papel acuarela sutil (estilo Pao, sin flores) */
  --fondo-papel: url('https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/pao/fondo%20ultimo1.webp');
  /* Nuevos assets Cris & Bri */
  --img-marco-lateral: url('https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/crisybri/MARCO%20LATERAL.webp');
  --img-sinta-lino: url('https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/crisybri/SINTA%20LINO.webp');
  --img-hoja: url('https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/crisybri/hoja%20(1).webp');
  --img-hoja-blanca: url('https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/crisybri/hoja%20blnva%20(1).webp');
  --img-marco-o: url('https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/crisybri/marco%20o.webp');
  --img-papel: url('https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/Josh%20%26%20Juan%20Diego/pael-1.webp');
  /* Sombra fija (dsd): más suave — el multiply alto teñía Contacto de café */
  --page-shadow-opacity: 0.12;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.sr-only-svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

html {
  scroll-behavior: smooth;
  background-color: #EDE6D8;
  min-height: 100%;
  height: -webkit-fill-available;
  /* clip evita scroll horizontal SIN romper sticky de los álbumes */
  overflow-x: clip;
  max-width: 100%;
  touch-action: pan-y;
  -ms-touch-action: pan-y;
}

body {
  position: relative;
  font-family: var(--serif);
  color: var(--ink);
  background-color: #EDE6D8;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  touch-action: pan-y;
  -ms-touch-action: pan-y;
  overscroll-behavior-x: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Inputs/RSVP sí permiten seleccionar texto */
input, textarea, select, button,
[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

/* Sin menú “Guardar imagen” / arrastrar para descargar */
img, picture, video, svg {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: auto;
}
/* Los overlays fijos de fondo NUNCA atrapan taps (la regla de arriba los reactivaba
   y bloqueaba botones: copiar cuenta/cédula, view details, etc.) */
.page-waves,
.page-waves__video,
.page-shadow,
.page-shadow__img,
.grain,
.grain video,
.grain img {
  pointer-events: none !important;
}

/* Papel de fondo sutil — solo pael 1 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background-color: var(--ivory);
  background-image:
    linear-gradient(180deg,
      rgba(247, 243, 234, 0.5) 0%,
      rgba(247, 243, 234, 0.34) 50%,
      rgba(247, 243, 234, 0.48) 100%),
    var(--img-papel);
  background-size: cover, cover;
  background-position: center top, center top;
  background-repeat: no-repeat, no-repeat;
  background-blend-mode: normal, soft-light;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 90% 70% at 50% 28%,
      rgba(255, 252, 247, 0.28) 0%,
      transparent 70%);
}

/* Texturas: se aplican como capas de fondo (sin tocar hijos absolutos) */
.tex-cotton {
  background-image: var(--tex-cotton) !important;
  background-size: 150px 150px !important;
  background-blend-mode: multiply;
}
.tex-grain,
.tex-stone {
  background-image: var(--tex-stone) !important;
  background-size: 190px 190px !important;
  background-blend-mode: soft-light, normal;
}
.tex-linen {
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(62, 69, 50, 0.04) 0 1px,
      transparent 1px 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(44, 43, 38, 0.03) 0 1px,
      transparent 1px 5px
    ),
    var(--tex-noise) !important;
  background-size: auto, auto, 170px 170px !important;
  background-blend-mode: multiply, multiply, multiply;
}

img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* Olas suaves — fijas en carta / Momentos (sin mover DOM) */
.section-waves-slot {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.16;
  mix-blend-mode: multiply;
}
.section-waves__still,
.section-waves__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.section-waves__video {
  z-index: 1;
}
.carta-section,
.page-album,
.ql-contact,
.ql-gifts {
  position: relative;
}
.carta-section > *:not(.section-waves-slot),
.ql-contact__collage,
.ql-gifts__inner {
  position: relative;
  z-index: 1;
}
.page-album__pin {
  z-index: 1;
}
.page-waves__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) brightness(1.05);
}
.page-waves__still {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) brightness(1.05);
}
.page-waves.is-still .page-waves__video {
  display: none !important;
}
.page-waves.is-video .page-waves__still {
  display: none !important;
}
/* Sombra atmosférica fija — encima del video de olas, debajo de fotos */
.page-shadow {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  opacity: var(--page-shadow-opacity, 0.40);
  mix-blend-mode: multiply;
  background:
    radial-gradient(90% 28% at 92% 6%, rgba(30, 12, 8, 0.28), transparent 70%),
    radial-gradient(70% 18% at 62% 14%, rgba(20, 10, 8, 0.16), transparent 72%),
    radial-gradient(55% 16% at 78% 32%, rgba(10, 6, 4, 0.12), transparent 70%),
    radial-gradient(40% 12% at 30% 48%, rgba(0, 0, 0, 0.08), transparent 70%);
}
.page-shadow__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
/* Fotos / marcos / CTAs por encima del video de olas y la sombra */
.invite-sheet__media,
.invite-sheet__crest,
.oval-invite__stage,
.oval-invite,
.ql-dress__frame,
.historia__slideshow,
.historia,
.fotos-evento-section,
.ql-close,
.ql-contact,
.bleed,
.carta-section,
.inv-carta,
#pageAlbum,
#peekAlbum,
.place__art,
.place__btn,
.ql-btn-line,
.sched__map,
.btn,
.choice__btn,
.polaroid-stage,
.polaroid-thumb,
.gallery__mosaic,
.schedule__casa-wrap,
.schedule__casa,
.ql-rsvp,
.ql-rsvp__form {
  position: relative;
  z-index: 40;
  isolation: isolate;
}

/* Desktop gate */
.desk {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--cream);
  background-image:
    var(--tex-cotton),
    radial-gradient(ellipse at 50% 30%, var(--white), var(--cream) 70%);
  background-size: 150px 150px, auto;
  background-blend-mode: multiply, normal;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  gap: 12px;
}
.desk__mono { width: 140px; mix-blend-mode: multiply; }
.desk__script { font-size: 28px; font-weight: 400; color: var(--olive); }
.desk__msg { font-family: var(--sans); font-weight: 300; font-size: 13px; color: var(--muted); line-height: 1.7; }
.desk__date { margin-top: 16px; font-family: var(--sans); font-weight: 300; letter-spacing: 0.4em; font-size: 11px; color: var(--olive); }

@media (min-width: 768px) {
  html:not(.force-preview) .desk { display: flex; }
  html:not(.force-preview) .site { display: none !important; }
}

/* Type helpers */
.eyebrow {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 14px;
}
.eyebrow.light { color: rgba(247, 243, 234, 0.75); }

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 9vw, 48px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--olive-deep);
  margin-bottom: 18px;
}
.display.light { color: var(--ivory); }

.lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 340px;
  margin: 0 auto 32px;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ===== Editorial GSAP magazine (?plain=1 lo apaga) ===== */
html.ed-scroll {
  scroll-snap-type: none;
  scroll-behavior: auto;
}
html.ed-scroll .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
html.ed-scroll .hero {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
html.ed-scroll .ed-shell {
  position: relative;
}
html.ed-scroll .ed-stage {
  position: relative;
  height: 100vh; /* fallback navegadores viejos */
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--ivory);
}
html.ed-scroll .ed-panel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  margin: 0;
}
html.ed-scroll .ed-panel.verse,
html.ed-scroll .ed-panel.count,
html.ed-scroll .ed-panel.attire,
html.ed-scroll .ed-panel.gifts {
  min-height: 100%;
  padding-top: 48px;
  padding-bottom: calc(48px + var(--safe));
}
html.ed-scroll .ed-panel.gifts {
  background: var(--olive-deep);
}
html.ed-scroll .inv-carta,
html.ed-scroll .rsvp {
  scroll-snap-align: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  padding: 14px 28px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn--ghost {
  border: 1px solid rgba(255,255,255,0.55);
  background: transparent;
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); }
.btn--line {
  border-bottom: 1px solid var(--olive);
  background: none;
  color: var(--olive-deep);
  padding: 6px 0;
  margin-top: 8px;
}
.btn--solid {
  width: 100%;
  background: var(--olive);
  color: var(--ivory);
}
.btn--solid:hover { background: var(--olive-deep); }

/* SITE */
.site {
  min-height: 100vh; /* fallback navegadores viejos */
  min-height: 100dvh;
  max-width: 100%;
  width: 100%;
}

.music {
  position: fixed !important;
  right: 16px;
  bottom: calc(16px + var(--safe));
  z-index: 200 !important;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.22);
  color: rgba(44, 43, 38, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 8px 24px rgba(44, 43, 38, 0.12);
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.music:active {
  transform: scale(0.94);
}
.music__icon {
  position: absolute;
  width: 16px;
  height: 16px;
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.music__icon--play {
  margin-left: 1px; /* óptico: triángulo centrado */
}
.music:not(.is-playing) .music__icon--play,
.music.is-playing .music__icon--pause {
  opacity: 1;
  visibility: visible;
}
.music__bars {
  display: none !important;
}
  50% { transform: scaleY(1); }
}

/* HERO — portada Vogue / Quiet Luxury */
.hero {
  position: relative;
  min-height: 100vh; /* fallback navegadores viejos */
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background: #1a1712;
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
}
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(26,23,18,0.12) 0%, rgba(26,23,18,0.45) 55%, rgba(26,23,18,0.72) 100%),
    linear-gradient(180deg, rgba(42,34,24,0.18) 0%, transparent 35%, rgba(26,23,18,0.55) 100%);
  pointer-events: none;
}
.hero__frame {
  position: relative;
  z-index: 5;
  padding: 32px 22px calc(40px + var(--safe));
  max-width: 440px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 1;
  visibility: visible;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero__seal {
  width: min(112px, 30vw);
  height: auto;
  margin-bottom: 28px;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.25));
}
.hero__kicker {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  opacity: 0.88;
  margin-bottom: 22px;
}
.hero__names {
  font-family: var(--display), var(--serif), Georgia, serif;
  font-weight: 400;
  font-size: clamp(28px, 7.2vw, 38px);
  line-height: 1.15;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #fff;
}
.hero__names span {
  display: block;
}
.hero__amp {
  font-family: var(--script);
  font-style: normal;
  font-weight: 400;
  font-size: 0.72em;
  letter-spacing: 0;
  text-transform: none;
  margin: 2px 0 4px;
  opacity: 0.95;
}
.hero__date {
  margin-top: 28px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
}
.hero__num {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.12em;
}
.hero__month {
  font-family: var(--script);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
}
.hero__place {
  margin-top: 18px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  opacity: 0.82;
}


/* Bienvenida — tul del sobre, tarjeta, encajes, óvalo y perlas */
.bienvenida {
  position: relative;
  z-index: 50;
  margin-top: -64px;
  padding: 0 0 8px;
  text-align: center;
  background:
    radial-gradient(120% 90% at 100% 0%, #dcd5cd 0%, transparent 60%),
    linear-gradient(200deg, #ebe6e0 0%, #f6f3ef 40%, #fdfcfa 75%);
  overflow: visible;
}
.bienvenida__fondo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.bienvenida .luz {
  position: absolute;
  inset: auto;
  left: calc(50% - min(50%, 215px));
  top: 0;
  width: min(100%, 430px);
  height: 100%;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.75) 48%, transparent 58%);
  filter: blur(26px);
  mix-blend-mode: overlay;
  animation: carta-brillo 7s ease-in-out infinite;
  pointer-events: none;
}
.bienvenida .textura {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .35 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(60deg, rgba(150, 142, 135, 0.05) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(-60deg, rgba(150, 142, 135, 0.05) 0 1px, transparent 1px 4px);
  opacity: 0.35;
  mix-blend-mode: multiply;
}
.bienvenida > .bienvenida__tul-ovalo {
  z-index: 4;
  top: -40px;
  height: auto;
  isolation: isolate;
  background-color: #efeae4;
  background-repeat: no-repeat;
  background-size: 100% calc(100% - 40px);
  background-position: center 40px;
  clip-path: ellipse(36px 49px at 50% 53px);
  -webkit-clip-path: ellipse(36px 49px at 50% 53px);
}
.bienvenida__tul-ovalo .luz {
  top: 40px;
  height: calc(100% - 40px);
}
.bienvenida__tul-ovalo .textura {
  top: 0;
}
.bienvenida__card {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 72px 24px 88px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.bienvenida__card::before {
  content: none;
}
.bienvenida__encaje--recto {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
  width: 100%;
  height: 26px;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.bienvenida__mono {
  --linea: #5c564e;
  position: absolute;
  left: 50%;
  top: 13px;
  z-index: 6;
  width: 72px;
  aspect-ratio: 1 / 1.36;
  margin: 0;
  transform: translate(-50%, -50%);
  background: transparent;
  border: none;
  border-radius: 50%;
  box-sizing: border-box;
  box-shadow: none;
  pointer-events: none;
}
.bienvenida__mono-tint {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.bienvenida__mono::before,
.bienvenida__mono::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1.25px solid var(--linea);
  pointer-events: none;
  z-index: 2;
}
.bienvenida__mono::before {
  inset: 8px;
}
.bienvenida__mono::after {
  inset: 12px;
}
.bienvenida__mono-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58%;
  height: 58%;
  object-fit: contain;
  transform: translate(-50%, -50%);
  z-index: 1;
  filter: url(#monoLinea);
}
.bienvenida__lead {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px auto 0;
  max-width: 340px;
}
.bienvenida__lead-text {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.bienvenida__lead-line {
  flex: 1;
  height: 1px;
  max-width: 48px;
  background: linear-gradient(90deg, transparent, rgba(62, 69, 50, 0.45), transparent);
}
.bienvenida__until {
  position: relative;
  z-index: 2;
  margin: 14px auto 0;
  max-width: 300px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 10px;
  line-height: 1.9;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive);
}
.bienvenida__names {
  position: relative;
  z-index: 2;
  margin: 22px auto 0;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(34px, 9vw, 46px);
  line-height: 1.15;
  color: #3a342e;
}
.bienvenida__names span {
  font-family: var(--script);
  font-size: 0.72em;
}
.bienvenida__frame {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 340px;
  margin: 0 auto 18px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.55s ease, visibility 0.55s ease, transform 0.55s ease;
}
.bienvenida__frame.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.bienvenida__frame-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}
.nombre-invitado {
  width: 100%;
  margin: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
}
.nombre-invitado.hidden { display: none; }
.nombre-invitado.visible {
  display: block;
  opacity: 1;
}
#nombreInvitado {
  font-family: var(--script);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(28px, 7.4vw, 36px);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #3a342e;
  text-transform: none;
  margin: 0;
  white-space: nowrap;
}
#nombreInvitado .bloque-nombre {
  display: inline;
  text-transform: none;
  white-space: nowrap;
}
.guest__passes {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(17px, 4.6vw, 21px);
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--olive);
  line-height: 1.3;
  opacity: 0;
  transition: opacity 0.55s ease;
}
.guest__passes.hidden { display: none; }
.guest__passes.visible {
  display: block;
  opacity: 1;
}
.guest__passes strong {
  font-weight: 400;
  color: var(--olive);
}
.bienvenida__encaje--curva {
  --giro: -121deg;
  --tamano: 191px;
  position: absolute;
  left: -35px;
  bottom: -99px;
  z-index: 6;
  width: var(--tamano);
  height: auto;
  transform: scaleY(-1) rotate(var(--giro));
  transform-origin: left top;
  pointer-events: none;
}
.bienvenida__perla {
  position: absolute;
  z-index: 6;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 6px 8px rgba(70, 60, 48, 0.18));
}
.bienvenida__perla--lg {
  right: 14px;
  bottom: -6px;
  width: 77px;
}
.bienvenida__perla--sm {
  right: -4px;
  bottom: -30px;
  width: 49px;
}

/* Verse (legacy / carta fall) */
.verse {
  padding: 10px 32px 72px;
  text-align: center;
}
.verse p {
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 5vw, 22px);
  line-height: 1.55;
  max-width: 380px;
  margin: 0 auto;
}
.verse cite {
  display: block;
  margin-top: 18px;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive);
}

/* Carta a padres — estática */
.carta-section {
  position: relative;
  padding: 28px 0 0;
  background: transparent;
  overflow: visible;
}
.carta-section > .tul {
  position: absolute;
  z-index: 0;
}
.carta-section .tul {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 100% 0%, #dcd5cd 0%, transparent 60%),
    linear-gradient(200deg, #ebe6e0 0%, #f6f3ef 40%, #fdfcfa 75%);
}
.carta-section .luz {
  position: absolute;
  inset: auto;
  left: calc(50% - min(50%, 215px));
  top: 0;
  width: min(100%, 430px);
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(255, 255, 255, 0.75) 48%,
    transparent 58%
  );
  filter: blur(26px);
  mix-blend-mode: overlay;
  animation: carta-brillo 7s ease-in-out infinite;
  pointer-events: none;
}
.carta-section .textura {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .35 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
      repeating-linear-gradient(60deg, rgba(150, 142, 135, 0.05) 0 1px, transparent 1px 4px),
      repeating-linear-gradient(-60deg, rgba(150, 142, 135, 0.05) 0 1px, transparent 1px 4px);
  opacity: .35;
  mix-blend-mode: multiply;
}
.carta-section .tul::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 18%;
  background: linear-gradient(to top, rgba(200, 194, 188, 0.25), transparent);
  pointer-events: none;
}
.carta-section .hojas {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(115%, 495px);
  max-width: 495px;
  height: auto;
  transform: translateX(-50%);
  opacity: .78;
  filter: blur(1.5px);
  mix-blend-mode: normal;
  pointer-events: none;
}
.carta-section .hojas-lados {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100%, 430px);
  height: min(100%, 1240px);
  transform: translateX(-50%);
  opacity: .78;
  filter: blur(1.5px);
  mix-blend-mode: normal;
  pointer-events: none;
}
.carta-section .tulipanes {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100%, 430px);
  height: min(100%, 1240px);
  transform: translateX(-50%);
  pointer-events: none;
}
.carta-section .ramo {
  position: absolute;
  aspect-ratio: 323 / 480;
  opacity: .55;
  filter: saturate(.45) brightness(1.08) blur(.6px);
  pointer-events: none;
  animation: carta-mecer var(--dur, 5s) ease-in-out var(--del, 0s) infinite alternate;
}
.carta-section .ramo > span {
  position: absolute;
  inset: 0;
  background: url("https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/Josh%20%26%20Juan%20Diego/tulipan-ramo.webp") center / 100% 100% no-repeat;
}
.carta-section .r1 { width: 125px; left: -30px; bottom: -12px; --r: 12deg; --m: 1; --dur: 5.5s; --del: 0s; }
.carta-section .r2 { width: 48px; left: 88px; bottom: -22px; --r: -8deg; --m: -1; --dur: 4.7s; --del: -1.1s; }
.carta-section .r3 { width: 105px; right: -14px; top: -22px; --r: 200deg; --m: 1; --dur: 4.6s; --del: -1.5s; }
.carta-section .r4 { width: 38px; right: 46px; top: -26px; --r: 172deg; --m: -1; --dur: 5.1s; --del: -2.6s; }
.carta-section .r5 { width: 42px; left: -22px; top: 150px; --r: 62deg; --m: 1; --dur: 4.2s; --del: -0.4s; }
.carta-section .r6 { width: 95px; left: -24px; top: 470px; --r: 55deg; --m: -1; --dur: 4s; --del: -0.8s; }
.carta-section .r7 { width: 70px; right: -24px; top: 330px; --r: -60deg; --m: 1; --dur: 4.4s; --del: -1.9s; }
.carta-section .r8 { width: 118px; right: -22px; top: 760px; --r: -48deg; --m: -1; --dur: 4.8s; --del: -2.2s; }
.carta-section .r9 { width: 36px; left: -24px; top: 880px; --r: 70deg; --m: 1; --dur: 5.2s; --del: -3s; }
.carta-section .r10 { width: 82px; right: -20px; top: 1080px; --r: -40deg; --m: 1; --dur: 4.5s; --del: -0.6s; }
.carta-section .r11 { width: 55px; left: -20px; top: 640px; --r: 48deg; --m: 1; --dur: 3.9s; --del: -2.4s; }
@keyframes carta-mecer {
  0%   { transform: rotate(calc(var(--r) - 2deg)) scaleX(var(--m, 1)); }
  100% { transform: rotate(calc(var(--r) + 2deg)) scaleX(var(--m, 1)) skewX(1.5deg); }
}
.carta-section .f1 { fill: #c28892; }
.carta-section .f1 path { stroke: #c28892; }
.carta-section .f2 { fill: #9f9c4d; }
.carta-section .f2 path { stroke: #9f9c4d; }
.carta-section .f3 { fill: #b35e4b; }
.carta-section .f3 path { stroke: #b35e4b; }
.carta-section .f4 { fill: #c28892; }
.carta-section .f4 path { stroke: #c28892; }
.carta-section .f5 { fill: #9f9c4d; }
.carta-section .f5 path { stroke: #9f9c4d; }
.carta-section .f6 { fill: #b35e4b; }
.carta-section .f6 path { stroke: #b35e4b; }
.carta-section .f7 { fill: #7a7e3a; }
.carta-section .f7 path { stroke: #7a7e3a; }
.carta-section .f8 { fill: #c28892; }
.carta-section .f8 path { stroke: #c28892; }
.carta-section .f9 { fill: #9f9c4d; }
.carta-section .f9 path { stroke: #9f9c4d; }
.carta-section .f4 { animation: carta-vaiven2 3.4s ease-in-out infinite alternate; }
.carta-section .f5 { animation: carta-vaiven3 2.7s ease-in-out -.8s infinite alternate; }
.carta-section .f6 { animation: carta-vaiven1 4.2s ease-in-out -1.2s infinite alternate; opacity: .8; }
.carta-section .f7 { animation: carta-vaiven3 3.1s ease-in-out -.4s infinite alternate; }
.carta-section .f8 { animation: carta-vaiven2 3.8s ease-in-out -2s infinite alternate; }
.carta-section .f9 { animation: carta-vaiven3 2.9s ease-in-out -1.6s infinite alternate; opacity: .7; }
.carta-section .fronda {
  transform-box: fill-box;
  transform-origin: 10% 100%;
}
.carta-section .f1 { animation: carta-vaiven1 5s ease-in-out infinite alternate; }
.carta-section .f2 { animation: carta-vaiven2 3.8s ease-in-out infinite alternate; opacity: .8; }
.carta-section .f3 { animation: carta-vaiven3 2.9s ease-in-out infinite alternate; opacity: .7; }
@keyframes carta-brisa1 {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  35%  { transform: translate3d(-19px, 28px, 0) rotate(1.2deg); }
  70%  { transform: translate3d(13px, -19px, 0) rotate(-.6deg); }
  100% { transform: translate3d(-6px, 24px, 0) rotate(.6deg); }
}
@keyframes carta-brisa2 {
  0%   { transform: translate3d(10px, 0, 0) skewX(0deg); }
  40%  { transform: translate3d(-16px, -12px, 0) skewX(3deg); }
  100% { transform: translate3d(6px, 18px, 0) skewX(-2deg); }
}
@keyframes carta-brisa3 {
  0%   { transform: translate3d(-6px, 12px, 0) skewX(-1deg); }
  50%  { transform: translate3d(13px, -12px, 0) skewX(2deg); }
  100% { transform: translate3d(-13px, 0, 0) skewX(1deg); }
}
@keyframes carta-brisa4 {
  0%   { transform: translate3d(0, 0, 0) skewX(0deg); }
  100% { transform: translate3d(-10px, 12px, 0) skewX(3deg); }
}
@keyframes carta-brillo {
  0%, 100% { transform: translate3d(-40px, 28px, 0); opacity: .4; }
  50%      { transform: translate3d(40px, -28px, 0); opacity: 1; }
}
@keyframes carta-vaiven1 {
  0%   { transform: rotate(-1.5deg) skewX(0deg); }
  50%  { transform: rotate(2deg) skewX(2deg); }
  100% { transform: rotate(-.5deg) skewX(-1deg); }
}
@keyframes carta-vaiven2 {
  0%   { transform: rotate(2deg); }
  100% { transform: rotate(-2.5deg) skewX(2deg); }
}
@keyframes carta-vaiven3 {
  0%   { transform: rotate(-3deg); }
  100% { transform: rotate(3deg) skewY(1deg); }
}
@media (prefers-reduced-motion: reduce) {
  .carta-section .luz,
  .carta-section .fronda,
  .carta-section .ramo,
  .bienvenida .luz { animation: none; }
  .carta-section .ramo { transform: rotate(var(--r)) scaleX(var(--m, 1)); }
}
.carta-pin {
  position: relative;
  z-index: 2;
  height: auto;
  min-height: 0;
  max-height: none;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 18px 16px 28px;
  overflow: visible;
  background: transparent;
  transform-style: preserve-3d;
  perspective: 1600px;
}
.carta-hueco {
  height: 0;
  pointer-events: none;
}
.carta-section .carta-verse {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: min(92vw, 360px);
  margin: 0 auto 32px;
  text-align: center;
  opacity: 1;
  color: var(--ink, #2C2B26);
}
.carta-verse p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(18px, 4.8vw, 22px);
  line-height: 1.4;
  color: var(--ink, #2C2B26);
}
.carta-verse cite {
  display: block;
  margin-top: 10px;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive-deep, #3E4532);
}
.carta-relleno {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.carta-relleno--bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  height: 250px;
  flex-direction: column;
  gap: 18px;
  z-index: 1;
}
.carta-relleno__mono {
  display: block;
  width: auto;
  height: min(22vw, 108px);
  object-fit: contain;
  filter: brightness(0) saturate(100%);
  opacity: 0.42;
}
.carta-relleno__fecha {
  margin: 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--olive-deep, #3E4532);
  opacity: 0.7;
}
.carta-section .inv-carta {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  min-height: 0;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  perspective: 1600px;
  transform-style: preserve-3d;
}
.carta-section .inv-container {
  position: relative;
  flex: 0 0 auto;
  min-height: 0;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  height: auto;
  aspect-ratio: auto;
  background: transparent !important;
  overflow: visible;
  transform-style: preserve-3d;
}
.carta-section .sobre-escena {
  position: relative;
  width: min(100%, 400px);
  height: auto;
  margin: 0 auto;
  overflow: visible;
  transform-style: preserve-3d;
  padding-bottom: 0;
}
.carta-section .sobre-maestro {
  width: 100%;
  aspect-ratio: 1536 / 1024;
  position: relative;
  transform-style: preserve-3d;
  z-index: 2;
  will-change: transform;
}
.carta-section .pieza,
.carta-section .solapa-cara {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  backface-visibility: hidden;
  pointer-events: none;
}
.carta-section .frente,
.carta-section .atras,
.carta-section .bajo-frente {
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}
.carta-section .bajo-frente {
  background-image: url('https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/Josh%20%26%20Juan%20Diego/fotos%20para%20sobre%20-05.webp');
  transform: translateZ(1.4px);
  z-index: 2;
}
.carta-section .frente {
  background-color: transparent;
  background-image: none;
  transform: translateZ(2.7px);
  transform-style: preserve-3d;
  z-index: 8;
}
.carta-section .frente::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/Josh%20%26%20Juan%20Diego/parte-delantera.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  filter: saturate(0.45);
  pointer-events: none;
  z-index: 1;
  transform: translateZ(0.2px);
}
/* El grosor solo pinta donde el frente es opaco; el hueco deja ver la hoja */
.carta-section .frente .grosor-cuerpo {
  -webkit-mask-image: url('https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/Josh%20%26%20Juan%20Diego/parte-delantera.webp');
  mask-image: url('https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/Josh%20%26%20Juan%20Diego/parte-delantera.webp');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.carta-section .grosor-cuerpo {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #e6dfd2;
  border-radius: 2px;
}
.carta-section .atras,
.carta-section .bajo-frente,
.carta-section .solapa-interior {
  filter: saturate(0.45);
}
.carta-section .atras {
  background-image: url('https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/Josh%20%26%20Juan%20Diego/fotos%20para%20sobre%20-04.webp');
  transform: rotateY(180deg) translateZ(2.5px);
  z-index: 1;
}
.carta-section .sobre-boca {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 6;
  transform: translateZ(2.35px);
  transform-style: preserve-3d;
}
.carta-section .sobre-recorte {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* Sube por la boca. Por debajo del sobre no nace. */
  clip-path: inset(-140vh 0 0 0);
  -webkit-clip-path: inset(-140vh 0 0 0);
}
.carta-section .bisagra-solapa {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: top center;
  transform-style: preserve-3d;
  transform: translateZ(3.6px);
  z-index: 12;
  pointer-events: none;
}
/* Al subir, la hoja pinta sobre la solapa abierta y detrás de la parte delantera. */
.carta-pin.is-sheet-out,
.carta-pin.is-sheet-out .inv-carta,
.carta-pin.is-sheet-out .inv-container,
.carta-pin.is-sheet-out .sobre-escena,
.carta-pin.is-sheet-out .sobre-maestro,
.carta-pin.is-sheet-out .sobre-boca {
  transform-style: flat !important;
  -webkit-transform-style: flat !important;
}
.carta-pin.is-sheet-out .bisagra-solapa {
  z-index: 3 !important;
}
.carta-pin.is-sheet-out .sobre-boca {
  z-index: 12 !important;
}
.carta-pin.is-sheet-out .frente {
  z-index: 24 !important;
  backface-visibility: visible !important;
  -webkit-backface-visibility: visible !important;
}
.carta-pin.is-sheet-out.is-sheet-front .sobre-boca {
  z-index: 40 !important;
}
.carta-section .solapa-cara {
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}
.carta-section .solapa-exterior {
  background-image: none;
}
.carta-section .solapa-exterior::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/Josh%20%26%20Juan%20Diego/fotos%20para%20sobre%20-03.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  filter: saturate(0.45);
  pointer-events: none;
  z-index: 1;
}
.carta-section .solapa-interior {
  background-image: url('https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/Josh%20%26%20Juan%20Diego/fotos%20para%20sobre%20-02.webp');
  transform: rotateX(180deg) translateZ(0.1px);
}
.carta-section .sobre-sello {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 6;
  width: 18%;
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(44, 36, 28, 0.28));
}
.carta-section .inv-container .paper-wrapper {
  position: absolute !important;
  top: 0 !important;
  left: 18% !important;
  width: 64% !important;
  height: auto !important;
  margin: 0 !important;
  z-index: 1 !important;
  opacity: 1;
  pointer-events: none;
  display: block;
  background: transparent !important;
}
.carta-section .hoja-sobre {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 941 / 1672;
  box-shadow: 0 16px 32px rgba(44, 43, 38, 0.2);
}
.carta-section .hoja-padres,
.carta-section .hoja-honor,
.carta-section .hoja-fecha,
.carta-section .hoja-lugar {
  position: absolute;
  left: 7%;
  right: 7%;
  z-index: 2;
  margin: 0;
  text-align: center;
  color: #F4E8DC;
  font-family: "cormorant", "Cormorant Garamond", serif;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  line-height: 1.35;
  letter-spacing: 0.14em;
  pointer-events: none;
}
.carta-section .hoja-padres {
  top: 12%;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 3.15cqw;
  gap: 0.12em;
}
.carta-section .hoja-padres__y {
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  font-size: 1.45em;
  line-height: 0.8;
  margin: 0.2em 0 0.15em;
}
.carta-section .hoja-honor {
  top: 29.5%;
  font-size: 2.65cqw;
  letter-spacing: 0.11em;
  line-height: 1.45;
}
.carta-section .hoja-fecha {
  top: 69%;
  font-size: 3.35cqw;
  letter-spacing: 0.16em;
}
.carta-section .hoja-lugar {
  top: 74%;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 2.9cqw;
  letter-spacing: 0.16em;
  line-height: 1.45;
}
.carta-section .hoja-mono {
  position: absolute;
  left: 50%;
  top: 82%;
  z-index: 2;
  width: 16%;
  height: auto;
  margin: 0;
  transform: translateX(-50%);
  object-fit: contain;
  pointer-events: none;
}
.carta-section .hoja-nombres {
  position: absolute;
  left: 2%;
  right: 2%;
  top: 41%;
  z-index: 2;
  margin: 0;
  text-align: center;
  color: #F4E8DC;
  font-family: "p22-zaner-pro-three", cursive;
  font-weight: 700;
  font-style: normal;
  line-height: 0.78;
  pointer-events: none;
}
.carta-section .hoja-nombres__name,
.carta-section .hoja-nombres__amp {
  display: block;
  margin: 0;
  font-family: inherit;
  font-weight: 700;
  font-style: normal;
}
.carta-section .hoja-nombres__name {
  font-size: 18cqw;
}
.carta-section .hoja-nombres__amp {
  font-size: 9cqw;
  line-height: 0.7;
  margin: 0.04em 0 0.02em;
}
.carta-section .inv-container .paper-wrapper {
  container-type: inline-size;
}
.carta-section .parents-grid {
  font-size: clamp(8.5px, 2.2vw, 11px);
  line-height: 1.3;
  gap: 6px 14px;
  margin-bottom: 8px;
}
.carta-section .carta-ornament {
  opacity: 0;
  margin: 28px auto 0;
  padding: 12px 12px 8px;
}
.carta-ornament__tint {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.carta-ornament__mono {
  display: block;
  width: 108px;
  height: 126px;
  margin: 0 auto;
  object-fit: contain;
  filter: url(#monoOliva);
}
.sobre-3d {
  transform-style: preserve-3d;
  will-change: transform;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  perspective: 1400px;
}
.sobre-3d.is-behind {
  z-index: 1;
  transform-style: flat;
  will-change: auto;
}
.sobre-face {
  width: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.sobre-front {
  transform: rotateY(0deg) translateZ(1px);
}
.sobre-front img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}
.sobre-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg) translateZ(1px);
  border-radius: 3px;
  overflow: hidden;
  background: #EDE3D2;
}
.sobre-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
/* Rellena el vacío bajo la hoja; se desvanece al scrollear */
.carta-ornament {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 280px;
  margin: 36px auto 0;
  min-height: 28vh;
  padding: 12px 12px 8px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.carta-ornament__rule {
  display: block;
  width: 42%;
  max-width: 88px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(92, 100, 72, 0.45),
    transparent
  );
}
.carta-ornament__mark {
  margin: 0;
  font-family: var(--script);
  font-size: clamp(22px, 6vw, 28px);
  line-height: 1;
  color: var(--olive-deep, #3E4532);
  letter-spacing: 0.04em;
}
.carta-ornament__date {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--olive, #5C6448);
}

/* Nuestra historia — tarjeta crema, marco y flores de esquina */
.historia {
  padding: 36px 16px 48px;
  background-color: #FBF8F1;
  text-align: center;
  position: relative;
  z-index: 5;
  isolation: isolate;
  opacity: 1;
  overflow: visible;
}
.historia__papel {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 26px 16px 22px;
  background: #f6f1e8;
  border: 1.5px solid #5e534c;
  border-radius: 28px;
  box-shadow: 0 0 0 5px #f6f1e8, 0 0 0 6.5px #5e534c;
  text-align: left;
}
.historia__flor {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  height: auto;
  user-select: none;
}
.historia__flor--tr {
  top: -34px;
  right: -30px;
  width: min(54vw, 220px);
}
.historia__flor--bl {
  left: -40px;
  top: 97%;
  width: min(58vw, 184px);
}
.historia__titulo {
  position: relative;
  z-index: 5;
  margin: 0 auto;
  max-width: 16em;
  font-family: "cormorant", "Cormorant Garamond", var(--serif), Georgia, serif;
  font-weight: 500;
  font-size: clamp(20px, 5.4vw, 26px);
  color: #7a3040;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.historia__rule {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(42%, 148px);
  margin: 10px auto 14px;
}
.historia__rule::before,
.historia__rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #7a3040;
}
.historia__rule span {
  width: 5px;
  height: 5px;
  background: #7a3040;
  transform: rotate(45deg);
  flex: none;
}
.historia__rule--texto {
  width: min(26%, 88px);
  margin: 16px auto;
}
.historia__ventana {
  position: relative;
  z-index: 1;
  margin: 0 4px 16px;
  padding: 7px;
  border: 1.5px solid #5e534c;
  border-radius: 20px;
}
.historia__slideshow {
  width: 100%;
  aspect-ratio: 5 / 4;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none;
  position: relative;
  background: #e7e1d8;
  opacity: 1;
  isolation: isolate;
}
.historia__slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.historia__slideshow img.active { opacity: 1; }
.historia__texto {
  position: relative;
  z-index: 5;
  font-family: var(--serif);
  font-size: clamp(15px, 3.8vw, 17px);
  text-align: justify;
  color: var(--ink-soft, #5A574C);
  width: 100%;
  line-height: 1.55;
}
.historia__texto p { margin: 0; }
.historia__texto p + p { margin-top: 1em; }

.voces {
  padding: 64px 22px 28px;
  background: var(--ivory);
  text-align: center;
}
.voces__title {
  margin: 8px auto 22px;
  max-width: 16em;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(34px, 9vw, 46px);
  line-height: 1.05;
  text-align: center;
  color: var(--olive-deep);
}
.voces__list {
  list-style: none;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.voz {
  display: flex;
  gap: 14px;
  width: 100%;
  padding: 12px;
  text-align: left;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 18px;
  cursor: pointer;
}
.voz__photo {
  width: 72px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
  flex: none;
}
.voz__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.voz__who {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive);
}
.voz__line {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}
.voz__play {
  margin-top: 2px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive-deep);
}
.voz.is-playing {
  border-color: var(--olive);
  background: #f4f0e6;
}
.voz.is-playing .voz__play { color: var(--olive); }

.votos {
  padding: 40px 16px 56px;
  background: #F2F0EC;
  text-align: left;
  overflow: hidden;
}
.votos-titulo-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  min-height: 100px;
  margin: 0 auto 36px;
}
.votos-titulo-slight {
  display: block;
  font-family: "p22-zaner-pro-three", cursive;
  font-weight: 700;
  font-size: clamp(28px, 7vw, 44px);
  color: #3D3830;
  line-height: 1;
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(calc(-50% - clamp(40px, 12vw, 87px)));
  white-space: nowrap;
}
.votos-titulo-didone {
  display: block;
  font-family: 'Antic Didone', var(--didone), serif;
  font-weight: 100;
  font-size: clamp(32px, 9vw, 76px);
  color: #000;
  line-height: 1.05;
  position: absolute;
  left: 50%;
  top: clamp(28px, 8vw, 58px);
  transform: translateX(calc(-50% + clamp(20px, 8vw, 122px)));
  white-space: nowrap;
}
.votos-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  gap: clamp(15px, 4vw, 50px);
  width: 100%;
  max-width: 900px;
  margin: 0 auto 40px;
}
.votos-row--novia { margin-top: 10px; }
.votos-row--novio { margin-bottom: 24px; }
.votos-foto {
  flex: 0 1 60%;
  min-height: clamp(280px, 55vw, 372px);
  border-radius: 48px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
  opacity: 0;
}
.votos-foto--novia { background-position: 68% 36%; }
.votos-foto--novio { background-position: 34% 22%; }
.votos-texto {
  flex: 0 1 28%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: flex-end;
  padding-top: clamp(20px, 6vw, 50px);
  opacity: 0;
}
.votos-row--novio .votos-texto {
  align-self: center;
  padding-top: 0;
  padding-bottom: clamp(20px, 6vw, 50px);
}
.votos-rol {
  font-family: 'Antic Didone', var(--didone), serif;
  font-size: clamp(28px, 5.5vw, 36px);
  font-weight: 400;
  color: #A89278;
  margin: 0;
  line-height: 1.1;
}
.votos-nombre {
  font-family: "p22-zaner-pro-three", cursive;
  font-size: 2.1rem;
  font-weight: 700;
  color: #3D3830;
  margin: 0;
  line-height: 1.15;
}
.votos-copy {
  font-family: 'Antic Didone', var(--didone), serif;
  font-size: clamp(16px, 3.8vw, 19px);
  font-weight: 100;
  line-height: 1.55;
  color: #3D3830;
  text-align: justify;
  margin: 0;
}
.votos-copy::first-letter {
  float: left;
  font-size: 3.1em;
  line-height: 0.82;
  margin: 0.06em 0.1em 0 0;
  font-weight: 400;
  color: #3D3830;
}
.votos.is-visible .votos-foto--novia {
  animation: votosSlideLeft 1.1s ease 0.45s forwards;
}
.votos.is-visible .votos-row--novia .votos-texto {
  animation: votosSlideUp 1.1s ease 0.65s forwards;
}
.votos.is-visible .votos-row--novio .votos-texto {
  animation: votosSlideDown 1.1s ease 0.65s forwards;
}
.votos.is-visible .votos-foto--novio {
  animation: votosSlideRight 1.1s ease 0.45s forwards;
}
@keyframes votosSlideLeft {
  from { opacity: 0; transform: translateX(-36px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes votosSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes votosSlideDown {
  from { opacity: 0; transform: translateY(-28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes votosSlideRight {
  from { opacity: 0; transform: translateX(36px); }
  to { opacity: 1; transform: translateX(0); }
}
@media (max-width: 768px) {
  .votos-titulo-wrap {
    min-height: 88px;
    margin-bottom: 28px;
  }
  .votos-titulo-slight {
    transform: translateX(calc(-50% - 28px));
    top: -2px;
  }
  .votos-titulo-didone {
    transform: translateX(calc(-50% + 8px));
    top: 34px;
  }
  .votos-row {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
  }
  .votos-row--novio { flex-direction: column-reverse; }
  .votos-foto {
    flex: none;
    width: 100%;
    min-height: 302px;
    border-radius: 48px;
  }
  .votos-texto {
    flex: none;
    width: 100%;
    align-self: center !important;
    padding: 0 8px !important;
    text-align: center;
  }
  .votos-rol,
  .votos-nombre { text-align: center; }
  .votos-copy { text-align: justify; }
}
@media (prefers-reduced-motion: reduce) {
  .votos-foto,
  .votos-texto {
    opacity: 1;
    animation: none;
  }
}
.historia__cuerpo::first-letter {
  float: left;
  font-family: "cormorant", "Cormorant Garamond", var(--serif), Georgia, serif;
  font-size: 3.4em;
  line-height: 0.78;
  font-weight: 500;
  margin: 0.04em 0.08em 0 0;
  color: #4a453e;
  text-transform: uppercase;
}
.historia__verso {
  margin-top: 1.1em !important;
  font-style: italic;
  text-align: center;
}
.historia__firma {
  text-align: center;
  margin-top: 18px !important;
  font-family: var(--script);
  font-size: clamp(28px, 8vw, 34px);
  color: var(--olive);
}
.historia__firma.couple-names {
  display: flex;
  font-family: var(--didone);
  font-size: clamp(15px, 4.9vw, 17px);
  color: var(--olive);
  margin-top: 18px !important;
  text-align: center;
  width: 100%;
}

/* Story — full-bleed overlay (móvil editorial) — legacy, unused */
.story--overlay {
  position: relative;
  min-height: 100vh; /* fallback navegadores viejos */
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 48px 20px;
  color: #fff;
}
.story__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.72);
}
.story__dim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(20,22,16,0.35), rgba(20,22,16,0.72) 70%);
}
.story__panel {
  position: relative;
  z-index: 2;
  width: min(100%, 360px);
  padding: 36px 26px 40px;
  background: rgba(20, 22, 16, 0.58);
  backdrop-filter: blur(2px);
  text-align: left;
}
.story__script {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(48px, 14vw, 64px);
  line-height: 1;
  color: #fff;
  margin-bottom: 22px;
  text-align: center;
}
.story__text p {
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
  margin-bottom: 14px;
}
.story__verse {
  margin-top: 8px !important;
  font-style: italic;
  color: rgba(247,243,234,0.95) !important;
}
.story__cite {
  font-family: var(--sans) !important;
  font-size: 10px !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247,243,234,0.72) !important;
  margin-bottom: 8px !important;
}
.story__sign {
  margin-top: 28px;
  font-family: var(--script);
  font-size: 28px;
  text-align: right;
  color: #fff;
}

/* Fondo hueco: foto detrás + máscara con círculos + frases a la derecha */
.peek {
  position: relative;
  height: 145vh;
  background: var(--ivory);
}
.peek__frame {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
}
.peek__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: 0;
  will-change: transform;
}
.peek__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Velo translúcido; tu PNG abre los huecos (menos bolas) */
  background: rgba(184, 175, 163, 0.72);
  -webkit-mask-image: var(--peek-mask);
  mask-image: var(--peek-mask);
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-position: center right;
  mask-position: center right;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-source-type: luminance;
  mask-mode: luminance;
}
.peek__copy {
  position: absolute;
  z-index: 2;
  right: clamp(14px, 5.5vw, 26px);
  top: 50%;
  transform: translateY(-50%);
  text-align: right;
  max-width: min(48vw, 210px);
  pointer-events: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}
.peek__eyebrow {
  margin: 0 0 18px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--olive-deep);
}
.peek__phrase {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(15px, 4.2vw, 18px);
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.peek__phrase + .peek__phrase {
  margin-top: 14px;
}
.peek__rule {
  display: block;
  margin: 18px 0;
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(62, 69, 50, 0.55));
}
.peek__note {
  margin: 0;
  font-family: var(--script);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(26px, 7.5vw, 34px);
  line-height: 1.05;
  color: var(--olive-deep);
}

/* Horizontal diapositivas (scroll vertical → deslizan a un lado) */
.slides-intro {
  padding: 56px 28px 12px;
  text-align: center;
}
.slides-hint {
  margin-top: 10px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--olive-soft);
}
.h-slides {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.h-slides__track {
  display: flex;
  align-items: stretch;
  gap: 18px;
  width: max-content;
  padding: 12px 28px 56px;
  will-change: transform;
}
.h-slide {
  flex: 0 0 min(78vw, 320px);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 36px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 260px;
}
.h-slide time {
  display: block;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--olive);
  margin-bottom: 18px;
}
.h-slide h3 {
  font-weight: 400;
  font-size: 28px;
  color: var(--olive-deep);
  margin-bottom: 10px;
}
.h-slide p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.h-slide--cta .btn { margin-top: 22px; }
.schedule--slides { padding-bottom: 0; text-align: center; }
/* ——— Álbum: fotos enteras que pasan como páginas ——— */
.page-album {
  position: relative;
  height: 260vh;
  background: var(--ivory);
}
.page-album__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  perspective: 1600px;
  perspective-origin: 50% 50%;
  background: var(--ivory);
  z-index: 1;
}
/* Indicador scroll (mouse) — hero + álbum — blanco */
.mouse-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom, 0px) + 14px);
  transform: translateX(-50%);
  z-index: 80;
  width: 52px;
  color: #ffffff;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
.mouse-scroll-hint.is-on {
  opacity: 1;
  visibility: visible;
}
.mouse-scroll-hint.is-out {
  opacity: 0;
  visibility: hidden;
}
.mouse-scroll-hint__svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.55));
}
.mouse-scroll-hint__svg rect,
.mouse-scroll-hint__svg line,
.mouse-scroll-hint__svg path {
  stroke: #ffffff;
}
.mouse-scroll-hint__dot {
  animation: mouseDotDrop 1.6s cubic-bezier(.45, 0, .55, 1) infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.mouse-scroll-hint__chevron {
  animation: mouseChevFade 1.6s cubic-bezier(.45, 0, .55, 1) infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.mouse-scroll-hint__chevron--2 {
  animation-delay: 0.25s;
}
@keyframes mouseDotDrop {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(24px); opacity: 0; }
  71%  { transform: translateY(-2px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes mouseChevFade {
  0%   { opacity: 0.2; transform: translateY(-4px); }
  50%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0.2; transform: translateY(4px); }
}
.hero-sticky .mouse-scroll-hint {
  z-index: 120;
  bottom: max(18px, env(safe-area-inset-bottom, 0px) + 12px);
  width: 48px;
}
.page-album__pin .mouse-scroll-hint {
  z-index: 60;
  width: 56px;
  bottom: max(36px, env(safe-area-inset-bottom, 0px) + 28px);
}
.page-album__book {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.entre-ilustracion {
  position: relative;
  z-index: 4;
  margin: 0;
  padding: 0;
  height: calc(100vw * 912 / 6400 * 2.15);
  overflow: hidden;
  background: #F7F3EA;
  pointer-events: none;
}
.entre-ilustracion img {
  display: block;
  width: 215%;
  max-width: none;
  height: auto;
  margin-left: -57.5%;
}
.page-album__page {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.28);
  background: var(--ivory);
}
.page-album__page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  pointer-events: none;
  user-select: none;
  background: var(--cream);
  image-rendering: -webkit-optimize-contrast;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.page-album__page.is-base {
  z-index: 1;
  box-shadow: none;
}
.page-album__page[data-page] {
  z-index: 2;
}
.page-album__page[data-page]:nth-child(2) { z-index: 4; }
.page-album__page[data-page]:nth-child(3) { z-index: 3; }
.page-album__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 20;
  text-align: center;
  pointer-events: none;
  color: #f7f3ea;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}
.page-album__eyebrow {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  opacity: 0.85;
}
.page-album__hint {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  opacity: 0.9;
}
.page-album__count {
  margin: 10px 0 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.28em;
  opacity: 0.75;
}

/* Álbum espejo: páginas que salen hacia la izquierda */
.page-album--left .page-album__page {
  transform-origin: right center;
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.28);
}
.page-album--left .page-album__page.is-base {
  box-shadow: none;
}

/* Fallback táctil: swipe horizontal como páginas */
html.slides-touch .page-album {
  height: auto;
}
html.slides-touch .page-album__pin {
  position: relative;
  height: auto;
  perspective: none;
}
html.slides-touch .page-album__book {
  position: relative;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
}
html.slides-touch .page-album__page {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  transform: none !important;
  box-shadow: none;
}
html.slides-touch .page-album__meta {
  bottom: max(28px, env(safe-area-inset-bottom));
}

.gallery--slides {
  padding: 18px 20px 56px;
  text-align: center;
  background: transparent;
}

/* ——— Galería polaroid (inspirada en Pao) ——— */
.polaroid-stage {
  max-width: 400px;
  margin: 28px auto 0;
}
.polaroid-frame {
  background-color: #FFFcf7;
  padding: 14px 14px 40px;
  border: 1px solid rgba(62, 69, 50, 0.1);
  box-shadow:
    0 2px 2px rgba(44, 43, 38, 0.05),
    0 8px 24px rgba(44, 43, 38, 0.12),
    0 18px 44px rgba(44, 43, 38, 0.07);
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s, opacity 0.4s;
}
.polaroid-frame--hero {
  transform: rotate(-1.5deg);
  margin: 0 auto 28px;
  max-width: 300px;
  text-align: center;
}
.polaroid-frame--hero.is-changing {
  transform: rotate(0.5deg) scale(0.98);
  opacity: 0.88;
}
.polaroid-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: var(--cream);
  filter: sepia(0.06) contrast(1.02);
  transition: opacity 0.45s ease;
}
.polaroid-photo.fading { opacity: 0; }
.polaroid-caption {
  font-family: var(--script);
  font-size: clamp(20px, 5vw, 26px);
  color: var(--olive-deep);
  margin-top: 14px;
  text-align: center;
  line-height: 1.2;
}
.polaroid-slider-wrap {
  position: relative;
  margin: 0 -8px;
  padding: 4px 0;
}
.polaroid-slider-wrap::before,
.polaroid-slider-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  z-index: 2;
  pointer-events: none;
}
.polaroid-slider-wrap::before {
  left: 0;
  background: linear-gradient(90deg, rgba(247, 243, 234, 0.92) 0%, transparent 100%);
}
.polaroid-slider-wrap::after {
  right: 0;
  background: linear-gradient(270deg, rgba(247, 243, 234, 0.92) 0%, transparent 100%);
}
.polaroid-slider {
  display: flex;
  justify-content: center;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 12px 24px 18px;
  scrollbar-width: none;
}
.polaroid-slider::-webkit-scrollbar { display: none; }
.polaroid-thumb {
  flex: 0 0 auto;
  width: 86px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  scroll-snap-align: center;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s;
  opacity: 0.62;
  transform: scale(0.92) rotate(var(--rot, 0deg));
  -webkit-tap-highlight-color: transparent;
}
.polaroid-thumb:nth-child(odd) { --rot: -2deg; }
.polaroid-thumb:nth-child(even) { --rot: 1.5deg; }
.polaroid-thumb:hover {
  opacity: 0.9;
  transform: scale(0.96) rotate(0deg);
}
.polaroid-thumb.active {
  opacity: 1;
  transform: scale(1.06) rotate(0deg);
}
.polaroid-thumb .polaroid-frame {
  padding: 6px 6px 20px;
  box-shadow: 0 4px 14px rgba(44, 43, 38, 0.12);
}
.polaroid-thumb.active .polaroid-frame {
  box-shadow: 0 6px 20px rgba(44, 43, 38, 0.16);
  outline: 1px solid rgba(92, 100, 72, 0.22);
}
.polaroid-thumb .polaroid-photo { aspect-ratio: 1; }
.polaroid-thumb .polaroid-caption {
  font-size: 9px;
  margin-top: 6px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}
.polaroid-counter {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-top: 4px;
}

.gallery__linger {
  position: relative;
  width: min(86vw, 340px);
  margin: 36px auto 0;
  padding: 8px 12px 0;
  text-align: center;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
}
.gallery__linger-kicker {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--olive-soft);
  margin: 0 0 12px;
}
.gallery__linger-line {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(26px, 7vw, 34px);
  line-height: 1.2;
  color: var(--olive-deep);
  margin: 0 0 14px;
}
.gallery__linger-mark {
  font-family: var(--display);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--olive);
  margin: 0;
}

/* ===== Itinerario editorial Quiet Luxury ===== */
.schedule--editorial {
  position: relative;
  padding: 48px 0 0;
  text-align: center;
  background-color: #f7f4ee;
  background-image: url("https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/Josh%20%26%20Juan%20Diego/papel-algodon.webp");
  background-repeat: repeat;
  background-size: 420px 420px;
  overflow: hidden;
  isolation: isolate;
}
.schedule__inner {
  position: relative;
  z-index: 2;
  padding: 0 28px;
}
.flor-lado {
  position: absolute;
  z-index: 1;
  height: auto;
  pointer-events: none;
  user-select: none;
}
.schedule .flor-lado--izq {
  left: -28px;
  bottom: 18px;
  z-index: 4;
  width: min(58vw, 230px);
}
.place--editorial {
  overflow: hidden;
}
.ql-dress .flor-lado--ramo {
  left: -70px;
  bottom: 12px;
  z-index: 2;
  width: min(58vw, 230px);
}
.schedule__crest {
  position: relative;
  width: min(200px, 56vw);
  margin: 0 auto 28px;
  isolation: isolate;
}
.schedule__mono {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: 34%;
  height: 42%;
  object-fit: contain;
  z-index: 1;
  opacity: 1;
  mix-blend-mode: normal;
  clip-path: ellipse(48% 55% at 50% 50%);
  -webkit-clip-path: ellipse(48% 55% at 50% 50%);
}
.schedule__crest-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: normal;
  pointer-events: none;
}
.schedule--editorial .lede {
  max-width: 320px;
  margin: 14px auto 0;
}
.schedule__ornament {
  display: block;
  width: 88px;
  height: 1px;
  margin: 28px auto 8px;
  background: linear-gradient(90deg, transparent, rgba(62, 69, 50, 0.5), transparent);
  position: relative;
}
.schedule__ornament::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid var(--olive);
  background: var(--ivory);
  opacity: 0.85;
}
.schedule__title {
  font-family: var(--script);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(2.6rem, 12vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--olive-deep);
  margin: 0;
  text-align: center;
}
.crono {
  position: relative;
  max-width: 560px;
  margin: 8px auto 28px;
  padding: 42px 34px 30px;
  background-color: transparent;
  background-image: none;
  border: 0;
  box-sizing: border-box;
}
.crono__marco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.crono__marco svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.crono > :not(.crono__marco) {
  position: relative;
  z-index: 1;
}
.crono__title {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(22px, 6.2vw, 30px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b2430;
  line-height: 1;
}
.crono__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 18px 0 4px;
  padding: 0;
}
.crono__grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 4px 6px;
  border-left: 1px solid rgba(107, 36, 48, 0.35);
  min-width: 0;
}
.crono__grid li:first-child { border-left: 0; }
.crono__grid time {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(13px, 3.4vw, 18px);
  color: #6b2430;
  letter-spacing: 0.02em;
  line-height: 1;
}
.crono__grid img {
  width: 100%;
  height: 86px;
  object-fit: contain;
  display: block;
  margin: 8px 0 6px;
  filter: none;
}
.crono__name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(8px, 2.35vw, 13px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b2430;
  line-height: 1.15;
}
.crono__name--olive { color: #6f7344; }
.crono__mono {
  display: block;
  width: 46px;
  height: auto;
  margin: 8px auto 0;
  filter: brightness(0) saturate(100%) invert(16%) sepia(32%) saturate(2200%) hue-rotate(322deg) brightness(0.62);
}
.crono .schedule__title {
  font-size: clamp(2.15rem, 9vw, 2.7rem);
  color: #6b2430;
}
.crono .sched {
  max-width: none;
  margin: 14px 6px 0;
}
.crono .sched__item {
  grid-template-columns: 58px 1fr 18px 84px;
  gap: 8px 10px;
  padding: 14px 0;
}
.crono .sched::before {
  right: calc(84px + 10px + 9px);
  background: rgba(107, 36, 48, 0.28);
  transform-origin: top center;
  transform: scaleY(var(--sched-line, 0));
}
.crono .sched__dot {
  background: #fbf7f2;
  border-color: #6b2430;
  box-shadow: 0 0 0 4px #fbf7f2;
}
.crono .sched time,
.crono .sched__copy h3,
.crono .sched__copy p {
  color: #6b2430;
}
.crono .sched__copy p { opacity: 0.72; }
.crono .sched__icon {
  width: 84px;
  height: 84px;
}
.crono .sched__icon img {
  filter: none;
  width: 100%;
  height: 100%;
}
.sched {
  list-style: none;
  max-width: 360px;
  margin: 8px auto 0;
  padding: 0;
  text-align: left;
  position: relative;
}
.sched::before {
  content: '';
  position: absolute;
  /* Alineada al centro de los dots (columna 3), NO sobre los íconos */
  top: 28px;
  bottom: 28px;
  right: calc(78px + 18px + 9px);
  width: 1px;
  background: rgba(62, 69, 50, 0.28);
  z-index: 0;
  pointer-events: none;
}
.sched li,
.sched__item {
  display: grid;
  grid-template-columns: 64px 1fr 18px 78px;
  gap: 10px 18px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  position: relative;
  background: transparent;
  border-radius: 0;
  cursor: default;
  opacity: 0;
  transform: translate3d(14px, 18px, 0);
  transition: opacity 0.55s ease, transform 0.55s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.sched li.is-in,
.sched__item.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.sched li:last-child,
.sched__item:last-child {
  border-bottom: 1px solid var(--line);
}
.sched time {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--olive);
}
.sched__copy h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(22px, 5.5vw, 26px);
  color: var(--olive-deep);
  line-height: 1.15;
  margin: 0 0 4px;
}
.sched__copy p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}
.sched__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--olive);
  background: var(--ivory);
  justify-self: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--ivory);
}
.sched__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  color: var(--olive-deep);
  opacity: 0.95;
  position: relative;
  z-index: 2;
  margin-left: 4px;
}
.sched__icon svg,
.sched__icon img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  display: block;
}
/* Ceremonia: ventana / llantas en trazo, sin relleno negro */
.sched__icon--car svg .sched-car-fill {
  fill: none !important;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.sched__icon--car svg path.sched-car-fill {
  /* path de ventana usa coords x10 por el scale del SVG */
  stroke-width: 22;
}
/* Tinte oliva para el SVG de cena (negro → olive-deep) */
.sched__icon img {
  filter: brightness(0) saturate(100%) invert(24%) sepia(14%) saturate(900%) hue-rotate(35deg) brightness(92%);
}
.sched__map {
  margin: 32px auto 8px;
  display: inline-flex;
}
.schedule__casa-wrap {
  position: relative;
  z-index: 1;
  /* Full bleed: de borde a borde de la pantalla */
  width: 100vw;
  max-width: 100vw;
  margin-top: 0;
  margin-bottom: -64px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
  pointer-events: none;
  display: block;
  line-height: 0;
}
.schedule__casa,
.schedule__casa-video {
  display: block;
  width: 101%;
  max-width: none;
  height: auto;
  margin: 0 0 0 50%;
  transform: translateX(-50%);
  mix-blend-mode: normal;
  filter: none;
  -webkit-mask-image: none;
  mask-image: none;
  background: transparent;
}
/* El blanco del cielo se vuelve transparente y deja ver sol y nubes */
.schedule__casa-wrap .schedule__casa-video {
  position: relative;
  z-index: 1;
  isolation: auto;
  mix-blend-mode: darken;
}
.casa-sky {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, #d3e9f7 0%, #e7f3fb 16%, #f3f6f1 34%, #f7f3ea 48%, #f7f3ea 100%);
}
.casa-sky__sun {
  position: absolute;
  top: 5%;
  right: 14%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff8dc 0%, #f6d98a 38%, rgba(246, 217, 138, 0.35) 62%, rgba(246, 217, 138, 0) 74%);
  filter: blur(0.2px);
}
.casa-sky__band {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 36%;
  overflow: hidden;
}
.casa-sky__cloud {
  position: absolute;
  border-radius: 50%;
  filter: blur(7px);
  opacity: 0.82;
  background:
    radial-gradient(ellipse 55% 48% at 28% 58%, rgba(255, 255, 255, 0.95), transparent 72%),
    radial-gradient(ellipse 48% 62% at 58% 38%, rgba(255, 255, 255, 0.75), transparent 70%),
    radial-gradient(ellipse 36% 42% at 74% 62%, rgba(255, 255, 255, 0.55), transparent 72%);
  animation: casa-cloud 48s ease-in-out infinite;
}
.casa-sky__cloud--a { top: 6%; left: -30%; width: 168px; height: 52px; }
.casa-sky__cloud--b { top: 38%; left: -55%; width: 120px; height: 40px; animation-duration: 62s; animation-delay: -18s; opacity: 0.7; }
.casa-sky__cloud--c { top: 16%; left: 8%; width: 96px; height: 34px; animation-duration: 54s; animation-delay: -30s; opacity: 0.62; }
@keyframes casa-cloud {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(48vw, -4px, 0) scale(1.08); }
  100% { transform: translate3d(108vw, 3px, 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .casa-sky__cloud { animation: none; }
}
.schedule__casa-canvas,
.schedule__casa-fallback {
  display: none !important;
}
.place__art {
  display: block;
  width: min(78vw, 271px);
  height: auto;
  margin: 40px auto 0;
  filter: saturate(0.62) brightness(0.88);
  opacity: 1;
  mix-blend-mode: normal;
}
.place__logo-wrap {
  position: relative;
  display: block;
  width: min(22vw, 86px);
  /* Óvalo vertical, igual que portada */
  aspect-ratio: 3 / 3.65;
  margin: 18px auto 0;
  border-radius: 50%;
  border: 1.5px solid rgba(247, 243, 234, 0.95);
  box-sizing: border-box;
}
.place__logo-wrap::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 1px solid rgba(247, 243, 234, 0.85);
  pointer-events: none;
  z-index: 2;
}
.place__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: 62%;
  height: 62%;
  object-fit: contain;
  opacity: 1;
  z-index: 1;
}
.schedule--editorial .coast {
  width: min(160px, 42vw);
  margin: 0 auto 28px;
  opacity: 0.7;
}

/* Ubicación editorial — fondo vino texturizado, tipografía e arte en crema */
.place,
.place--editorial {
  position: relative;
  z-index: 55;
  padding: 72px 28px 40px;
  text-align: center;
  background-color: #3c1418;
  background-image:
    url("https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/Josh%20%26%20Juan%20Diego/fondo%20vino.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: normal;
  color: var(--ivory);
  isolation: isolate;
}
.place__title {
  margin: 0;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(48px, 14vw, 68px);
  line-height: 1;
  color: #FFFcf7;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28), 0 6px 22px rgba(0, 0, 0, 0.18);
}
.place__text {
  margin: 22px auto 0;
  max-width: 300px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: #FFFcf7;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  opacity: 1;
}
.place__btn {
  position: relative;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 36px auto 0;
  padding: 12px 28px;
  border: 1.5px solid #FFFcf7;
  background: transparent;
  color: #FFFcf7;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: lowercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: background 0.25s, color 0.25s, text-shadow 0.25s;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.schedule__casa {
  pointer-events: none !important;
}
.place__btn:hover {
  background: var(--ivory);
  color: var(--olive-deep);
}
.place__icon,
.place__name {
  display: none;
}

/* Sección marco ovalado (fondo crema texturado) */
.oval-invite {
  position: relative;
  z-index: 50;
  padding: 72px 28px 96px;
  text-align: center;
  background-color: #F5EFE3;
  background-image:
    url("https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/Josh%20%26%20Juan%20Diego/textura-crema.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: normal;
  color: var(--ink);
  isolation: isolate;
  opacity: 1;
}
.oval-invite__script {
  margin: 0 auto;
  max-width: 320px;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(24px, 6.8vw, 32px);
  line-height: 1.2;
  color: #1a1814;
  text-shadow: 0 1px 0 rgba(247, 243, 234, 0.85);
}
.oval-invite__text {
  margin: 12px auto 0;
  max-width: 300px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: #2a2620;
}
.oval-invite__stage {
  position: relative;
  display: block;
  width: min(94vw, 420px);
  height: min(116vw, 500px);
  margin: 22px auto 0;
  text-decoration: none;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}
.oval-invite__mono {
  position: absolute;
  left: 11px;
  top: 0;
  width: 47%;
  height: auto;
  z-index: 1;
  pointer-events: none;
}
.oval-invite__frame {
  position: absolute;
  left: 28%;
  top: 22%;
  width: 70%;
  z-index: 2;
}
.oval-invite__video {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 63%;
  height: 56%;
  object-fit: cover;
  object-position: center center;
  border-radius: 50%;
  z-index: 1;
  background: #e7dfd2;
  pointer-events: none;
}
.oval-invite__marco {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: normal;
  filter: none;
  pointer-events: none;
}
.oval-invite__tulipan {
  position: absolute;
  right: 5%;
  top: 12%;
  width: 32%;
  height: auto;
  z-index: 1;
  pointer-events: none;
}
.oval-invite__flores {
  position: absolute;
  left: 52px;
  top: 58%;
  width: 36%;
  height: auto;
  overflow: visible;
  z-index: 1;
  pointer-events: none;
}
.oval-invite__flores img {
  display: block;
  width: 99%;
  max-width: none;
  height: auto;
  transform: translate(-18%, -28%);
}
.oval-invite__hint {
  margin: 14px 0 0;
  font-family: var(--script);
  font-style: italic;
  font-size: 16px;
  color: #3f3a32;
}
.oval-invite__sign {
  margin: 28px auto 0;
  font-family: var(--script);
  font-size: clamp(22px, 6.5vw, 28px);
  line-height: 1.35;
  color: #1a1814;
  text-shadow: 0 1px 0 rgba(247, 243, 234, 0.85);
}

/* Fallback sin GSAP / ?plain=1: swipe horizontal táctil */
html.slides-touch .h-slides {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
html.slides-touch .h-slides::-webkit-scrollbar { display: none; }
html.slides-touch .h-slides__track {
  transform: none !important;
}
html.slides-touch .h-slide {
  scroll-snap-align: center;
}

.btn--pill {
  width: 100%;
  border-radius: 3px;
  background: var(--olive);
  color: var(--ivory);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 16px 28px;
  margin-top: 8px;
}
.btn--pill:hover { background: var(--olive-deep); }

/* RSVP Canva editorial */
.rsvp--editorial {
  padding: 72px 24px 80px;
  text-align: center;
  background-color: var(--ivory);
  background-image: var(--tex-cotton);
  background-size: 150px 150px;
  background-blend-mode: multiply;
}
.rsvp__title {
  font-weight: 400;
  font-size: clamp(42px, 12vw, 56px);
  color: var(--ivory);
  margin-bottom: 16px;
  text-shadow:
    0 1px 0 rgba(62, 69, 50, 0.35),
    0 2px 4px rgba(44, 43, 38, 0.4),
    0 6px 18px rgba(44, 43, 38, 0.28),
    0 12px 36px rgba(44, 43, 38, 0.16);
  filter: drop-shadow(0 2px 6px rgba(62, 69, 50, 0.25));
}
.rsvp__intro {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 340px;
  margin: 0 auto 36px;
}
.rsvp--editorial .rsvp__form {
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.rsvp-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.rsvp-label {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.rsvp--editorial .rsvp__form input,
.rsvp--editorial .rsvp__form textarea {
  width: 100%;
  border: 1px solid rgba(92,100,72,0.28);
  background: var(--white);
  border-radius: 3px;
  padding: 14px 14px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 16px;
  color: var(--ink);
  outline: none;
}
.rsvp--editorial .rsvp__form input:focus,
.rsvp--editorial .rsvp__form textarea:focus {
  border-color: var(--olive);
}
.rsvp--editorial .rsvp__form small {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}
.choice {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.choice__btn {
  width: 100%;
  border: none;
  border-radius: 3px;
  background: #D9D2C5;
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.35;
  padding: 16px 18px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.choice__btn.is-on {
  background: var(--olive);
  color: var(--ivory);
}


/* Countdown — Canva digits feel */
.count {
  padding: 56px 20px 64px;
  text-align: center;
  background-color: #3c1418;
  background-image: url('https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/Josh%20%26%20Juan%20Diego/fondo%20vino.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #F4E8DC;
}
.count .eyebrow {
  color: rgba(244, 232, 220, 0.82);
}
.count__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 360px;
  margin: 28px auto 0;
}
.count__row div {
  padding: 12px 4px;
}
.count__row strong {
  display: block;
  font-weight: 300;
  font-size: 32px;
  color: #F4E8DC;
  letter-spacing: 0.04em;
}
.count__row span {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 232, 220, 0.72);
}
.count__cal {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F4E8DC;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: rgba(244, 232, 220, 0.45);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.count__cal:hover,
.count__cal:focus-visible {
  color: var(--olive);
  text-decoration-color: var(--olive);
  outline: none;
}

.hospedaje {
  padding: 36px 18px 48px;
  background: #fff;
  color: #3f3428;
  text-align: center;
}
.hospedaje__tint {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.hospedaje__mono {
  width: 118px;
  height: 118px;
  margin: 0 auto 18px;
  border: 1px solid #cbbd9a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hospedaje__mono img {
  width: 62%;
  height: auto;
  filter: url(#hospedajeOro);
}
.hospedaje__title {
  margin: 0;
  font-family: "cormorant", "Cormorant Garamond", var(--serif), Georgia, serif;
  font-weight: 500;
  font-size: clamp(26px, 7vw, 34px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a3b2a;
}
.hospedaje__boda {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 14px auto 18px;
  max-width: 420px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4a3b2a;
}
.hospedaje__boda em {
  font-family: var(--script);
  font-style: normal;
  font-size: 28px;
  letter-spacing: 0;
  text-transform: none;
  color: #8d7344;
}
.hospedaje__aviso {
  margin: 0 -18px;
  padding: 14px 22px;
  background: #8d7b68;
  color: #fff;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.45;
}
.hospedaje__lienzo {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 520px;
  margin: 28px auto 0;
}
.hospedaje__card {
  position: absolute;
  width: 340px;
  height: 248px;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  touch-action: pan-y;
}
.hospedaje__card--izq {
  top: -20px;
  left: -40px;
  z-index: 5;
}
.hospedaje__card--der {
  bottom: -10px;
  right: -72px;
  z-index: 10;
}
.hospedaje__frente,
.hospedaje__atras {
  position: absolute;
  inset: 0;
}
.hospedaje__frente {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f6f1e8;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.hospedaje__card--izq.is-open .hospedaje__frente { transform: translateX(-100%); }
.hospedaje__card--der.is-open .hospedaje__frente { transform: translateX(100%); }
.hospedaje__frente h3 {
  margin: 0;
  font-family: "Antic Didone", var(--didone), var(--serif), serif;
  font-weight: 300;
  font-size: 30px;
  line-height: 1;
  color: #3D3830;
}
.hospedaje__frente span {
  margin-top: 6px;
  font-family: "Antic Didone", var(--didone), var(--serif), serif;
  font-size: 17px;
  text-transform: uppercase;
  text-decoration: underline;
  color: #000;
}
.hospedaje__atras {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 22px;
  background: #fcfcfc;
  text-align: center;
}
.hospedaje__precio {
  margin: 0 0 8px;
  font-family: "Antic Didone", var(--didone), var(--serif), serif;
  font-size: 26px;
  line-height: 1;
  color: #000;
}
.hospedaje__atras p {
  margin: 0;
  max-width: 280px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.35;
  color: #000;
}
.hospedaje__atras a {
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #000;
  text-decoration: underline;
}
.hospedaje__sello {
  position: absolute;
  bottom: 28px;
  left: -40px;
  width: 92px;
  z-index: 20;
  filter: url(#hospedajeOro);
  pointer-events: none;
}
@media (max-width: 600px) {
  .hospedaje__lienzo {
    transform: scale(0.75);
    transform-origin: center top;
    height: 400px;
  }
}

/* Olive panels */
.olive {
  padding: 72px 28px;
  text-align: center;
  background:
    linear-gradient(165deg, #626b4f 0%, #4a5238 50%, #3a412d 100%);
  color: var(--ivory);
}
.parents {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 480px;
  margin: 36px auto 0;
  text-align: center;
}
.parents__label {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 14px;
}
.parents p {
  font-weight: 300;
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 4px;
}

/* Bleed photo */
.bleed {
  position: relative;
  margin: 0;
  min-height: 62vh;
  overflow: hidden;
}
.bleed img {
  width: 100%;
  height: 79vh;
  object-fit: cover;
}
.bleed figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 22, 16, 0.38);
  color: #fff;
  font-weight: 300;
  font-size: clamp(18px, 5vw, 26px);
  letter-spacing: 0.06em;
  text-align: center;
  padding: 20px;
}
.clip {
  position: relative;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: #1a1814;
}
.clip__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* ——— Hoja clásica (foto + arco + letras CB en el notch) ——— */
.invite-sheet {
  position: relative;
  padding: 0 0 36px;
  text-align: center;
  background: #f6f1e8;
  color: #6f675f;
}
.invite-sheet__hero {
  position: relative;
}
.invite-sheet__media {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  margin: 0 auto;
  overflow: hidden;
  -webkit-mask-image: none;
  mask-image: none;
}
.invite-sheet__photo {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  display: block;
}
.invite-sheet__panel {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding: 0 18px;
  background: transparent;
}
.invite-sheet__card {
  --vino: #7a3040;
  position: relative;
  margin-top: 0;
  padding: 36px 22px 64px;
  background: #f6f1e8;
  border: 0;
  border-radius: 16px;
}
.invite-sheet__card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1.35px solid var(--vino);
  border-radius: 10px;
  pointer-events: none;
}
.invite-sheet__arch {
  position: absolute;
  left: 50%;
  top: 8px;
  z-index: 2;
  width: min(130px, 42%);
  height: 78px;
  transform: translate(-50%, -100%);
  background: #f6f1e8;
  border: 0;
  border-radius: 65px 65px 0 0 / 78px 78px 0 0;
  box-sizing: border-box;
}
.invite-sheet__arch::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  bottom: 0;
  left: 8px;
  border: 1.35px solid var(--vino);
  border-bottom: 0;
  border-radius: 57px 57px 0 0 / 70px 70px 0 0;
  box-sizing: border-box;
  pointer-events: none;
}
.invite-sheet__card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  z-index: 2;
  width: calc(min(130px, 42%) - 19px);
  height: 2.7px;
  transform: translateX(-50%);
  background: #f6f1e8;
}
.invite-sheet__gem {
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--vino);
  clip-path: polygon(50% 0, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0 50%, 36% 36%);
}
.invite-sheet__gem--tl { top: 16px; left: 16px; }
.invite-sheet__gem--tr { top: 16px; right: 16px; }
.invite-sheet__gem--bl { bottom: 16px; left: 16px; }
.invite-sheet__gem--br { bottom: 16px; right: 16px; }
.invite-sheet__crest {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 3;
  width: min(86px, 24vw);
  height: 58px;
  margin: 0;
  transform: translate(-50%, calc(-50% - 27px)) scale(1.32);
  isolation: isolate;
}
.invite-sheet__tint {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.invite-sheet__mono {
  position: absolute;
  left: 50%;
  top: 78%;
  transform: translate(-50%, -50%);
  width: 49%;
  height: 143%;
  object-fit: contain;
  z-index: 1;
  margin: 0;
  filter: url(#inviteMono);
  clip-path: ellipse(48% 55% at 50% 50%);
  -webkit-clip-path: ellipse(48% 55% at 50% 50%);
}
.invite-sheet__lead {
  margin: 8px auto 0;
  max-width: 280px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8d8680;
}
.invite-sheet__rule {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(72%, 240px);
  margin: 16px auto;
}
.invite-sheet__rule::before,
.invite-sheet__rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #c9bfb6;
}
.invite-sheet__rule span {
  width: 6px;
  height: 6px;
  background: var(--vino);
  transform: rotate(45deg);
}
.invite-sheet__venue {
  margin: 0 auto 10px;
  font-family: "cormorant", "Cormorant Garamond", var(--serif), Georgia, serif;
  font-weight: 500;
  font-size: clamp(26px, 7vw, 34px);
  color: var(--vino);
  letter-spacing: 0.01em;
}
.invite-sheet__place,
.invite-sheet__until {
  margin: 0 auto;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8d8680;
}
.invite-sheet__until {
  margin-top: 2px;
}
.invite-sheet__seal-row {
  position: relative;
  width: min(48%, 168px);
  margin: 10px auto 4px;
  min-height: 0;
}
.invite-sheet__ribbon {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.invite-sheet__wax {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 2;
  width: min(54px, 15vw);
  height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

/* Monogram (legacy keep) */
.mono {
  padding: 48px 24px 40px;
  text-align: center;
  background-color: var(--ivory);
  background-image: var(--tex-cotton);
  background-size: 150px 150px;
  background-blend-mode: multiply;
}
.mono__mark {
  width: min(120px, 34vw);
  margin: 8px auto 12px;
  mix-blend-mode: multiply;
  display: block;
}
.mono__ribbon {
  display: block;
  width: min(220px, 62vw);
  height: auto;
  margin: 6px auto 18px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(44, 43, 38, 0.1));
}
.mono img.coast {
  width: min(180px, 48vw);
  margin: 0 auto 16px;
  mix-blend-mode: multiply;
}
.mono p {
  font-style: italic;
  font-size: 22px;
  color: var(--olive-deep);
}

/* Pancarta / cinta decorativa de sección */
.section-banner {
  display: block;
  width: min(280px, 78vw);
  height: auto;
  margin: 0 auto 18px;
  object-fit: contain;
  opacity: 0.92;
  filter: drop-shadow(0 6px 14px rgba(44, 43, 38, 0.1));
}

/* Schedule */
.schedule {
  padding: 40px 28px 80px;
  text-align: center;
  background: var(--white);
}
.schedule.schedule--editorial {
  padding: 48px 0 0;
  background-color: #f7f4ee;
  background-image: url("https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/Josh%20%26%20Juan%20Diego/papel-algodon.webp");
  background-repeat: repeat;
  background-size: 420px 420px;
}
.schedule__list {
  list-style: none;
  max-width: 380px;
  margin: 0 auto 36px;
  text-align: left;
}
.schedule__list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.schedule__list li:last-child { border-bottom: 1px solid var(--line); }
.schedule__list time {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--olive);
  padding-top: 4px;
}
.schedule__list h3 {
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 2px;
}
.schedule__list p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 12px;
  color: var(--muted);
}

/* Gallery mosaic */
.gallery {
  padding: 20px 10px 28px;
  text-align: center;
  background: var(--ivory);
}
.gallery__mosaic {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.gallery__mosaic img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--cream);
}
.gallery__mosaic img.span2 {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}

/* ——— Dress code · marco 1 (óvalo ornamentado) ——— */
.ql-dress {
  position: relative;
  z-index: 5;
  padding: 56px 22px 100px;
  text-align: center;
  background-color: #FAF8F3;
  background-image: none;
  isolation: isolate;
  opacity: 1;
  overflow: hidden;
}
.ql-dress__frame {
  position: relative;
  display: block;
  width: min(84vw, 320px);
  margin: 0 auto 40px;
  isolation: isolate;
  opacity: 1;
}
.ql-dress__photo {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 59%;
  height: 69%;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 50%;
  z-index: 1;
  opacity: 1;
  mix-blend-mode: normal;
  filter: none;
  background: #2c2b26;
}
.ql-dress__marco {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  /* Asset listo: encima de la foto, sin filtros */
  mix-blend-mode: normal;
  filter: none;
}
.ql-dress__the {
  font-family: var(--display);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--olive-deep);
  margin: 0 0 6px;
}
.ql-dress__title {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(42px, 12vw, 56px);
  line-height: 1.05;
  color: var(--olive-deep);
  margin: 0 0 10px;
}
.ql-dress__tag {
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--olive);
  margin: 0 0 28px;
}
.ql-dress__lead {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--muted);
  max-width: 300px;
  margin: 0 auto 28px;
}
.ql-dress__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  max-width: 340px;
  margin: 0 auto 28px;
  text-align: center;
}
.ql-dress__cols h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  color: var(--olive-deep);
  margin-bottom: 6px;
}
.ql-dress__cols p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.ql-dress__note {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--muted);
  max-width: 300px;
  margin: 0 auto 14px;
}
.ql-dress__avoid {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--muted);
  max-width: 280px;
  margin: 0 auto;
}
.ql-dress__pin {
  display: inline-block;
  margin: 22px auto 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: rgba(62, 69, 50, 0.35);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.ql-dress__pin:hover,
.ql-dress__pin:focus-visible {
  color: var(--olive);
  text-decoration-color: var(--olive);
  outline: none;
}

/* ——— Separador encaje + sello — grande, recortado a los bordes ——— */
.ql-separator {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  margin: -80px 0;
  overflow: hidden; /* recorta lo que se sale — no mueve la página */
  pointer-events: none !important;
}
.ql-separator__sinta {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: min(92vw, 520px);
  height: auto;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: none;
  pointer-events: none;
}
.ql-separator__sinta--l {
  left: 50%;
  margin: 0;
  transform: translate(-92%, -50%);
}
.ql-separator__sinta--r {
  left: 50%;
  margin: 0;
  transform: translate(-8%, -50%) scaleX(-1);
}
.ql-separator__seal {
  position: relative;
  z-index: 10;
  width: min(108px, 17vw);
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 12px rgba(44, 43, 38, 0.28));
}

/* ——— Gifts ——— */
.ql-gifts {
  position: relative;
  padding: 100px 0 64px;
  background-color: transparent;
  overflow: hidden;
}
.ql-gifts__inner {
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  padding: 0 22px;
}
.ql-gifts__copy {
  text-align: center;
  position: relative;
  z-index: 2;
}
.ql-gifts__title {
  font-family: var(--didone);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(2.1rem, 9vw, 2.85rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--olive-deep);
  margin: 0 0 14px;
  display: flex;
  justify-content: center;
  white-space: nowrap;
}
.ql-gifts__title .names-flourish__cap {
  font-family: var(--script);
  font-size: 1.75em;
  letter-spacing: 0;
  text-transform: none;
  line-height: 0.75;
  display: inline-block;
  margin-right: 0.01em;
  vertical-align: -0.12em;
  color: var(--olive-deep);
}
.ql-gifts__title .names-flourish__rest {
  font-family: var(--didone);
  font-weight: 400;
  letter-spacing: 0.04em;
}
.ql-gifts__lead {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.15rem, 4.2vw, 1.4rem);
  line-height: 1.35;
  color: var(--ink);
  margin: 0 auto 16px;
  max-width: 300px;
}
.ql-gifts__text {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 320px;
  margin: 0 auto 28px;
}
.ql-gifts .bank {
  position: relative;
  z-index: 6;
  max-width: 340px;
  margin: 0 auto 22px;
  text-align: left;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.88);
  pointer-events: auto;
}
.ql-gifts .bank p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 13px;
  color: var(--ink);
  padding: 9px 0;
  border-bottom: 1px solid rgba(92, 100, 72, 0.12);
}
.ql-gifts .bank p:last-child { border-bottom: 0; }
.ql-gifts .bank span {
  color: var(--olive);
  opacity: 0.85;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
/* Valor + botón copiar por línea (cuenta / cédula) */
.ql-gifts .bank p.bank__row {
  align-items: center;
}
.ql-gifts .bank .bank__value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  opacity: 1;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: none;
}
.ql-gifts .bank .bank__copy {
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(92, 100, 72, 0.35);
  border-radius: 50%;
  background: transparent;
  color: var(--olive);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.ql-gifts .bank,
.ql-gifts .bank p,
.ql-gifts .bank .bank__value {
  pointer-events: auto;
  visibility: visible;
}
.ql-gifts .bank .bank__copy:hover,
.ql-gifts .bank .bank__copy:focus-visible {
  background: var(--olive);
  border-color: var(--olive);
  color: #FFFcf7;
  outline: none;
}
.ql-gifts .bank .bank__copy.is-copied {
  background: var(--olive-deep);
  border-color: var(--olive-deep);
  color: #FFFcf7;
}

/* ——— Fotos del evento — bleed silencioso (como .ql-close) ——— */
.fotos-evento-section {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  color: #FFFcf7;
  text-align: center;
  padding: 0 28px calc(56px + var(--safe));
}
.fotos-evento-section__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}
.fotos-evento-section__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(41, 39, 31, 0.05) 0%,
    rgba(41, 39, 31, 0.1) 45%,
    rgba(41, 39, 31, 0.65) 100%
  );
  pointer-events: none;
}
.fotos-evento-section__copy {
  position: relative;
  z-index: 2;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fotos-evento-section__eyebrow {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #FFFcf7;
  opacity: 0.85;
}
.fotos-evento-section__title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(24px, 6.5vw, 28px);
  line-height: 1.3;
  color: #FFFcf7;
}
.fotos-evento-section__text {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.5;
  color: #FFFcf7;
  opacity: 0.92;
}
.fotos-evento-section__link {
  display: inline-block;
  margin: 0 0 20px;
  padding: 0 0 4px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: #FFFcf7;
  background: none;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.fotos-evento-section__link:hover {
  opacity: 0.88;
  border-bottom-color: rgba(255, 255, 255, 0.9);
}
.fotos-evento-section__tag {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #FFFcf7;
  opacity: 0.75;
}

.ql-btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 12px 28px;
  border: 1px solid var(--olive);
  background: transparent;
  color: var(--olive-deep);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.ql-btn-line:hover {
  background: var(--olive);
  color: var(--ivory);
}
.ql-btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
  padding: 16px 28px;
  border: none;
  border-radius: 3px;
  background: var(--olive);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease;
}
.ql-btn-solid:hover { background: var(--olive-deep); }

/* ——— Nota solo adultos ——— */
/* ——— RSVP · hoja editorial ——— */
.ql-rsvp {
  position: relative;
  z-index: 5;
  padding: 56px 24px 20px;
  text-align: center;
  background-color: #F7F3EA;
  background-image: none;
  isolation: isolate;
  opacity: 1;
}
.ql-rsvp__title {
  font-family: var(--didone);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(44px, 13vw, 58px);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--olive-deep);
  margin: 4px 0 16px;
  text-shadow:
    0 1px 0 rgba(255, 252, 247, 0.95),
    0 -1px 1px rgba(44, 43, 38, 0.28),
    0 0 1px rgba(62, 69, 50, 0.15);
}
.ql-rsvp__adults {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 4.2vw, 1.28rem);
  line-height: 1.5;
  color: var(--olive-deep);
  max-width: 330px;
  margin: 0 auto 20px;
}
.ql-rsvp__intro {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 340px;
  margin: 0 auto 40px;
}
.ql-rsvp__form {
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 32px 22px 28px;
  border: 1px solid var(--line);
  background-color: #FFFcf7;
  background-image: none;
  opacity: 1;
  isolation: isolate;
  box-shadow: 0 16px 40px rgba(44, 43, 38, 0.08);
}
.ql-rsvp .rsvp-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.ql-rsvp .rsvp-label {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.ql-rsvp__form input,
.ql-rsvp__form textarea {
  width: 100%;
  border: 1px solid rgba(92, 100, 72, 0.22);
  background: var(--white);
  border-radius: 3px;
  padding: 14px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 16px;
  color: var(--ink);
  outline: none;
}
.ql-rsvp__form input:focus,
.ql-rsvp__form textarea:focus {
  border-color: var(--olive);
}
.ql-rsvp__form small {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 11px;
  color: var(--muted);
}

/* Legacy RSVP form helpers (choice buttons) */
.rsvp__form {
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ——— Contacto collage (estilo Daniela Sofia) ——— */
.ql-contact {
  position: relative;
  z-index: 5;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 28px 16px 48px;
  background: #EDE6D8 !important;
  background-image: none !important;
  text-align: center;
  overflow: visible;
  isolation: isolate;
}
.ql-contact__collage {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  padding: 8px 20px 16px;
}
.ql-contact__layer {
  position: absolute;
  transition: all 0.3s ease;
}
.ql-contact__layer > img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(5px 10px 15px rgba(0, 0, 0, 0.1));
}
.ql-contact__mono {
  width: 52%;
  top: 0;
  left: 0;
  z-index: 3;
}
.ql-contact__mono-oval {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: normal;
  filter: none;
  background: transparent;
  pointer-events: none;
}
.ql-contact__mono-frame {
  position: relative;
  width: 81%;
  transform: translate(-10%, -8%);
  filter: drop-shadow(6px 14px 22px rgba(0, 0, 0, 0.18));
  background: transparent;
}
.ql-contact__mono-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 42%;
  height: auto;
  object-fit: contain;
  /* Emboss / letterpress */
  filter:
    drop-shadow(0 1px 0 rgba(255, 252, 247, 0.45))
    drop-shadow(0 1px 2px rgba(44, 43, 38, 0.35));
  opacity: 0.9;
  pointer-events: none;
}
.ql-contact__couple {
  width: 100%;
  top: 14%;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
}
.ql-contact__couple img {
  width: 58%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 28%;
  box-shadow: 0 19px 36px rgba(44, 43, 38, 0.22);
}
.ql-contact__flipbox {
  width: 38%;
  bottom: -2%;
  right: 4%;
  z-index: 4;
  filter: drop-shadow(0 16px 28px rgba(44, 43, 38, 0.24));
}
.ql-contact__flip {
  width: 100%;
  aspect-ratio: 190 / 209;
  perspective: 1000px;
  -webkit-perspective: 1000px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  display: block;
}
.ql-contact__flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  box-shadow: 0 14px 30px rgba(44, 43, 38, 0.18);
}
.ql-contact__flip.is-flipped .ql-contact__flip-inner {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}
.ql-contact__face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  border-radius: 6px;
  overflow: hidden;
}
.ql-contact__face--front {
  display: flex;
  justify-content: center;
  align-items: center;
  /* Crema limpio — sin fondo café/oliva */
  background-color: #EDE6D8;
  background-image: none;
  transform: rotateY(0deg);
  z-index: 2;
  border: 1px solid rgba(92, 100, 72, 0.18);
}
.ql-contact__face--front > img {
  display: none !important;
}
.ql-contact__front-text {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  padding: 0 8px;
  box-sizing: border-box;
  transform: translateZ(1px);
  -webkit-transform: translateZ(1px);
}
.ql-contact__flip.is-flipped .ql-contact__front-text {
  opacity: 0;
  visibility: hidden;
}
.ql-contact__front-title {
  margin: 0;
  font-family: var(--didone);
  font-weight: 400;
  font-size: clamp(1.2rem, 5.2vw, 1.6rem);
  color: var(--olive-deep);
  text-shadow: none;
}
.ql-contact__front-more {
  margin: 4px 0 0;
  font-family: var(--didone);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--olive);
  text-shadow: none;
}
.ql-contact__face--back {
  background: #FFFcf7;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotateY(180deg);
  z-index: 1;
  border: 1px solid rgba(92, 100, 72, 0.18);
}
.ql-contact__back-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 0 12px;
  box-sizing: border-box;
}
.ql-contact__back-buttons a {
  padding: 9px 14px;
  background-color: rgba(255, 252, 247, 0.92);
  color: var(--olive-deep);
  text-decoration: none;
  border: 1px solid rgba(92, 100, 72, 0.28);
  font-size: clamp(10px, 2.5vw, 12px);
  font-family: var(--didone);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  text-align: center;
  border-radius: 24px;
  letter-spacing: 0.05em;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.ql-contact__back-buttons a:hover {
  background-color: rgba(92, 100, 72, 0.1);
  color: var(--olive);
}
@media (max-width: 400px) {
  .ql-contact__front-title { font-size: 1.25rem; }
  .ql-contact__back-buttons a { font-size: 9px; padding: 8px 10px; }
}

/* ——— Close ——— */
.ql-close {
  position: relative;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  color: #FFFcf7;
  text-align: center;
  padding: 0 28px calc(88px + var(--safe));
}
.ql-close__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.ql-close__bg.active {
  opacity: 1;
}
.ql-close__slideshow {
  position: absolute;
  inset: 0;
}
.ql-close__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 22, 16, 0.08) 0%, rgba(20, 22, 16, 0.28) 42%, rgba(20, 22, 16, 0.72) 100%);
}
.ql-close__copy {
  position: relative;
  z-index: 2;
  max-width: min(92vw, 420px);
}
.ql-close__line {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(9px, 2.45vw, 11px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
  opacity: 0.78;
  margin-bottom: 22px;
  white-space: nowrap;
}
.ql-close__with {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.78;
  margin-bottom: 10px;
}
.ql-close__names {
  font-family: var(--didone);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(22px, 5.8vw, 32px);
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #FFFcf7;
  white-space: nowrap;
}
.ql-close__names .names-flourish__cap {
  font-family: var(--script);
  font-size: 1.75em;
  letter-spacing: 0;
  text-transform: none;
  line-height: 0.75;
  display: inline-block;
  margin-right: 0.01em;
  vertical-align: -0.12em;
}
.ql-close__names .names-flourish__rest {
  font-family: var(--didone);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}
.ql-close__names .names-flourish__amp {
  font-family: var(--script);
  font-size: 1.1em;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0.18em;
  display: inline-block;
}

/* Solapas del cierre, sobre el gracias. Royal Invite queda encima. */
.cierre-scene {
  position: absolute;
  inset: 0;
  z-index: 30;
  overflow: hidden;
  pointer-events: none;
}
.ql-close .flap-img {
  transition: none;
  top: 0;
  height: 100%;
  width: 62vw;
  object-fit: cover;
  opacity: 1;
}
.cierre-scene .flap-l {
  left: 0;
  right: auto;
  object-position: right center;
}
.cierre-scene .flap-r {
  right: 0;
  left: auto;
  object-position: left center;
}
.cierre-scene .flap-front {
  z-index: 40;
  opacity: 1;
}
.cierre-scene .flap-back {
  z-index: 28;
  width: 54vw;
  opacity: 0.2;
}
.ql-close .credits {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: 100%;
}
.cierre-joya {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 70;
  width: min(148px, 38vw);
  height: min(148px, 38vw);
  pointer-events: none;
}
.cierre-sello {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.45));
}
.cierre-flor {
  position: absolute;
  left: -30%;
  top: -42%;
  width: 128%;
  height: auto;
  mix-blend-mode: lighten;
  filter: sepia(0.08) saturate(0.92) contrast(1.04) brightness(1.04);
  transform-origin: 60% 80%;
  pointer-events: none;
}

.credits {
  display: block;
  width: 100%;
  border: none;
  border-top: 1px solid var(--line);
  background: var(--ivory);
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 22px 16px calc(22px + var(--safe));
  cursor: pointer;
}
.credits span { color: var(--olive-deep); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}


/* Ornamento costero */
.coast {
  display: block;
  width: min(220px, 58vw);
  height: auto;
  margin: 0 auto;
}
.coast--light {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.mono .coast {
  margin-bottom: 10px;
}
.close__coast {
  width: min(160px, 48vw);
  margin: 18px auto 10px;
}
.schedule .coast {
  width: min(140px, 40vw);
  margin: 0 auto 22px;
  opacity: 0.85;
}



/* ===== PARTE 1: video + solapas — abrir al tocar el sello ===== */
html.lock-scroll,
body.lock-scroll {
  overflow: hidden !important;
  height: 100vh !important;
  height: 100dvh !important;
  position: fixed !important;
  width: 100% !important;
  overscroll-behavior: none;
  background-color: #EDE6D8 !important;
}
/* Con el sobre cerrado, el resto de la página no se pinta.
   Las solapas son transparentes y Safari se caía al componer todo lo de atrás. */
html.lock-scroll #site > :not(.hero-track):not(.music) {
  display: none !important;
}

.hero-track,
.contenedor-principal {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  height: 100%;
  z-index: 100;
  background: #EDE6D8;
  overflow: hidden;
  box-sizing: border-box;
}
/* Tras abrir: el video se queda como portada.
   height:100% y -webkit-fill-available se calculan en 0
   porque el padre no tiene alto fijo, y el video desaparece. */
.hero-track.is-open {
  position: relative;
  inset: auto;
  z-index: 36;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
}
.hero-track.is-open .flap-img,
.hero-track.is-open .hero-stamp,
.hero-track.is-open .scroll-hint,
.hero-track.is-open .hero-flor {
  visibility: hidden;
  pointer-events: none;
}
.hero-sticky {
  position: absolute;
  inset: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-video-wrap { position: absolute; inset: 0; }
.hero-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
}
.hero-video-wrap.is-still .hero-still { opacity: 1; }
.hero-video-wrap.is-still .hero-video { opacity: 0; }
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Evita controles / gestos nativos de Safari encima del video */
  pointer-events: none;
  -webkit-touch-callout: none;
}
.hero-titles {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22%;
  z-index: 48;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  /* Solo visibles al abrir las solapas */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  color: #fff;
  text-shadow: 0 3px 28px rgba(0,0,0,0.4);
  transition: opacity 0.5s ease 0.1s, visibility 0.5s ease 0.1s;
}
.hero-track.is-open .hero-titles {
  opacity: 1;
  visibility: visible;
}
.hero-titles__logo-wrap {
  position: relative;
  display: block;
  width: 11%;
  max-width: 52px;
  min-width: 36px;
  /* Óvalo vertical, no círculo */
  aspect-ratio: 3 / 3.65;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-sizing: border-box;
}
.hero-titles__logo-wrap::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.85);
  pointer-events: none;
  z-index: 2;
}
.hero-titles__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: 46%;
  height: 46%;
  object-fit: contain;
  filter: none;
  opacity: 1;
  z-index: 1;
}
.hero-h1 {
  font-family: var(--didone);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.55rem, 6.2vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: uppercase;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.22em;
  white-space: nowrap;
}
.hero-h1 .names-flourish__cap {
  font-family: var(--script);
  font-size: 1.85em;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 0.75;
  display: inline-block;
  margin-right: 0.01em;
  vertical-align: -0.14em;
}
.hero-h1 .names-flourish__rest {
  font-family: var(--didone);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero-h1 .hero-amp {
  display: inline-block;
  margin: 0;
  font-size: 0.95em;
  line-height: 1;
  opacity: 0.92;
  font-family: var(--script);
  letter-spacing: 0;
  text-transform: none;
}
.hero-h2 {
  margin-top: 14px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Nombres pareja — mismo estilo en toda la invitación */
.couple-names {
  font-family: var(--didone);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.18em;
  line-height: 1.1;
}
.couple-names .names-flourish__cap {
  font-family: var(--script);
  font-size: 1.7em;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 0.75;
  display: inline-block;
  margin-right: 0.01em;
  vertical-align: -0.12em;
}
.couple-names .names-flourish__rest {
  font-family: var(--didone);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}
.couple-names .names-flourish__amp {
  font-family: var(--script);
  font-size: 0.95em;
  letter-spacing: 0;
  text-transform: none;
  display: inline-block;
  margin: 0 0.04em;
  opacity: 0.92;
}
.hero-h1.couple-names,
.hero-h1.couple-names .names-flourish__name,
.hero-h1.couple-names .names-flourish__cap,
.hero-h1.couple-names .names-flourish__rest,
.hero-h1.couple-names .hero-amp {
  font-family: "p22-zaner-pro-three", cursive;
  font-weight: 700;
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
}
.hero-h1.couple-names {
  font-size: clamp(1.65rem, 15vw, 2.95rem);
  line-height: 1;
  white-space: nowrap;
}
.hero-h1.couple-names .names-flourish__cap {
  font-size: 1em;
  line-height: 1;
  margin: 0;
  vertical-align: baseline;
}
.hero-h1.couple-names .hero-amp {
  font-size: 0.7em;
  opacity: 1;
}
.desk__script.couple-names {
  display: flex;
  font-size: clamp(22px, 4vw, 32px);
  color: var(--olive-deep);
  margin: 8px 0;
}
.inv-names.couple-names {
  display: flex;
  font-size: clamp(20px, 5.2vw, 28px);
  color: var(--olive-soft, #7A8466);
  margin: 2px 0 10px;
  line-height: 1.08;
}
.historia__firma.couple-names {
  display: flex;
  font-size: clamp(15px, 4.9vw, 17px);
  color: var(--olive);
  margin-top: 18px !important;
  text-align: center;
  width: 100%;
}
.oval-invite__sign .couple-names {
  display: inline-flex;
  font-size: clamp(22px, 6.5vw, 28px);
  color: #1a1814;
}
.polaroid-caption.couple-names {
  display: inline-flex;
  font-size: 12px;
  color: inherit;
  letter-spacing: 0;
}
.ql-close__names.couple-names {
  display: inline-flex;
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  pointer-events: none;
  touch-action: pan-y;
}
.flap-img {
  position: absolute;
  top: -6%;
  height: 112%;
  width: 112vw;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  opacity: 0.90;
  transition: transform 1s ease-in-out, opacity 0.9s ease;
}
.flap-l { left: -6vw; }
.flap-r { right: -6vw; }
.flap-front { z-index: 40; opacity: 0.90; }
.flap-back { z-index: 30; opacity: 0.28; }

/* Floristas en la apertura del sobre (estilo Dayana) */
.hero-flor {
  position: absolute;
  z-index: 65;
  width: min(42vw, 168px);
  height: auto;
  pointer-events: none;
  mix-blend-mode: lighten;
  filter: sepia(0.08) saturate(0.92) contrast(1.04) brightness(1.04);
  transform-origin: 50% 85%;
  animation: hero-flor-breeze 5.8s ease-in-out infinite;
  transition: opacity 0.45s ease;
}
.hero-flor--b {
  top: 34%;
  left: 41%;
  right: auto;
  width: min(36vw, 148px);
  opacity: 0.95;
  animation-name: hero-flor-breeze-b;
}
.hero-flor.is-out {
  animation: none !important;
  opacity: 0 !important;
  mix-blend-mode: normal;
  will-change: auto;
}
/* Brisa suave: se mecen como con viento leve */
@keyframes hero-flor-breeze {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(5px, -7px) rotate(2.2deg); }
  50% { transform: translate(-2px, -3px) rotate(-1.4deg); }
  75% { transform: translate(-5px, -6px) rotate(1.6deg); }
}
@keyframes hero-flor-breeze-b {
  0%, 100% {
    transform: translate(-35%, 8%) rotate(-12deg) scaleX(-1);
  }
  25% {
    transform: translate(calc(-35% + 6px), calc(8% - 8px)) rotate(-8.5deg) scaleX(-1);
  }
  50% {
    transform: translate(calc(-35% - 3px), calc(8% - 2px)) rotate(-14deg) scaleX(-1);
  }
  75% {
    transform: translate(calc(-35% - 5px), calc(8% - 7px)) rotate(-10deg) scaleX(-1);
  }
}

.hero-stamp {
  position: absolute;
  z-index: 70;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(148px, 38vw);
  height: min(148px, 38vw);
  margin: 0;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
  opacity: 1;
}
.hero-stamp img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,0.45));
  transform: scale(1);
  transform-origin: center center;
  opacity: 1;
  animation: hero-stamp-pulse 2.2s ease-in-out infinite;
}
/* Latido suave: solo escala, el botón sigue fijo centrado */
@keyframes hero-stamp-pulse {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.06); }
  55% { transform: scale(1.02); }
  70% { transform: scale(1.045); }
}

.scroll-hint {
  /* Justo debajo del sello de cera (centrado a 50%) */
  position: absolute;
  top: calc(50% + min(74px, 19vw) + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 72;
  text-align: center;
  pointer-events: none;
  padding: 0;
  border-radius: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.scroll-hint p {
  font-family: 'Pinyon Script', 'Great Vibes', cursive;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(15px, 3.8vw, 19px);
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--olive-deep);
  margin: 0;
  text-shadow: 0 1px 2px rgba(247, 243, 234, 0.75);
  opacity: 0.88;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.scroll-line {
  display: none;
}

/* Barra de carga bajo "Open with love": al 100% se puede abrir */
.hero-loading-wrap {
  margin: 10px auto 0;
  transition: opacity 0.5s ease;
}
.hero-loading {
  width: 84px;
  height: 3px;
  margin: 0 auto;
  border-radius: 3px;
  background: rgba(92, 100, 72, 0.18);
  overflow: hidden;
}
.hero-loading__fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 3px;
  background: var(--olive-deep);
  opacity: 0.85;
  transition: width 0.25s ease-out;
}
.hero-loading__msg {
  margin: 7px 0 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive-deep);
  opacity: 0.72;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(247, 243, 234, 0.7);
}
.hero-loading-wrap.is-done {
  opacity: 0;
  pointer-events: none;
}
/* Sello apagado mientras carga */
.hero-stamp:disabled {
  cursor: default;
}
.hero-stamp.is-waiting img {
  opacity: 0.75;
}

@media (min-width: 768px) {
  html:not(.force-preview) .hero-track { display: none !important; }
}

/* ===== SOBRE CARTA + RSVP (proporciones Santi, capas ordenadas) ===== */
.inv-carta {
  padding: 0 16px 12px;
  margin-bottom: 0;
  touch-action: pan-y;
  -webkit-touch-callout: none;
}

.inv-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  aspect-ratio: 10 / 11.5;
  min-height: 0;
  height: auto;
  background: transparent !important;
  display: block;
  overflow: visible;
}

@media (max-width: 480px) {
  .inv-container {
    aspect-ratio: 10 / 11.5;
    min-height: 0;
  }
}

/* Capas base: top 0. Solo el sobre se posiciona aparte. */
.inv-container .layer {
  position: absolute;
  height: auto;
  top: 0;
  left: 0;
  background: none;
  pointer-events: none;
  user-select: none;
}
.inv-container .z1 { z-index: 1; }
.inv-container .z9 { z-index: 9; }
.inv-container .z10 { z-index: 10; }

.inv-container .sobre-3d.layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
}

/* Hoja más abajo: no tapa el flap ni los nombres del sobre */
.inv-container .paper-wrapper {
  position: absolute;
  top: 36%;
  left: 50%;
  width: 90%;
  /* GSAP anima con xPercent:-50; no fijar translateX aquí */
  z-index: 5;
  background: transparent;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.inv-paper {
  width: 100%;
  /* Un poco más alta para que el texto no se vea aplastado */
  aspect-ratio: 7 / 5.65;
  min-height: 0;
  height: auto;
  background-color: #FFFcf7;
  background-image: var(--img-hoja-blanca);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(92, 100, 72, 0.22);
  box-shadow: 0 14px 36px rgba(44, 43, 38, 0.12);
  padding: clamp(20px, 5vw, 28px) clamp(20px, 5.2vw, 28px) clamp(22px, 5.4vw, 30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  opacity: 1;
  box-sizing: border-box;
}

.inv-paper::before {
  content: '';
  position: absolute;
  /* Más cerca del borde de la hoja → más aire entre marco y texto */
  inset: clamp(9px, 2.6vw, 12px);
  border: 1px solid rgba(92, 100, 72, 0.14);
  pointer-events: none;
  z-index: 1;
}

/* Toque mínimo para bajar el azul, sin crema */
.inv-paper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #ffffff;
  mix-blend-mode: soft-light;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.inv-paper-inner {
  width: 100%;
  max-width: 96%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transform: none;
  gap: 2px;
  padding: 0;
  box-sizing: border-box;
}

.inv-container .paper-img,
.paper-sheet,
.inv-container .content-overlay {
  display: none !important;
}

.inv-container .lazo {
  top: 20%;
  width: 27%;
  left: 49%;
  transform: translate3d(-18%, 0, 3px) rotate(-58deg);
  z-index: 9;
  opacity: 1;
  pointer-events: none;
}


.inv-container .sello {
  width: 14%;
  left: 44%;
  top: 27%;
  transform: translateZ(4px);
  z-index: 10;
  opacity: 1;
  pointer-events: none;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
}


.inv-type.is-typing::after {
  content: none;
}
.inv-ch {
  opacity: 0;
}
.inv-ch.is-on {
  opacity: 1;
}

/* Escrito estilo Santi */
.inv-carta .parents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  width: 100%;
  margin: 0 auto 6px;
  font-size: clamp(7.5px, 2vw, 9.5px);
  letter-spacing: 0.35px;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--muted, #6B675C);
  padding-bottom: 0;
}

.inv-carta .layer,
.inv-carta .inv-paper {
  pointer-events: none;
  user-select: none;
}

.names-row {
  margin-bottom: 4%;
  width: 100%;
  display: flex;
  justify-content: center;
}

.names-slight {
  font-family: var(--script);
  font-style: normal;
  font-size: clamp(26px, 7.8vw, 38px);
  color: var(--olive-deep);
  white-space: nowrap;
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.names-slight i {
  font-style: normal;
  font-size: 0.72em;
  margin: 0 0.08em;
  color: var(--olive);
}

.txt-small {
  font-size: clamp(10px, 2.8vw, 12px);
  line-height: 1.4;
  margin: 0 0 6%;
  color: var(--muted);
  text-transform: none;
  font-style: italic;
  letter-spacing: 0.02em;
  font-family: var(--serif);
  font-weight: 300;
  max-width: 92%;
}

.section-title { display: none; }
.blessing-group { margin-top: 0; width: 100%; }
.blessing { display: none; }

.inv-carta .parents-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  min-width: 0;
  width: auto;
  gap: 4px;
}

.inv-carta .parents-grid p {
  margin: 0 0 4px;
  width: 100%;
  white-space: normal;
  font-size: inherit;
  line-height: 1.28;
  color: inherit;
  font-style: normal;
  font-family: var(--sans);
  font-weight: 300;
}
.inv-carta .parents-grid p:last-child {
  margin-bottom: 0;
}

.inv-phrase {
  font-family: var(--sans);
  font-size: clamp(8px, 2.15vw, 10.5px);
  letter-spacing: 0.5px;
  margin: 0 0 8px;
  line-height: 1.35;
  color: var(--muted, #6B675C);
  text-transform: uppercase;
  width: 100%;
  white-space: normal;
  font-weight: 300;
  max-width: 95%;
}

.inv-names {
  font-family: var(--script);
  font-size: clamp(22px, 5.8vw, 32px);
  font-weight: 400;
  color: var(--olive-soft, #7A8466);
  margin: 2px 0 10px;
  line-height: 1.08;
  white-space: nowrap;
  letter-spacing: 0.02em;
  max-width: 100%;
  width: 100%;
}

.inv-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 96%;
}

.inv-detail-line {
  display: block;
  width: 100%;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(7.5px, 2.05vw, 10px);
  letter-spacing: 0.32px;
  line-height: 1.45;
  white-space: normal;
}

.inv-city {
  margin-top: 10px;
  font-family: var(--script);
  font-size: clamp(15px, 4vw, 20px);
  letter-spacing: 0.04em;
  color: var(--olive-soft, #7A8466);
  white-space: nowrap;
  width: 100%;
}

.inv-year {
  margin-top: 6px;
  margin-bottom: 2px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(8px, 2.1vw, 10.5px);
  letter-spacing: 0.22em;
  color: var(--olive);
  white-space: nowrap;
}

.city {
  font-size: clamp(9px, 2.5vw, 11px);
  letter-spacing: 0.22em;
  margin-top: 4%;
  padding-bottom: 0;
  font-style: normal;
  font-family: var(--sans);
  font-weight: 300;
  text-transform: uppercase;
  color: var(--olive);
}

@media (min-width: 480px) {
  .names-slight { font-size: 34px; }
  .txt-small { font-size: 12px; }
  .inv-names { font-size: 30px; }
  .inv-city { font-size: 20px; }
  .inv-carta .parents-grid { font-size: 10.5px; }
  .inv-phrase { font-size: 10.5px; }
  .inv-detail-line { font-size: 10px; }
}

/* Formulario: el mismo sobre, sin giro. Se abre la solapa del monograma. */
.rsvp-sobre {
  position: relative;
  width: min(100%, 420px);
  margin: 12px auto 0;
  perspective: 1600px;
}
.rsvp-sobre__escena {
  position: relative;
  width: 100%;
  overflow: visible;
  transform-style: preserve-3d;
}
.rsvp-sobre__maestro {
  position: relative;
  width: 100%;
  aspect-ratio: 1536 / 1024;
  transform-style: preserve-3d;
  z-index: 2;
}
.rsvp-sobre .pieza,
.rsvp-sobre .solapa-cara {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  backface-visibility: hidden;
  pointer-events: none;
}
.rsvp-sobre .atras {
  background-image: url('https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/Josh%20%26%20Juan%20Diego/fotos%20para%20sobre%20-04.webp');
  transform: rotateY(180deg) translateZ(2.5px);
  z-index: 1;
}
.rsvp-sobre .bajo-frente {
  background-image: url('https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/Josh%20%26%20Juan%20Diego/fotos%20para%20sobre%20-05.webp');
  transform: translateZ(2.2px);
  z-index: 4;
}
.rsvp-sobre .frente {
  background-color: transparent;
  background-image: url('https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/Josh%20%26%20Juan%20Diego/parte-delantera.webp');
  transform: translateZ(2.5px);
  transform-style: preserve-3d;
  z-index: 5;
}
.rsvp-sobre .frente .grosor-cuerpo {
  -webkit-mask-image: url('https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/Josh%20%26%20Juan%20Diego/parte-delantera.webp');
  mask-image: url('https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/Josh%20%26%20Juan%20Diego/parte-delantera.webp');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.rsvp-sobre .grosor-cuerpo {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #e6dfd2;
}
.rsvp-sobre .sobre-boca {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 3;
  transform: translateZ(0.5px);
}
.rsvp-sobre .bisagra-solapa {
  position: absolute;
  inset: 0;
  transform-origin: top center;
  transform-style: preserve-3d;
  transform: translateZ(2.6px);
  z-index: 10;
  pointer-events: none;
}
.rsvp-sobre .solapa-exterior {
  background-image: url('https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/Josh%20%26%20Juan%20Diego/mono-sola.webp');
}
.rsvp-sobre .solapa-interior {
  background-image: url('https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/Josh%20%26%20Juan%20Diego/fotos%20para%20sobre%20-02.webp');
  transform: rotateX(180deg) translateZ(0.1px);
}
.rsvp-sobre .rsvp-hoja {
  position: absolute;
  top: 0;
  left: 7%;
  width: 86%;
  z-index: 1;
  pointer-events: auto;
}
.rsvp-sobre .ql-rsvp__form {
  max-width: none;
  margin: 0;
  pointer-events: auto;
}

.rsvp-sobre-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 28px auto 0;
}
.royal-inv-container {
  position: relative;
  width: 100%;
  padding-bottom: 28px;
  overflow: visible;
}
.royal-inv-layer {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  z-index: 1;
  pointer-events: none;
}
/* Sobre cerrado del RSVP: menos saturación */
.royal-inv-z1 {
  filter: saturate(0.55);
}
.royal-inv-paper-wrapper {
  position: relative;
  z-index: 5;
  /* Un poco más abajo para no cubrir el logo del sobre */
  margin: -34% auto 0;
  width: 86%;
  background-color: #FFFcf7;
  background-image:
    linear-gradient(rgba(255, 252, 247, 0.34), rgba(255, 252, 247, 0.34)),
    var(--img-hoja-blanca);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(92,100,72,0.2);
  box-shadow: 0 18px 40px rgba(42,42,36,0.14);
}
.royal-inv-paper-wrapper::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(92, 100, 72, 0.13);
  pointer-events: none;
  z-index: 0;
}
.royal-inv-content-overlay {
  position: relative;
  z-index: 1;
  padding: 22px 16px 20px;
}
.royal-inv-form-header {
  text-align: center;
  margin-bottom: 14px;
}
.royal-inv-form-title {
  font-family: 'Pinyon Script', 'Great Vibes', cursive;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(20px, 6.4vw, 30px);
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--olive-deep);
  margin-bottom: 9px;
  white-space: nowrap;
}
.royal-inv-form-subtitle {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
}
.royal-inv-form-inner .rsvp__form {
  margin: 0;
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  gap: 16px;
}
.royal-inv-form-inner .rsvp-label {
  font-family: var(--didone);
  font-style: normal;
  font-size: 15px;
  letter-spacing: 0.025em;
}
.royal-inv-form-inner input,
.royal-inv-form-inner textarea {
  font-family: var(--serif);
  padding: 10px 12px;
  font-size: 14px;
}
.royal-inv-form-inner .choice__btn {
  font-size: 13px;
  padding: 10px 12px;
}

/* Pájaros — solo en el cielo del video bajo el itinerario */
html.lock-scroll .pajaros,
html.lock-scroll .pajaros * {
  animation-play-state: paused !important;
}
.pajaros {
  --tinta: #3f4650;
  --papel: #ffffff;
  --aleteo: .55s;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.casa-sky__band .pajaro--1 { animation-name: pajaro-cielo-1; }
.casa-sky__band .pajaro--2 { animation-name: pajaro-cielo-2; }
.casa-sky__band .pajaro--3 { animation-name: pajaro-cielo-3; }
@keyframes pajaro-cielo-1 {
  0%   { transform: translate3d(-18vw, 1vh, 0) rotate(-8deg); }
  45%  { transform: translate3d(42vw, 5vh, 0) rotate(4deg); }
  100% { transform: translate3d(108vw, 2vh, 0) rotate(6deg); }
}
@keyframes pajaro-cielo-2 {
  0%   { transform: translate3d(112vw, 7vh, 0) rotate(8deg) scaleX(-1); }
  100% { transform: translate3d(-22vw, 3vh, 0) rotate(-4deg) scaleX(-1); }
}
@keyframes pajaro-cielo-3 {
  0%   { transform: translate3d(-16vw, 8vh, 0) rotate(-8deg); }
  55%  { transform: translate3d(50vw, 1vh, 0) rotate(3deg); }
  100% { transform: translate3d(114vw, 6vh, 0) rotate(5deg); }
}
.pajaro {
  position: absolute;
  left: 0;
  top: 0;
  width: 72px;
}
.pajaro-ave {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1312 / 1199;
  animation: planear calc(var(--aleteo) * 2) ease-in-out infinite;
}
.pajaro-ave .parte { position: absolute; inset: 0; }
.pajaro-ave .parte::before,
.pajaro-ave .parte::after {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.pajaro-ave .parte::before {
  background: var(--papel);
  -webkit-mask-image: url("https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/Josh%20%26%20Juan%20Diego/pajaro-papel.webp");
  mask-image: url("https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/Josh%20%26%20Juan%20Diego/pajaro-papel.webp");
}
.pajaro-ave .parte::after {
  background: var(--tinta);
  -webkit-mask-image: url("https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/Josh%20%26%20Juan%20Diego/pajaro-tinta.webp");
  mask-image: url("https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/Josh%20%26%20Juan%20Diego/pajaro-tinta.webp");
}
.pajaro-ave .cuerpo {
  clip-path: polygon(6.86% 35.86%, 20.58% 38.53%, 27.44% 38.53%, 34.30% 40.03%, 41.16% 43.79%, 47.26% 47.96%, 53.35% 50.04%, 57.93% 48.37%, 60.98% 58.38%, 64.02% 71.73%, 76.22% 73.39%, 83.84% 80.07%, 91.46% 100.00%, 45.73% 100.00%, 15.24% 66.72%, 6.86% 50.04%);
  z-index: 2;
}
.pajaro-ave .ala-atras {
  clip-path: polygon(2.29% 0.83%, 24.39% 0.00%, 42.68% 20.85%, 54.88% 35.03%, 54.88% 50.04%, 53.35% 50.04%, 47.26% 47.96%, 41.16% 43.79%, 34.30% 40.03%, 27.44% 38.53%, 20.58% 38.53%, 3.05% 11.68%);
  z-index: 1;
  transform-origin: 42.7% 45.0%;
  animation: aleteoAtras var(--aleteo) ease-in-out infinite alternate;
}
.pajaro-ave .ala-frente {
  clip-path: polygon(48.78% 50.04%, 68.60% 39.20%, 89.94% 30.03%, 100.00% 31.69%, 100.00% 68.39%, 80.03% 73.39%, 76.22% 73.39%, 65.55% 74.23%, 57.93% 70.89%, 52.59% 65.05%, 48.78% 57.55%, 48.78% 50.04%);
  z-index: 3;
  transform-origin: 52.6% 57.5%;
  animation: aleteoFrente var(--aleteo) ease-in-out infinite alternate;
}
.pajaro--1 { width: 78px; animation: pajaro-1 26s linear infinite; }
.pajaro--2 { width: 54px; --aleteo: .48s; animation: pajaro-2 19s linear infinite; }
.pajaro--3 { width: 66px; --aleteo: .6s; animation: pajaro-3 32s linear -8s infinite; }
.pajaro--4 { width: 46px; --aleteo: .42s; animation: pajaro-4 22s linear -12s infinite; }
.pajaro--5 { width: 86px; --aleteo: .62s; animation: pajaro-5 28s linear -4s infinite; }
@keyframes aleteoAtras {
  from { transform: rotate(3deg) scale(1); }
  to   { transform: rotate(-14deg) scale(.92, .6); }
}
@keyframes aleteoFrente {
  from { transform: rotate(-5deg) scale(1); }
  to   { transform: rotate(26deg) scale(.8, .92); }
}
@keyframes planear {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes pajaro-1 {
  0%   { transform: translate3d(-18vw, 16vh, 0) rotate(-8deg); }
  30%  { transform: translate3d(38vw, 6vh, 0) rotate(4deg); }
  62%  { transform: translate3d(78vw, 24vh, 0) rotate(-6deg); }
  100% { transform: translate3d(118vw, 10vh, 0) rotate(6deg); }
}
@keyframes pajaro-2 {
  0%   { transform: translate3d(112vw, 62vh, 0) rotate(8deg) scaleX(-1); }
  40%  { transform: translate3d(48vw, 48vh, 0) rotate(-4deg) scaleX(-1); }
  100% { transform: translate3d(-22vw, 70vh, 0) rotate(6deg) scaleX(-1); }
}
@keyframes pajaro-3 {
  0%   { transform: translate3d(-16vw, 84vh, 0) rotate(-10deg); }
  35%  { transform: translate3d(28vw, 58vh, 0) rotate(2deg); }
  70%  { transform: translate3d(72vw, 78vh, 0) rotate(-8deg); }
  100% { transform: translate3d(116vw, 42vh, 0) rotate(5deg); }
}
@keyframes pajaro-4 {
  0%   { transform: translate3d(108vw, 28vh, 0) rotate(7deg) scaleX(-1); }
  50%  { transform: translate3d(40vw, 18vh, 0) rotate(-5deg) scaleX(-1); }
  100% { transform: translate3d(-24vw, 36vh, 0) rotate(4deg) scaleX(-1); }
}
@keyframes pajaro-5 {
  0%   { transform: translate3d(-20vw, 46vh, 0) rotate(-6deg); }
  25%  { transform: translate3d(22vw, 32vh, 0) rotate(8deg); }
  55%  { transform: translate3d(60vw, 54vh, 0) rotate(-4deg); }
  100% { transform: translate3d(120vw, 22vh, 0) rotate(6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .pajaro,
  .pajaro-ave,
  .pajaro-ave .ala-atras,
  .pajaro-ave .ala-frente { animation: none; }
}

/* optimización: congela animaciones CSS fuera de pantalla. Al volver, siguen desde donde iban. */
.fuera-de-pantalla *,
.fuera-de-pantalla *::before,
.fuera-de-pantalla *::after {
  animation-play-state: paused !important;
}

/* Tul ligero: capas pre-renderizadas que solo se mueven */
.tul .capa {
  position: absolute;
  left: -25%;
  top: -25%;
  width: 150%;
  max-width: none;
  height: 150%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}
.tul .c1 { mix-blend-mode: multiply;            animation: carta-brisa1 6s   ease-in-out infinite alternate; }
.tul .c2 { opacity: .8;                          animation: carta-brisa2 4.2s ease-in-out infinite alternate; }
.tul .c3 { opacity: .55; mix-blend-mode: screen; animation: carta-brisa3 3.4s ease-in-out infinite alternate; }
.tul .c4 { opacity: .5;  mix-blend-mode: screen; animation: carta-brisa4 2.6s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) {
  .tul .capa { animation: none; }
}
