@font-face {
  font-family: 'slight';
  font-style: normal;
  font-weight: normal;
  src: url('https://royal-invite.com/wp-content/uploads/2026/01/slight-regular.ttf') format('truetype');
}

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

:root {
  --crema: #FAF7F2;
  --hueso: #F2EDE4;
  --papel: #F7F3EC;
  --beige: #E8E0D4;
  --tinta: #3D3028;
  --tinta-media: #5C4A3A;
  --tinta-suave: #7A6B5C;
  --tinta-clara: #9A8B7A;
  --texto: var(--tinta);
  --texto-suave: var(--tinta-suave);
  --btn: var(--tinta);
  --btn-hover: #2A221C;
  --cdn: https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/pao;
  --fondo-papel: url('https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/pao/fondo%20ultimo1.webp');
}

html {
  min-height: 100%;
  background-color: var(--crema);
}

html, body {
  overflow-x: hidden;
  width: 100%;
  background: transparent;
  color: var(--tinta);
  font-family: 'Antic Didone', serif;
  touch-action: pan-y;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
}

.titulo-script {
  font-family: 'slight', cursive;
  font-weight: normal;
  color: var(--tinta);
  letter-spacing: 0.02em;
}

.titulo-grabado {
  font-family: 'Antic Didone', serif;
  font-weight: 100;
  color: var(--tinta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.texto-tinta {
  color: var(--tinta-suave);
}

.script-nombres {
  font-family: 'Ephesis', cursive;
  color: var(--tinta);
}

/* ===== SUBTÍTULOS ===== */
.subtitulo-corto,
.faltan-sub,
.dc-main,
.fecha-pill,
.ubi-hora,
.cd-label {
  font-family: 'Antic Didone', serif;
  font-style: normal;
  font-weight: 100;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tinta-suave);
}

.subtitulo,
.dc-note,
.rsvp-no-ninos,
.ubi-info p,
.galeria-section > p,
.gift-info p,
.gift-info .mail,
#overlayPasesInvitado {
  font-family: 'Lustria', serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--tinta-suave);
}

