/* 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/crisybri/pael%201.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;
}
.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 + invitado — encajes en bordes del bloque crema */
.bienvenida {
  position: relative;
  padding: 56px 20px 58px;
  text-align: center;
  background-color: var(--ivory);
  background-image: var(--tex-cotton);
  background-size: 150px 150px;
  background-blend-mode: multiply;
  overflow: hidden;
}
.bienvenida__lead {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 18px;
  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: 0 auto 28px;
  max-width: 320px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--olive);
}
/* Encajes: pegados a los bordes del contenedor crema */
.bienvenida__encaje {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0;
  display: block;
  object-fit: cover;
  object-position: center center;
  mix-blend-mode: multiply;
  opacity: 0.78;
  pointer-events: none;
  /* Evita que se vea chueco por subpixel / transform */
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
/* Borde de arriba: toca la unión con la foto */
.bienvenida__encaje--top {
  top: -9px;
  bottom: auto;
  object-position: center 48%;
  transform: translate3d(0, 0, 0) rotate(0.9deg);
}
/* Borde de abajo: toca la unión inferior, solapas hacia adentro */
.bienvenida__encaje--bottom {
  bottom: 0;
  top: 220px;
  object-position: center 48%;
  transform: translate3d(0, 0, 0) scaleY(-1);
}
.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(--serif);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(18px, 5vw, 24px);
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--olive-deep);
  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);
}

/* 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: 36px 16px 28px;
  background: transparent;
}
.carta-section .carta-verse {
  position: relative;
  z-index: 2;
  width: min(92vw, 360px);
  margin: 0 auto 52px;
  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-section .inv-carta {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0;
}
.carta-section .inv-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 0;
  height: auto;
  aspect-ratio: auto;
  background: transparent !important;
  overflow: visible;
}
.carta-section .carta-stack {
  position: relative;
  width: 100%;
  /* hueco bajo el sobre para la hoja que sobresale */
  padding-bottom: 70%;
}
.carta-section .carta-sobre-wrap {
  position: relative;
  width: 100%;
  z-index: 1;
}
.carta-section .carta-sobre {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  /* Menos saturación: sobre más blanquito */
  filter: saturate(0.55) drop-shadow(0 12px 28px rgba(44, 43, 38, 0.14));
}
/* Sello encima de la hoja, en la punta del flap */
.carta-section .carta-sello {
  position: absolute;
  width: 18%;
  left: 50%;
  top: 0;
  /* 70% de la altura del sobre ≈ 46.6% del ancho (aspect ~0.666) */
  margin-top: 46.6%;
  transform: translate(-50%, -50%);
  z-index: 20;
  opacity: 1 !important;
  pointer-events: none;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}
.carta-section .inv-container .paper-wrapper {
  position: absolute !important;
  top: 0 !important;
  margin-top: 43% !important;
  left: 50% !important;
  width: 86% !important;
  height: auto !important;
  transform: translateX(-50%) !important;
  z-index: 5 !important;
  opacity: 1 !important;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.carta-section .inv-paper {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  min-height: 0;
  padding: clamp(20px, 5vw, 30px) clamp(16px, 4.5vw, 26px);
}
.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: 1;
  margin: 4px auto 0;
  padding: 4px 12px 0;
  gap: 6px;
}
.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: block;
  width: 100%;
  max-width: 280px;
  margin: 8px auto 0;
  /* Reserva el aire bajo la hoja (sin iniciales ni fecha) */
  min-height: 96px;
  padding: 18px 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 — layout Dayana, paleta Quiet Luxury */