/* ===== FONDO PAPEL — textura acuarela (imagen) ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background-color: var(--crema);
  background-image:
    linear-gradient(180deg,
      rgba(250, 247, 242, 0.28) 0%,
      rgba(250, 247, 242, 0.18) 50%,
      rgba(250, 247, 242, 0.24) 100%),
    var(--fondo-papel);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 90% 70% at 50% 30%,
      rgba(255, 252, 247, 0.22) 0%,
      transparent 72%);
}

.watercolor-wash-layer {
  display: none;
}

/* Flores fijas — pegadas al fondo como el papel */
.floral-layer--fixed {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

/* Ancla de flores — suben con el scroll */
.floral-anchor {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

/* ===== FLORES PAO (flor.webp) — solo fondo, alternadas sin montarse ===== */
.floral-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.flor-motif {
  position: absolute;
  width: clamp(120px, 30vw, 240px);
}

.flor-motif--sm { width: clamp(105px, 26vw, 210px); }
.flor-motif--md { width: clamp(135px, 32vw, 265px); }
.flor-motif--lg { width: clamp(155px, 36vw, 290px); }
.flor-motif--xl { width: clamp(195px, 46vw, 370px); }

.floral-layer .flor-motif { opacity: 0.28; }
.floral-layer .flor-motif--lg { opacity: 0.3; }
.floral-layer .flor-motif--xl { opacity: 0.32; }
.floral-layer .flor-motif--inset { opacity: 0.26; }

.flor-motif {
  transform-origin: 50% 55%;
  will-change: transform;
}

.flor-motif-inner {
  display: block;
  width: 100%;
}

.flor-motif-img {
  width: 100%;
  height: auto;
  display: block;
  filter: sepia(0.12) saturate(0.85) contrast(1.02);
}

.flor-motif--flip .flor-motif-img { transform: scaleX(-1); }
.flor-motif--flip-v .flor-motif-img { transform: scaleY(-1); }
.flor-motif--flip-both .flor-motif-img { transform: scale(-1, -1); }

/* ===== EDITOR DE FLORES — edita top / left / right / --flor-rot por flor ===== */
/* Fijas en pantalla: flor-fija-01 … flor-fija-08 */
.flor-fija-01 { top: 4%;  left: -6%; right: auto; --flor-rot: 15deg; }
.flor-fija-02 { top: 14%; right: -5%; left: auto; --flor-rot: -22deg; }
.flor-fija-03 { top: 28%; left: -1%; right: auto; --flor-rot: -10deg; }
.flor-fija-04 { top: 44%; right: 0%;  left: auto; --flor-rot: 20deg; }
.flor-fija-05 { top: 58%; left: -6%; right: auto; --flor-rot: 13deg; }
.flor-fija-06 { top: 72%; right: -5%; left: auto; --flor-rot: -18deg; }
.flor-fija-07 { top: 86%; left: 0%;  right: auto; --flor-rot: 11deg; }
.flor-fija-08 { top: 50%; right: -6%; left: auto; --flor-rot: -16deg; }

/* Con scroll: flor-scroll-01 … flor-scroll-26 */
.flor-scroll-01 { top: 15%; left: -6%; right: auto; --flor-rot: -11deg; }
.flor-scroll-02 { top: 22%; right: -8%; left: auto; --flor-rot: 21deg; }
.flor-scroll-03 { top: 29%; left: -7%; right: auto; --flor-rot: 14deg; }
.flor-scroll-04 { top: 36%; right: -6%; left: auto; --flor-rot: -19deg; }
.flor-scroll-05 { top: 43%; left: -8%; right: auto; --flor-rot: -16deg; }
.flor-scroll-06 { top: 50%; right: -7%; left: auto; --flor-rot: 23deg; }
.flor-scroll-07 { top: 57%; left: -6%; right: auto; --flor-rot: 9deg; }
.flor-scroll-08 { top: 64%; right: -8%; left: auto; --flor-rot: -21deg; }
.flor-scroll-09 { top: 71%; left: -7%; right: auto; --flor-rot: 18deg; }
.flor-scroll-10 { top: 78%; right: -6%; left: auto; --flor-rot: -13deg; }
.flor-scroll-11 { top: 85%; left: -8%; right: auto; --flor-rot: 20deg; }
.flor-scroll-12 { top: 92%; right: -7%; left: auto; --flor-rot: -17deg; }
.flor-scroll-13 { top: 98%; left: -6%; right: auto; --flor-rot: 12deg; }
.flor-scroll-14 { top: 5%;  left: -1%; right: auto; --flor-rot: -8deg; }
.flor-scroll-15 { top: 12%; right: -1%; left: auto; --flor-rot: 16deg; }
.flor-scroll-16 { top: 26%; right: 0%;  left: auto; --flor-rot: -20deg; }
.flor-scroll-17 { top: 33%; left: -1%; right: auto; --flor-rot: -14deg; }
.flor-scroll-18 { top: 40%; right: -1%; left: auto; --flor-rot: 22deg; }
.flor-scroll-19 { top: 47%; left: 0%;  right: auto; --flor-rot: 10deg; }
.flor-scroll-20 { top: 54%; right: 0%;  left: auto; --flor-rot: -18deg; }
.flor-scroll-21 { top: 61%; left: -1%; right: auto; --flor-rot: 19deg; }
.flor-scroll-22 { top: 68%; right: -1%; left: auto; --flor-rot: -11deg; }
.flor-scroll-23 { top: 75%; left: 0%;  right: auto; --flor-rot: -15deg; }
.flor-scroll-24 { top: 82%; right: 0%;  left: auto; --flor-rot: 24deg; }
.flor-scroll-25 { top: 89%; left: -1%; right: auto; --flor-rot: 8deg; }
.flor-scroll-26 { top: 96%; right: -1%; left: auto; --flor-rot: -22deg; }

.flor-motif[class*="flor-fija-"],
.flor-motif[class*="flor-scroll-"] {
  --base-rot: var(--flor-rot, 0deg);
}

@keyframes flor-sway-a {
  0%   { transform: rotate(calc(var(--base-rot, 0deg) - 14deg)) translate3d(-14px, 9px, 0); }
  100% { transform: rotate(calc(var(--base-rot, 0deg) + 16deg)) translate3d(18px, -15px, 0); }
}
@keyframes flor-sway-b {
  0%   { transform: rotate(calc(var(--base-rot, 0deg) + 11deg)) translate3d(12px, 7px, 0); }
  100% { transform: rotate(calc(var(--base-rot, 0deg) - 15deg)) translate3d(-20px, 12px, 0); }
}
@keyframes flor-sway-c {
  0%   { transform: rotate(calc(var(--base-rot, 0deg) - 10deg)) translate3d(-10px, 11px, 0); }
  100% { transform: rotate(calc(var(--base-rot, 0deg) + 12deg)) translate3d(15px, -13px, 0); }
}
@keyframes flor-sway-d {
  0%   { transform: rotate(calc(var(--base-rot, 0deg) + 9deg)) translate3d(8px, -10px, 0); }
  100% { transform: rotate(calc(var(--base-rot, 0deg) - 13deg)) translate3d(-16px, 11px, 0); }
}

.flor-motif.flor-brisa-a { animation: flor-sway-a 4.8s ease-in-out infinite alternate; animation-delay: 0s; }
.flor-motif.flor-brisa-b { animation: flor-sway-b 5.6s ease-in-out infinite alternate; animation-delay: -1.2s; }
.flor-motif.flor-brisa-c { animation: flor-sway-c 6.4s ease-in-out infinite alternate; animation-delay: -2.4s; }
.flor-motif.flor-brisa-d { animation: flor-sway-d 5.2s ease-in-out infinite alternate; animation-delay: -0.6s; }

@media (prefers-reduced-motion: reduce) {
  .flor-motif.flor-brisa-a,
  .flor-motif.flor-brisa-b,
  .flor-motif.flor-brisa-c,
  .flor-motif.flor-brisa-d { animation: none; transform: rotate(var(--base-rot, 0deg)); }
}

.bienvenida,
.inv-carta,
.faltan-section,
.quote-section,
.historia-section,
.ubicacion-section,
.dresscode-section,
.regalos-section,
.rsvp-section,
.fotos-evento-section,
.portada-section,
.fecha-photo-section {
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

#main-content {
  display: none;
  position: relative;
  overflow-x: clip;
  background: transparent;
  opacity: 0;
}

#main-content > section {
  position: relative;
  z-index: 1;
}

section, .quote-section {
  position: relative;
  z-index: 1;
  background: transparent;
}

/* ===== BOTONES — estilo tinta / grabado ===== */
.btn-gold, .btn-location, .royal-inv-submit-btn, .btn-copiar, .ubi-btn-maps, .ubi-btn-copy {
  display: inline-block;
  padding: 11px 26px;
  background: transparent;
  color: var(--tinta);
  border: 1.5px solid var(--tinta);
  border-radius: 0;
  font-family: 'Antic Didone', serif;
  font-size: 11px;
  font-weight: 100;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.2s;
  box-shadow: none;
}

.btn-gold:hover, .btn-location:hover, .royal-inv-submit-btn:hover,
.btn-copiar:hover, .ubi-btn-maps:hover, .ubi-btn-copy:hover {
  background: var(--tinta);
  color: var(--crema);
  transform: translateY(-1px);
}

/* ===== OVERLAY APERTURA ===== */
.background-overlay {
  position: fixed;
  inset: 0;
  background: var(--crema);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s;
}

.overlay-container {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--crema);
  background-image:
    linear-gradient(180deg,
      rgba(250, 247, 242, 0.28) 0%,
      rgba(250, 247, 242, 0.18) 50%,
      rgba(250, 247, 242, 0.24) 100%),
    var(--fondo-papel);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  overflow: hidden;
  transition: opacity 0.8s ease;
}

.overlay-container::after {
  display: none;
}

.overlay-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(250,247,242,0.5) 0%, transparent 70%);
  pointer-events: none;
}

.overlay-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
  padding: 6vh 0 4vh;
  box-sizing: border-box;
}

.envelope-stack {
  position: relative;
  width: min(300px, 82vw);
  transform-style: preserve-3d;
  perspective: 1000px;
  filter: drop-shadow(0 18px 36px rgba(61, 48, 40, 0.18));

  /* ===== AJUSTES SELLO DE CERA — edita aquí ===== */
  --sello-top: 80%;
  --sello-left: 50%;
  --sello-tamano: clamp(96px, 25vw, 140px);
  --sello-mover-x: 0px;
  --sello-mover-y: 0px;
  --sello-img-x: 0px;
  --sello-img-y: 0px;
}

.envelope-photo {
  width: 135%;
  height: auto;
  display: block;
  margin-left: -17.5%;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

.envelope-seal-area {
  position: absolute;
  left: var(--sello-left);
  top: var(--sello-top);
  transform: translate(calc(-50% + var(--sello-mover-x)), calc(-50% + var(--sello-mover-y)));
  z-index: 2;
}

.envelope-open-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 2.2vh, 18px);
  width: min(100%, 400px);
  height: min(88vh, 780px);
  padding: 0 20px;
  box-sizing: border-box;
}

.overlay-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
}

.overlay-logo {
  width: min(52vw, 140px);
  margin: 0 auto;
  flex-shrink: 0;
}

.overlay-logo img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: normal;
  filter: brightness(0);
  opacity: 0.82;
}

.overlay-nombres {
  font-family: 'Antic Didone', serif;
  font-size: clamp(13px, 3.6vw, 20px);
  font-weight: 100;
  line-height: 1.4;
  text-align: center;
  color: var(--tinta);
  margin: 0;
  padding: 0 16px;
}

.overlay-invitado {
  opacity: 0;
  transition: opacity 0.45s ease;
}

.overlay-invitado.visible {
  opacity: 1;
}

.overlay-invitado.hidden {
  display: none;
}

.overlay-pases {
  font-family: 'Lustria', serif;
  font-size: clamp(11px, 2.8vw, 14px);
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
  color: var(--tinta-media);
  margin: 8px 0 0;
  padding: 0 16px;
}

.notification-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.overlay-nos-casamos {
  margin: 0 0 10px;
  font-size: clamp(28px, 6.5vw, 48px);
}

#selloButton {
  width: var(--sello-tamano);
  height: auto;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.35s ease, filter 0.35s;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

#selloButton img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 5px 14px rgba(61, 48, 40, 0.22));
  transform: translate(var(--sello-img-x), var(--sello-img-y));
}

#selloButton:hover {
  transform: scale(1.06) rotate(-2deg);
}

#selloButton:hover img {
  filter: drop-shadow(0 8px 18px rgba(61, 48, 40, 0.28));
}

#selloButton:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.notification {
  font-family: 'Antic Didone', serif;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--texto-suave);
  margin-top: 12px;
}

.loading-bar-bg {
  width: 80px;
  height: 3px;
  background: rgba(0,0,0,0.1);
  border-radius: 2px;
  margin: 10px auto 0;
  overflow: hidden;
}

.loading-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--tinta);
  transition: width 0.1s linear;
}

/* ===== MÚSICA ===== */
#floatingButton {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(74, 93, 62, 0.2);
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.music-eq { display: flex; gap: 3px; align-items: flex-end; height: 16px; }
.music-eq-bar {
  width: 3px;
  background: var(--tinta);
  border-radius: 1px;
  animation: eq 0.8s ease-in-out infinite alternate;
}
.music-eq-bar:nth-child(1) { height: 8px; animation-delay: 0s; }
.music-eq-bar:nth-child(2) { height: 14px; animation-delay: 0.15s; }
.music-eq-bar:nth-child(3) { height: 10px; animation-delay: 0.3s; }
.music-eq-bar:nth-child(4) { height: 16px; animation-delay: 0.1s; }
@keyframes eq { to { transform: scaleY(0.4); } }