.historia {
  padding: 48px 22px 56px;
  background-color: #FBF8F1;
  text-align: left;
  position: relative;
  z-index: 5;
  isolation: isolate;
  opacity: 1;
}
.historia__block {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}
.historia__titulo {
  margin: 0 0 14px;
  font-family: 'Libre Bodoni', 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(22px, 5.2vw, 32px);
  color: var(--olive-deep);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.historia__slideshow {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: min(72vh, 620px);
  margin: 0 0 22px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(44, 43, 38, 0.16);
  position: relative;
  background: var(--cream);
  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 {
  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__cuerpo::first-letter {
  float: left;
  font-family: var(--display);
  font-size: 2.5em;
  line-height: 0.85;
  font-weight: 500;
  margin: 0.06em 0.12em 0 0;
  color: var(--olive);
  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;
}
.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: 48px 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;
}
.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;
  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: var(--ivory);
  background-image:
    repeating-linear-gradient(0deg, rgba(62, 69, 50, 0.035) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(44, 43, 38, 0.028) 0 1px, transparent 1px 5px),
    var(--tex-noise);
  background-size: auto, auto, 170px 170px;
  background-blend-mode: multiply, multiply, multiply;
  overflow: hidden;
  isolation: isolate;
}
.schedule__inner {
  position: relative;
  z-index: 2;
  padding: 0 28px;
}
.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;
}
.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(0, 18px, 0);
  transition: opacity 0.7s ease, transform 0.7s 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: -48px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  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%);
  /* WebP con transparencia real — sin multiply / sin halo blanco */
  mix-blend-mode: normal;
  filter: none;
  -webkit-mask-image: none;
  mask-image: none;
  background: transparent;
}
.schedule__casa-canvas,
.schedule__casa-fallback {
  display: none !important;
}
.place__art {
  display: block;
  width: min(78vw, 320px);
  height: auto;
  margin: 40px auto 0;
  filter: none;
  opacity: 0.8;
  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 oliva texturizado, tipografía e arte en crema */
.place,
.place--editorial {
  position: relative;
  z-index: 55;
  padding: 72px 28px 40px;
  text-align: center;
  background-color: var(--olive-deep);
  background-image:
    url("https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/crisybri/fodno%20ovlia.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/crisybri/texture%20crema.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(82vw, 360px);
  margin: 28px auto 0;
  text-decoration: none;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}
.oval-invite__photo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 63%;
  height: 56%;
  object-fit: cover;
  object-position: center 32%;
  border-radius: 50%;
  z-index: 1;
}
.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__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: 40px 20px 48px;
  text-align: center;
  background-color: var(--cream);
  background-image: var(--tex-stone);
  background-size: 190px 190px;
  background-blend-mode: soft-light;
}
.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: var(--olive-deep);
  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: var(--muted);
}
.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: var(--olive-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: rgba(62, 69, 50, 0.4);
  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;
}

/* 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;
}

/* ——— Hoja clásica (foto + arco + letras CB en el notch) ——— */
.invite-sheet {
  position: relative;
  padding: 0 0 56px;
  text-align: center;
  background: transparent;
  color: #2f2a24;
}
.invite-sheet__hero {
  position: relative;
}
.invite-sheet__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5.05;
  max-height: 70vh;
  margin: 0 auto;
  overflow: hidden;
  /* Óvalo más bajo (menos alto) */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 0h100v108H63C63 108 63 98 50 98S37 108 37 108H0V0z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 0h100v108H63C63 108 63 98 50 98S37 108 37 108H0V0z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.invite-sheet__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}
.invite-sheet__panel {
  position: relative;
  z-index: 2;
  margin-top: -48px;
  padding: 0 22px 8px;
  background: transparent;
  background-image: none;
  box-shadow: none;
  filter: none;
}
.invite-sheet__crest {
  position: relative;
  width: min(220px, 62vw);
  margin: -8px auto 22px;
  isolation: isolate;
}
/* Solo las iniciales CB, recortadas al óvalo del SVG */
.invite-sheet__mono {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: 21%;
  height: 42%;
  object-fit: contain;
  object-position: center;
  z-index: 1;
  margin: 0;
  opacity: 1;
  mix-blend-mode: normal;
  filter: none;
  clip-path: ellipse(48% 55% at 50% 50%);
  -webkit-clip-path: ellipse(48% 55% at 50% 50%);
}
.invite-sheet__crest-frame {
  position: relative;
  z-index: 2;
  width: 77%;
  height: 94px;
  margin: 0 auto;
  display: block;
  object-fit: contain;
  pointer-events: none;
  mix-blend-mode: normal;
  filter: none;
}
.invite-sheet__lead {
  margin: 0 auto 28px;
  max-width: 300px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.invite-sheet__venue {
  margin: 0 auto 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 5.8vw, 28px);
  color: var(--olive-deep);
  letter-spacing: 0.02em;
}
.invite-sheet__place {
  margin: 0 auto 8px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.invite-sheet__until {
  margin: 0 auto 28px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--olive);
}
.invite-sheet__seal-row {
  position: relative;
  width: min(100%, 420px);
  margin: 8px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
}
.invite-sheet__ribbon {
  width: 36%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(44, 43, 38, 0.12));
}
.invite-sheet__wax {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(64px, 18vw);
  height: auto;
  transform: translate(-50%, -42%);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.22));
  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__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;
}
.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 88px;
  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;
  padding: 12px 16px 56px;
  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:
    brightness(0) invert(0.92)
    drop-shadow(0 1px 0 rgba(255, 252, 247, 0.55))
    drop-shadow(0 -1px 1px 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;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  color: #FFFcf7;
  text-align: center;
  padding: 0 28px calc(72px + 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;
}

.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;
}

.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 */
.hero-track.is-open {
  position: relative;
  inset: auto;
  z-index: 36;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  height: 100%;
}
.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-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: 11%;
  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: 18%;
  max-width: 86px;
  min-width: 54px;
  /* Ó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: 62%;
  height: 62%;
  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;
}
.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;
  will-change: transform, opacity;
  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%;
  will-change: transform;
  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;
  mix-blend-mode: lighten;
  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; }
}

.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;
}