/* ===== CONTENIDO ===== */
.portada-section {
  min-height: 92vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.portada-photo-slideshow {
  position: absolute;
  inset: 0;
}

.portada-photo-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 1;
}

.portada-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(247,243,236,0.15) 0%,
    rgba(247,243,236,0.05) 40%,
    rgba(247,243,236,0.55) 75%,
    rgba(247,243,236,0.92) 100%);
  pointer-events: none;
}

.portada-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 24px 44px;
  min-height: 92vh;
  text-align: center;
}

.portada-top {
  padding-top: 4px;
}

.portada-logo-wrap {
  --portada-logo-zoom: 2.05;
  width: clamp(80px, 23vw, 104px);
  height: clamp(96px, 28vw, 124px);
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.portada-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: auto;
  display: block;
  transform-origin: center center;
  pointer-events: none;
}

.portada-logo--shadow {
  z-index: 1;
  transform: translate(calc(-50% + 2px), calc(-50% + 3px)) scale(var(--portada-logo-zoom));
  filter: brightness(0);
  opacity: 0.78;
}

.portada-logo--front {
  z-index: 2;
  transform: translate(-50%, -50%) scale(var(--portada-logo-zoom));
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.nos-casamos {
  font-family: 'slight', cursive;
  font-size: clamp(30px, 7vw, 52px);
  font-weight: normal;
  color: var(--tinta);
  text-shadow: 0 1px 12px rgba(247,243,236,0.9);
}

.portada-bottom { margin-top: auto; }

.portada-nombres {
  font-family: 'Antic Didone', serif;
  font-size: clamp(17px, 5vw, 32px);
  font-weight: 100;
  line-height: 1.35;
  color: var(--tinta);
  text-shadow: 0 1px 8px rgba(247,243,236,0.95);
}

.portada-fecha {
  font-family: 'Antic Didone', serif;
  font-style: normal;
  font-weight: 100;
  font-size: clamp(18px, 4.5vw, 26px);
  letter-spacing: 0.22em;
  margin-top: 10px;
  color: var(--tinta-media);
}

/* ===== BIENVENIDA ===== */
.bienvenida {
  padding: 48px 20px;
  text-align: center;
}

.bienvenida h3 {
  font-family: 'Lustria', serif;
  font-size: clamp(17px, 4.2vw, 22px);
  font-weight: 400;
  font-style: normal;
  color: var(--tinta-media);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.bloque-nombre { display: inline-block; white-space: nowrap; }

/* ===== CARTA FÍSICA / SOBRE ===== */
.inv-carta {
  padding: 0 16px 8px;
  touch-action: pan-y;
}

.inv-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 840px;
  height: auto;
  background: transparent !important;
  overflow: visible;
}

@media (max-width: 480px) {
  .inv-container { min-height: 175vw; }
}

.layer {
  position: absolute;
  width: 100%;
  height: auto;
  top: 0;
  left: 0;
  background: none;
  pointer-events: none;
  user-select: none;
}

.z1 { z-index: 1; }

.inv-sello {
  width: 24%;
  left: 39%;
  top: 21%;
  z-index: 10;
}

.paper-wrapper {
  position: absolute;
  top: 28%;
  left: 50%;
  width: 86%;
  transform: translateX(-50%);
  z-index: 5;
  background: transparent;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.inv-paper {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--papel);
  border: 1px solid rgba(61, 48, 40, 0.18);
  box-shadow: 0 18px 50px rgba(61, 48, 40, 0.1);
  padding: clamp(28px, 7vw, 40px) clamp(22px, 5.5vw, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.inv-paper-inner {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.inv-paper::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(61, 48, 40, 0.1);
  pointer-events: none;
}

.inv-paper::after {
  content: '';
  position: absolute;
  bottom: -8%;
  left: -10%;
  width: 55%;
  height: 45%;
  background: radial-gradient(ellipse, rgba(92, 74, 58, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.parents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  width: 100%;
  margin-bottom: 14px;
  font-size: clamp(7.5px, 2vw, 9.5px);
  letter-spacing: 0.8px;
  line-height: 1.55;
  text-transform: uppercase;
  color: var(--tinta);
}

.parents-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.inv-phrase {
  font-size: clamp(8.5px, 2.2vw, 10.5px);
  letter-spacing: 1.2px;
  margin-bottom: 12px;
  line-height: 1.65;
  color: var(--tinta);
}

.inv-names {
  font-family: 'slight', cursive;
  font-size: clamp(20px, 5.8vw, 30px);
  font-weight: normal;
  color: var(--tinta);
  margin: 6px 0 14px;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.02em;
  max-width: 100%;
}

.inv-details {
  font-size: clamp(8.5px, 2.2vw, 10.5px);
  letter-spacing: 0.9px;
  line-height: 1.75;
  text-transform: uppercase;
  color: var(--tinta-media);
}

.inv-city {
  margin-top: 12px;
  font-size: clamp(9px, 2.4vw, 11px);
  letter-spacing: 2.5px;
  color: var(--tinta);
}

/* ===== FECHA ===== */
.fecha-photo-section {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 32px;
  overflow: hidden;
}

.fecha-photo-slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.fecha-photo-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 0.8s;
}

/* 1.webp — recorte mitad izquierda (novios a la izquierda) */
.fecha-photo-slideshow img:nth-child(1) {
  width: 200%;
  max-width: none;
  left: 0;
  right: auto;
  top: 0;
  bottom: 0;
  object-fit: cover;
  object-position: left center;
}

.fecha-photo-slideshow img.active { opacity: 1; }

.fecha-photo-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(247,243,236,0.85) 100%);
}

.fecha-pill {
  position: relative;
  z-index: 2;
  background: rgba(247,243,236,0.92);
  padding: 14px 32px;
  font-size: clamp(11px, 2.8vw, 14px);
  border: 1px solid rgba(74, 93, 62, 0.15);
}

/* ===== CONTADOR ===== */
.faltan-section {
  padding: 48px 20px;
  text-align: center;
}

.faltan-titulo {
  font-family: 'slight', cursive;
  font-size: clamp(36px, 9vw, 56px);
  font-weight: normal;
  color: var(--tinta);
}

.faltan-sub {
  font-size: clamp(11px, 2.8vw, 13px);
  margin: 8px 0 28px;
}

.countdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-items: center;
  gap: clamp(10px, 3vw, 18px);
  max-width: min(92vw, 380px);
  margin: 0 auto 28px;
}

.cd-item {
  width: 100%;
  max-width: clamp(132px, 40vw, 168px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(16px, 4.5vw, 22px) clamp(14px, 4vw, 20px);
  background: rgba(255, 252, 246, 0.28);
  border: 2px double var(--tinta);
  border-radius: 999px;
  min-height: clamp(78px, 22vw, 96px);
  box-shadow: 0 1px 6px rgba(61, 48, 40, 0.03);
  backdrop-filter: blur(3px);
}

.cd-digits {
  display: block;
  font-family: 'Lustria', serif;
  font-size: clamp(28px, 7vw, 56px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--tinta);
}

.cd-label {
  font-family: 'Antic Didone', serif;
  font-size: clamp(10px, 2.6vw, 15px);
  letter-spacing: 0.06em;
  margin-top: 8px;
  color: var(--tinta-media);
  text-transform: none;
}

/* ===== FRASE BAJO HOJA ===== */
.quote-hoja {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 9%;
  width: 100%;
  max-width: 100%;
  padding: 0 6px;
  text-align: center;
  z-index: 6;
  pointer-events: none;
}

.quote-hoja p {
  font-family: 'slight', cursive;
  font-size: clamp(16px, 4.6vw, 24px);
  line-height: 1.28;
  color: var(--tinta-media);
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.quote-hoja p span {
  display: block;
  white-space: nowrap;
}

@media (max-width: 360px) {
  .quote-hoja p {
    font-size: clamp(13px, 3.6vw, 16px);
  }
}

/* ===== FRASES ===== */
.quote-section {
  padding: 40px 24px;
  text-align: center;
}

.quote-carousel {
  max-width: 420px;
  margin: 0 auto;
  min-height: 88px;
  position: relative;
}

.quote-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 0.75s ease, transform 0.75s ease, visibility 0.75s;
  font-family: 'slight', cursive;
  font-size: clamp(20px, 5vw, 26px);
  line-height: 1.45;
  color: var(--tinta-media);
  padding: 0 10px;
  z-index: 1;
  pointer-events: none;
}

.quote-item.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 2;
}

/* ===== HISTORIA ===== */
.historia-section {
  position: relative;
  padding: 40px 20px 48px;
  text-align: center;
}

.historia-section::before {
  content: '';
  position: absolute;
  inset: -12px -6vw;
  background: rgba(250, 247, 242, 0.92);
  z-index: -1;
  pointer-events: none;
}

.historia-titulo {
  font-family: 'slight', cursive;
  font-size: clamp(32px, 8vw, 48px);
  color: var(--tinta);
  font-weight: normal;
  margin-bottom: 20px;
}

.historia-slideshow {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 24px;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 12px 36px rgba(61,48,40,0.1);
  border: 1px solid rgba(61, 48, 40, 0.1);
}

.historia-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s;
  filter: grayscale(8%) sepia(8%);
}

.historia-slideshow img.active { opacity: 1; }

.historia-texto {
  max-width: 520px;
  margin: 0 auto;
  font-size: clamp(13px, 3.2vw, 15px);
  line-height: 1.75;
  color: var(--tinta);
  font-weight: 400;
  text-align: justify;
}

.historia-texto p {
  color: var(--tinta-media);
  font-weight: 400;
}

/* ===== UBICACIÓN — camino interactivo ===== */
.ubicacion-section {
  padding: 40px 16px 52px;
}

.ubicacion-titulo {
  font-family: 'slight', cursive;
  font-size: clamp(32px, 8vw, 48px);
  font-weight: normal;
  color: var(--tinta);
  text-align: center;
  margin-bottom: 20px;
}

.ubi-journey {
  max-width: 380px;
  margin: 0 auto 16px;
}

.ubi-path-wrap {
  position: relative;
  height: 92px;
  margin-bottom: 4px;
}

.ubi-path-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--tinta-media);
  overflow: visible;
}

.ubi-path-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-dasharray: 5 6;
  opacity: 0.45;
}

.ubi-path-progress {
  fill: none;
  stroke: var(--tinta);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.ubi-path-progress.is-full { stroke-dashoffset: 0; }

.ubi-steps {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6px;
  z-index: 2;
}

.ubi-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  color: var(--tinta-suave);
  transition: color 0.35s ease, transform 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}

.ubi-step:hover { color: var(--tinta); }
.ubi-step.active { color: var(--tinta); transform: translateY(-2px); }

.ubi-step-pin {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px double var(--tinta-suave);
  background: rgba(255, 252, 246, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.ubi-step.active .ubi-step-pin {
  border-color: var(--tinta);
  box-shadow: 0 4px 14px rgba(61, 48, 40, 0.12);
  transform: scale(1.06);
}

.ubi-step-pin svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 0.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ubi-step-pin .ubi-pin-leaf {
  fill: currentColor;
  stroke: none;
  opacity: 0.22;
}

.ubi-step-label {
  font-family: 'Antic Didone', serif;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ubi-step-hour {
  font-family: 'Lustria', serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.ubi-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 12px 0 4px;
}

.ubi-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(61, 48, 40, 0.22);
  background: rgba(255, 252, 246, 0.7);
  color: var(--tinta);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}

.ubi-nav-btn:hover {
  background: var(--tinta);
  color: var(--crema);
  transform: scale(1.05);
}

.ubi-nav-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.ubi-counter {
  font-family: 'Antic Didone', serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--tinta-clara);
  min-width: 48px;
  text-align: center;
}

.ubi-hint {
  font-family: 'Lustria', serif;
  font-size: 12px;
  color: var(--tinta-clara);
  text-align: center;
  margin-bottom: 18px;
}

.ubi-stage {
  max-width: 480px;
  margin: 0 auto;
}

.ubi-panel {
  display: none;
  flex-direction: column;
  gap: 14px;
  animation: ubi-fade 0.45s ease;
}

.ubi-panel.active {
  display: flex;
}

@keyframes ubi-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ubi-visual {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16/10;
  border: 1px solid rgba(61, 48, 40, 0.15);
  cursor: pointer;
  background: var(--papel);
}

.ubi-visual--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0 8px;
  aspect-ratio: auto;
  min-height: clamp(240px, 58vw, 380px);
  background: transparent !important;
  border: none !important;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.ubi-visual--icon img {
  width: auto;
  height: auto;
  max-width: min(100%, 520px);
  max-height: clamp(220px, 58vw, 380px);
  object-fit: contain;
  animation: none !important;
  transform: none !important;
  filter:
    drop-shadow(-1px -1px 0 rgba(255, 248, 238, 0.88))
    drop-shadow(1.5px 1.5px 1px rgba(61, 48, 40, 0.3))
    drop-shadow(2px 4px 8px rgba(61, 48, 40, 0.1))
    sepia(0.1) saturate(0.86) contrast(1.04);
  transition: filter 0.3s ease;
}

.ubi-visual--icon:hover img {
  transform: none !important;
  filter:
    drop-shadow(-1px -1px 0 rgba(255, 248, 238, 0.92))
    drop-shadow(1.5px 1.5px 1px rgba(61, 48, 40, 0.34))
    sepia(0.08) saturate(0.9) contrast(1.05);
}

.ubi-fotos-lugares {
  width: 100vw;
  max-width: 100vw;
  margin: 28px calc(50% - 50vw) 0;
  padding: 0;
}

.ubi-fotos-marco {
  position: relative;
  display: block;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.ubi-fotos-marco img {
  display: none;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  filter: sepia(0.04) saturate(0.94);
  transition: opacity 0.8s ease;
}

.ubi-fotos-marco img.active {
  display: block;
}

.ubi-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  width: 28px;
  height: 28px;
  animation: pin-bounce 2s ease-in-out infinite;
}

.ubi-pin svg {
  width: 100%;
  height: 100%;
  color: var(--tinta);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

@keyframes pin-bounce {
  0%, 100% { transform: translate(-50%, -100%); }
  50% { transform: translate(-50%, -108%); }
}

.ubi-info {
  text-align: center;
  padding: 4px 8px;
}

.ubi-info h3 {
  font-family: 'slight', cursive;
  font-size: clamp(26px, 6vw, 34px);
  font-weight: normal;
  color: var(--tinta);
  margin-bottom: 4px;
}

.ubi-hora {
  font-size: clamp(11px, 2.8vw, 13px);
  margin-bottom: 8px;
}

.ubi-info p {
  font-size: clamp(13px, 3.1vw, 15px);
  line-height: 1.65;
  margin-bottom: 16px;
}

.ubi-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* ===== DRESS CODE ===== */
.dresscode-section {
  padding: 40px 20px 48px;
  text-align: center;
}

.dresscode-section h2 {
  font-family: 'slight', cursive;
  font-size: clamp(32px, 8vw, 48px);
  font-weight: normal;
  color: var(--tinta);
  margin-bottom: 16px;
}

.dc-sketch {
  width: min(62vw, 175px);
  margin: 0 auto 16px;
}

.dc-sketch img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
  opacity: 0.88;
  filter: brightness(0.96) contrast(1.06) sepia(0.12) saturate(0.9);
}

.dc-main {
  font-size: clamp(13px, 3.2vw, 16px);
  margin-bottom: 12px;
  color: var(--tinta);
}

.dc-note {
  font-size: clamp(13px, 3.2vw, 15px);
  max-width: 400px;
  margin: 0 auto 20px;
  line-height: 1.65;
}

/* ===== REGALOS ===== */
.regalos-section {
  padding: 40px 20px 48px;
}

.gift-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 500px;
  margin: 0 auto;
  align-items: center;
}

@media (min-width: 640px) {
  .gift-wrap { flex-direction: row; align-items: stretch; }
}

.gift-info {
  flex: 1;
  text-align: center;
  padding: 24px 20px;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(74, 93, 62, 0.1);
  border-radius: 8px;
}

.gift-info h2 {
  font-family: 'slight', cursive;
  font-size: clamp(28px, 7vw, 38px);
  font-weight: normal;
  color: var(--tinta);
  margin-bottom: 12px;
}

.gift-info p {
  font-size: clamp(13px, 3.1vw, 15px);
  line-height: 1.7;
  margin-bottom: 6px;
}

.gift-info .mail { margin-top: 8px; }

.gift-photo {
  flex: 1;
  max-width: 280px;
}

.gift-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(61,56,48,0.12);
}

/* ===== RSVP ===== */
.rsvp-section {
  padding: 40px 20px 48px;
  text-align: center;
}

.rsvp-heading {
  font-family: 'slight', cursive;
  font-size: clamp(32px, 8vw, 48px);
  color: var(--tinta);
  margin-bottom: 12px;
  font-weight: normal;
  letter-spacing: 0.02em;
}

.rsvp-no-ninos {
  max-width: 420px;
  margin: 0 auto 28px;
  font-size: clamp(13px, 3.1vw, 15px);
  line-height: 1.65;
  padding: 0 16px;
}

.royal-inv-main-wrapper { max-width: 420px; margin: 0 auto; padding: 0 16px; }

.royal-inv-container {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.royal-inv-form-header {
  margin-bottom: 20px;
}

.royal-inv-form-subtitle {
  font-family: 'Lustria', serif;
  font-size: clamp(13px, 3.1vw, 15px);
  line-height: 1.6;
  color: var(--tinta-media);
  margin-bottom: 24px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
}

.royal-inv-form-group {
  text-align: left;
  margin-bottom: 16px;
}

.royal-inv-form-group label {
  display: block;
  font-family: 'Lustria', serif;
  font-size: clamp(13px, 3.1vw, 14px);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  margin-bottom: 6px;
  color: var(--tinta-media);
}

.royal-inv-form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(61, 48, 40, 0.18);
  background: rgba(255, 255, 255, 0.32);
  font-family: 'Lustria', serif;
  font-size: 14px;
  color: var(--tinta);
  border-radius: 14px;
  backdrop-filter: blur(2px);
}

.royal-inv-form-input:focus {
  outline: none;
  border-color: var(--tinta);
}

.royal-inv-disabled { opacity: 0.7; }

.royal-inv-textarea { min-height: 80px; resize: vertical; }

.royal-inv-form-help {
  font-family: 'Lustria', serif;
  font-size: 12px;
  color: var(--tinta-suave);
  margin-top: 4px;
}

.royal-inv-submit-btn {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  border-radius: 14px;
}

/* ===== FOTOS DEL EVENTO ===== */
.fotos-evento-section {
  padding: 40px 20px 48px;
  text-align: center;
}

.fotos-evento-titulo {
  font-family: 'slight', cursive;
  font-size: clamp(32px, 8vw, 48px);
  font-weight: normal;
  color: var(--tinta);
  margin-bottom: 14px;
  line-height: 1.15;
}

.fotos-evento-sub {
  font-family: 'Lustria', serif;
  font-size: clamp(13px, 3.1vw, 15px);
  line-height: 1.65;
  color: var(--tinta-media);
  max-width: 420px;
  margin: 0 auto 28px;
  padding: 0 12px;
}

.fotos-evento-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 8px 12px 4px;
  cursor: pointer;
  text-decoration: none;
  color: var(--tinta);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.35s ease, color 0.25s ease;
}

.fotos-evento-btn:hover {
  transform: translateY(-2px);
  color: var(--tinta-media);
}

.fotos-evento-btn:active {
  transform: translateY(0) scale(0.98);
}

.fotos-evento-btn-icon {
  position: relative;
  display: block;
  width: clamp(96px, 26vw, 132px);
  animation: camara-salto 2.2s ease-in-out infinite;
  transition: filter 0.35s ease;
}

.fotos-evento-btn-icon img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(61, 48, 40, 0.14));
  pointer-events: none;
  user-select: none;
}

@keyframes camara-salto {
  0%, 100% { transform: translateY(0); }
  18% { transform: translateY(-12px); }
  36% { transform: translateY(0); }
  48% { transform: translateY(-6px); }
  60% { transform: translateY(0); }
}

.fotos-evento-btn:hover .fotos-evento-btn-icon {
  animation-play-state: paused;
  transform: translateY(-8px) scale(1.04);
}

.fotos-evento-btn:hover .fotos-evento-btn-icon img {
  filter: drop-shadow(0 8px 18px rgba(61, 48, 40, 0.18));
}

.fotos-evento-btn-text {
  font-family: 'Antic Didone', serif;
  font-size: 11px;
  font-weight: 100;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.fotos-evento-btn:hover .fotos-evento-btn-text {
  text-decoration-thickness: 1.5px;
}

@media (prefers-reduced-motion: reduce) {
  .fotos-evento-btn-icon {
    animation: none;
  }

  .fotos-evento-btn:hover .fotos-evento-btn-icon {
    transform: none;
  }
}

/* ===== GALERÍA ===== */
/* ===== GALERÍA POLAROID ===== */
.galeria-section {
  padding: 40px 16px 52px;
  text-align: center;
  overflow: hidden;
}

.galeria-section h2 {
  font-family: 'slight', cursive;
  font-size: clamp(32px, 8vw, 48px);
  font-weight: normal;
  color: var(--tinta);
  margin-bottom: 8px;
}

.galeria-section > p {
  font-size: clamp(13px, 3.1vw, 15px);
  margin-bottom: 24px;
}

.polaroid-stage {
  max-width: 400px;
  margin: 0 auto;
}

.polaroid-frame {
  background-color: #F7F2EA;
  padding: 14px 14px 42px;
  border: 1px solid rgba(61, 48, 40, 0.08);
  box-shadow:
    0 2px 2px rgba(61, 48, 40, 0.06),
    0 8px 24px rgba(61, 48, 40, 0.14),
    0 20px 48px rgba(61, 48, 40, 0.08);
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s;
}

.polaroid-frame--hero {
  transform: rotate(-1.5deg);
  margin: 0 auto 28px;
  max-width: 320px;
}

.polaroid-frame--hero.is-changing {
  transform: rotate(0.5deg) scale(0.98);
  opacity: 0.85;
}

.polaroid-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  background: var(--hueso);
  filter: grayscale(5%) sepia(6%);
  transition: opacity 0.45s ease;
}

.polaroid-photo.fading { opacity: 0; }

.polaroid-caption {
  font-family: 'slight', cursive;
  font-size: clamp(18px, 4.5vw, 22px);
  color: var(--tinta-media);
  margin-top: 14px;
  text-align: center;
  line-height: 1.2;
}

.polaroid-slider-wrap {
  position: relative;
  margin: 0 -8px;
  padding: 8px 0 4px;
}

.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, var(--crema) 0%, transparent 100%);
}

.polaroid-slider-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--crema) 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 20px;
  scrollbar-width: none;
}

.polaroid-slider::-webkit-scrollbar { display: none; }

.polaroid-thumb {
  flex: 0 0 auto;
  width: 88px;
  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.65;
  transform: scale(0.92) rotate(var(--rot, 0deg));
}

.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.05) rotate(0deg);
}

.polaroid-thumb .polaroid-frame {
  padding: 6px 6px 22px;
  box-shadow: 0 4px 14px rgba(61, 48, 40, 0.12);
}

.polaroid-thumb.active .polaroid-frame {
  box-shadow: 0 6px 20px rgba(61, 48, 40, 0.18);
  outline: 1px solid rgba(61, 48, 40, 0.15);
}

.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: 'Antic Didone', serif;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--tinta-clara);
  margin-top: 4px;
}

/* ===== CIERRE ===== */
.cierre-section {
  padding: 56px 20px 36px;
  text-align: center;
}

.cierre-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(15px, 3.8vw, 19px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.65;
  letter-spacing: 0.01em;
  max-width: 400px;
  margin: 0 auto 16px;
  color: var(--tinta-media);
}

.cierre-firma {
  width: min(70vw, 200px);
  margin: 0 auto;
}

.cierre-firma img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: normal;
  filter: brightness(0);
  opacity: 0.82;
}

.royal-invite-credits {
  display: block;
  width: 100%;
  margin: 0;
  padding: 18px 20px 28px;
  border: 0;
  background: transparent;
  font-family: 'Antic Didone', serif;
  font-size: clamp(9px, 2.2vw, 11px);
  font-weight: 100;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(92, 74, 58, 0.5);
  line-height: 1.65;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.royal-invite-credits:hover,
.royal-invite-credits:focus {
  color: rgba(92, 74, 58, 0.62);
  text-decoration: none;
  outline: none;
}

.royal-invite-brand {
  font-weight: 400;
  color: rgba(61, 48, 40, 0.62);
  letter-spacing: 0.1em;
}

.fade-in { opacity: 1; }

/* ===== REVEAL — fade + slide up ===== */
.reveal-pending {
  opacity: 0;
  transform: translateY(28px);
  will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-pending {
    opacity: 1;
    transform: none;
  }
}

/* ===== INVITACIÓN SOLO FIESTA (fiesta.html) ===== */
.modo-fiesta .ubi-fiesta-hora {
  text-align: center;
  font-family: 'Lustria', serif;
  font-size: clamp(13px, 3.2vw, 16px);
  color: var(--tinta-media, #7A6B5C);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: -8px 0 20px;
}

.modo-fiesta .ubi-stage--solo {
  margin-top: 0;
}

.modo-fiesta .ubi-stage--solo .ubi-panel {
  display: block;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.modo-fiesta .ubi-fotos-marco--solo {
  max-width: min(92vw, 360px);
  margin: 0 auto;
}

.modo-fiesta .ubi-fotos-marco--solo img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.modo-fiesta .rsvp-fiesta-note {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.92em;
  letter-spacing: 0.06em;
  color: var(--tinta-media, #7A6B5C);
}
