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

html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  background-color: #F2F0EC;
  color: #3D3830;
  font-family: 'Antic Didone', serif;
}

html {
  min-height: 100%;
  height: -webkit-fill-available;
}

html.lock-scroll,
body.lock-scroll {
  overflow: hidden !important;
  height: 100vh !important;
  height: 100dvh !important;
  position: fixed !important;
  width: 100% !important;
  overscroll-behavior: none;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

:root {
  --beige-tostado: #C4AD97;
  --champagne: #D8C4AA;
  --blanco-hueso: #F2F0EC;
  --dorado: #A89278;
  --dorado-claro: #C4AD97;
  --texto: #3D3830;
  --texto-suave: #6B5E52;
  --textura-papel-algodon: url('https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/dayanapremium/fondo-mas-clairo-1.webp');
  --fondo-agua: url('https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/dayanapremium/RECUEROS/fondo%20agua.webp');
  --fondo-ubicacion: url('https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/dayanapremium/RECUEROS/fondo%20ubicacion.webp');
  --plantas-cdn: https://pub-a65601eb9ffe4b62a9bcbf111a23ee8c.r2.dev/invitations/custom-orders/dayanapremium/RECUEROS/planstas/;
}

/* ===== FONDO PLAYA — una sola pieza fluida ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-color: #F2F0EC;
  background-image:
    linear-gradient(180deg,
      rgba(242,240,236,0.92) 0%,
      rgba(238,232,224,0.82) 18%,
      rgba(228,218,204,0.72) 36%,
      rgba(216,196,170,0.58) 54%,
      rgba(210,188,168,0.52) 68%,
      rgba(216,196,170,0.6) 82%,
      rgba(242,240,236,0.88) 100%),
    var(--fondo-agua),
    var(--textura-papel-algodon);
  background-size: 100% 100%, cover, cover;
  background-position: center, center 40%, center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-blend-mode: normal, soft-light, multiply;
}

@media (min-width: 769px) {
  body::before {
    background-attachment: fixed, fixed, fixed;
  }
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    radial-gradient(ellipse 150% 50% at 50% -5%, rgba(242,240,236,0.45) 0%, transparent 58%),
    radial-gradient(ellipse 140% 45% at 50% 105%, rgba(216,196,170,0.28) 0%, transparent 55%),
    radial-gradient(ellipse 85% 38% at 18% 50%, rgba(242,240,236,0.16) 0%, transparent 68%),
    radial-gradient(ellipse 85% 38% at 82% 50%, rgba(216,196,170,0.12) 0%, transparent 68%);
  mix-blend-mode: multiply;
}

/* Secciones: sin fondo propio — un solo lienzo continuo */
.bienvenida,
.inv-carta,
.faltan-section,
.quote-section,
.historia-section,
.historia-video-section,
.fotos-section,
.votos-section,
.ubicacion-section,
.dresscode-section,
.firmas-section,
.rsvp-section,
.hashtag-section,
.galeria-section,
.contacto-section,
.cierre-section,
.elegant-separator,
.Main-section,
.timeline-section,
.nombre-section,
.fecha-photo-section {
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Fotos a pantalla completa: conservan imagen, sin caja de color */
.portada-section {
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.fecha-photo-section {
  background-image: none !important;
}

#main-content > section,
#main-content > div:not(.floral-decor-layer) {
  position: relative;
  z-index: 1;
  margin: 0;
}

/* Pseudo-capas viejas que creaban franjas entre bloques */
.quote-section::before,
.quote-section::after,
.faltan-section::before,
.faltan-section::after {
  display: none !important;
  content: none !important;
}

/* En movil prioriza desplazamiento vertical sobre taps accidentales */
body { touch-action: pan-y; }

#main-content {
  position: relative;
  overflow-x: clip;
  background: transparent;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.floral-decor-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

.divider-line {
  width: 65%;
  max-width: 300px;
  border: none;
  height: 0;
  margin: 18px auto;
  background: none;
  opacity: 0;
}

.organic-motif {
  position: absolute;
  width: clamp(95px, 24vw, 210px);
  opacity: 0.84;
  will-change: transform;
  pointer-events: none;
}

.organic-motif--sm  { width: clamp(72px, 18vw, 135px); opacity: 0.8; }
.organic-motif--md  { width: clamp(105px, 26vw, 225px); opacity: 0.78; }
.organic-motif--lg  { width: clamp(120px, 30vw, 260px); opacity: 0.82; }

/* Compatibilidad con clases anteriores */
.organic-motif--pampas { width: clamp(72px, 18vw, 135px); opacity: 0.8; }
.organic-motif--palma  { width: clamp(105px, 26vw, 225px); opacity: 0.78; }
.organic-motif--hortensia { width: clamp(95px, 22vw, 195px); opacity: 0.82; }

.organic-motif--right { right: max(-16px, -3vw); left: auto; }
.organic-motif--left  { left: max(-16px, -3vw); right: auto; }

.organic-motif--corner-tl {
  top: max(-8px, -1.5vw);
  left: max(-20px, -4vw);
  right: auto;
  bottom: auto;
}
.organic-motif--corner-tr {
  top: max(-8px, -1.5vw);
  right: max(-20px, -4vw);
  left: auto;
  bottom: auto;
}
.organic-motif--corner-bl {
  bottom: max(-8px, -1.5vw);
  left: max(-20px, -4vw);
  top: auto;
  right: auto;
}
.organic-motif--corner-br {
  bottom: max(-8px, -1.5vw);
  right: max(-20px, -4vw);
  top: auto;
  left: auto;
}

.organic-motif--corner .organic-motif-inner { transform-origin: 50% 0%; }
.organic-motif--corner-bl .organic-motif-inner,
.organic-motif--corner-br .organic-motif-inner { transform-origin: 50% 100%; }

.organic-motif-inner {
  width: 100%;
  transform-origin: 50% 92%;
  display: block;
}

.organic-motif-flip { display: block; width: 100%; line-height: 0; }
.organic-motif--left .organic-motif-flip,
.organic-motif--corner-tl .organic-motif-flip,
.organic-motif--corner-bl .organic-motif-flip { transform: scaleX(-1); }

.organic-motif-img,
.dc-floral-accent img,
.dc-leaf-asset,
.decor-planta,
.plantita {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: lighten;
  filter: sepia(0.1) saturate(0.9) contrast(1.04) brightness(1.03);
}

.organic-motif--sm .organic-motif-img,
.organic-motif--pampas .organic-motif-img {
  filter: sepia(0.14) saturate(0.85) contrast(1.05) brightness(1.04);
  opacity: 0.92;
}

@keyframes floral-sway-a {
  0%   { transform: rotate(-7deg) translate3d(-4px, 3px, 0); }
  100% { transform: rotate(8deg) translate3d(8px, -6px, 0); }
}
@keyframes floral-sway-b {
  0%   { transform: rotate(6deg) translate3d(5px, 2px, 0); }
  100% { transform: rotate(-8deg) translate3d(-9px, 5px, 0); }
}
@keyframes floral-sway-c {
  0%   { transform: rotate(-5deg) translate3d(-2px, 4px, 0); }
  100% { transform: rotate(6deg) translate3d(7px, -5px, 0); }
}

.organic-sway-a .organic-motif-inner { animation: floral-sway-a 6.5s ease-in-out infinite alternate; }
.organic-sway-b .organic-motif-inner { animation: floral-sway-b 7.4s ease-in-out infinite alternate; }
.organic-sway-c .organic-motif-inner { animation: floral-sway-c 5.8s ease-in-out infinite alternate; }

/* ═══════════════════════════════════════════════════════════════
   PLANTAS EDITABLES — Inspecciona: id + class en cada <img>
   Ejemplo: id="planta-portada-1" class="planta-editable planta-portada-1"
   CSS: busca "PLANTAS EDITABLES" · HTML: busca id="planta-"
   ═══════════════════════════════════════════════════════════════ */
.planta-editable {
  position: absolute;
  height: auto;
  display: block;
  pointer-events: auto;
  mix-blend-mode: lighten;
  filter: sepia(0.1) saturate(0.9) contrast(1.04) brightness(1.03);
  transform-origin: 50% 92%;
}

.floral-decor-layer .planta-editable { z-index: 2; }

/* —— Portada —— */
.planta-portada-esquina-izq { top: max(773px, -20vw); left: max(-36px, -4vw); width: clamp(50px, 142vw, 122px); transform: rotate(0deg); }
.planta-portada-esquina-der { top: max(-51px, 389.5vw); right: max(-41px, -4vw); left: max(348px); width: clamp(72px, 33vw, 235px); transform: rotate(180deg); }
.planta-portada-1 { top: 6%; left: max(-16px, -3vw); width: clamp(50px, 12vw, 92px); transform: rotate(0deg); }
.planta-portada-2 { top: 987px; right: max(-16px, -3vw); left: auto; width: clamp(56px, 42vw, 127px); transform: rotate(0deg) scaleX(-1); z-index: -1; }
.planta-portada-3 { top: 13%; left: max(-78px, -24vw); width: clamp(137px, -6vw, 193px); transform: rotate(45deg); }
.planta-portada-4 { top: 23.4%; right: max(-16px, -3vw); left: auto; width: clamp(72px, 38vw, 155px); transform: rotate(0deg); }
.planta-portada-5 { top: 53.5%; left: max(-53px, -8vw); width: clamp(82px, 45vw, 143px); transform: rotate(180deg); }
.planta-portada-6 { top: 89%; right: max(-27px, -28vw); left: max(387px); width: clamp(72px, 31vw, 155px); transform: rotate(-42deg) scaleX(-1); }

/* —— Posiciones confirmadas Dayana —— */
#planta-portada-3 {
  top: 13%;
  left: max(-78px, -24vw);
  width: clamp(137px, -6vw, 193px);
  transform: rotate(45deg);
}
#planta-portada-4 {
  top: 23.4%;
  right: max(-16px, -3vw);
  left: auto;
  width: clamp(72px, 38vw, 155px);
  transform: rotate(0deg);
}
#planta-portada-5 {
  top: 53.5%;
  left: max(-53px, -8vw);
  width: clamp(82px, 45vw, 143px);
  transform: rotate(180deg);
}
#planta-global-1 {
  top: 46.8%;
  left: max(50px, -3vw);
  width: clamp(77px, 20vw, 135px);
  transform: rotate(0deg) scaleX(-1);
}
#planta-global-3 {
  top: 75%;
  left: max(-16px, -3vw);
  width: clamp(120px, 30vw, 260px);
  transform: rotate(0deg);
}

/* —— RSVP (esquina del sobre) — ver reglas completas más abajo en bloque RSVP —— */

/* —— Resto de la página (capa global) —— */
.planta-global-1 { top: 46.8%; left: max(50px, -3vw); width: clamp(77px, 20vw, 135px); transform: rotate(0deg) scaleX(-1); }
.planta-global-2 { top: 58.5%; right: max(-27px, -9vw); left: auto; width: clamp(105px, 26vw, 225px); transform: rotate(180deg); }
.planta-global-3 { top: 75%; left: max(-16px, -3vw); width: clamp(120px, 30vw, 260px); transform: rotate(0deg); }
.planta-global-4 { top: 37.4%; right: max(-16px, -12vw); left: max(342px); width: clamp(72px, 29vw, 135px); transform: rotate(180deg); }
.planta-global-5 { top: 50%; left: max(-16px, -3vw); width: clamp(105px, 26vw, 225px); transform: rotate(0deg) scaleX(-1); }
.planta-global-6 { top: 64%; right: max(-16px, -3vw); left: auto; width: clamp(120px, 30vw, 260px); transform: rotate(0deg); }
.planta-global-7 { top: 78%; left: max(-16px, -3vw); width: clamp(72px, 18vw, 135px); transform: rotate(0deg); }
.planta-global-8 { top: 90%; right: max(-16px, -3vw); left: auto; width: clamp(105px, 26vw, 225px); transform: rotate(0deg) scaleX(-1); }
.planta-global-esquina-inf-der { bottom: max(-8px, -1.5vw); top: auto; right: max(-20px, -4vw); left: auto; width: clamp(105px, 26vw, 225px); transform: rotate(0deg) scaleX(-1); }
.planta-global-esquina-inf-izq { bottom: 4%; top: auto; left: max(-20px, -4vw); width: clamp(72px, 18vw, 135px); transform: rotate(0deg); }

/* —— Carta física + planta sobre apertura —— */
.inv-carta .planta-carta,
.overlay-content .planta-apertura {
  right: 37%;
  left: auto;
  width: 39%;
  transform: rotate(12deg);
  transform-origin: 80% 0%;
  mix-blend-mode: lighten;
  filter: sepia(0.1) saturate(0.9) contrast(1.04) brightness(1.03);
}

.inv-carta .planta-carta { top: 14%; z-index: 8; pointer-events: auto; }

.overlay-content .planta-apertura { top: 37%; }

/* —— Ubicación —— */
.planta-ubicacion { bottom: -53px; left: -50px; width: clamp(110px, 37vw, 150px); transform: rotate(-18deg); z-index: 0; transform-origin: 85% 100%; }

/* —— Dress code —— */
.planta-dresscode-der { right: -130px; top: 475px; left: auto; width: clamp(86px, 24vw, 140px); opacity: 0.7; z-index: 0; transform: rotate(0deg); }
.planta-dresscode-esquina { top: 0; right: -90px; left: auto; width: 240px; z-index: 1; transform: rotate(0deg); }

/* —— Apertura (sobre) —— */
/* Ver también #planta-apertura arriba en overlay */

@media (max-width: 639px) {
  .planta-global-5,
  .planta-global-6,
  .planta-global-7,
  .planta-global-8,
  .planta-global-esquina-inf-der,
  .planta-global-esquina-inf-izq { display: none; }
  .planta-portada-esquina-izq,
  .planta-portada-esquina-der { opacity: 0.72; }
}
@keyframes plant-breeze-a {
  0%   { translate: -3px 4px; }
  100% { translate: 5px -5px; }
}
@keyframes plant-breeze-b {
  0%   { translate: 4px 2px; }
  100% { translate: -6px 4px; }
}
@keyframes plant-breeze-c {
  0%   { translate: -2px 3px; }
  100% { translate: 4px -3px; }
}
@keyframes lazo-breeze {
  0%   { translate: 0 3px; rotate: -2deg; }
  100% { translate: 0 -3px; rotate: 2deg; }
}

/* Brisa suave — plantitas y lazos en toda la invitación */
.planta-editable {
  will-change: translate;
}
.planta-editable:nth-of-type(3n+1) {
  animation: plant-breeze-a 6.4s ease-in-out infinite alternate;
  animation-delay: -1.2s;
}
.planta-editable:nth-of-type(3n+2) {
  animation: plant-breeze-b 7.3s ease-in-out infinite alternate;
  animation-delay: -2.4s;
}
.planta-editable:nth-of-type(3n) {
  animation: plant-breeze-c 5.9s ease-in-out infinite alternate;
  animation-delay: -0.6s;
}

.lazo {
  transform-origin: 50% 50%;
  will-change: translate, rotate;
  animation: lazo-breeze 6.8s ease-in-out infinite alternate;
  animation-delay: -1.8s;
}

@media (prefers-reduced-motion: reduce) {
  .organic-motif-inner,
  .deco-planta-sway,
  .planta-editable,
  .lazo,
  .music-eq-bar { animation: none !important; }
}

/* Movimiento suave en plantas sueltas (dress code, portada…) */
.deco-planta-sway {
  transform-origin: 50% 88%;
  will-change: transform;
}
.deco-planta-sway--a { animation: floral-sway-a 6.2s ease-in-out infinite alternate; }
.deco-planta-sway--b { animation: floral-sway-b 7.2s ease-in-out infinite alternate; }
.deco-planta-sway--c { animation: floral-sway-c 5.6s ease-in-out infinite alternate; }

/* florales: ver bloque superior */

/* ===== OVERLAY DE APERTURA ===== */
.overlay-container {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  height: 100%;
  background: linear-gradient(180deg, #F2F0EC 0%, #D8C4AA 55%, #C4AD97 100%);
  z-index: 70;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  box-sizing: border-box;
}

.overlay-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#lazo {
  position: absolute;
  top: 63%;
  left: 72%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 100vw;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  z-index: 80;
  pointer-events: none;
}

@media (min-width: 640px) {
  #lazo { top: 63%; left: 72%; transform: translate(-50%, -50%) scale(1.0); }
}

#planta-apertura,
.planta-apertura {
  position: absolute;
  height: auto;
  z-index: 85;
  pointer-events: none;
}

.notification-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 90;
}

.notification {
  position: absolute;
  top: 140px;
  left: 50%;
  transform: translateX(-50%);
  color: #A89278;
  text-shadow: 1px 3px 3px rgba(0,0,0,0.35);
  padding: 5px;
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 1px;
  font-family: 'Antic Didone', serif;
}

#selloButton {
  width: 140px;
  height: 140px;
  animation: pulso 1.5s infinite;
  z-index: 100;
  border: none;
  outline: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

@keyframes pulso {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

#sobreDiv {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
}

.sobre {
  position: absolute;
  height: 100%;
  width: auto;
  max-width: 100vw;
  object-fit: cover;
  transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}

@media (max-width: 639px) {
  #sobre1, #sobre2, #sobre3, #sobre4 {
    height: 100%;
    width: 100vw;
    object-fit: cover;
  }
  #sobre1 { position: absolute; left: 0; z-index: 40; }
  #sobre2 { position: absolute; right: 0; z-index: 40; }
  #sobre3 { position: absolute; left: 0; z-index: 30; }
  #sobre4 { position: absolute; right: 0; z-index: 30; }
}

@media (min-width: 640px) {
  #sobre3, #sobre4 {
    display: block;
    height: 100%;
    width: auto;
    max-width: 100vw;
    object-fit: cover;
  }
  #sobre3 { position: absolute; left: 0; z-index: 20; }
  #sobre4 { position: absolute; right: 0; z-index: 20; }
}

.background-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  background-color: #F2F0EC;
  z-index: 60;
}

/* ===== BOTÓN MÚSICA ===== */
#floatingButton {
  position: fixed;
  bottom: max(20px, calc(env(safe-area-inset-bottom, 0px) + 16px));
  right: max(20px, calc(env(safe-area-inset-right, 0px) + 12px));
  width: 60px;
  height: 60px;
  background-color: #D8C4AA;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 200;
  border: none;
  outline: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  -webkit-tap-highlight-color: transparent;
}

.music-btn-state {
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-btn-state[hidden] {
  display: none !important;
}

.music-eq {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  width: 24px;
  height: 22px;
}

.music-eq-bar {
  display: block;
  width: 3px;
  height: 14px;
  background: #5C4A3A;
  border-radius: 2px;
  transform-origin: center bottom;
  animation: music-eq-dance 0.85s ease-in-out infinite alternate;
}

.music-eq-bar:nth-child(1) { animation-delay: 0s; animation-duration: 0.7s; }
.music-eq-bar:nth-child(2) { animation-delay: 0.12s; animation-duration: 0.95s; }
.music-eq-bar:nth-child(3) { animation-delay: 0.24s; animation-duration: 0.8s; }
.music-eq-bar:nth-child(4) { animation-delay: 0.08s; animation-duration: 1s; }

@keyframes music-eq-dance {
  0%   { transform: scaleY(0.25); opacity: 0.65; }
  100% { transform: scaleY(1); opacity: 1; }
}

.loading-bar-bg {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: rgba(203,204,204,0.4);
  border-radius: 4px;
  overflow: hidden;
  z-index: 96;
}

.loading-bar-fill {
  width: 0%;
  height: 100%;
  background-color: #C4AD97;
  border-radius: 2px;
  transition: width 0.1s linear;
}

/* ===== CONTENIDO PRINCIPAL ===== */
#main-content { display: none; }

/* ===== FOTO PORTADA / INVITACION FISICA ===== */
.portada-section {
  background-image: none;
  background-size: cover;
  background-position: center 24%;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  position: relative;
  text-align: center;
  overflow: hidden;
}

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

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

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

.portada-section::before {
  display: none;
}

/* Transición suave en la base de la portada */
.portada-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(242,240,236,0.35) 70%,
    rgba(242,240,236,0.62) 100%);
}

.portada-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 88vh;
  width: 100%;
  padding: 22px 24px 40px;
  box-sizing: border-box;
}

.portada-section .nos-casamos {
  font-family: 'slight', cursive;
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 100;
  color: #5C4A3A;
  text-shadow: 0 1px 10px rgba(242, 240, 236, 0.88);
  margin: 0;
  align-self: center;
  transform: translateY(-6px);
  position: relative;
  z-index: 6;
}

.portada-bottom {
  margin-top: auto;
  position: relative;
  z-index: 6;
}

.portada-nombres {
  font-family: 'Antic Didone', serif;
  font-size: clamp(16px, 4.8vw, 30px);
  font-weight: 100;
  color: #6B5240;
  line-height: 1.35;
  margin: 0;
  text-shadow: 0 1px 4px rgba(242,240,236,0.92);
}

.portada-fecha {
  font-family: 'Antic Didone', serif;
  font-size: clamp(14px, 4vw, 22px);
  font-weight: 100;
  color: #5C4A3A;
  margin: 10px 0 0;
  position: relative;
  z-index: 7;
  text-shadow:
    0 0 14px rgba(242, 240, 236, 0.98),
    0 1px 3px rgba(255, 255, 255, 0.85);
}

/* ===== SECCIÓN MENSAJE BIENVENIDA ===== */
.bienvenida {
  padding: 50px 20px;
  text-align: center;
}

.bienvenida h3 {
  font-family: 'Antic Didone', serif;
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 100;
  font-style: italic;
  color: #000;
  max-width: 500px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

/* divider-line: oculto — sin líneas entre bloques */

/* ===== INVITACIÓN - NOMBRE DEL INVITADO ===== */
.nombre-section {
  padding: 10px 20px;
  text-align: center;
}

#invitacion {
  max-width: 400px;
  margin: 0 auto;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  font-family: 'Antic Didone', serif;
  font-style: italic;
}

#invitacion.hidden { display: none; }
#invitacion.visible { display: block; opacity: 1; }

#nombreInvitado {
  font-size: 4vw;
  line-height: 1.2;
  text-transform: uppercase;
  display: block;
  text-align: center;
}

#pasesInvitado {
  font-size: 3.5vw;
  text-align: center;
  margin-top: 8px;
}

@media (min-width: 480px) {
  #nombreInvitado { font-size: 18px; }
  #pasesInvitado { font-size: 16px; }
}

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

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

/* removed duplicate :root — vars defined in html,body block */

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

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

.layer { position: absolute; width: 100%; height: auto; top: 0; left: 0; background: none; }
.z1 { z-index: 1; }
.z8 { z-index: 8; }
.z9 { z-index: 9; }
.z10 { z-index: 10; }

.lazo { top: 10%; width: 55%; left: 50%; transform: translateX(-20%) rotate(-40deg); }
.sello { width: 22%; left: 38%; top: 18%; }
.paper-wrapper {
  position: absolute;
  top: 28%;
  left: 50%;
  width: 86%;
  transform: translateX(-50%);
  z-index: 5;
  background: transparent;
}

.paper-img { width: 100%; filter: drop-shadow(0 9px 15px rgba(0,0,0,0.1)); }

/* Evita que capas decorativas capturen gesto de scroll en movil */
.inv-carta .layer,
.inv-carta .paper-img {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  touch-action: pan-y;
}

/* Toda la carta es visual (sin taps): prioriza el scroll vertical */
.inv-carta .paper-wrapper,
.inv-carta .content-overlay,
.inv-carta .content-overlay * {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  touch-action: pan-y;
}

.content-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  padding: 10% 12% 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  font-family: 'Antic Didone', serif;
  font-style: italic;
  background: transparent;
}

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

.names-slight {
  font-family: 'slight', cursive;
  font-size: 4.9vw;
  color: var(--dorado);
  white-space: nowrap;
  line-height: 1.1;
}

.txt-small { font-size: 3.2vw; line-height: 1.2; margin-bottom: 4%; color: #000; text-transform: uppercase; }
.section-title { font-size: 3.6vw; letter-spacing: 2px; margin: 2% 0; color: #222; }
.blessing-group { margin-top: 2%; width: 100%; }
.blessing { font-size: 3.6vw; color: var(--dorado); margin-bottom: 2%; font-weight: bold; }
.parents-grid { display: flex; justify-content: space-between; width: 100%; padding-bottom: 1%; }
.col { width: 48%; }
.col p { font-size: 3.3vw; line-height: 1.1; margin-bottom: 4px; color: var(--texto); }
.city { font-size: 3vw; letter-spacing: 1px; margin-top: 4%; padding-bottom: 5%; }

@media (min-width: 480px) {
  .names-slight { font-size: 28px; }
  .txt-small, .blessing { font-size: 11px; }
  .col p { font-size: 10px; }
  .city { font-size: 14px; }
  .inv-container { min-height: 840px; }
}

/* ===== FECHA / CONTADOR ===== */
.fecha-photo-section {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: min(78vh, 680px);
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.fecha-photo-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

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

.fecha-photo-section::before,
.fecha-photo-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}

.fecha-photo-section::before {
  top: 0;
  height: 18%;
  background: linear-gradient(to bottom,
    rgba(242,240,236,0.55) 0%,
    transparent 100%);
}

.fecha-photo-section::after {
  bottom: 0;
  height: 22%;
  background: linear-gradient(to top,
    rgba(242,240,236,0.55) 0%,
    transparent 100%);
}

.fecha-photo-section .fecha-pill {
  position: relative;
  z-index: 2;
}

.fecha-pill {
  font-family: 'Antic Didone', serif;
  font-size: clamp(22px, 5vw, 36px);
  font-weight: 100;
  font-style: italic;
  color: #fff;
  text-shadow: 1px 0 1px #000;
}

.faltan-section {
  text-align: center;
  padding: 30px 20px;
  position: relative;
}

.faltan-section h2.faltan-titulo {
  font-family: 'slight', cursive;
  font-size: clamp(26px, 6vw, 40px);
  font-weight: 100;
  color: #A89278;
}

.faltan-section p.faltan-sub {
  font-family: 'Antic Didone', serif;
  font-size: 12px;
  font-weight: 600;
  color: #6B5E52;
  text-transform: uppercase;
  margin-bottom: 15px;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 20px;
}

.cd-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border-radius: 12px;
  padding: 8px 12px;
}

.cd-digits {
  font-family: 'Lustria', serif;
  font-size: clamp(24px, 6vw, 36px);
  color: #616161;
  line-height: 1;
}

.cd-label {
  font-size: 12px;
  color: #6B5E52;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Botón calendario */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #A89278;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  font-size: 11px;
  font-family: 'Antic Didone', serif;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  margin: 10px 5px;
  -webkit-tap-highlight-color: transparent;
}

.quote-section {
  padding: 30px 20px;
  text-align: center;
  position: relative;
}

.quote-section .ubicacion-intro {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 580px;
  margin: 0 auto;
  padding: 0 8px;
}

.quote-section .ubicacion-corazon {
  width: min(98vw, 560px);
  max-width: 560px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-section .ubicacion-corazon-texto {
  inset: 26% 18% 30%;
  font-size: clamp(10px, 2.55vw, 13.5px);
  line-height: 1.36;
  padding: 0 10px;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .quote-section .ubicacion-corazon {
    width: min(98vw, 400px);
  }

  .quote-section .ubicacion-corazon-texto {
    font-size: 9.5px;
    line-height: 1.34;
    inset: 27% 17% 31%;
    padding: 0 8px;
  }
}

/* ===== NUESTRA HISTORIA ===== */
.historia-section {
  padding: 40px 20px;
}

.historia-block {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.historia-titulo {
  font-family: 'Times New Roman', serif;
  font-size: clamp(22px, 5vw, 36px);
  color: #080808;
  margin: 0 0 12px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.historia-slideshow {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: min(72vh, 620px);
  margin: 0 0 20px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  position: relative;
  background: #2a2520;
}

.historia-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.7s ease;
}

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

.historia-texto {
  font-family: 'Antic Didone', serif;
  font-size: clamp(14px, 4vw, 18px);
  text-align: justify;
  color: #444;
  width: 100%;
  line-height: 1.5;
  text-transform: none;
}

.historia-texto p {
  text-transform: none;
  margin: 0;
}

.historia-texto p.historia-cuerpo::first-letter {
  float: left;
  font-size: 2.4em;
  line-height: 0.85;
  font-weight: bold;
  margin: 0.04em 0.12em 0 0;
  color: #A89278;
  text-transform: uppercase;
}

.historia-firma {
  text-align: center;
  margin-top: 16px;
  font-family: 'slight', cursive;
  font-size: 1.2em;
  color: #A89278;
}

/* ===== VIDEO HISTORIA ===== */
.historia-video-section {
  padding: 0;
  width: 100%;
  line-height: 0;
}

.historia-video-wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  background: #000;
}

.historia-video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: cover;
  object-position: center;
}

/* ===== PRE-VOTOS (layout votos.json) ===== */
.votos-section {
  padding: 40px 16px 56px;
  overflow: hidden;
}

.votos-titulo-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  min-height: 100px;
  margin: 0 auto 36px;
}

.votos-titulo-slight {
  display: block;
  font-family: 'slight', cursive;
  font-weight: 100;
  font-size: clamp(28px, 7vw, 44px);
  color: #3D3830;
  line-height: 1;
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(calc(-50% - clamp(40px, 12vw, 87px)));
  white-space: nowrap;
}

.votos-titulo-didone {
  display: block;
  font-family: 'Antic Didone', serif;
  font-weight: 100;
  font-size: clamp(32px, 9vw, 76px);
  color: #000;
  line-height: 1.05;
  position: absolute;
  left: 50%;
  top: clamp(28px, 8vw, 58px);
  transform: translateX(calc(-50% + clamp(20px, 8vw, 122px)));
  white-space: nowrap;
}

.votos-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  gap: clamp(15px, 4vw, 50px);
  width: 100%;
  max-width: 900px;
  margin: 0 auto 40px;
}

.votos-row--novia {
  margin-top: 10px;
}

.votos-row--novio {
  margin-bottom: 24px;
}

.votos-foto {
  flex: 0 1 60%;
  min-height: clamp(280px, 55vw, 372px);
  border-radius: 48px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
  opacity: 0;
}

.votos-foto--novia {
  background-position: center center;
}

.votos-foto--novio {
  background-position: center center;
}

.votos-texto {
  flex: 0 1 28%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: flex-end;
  padding-top: clamp(20px, 6vw, 50px);
  opacity: 0;
}

.votos-row--novio .votos-texto {
  align-self: center;
  padding-top: 0;
  padding-bottom: clamp(20px, 6vw, 50px);
}

.votos-rol {
  font-family: 'Antic Didone', serif;
  font-size: clamp(28px, 5.5vw, 36px);
  font-weight: 400;
  color: #A89278;
  margin: 0;
  line-height: 1.1;
}

.votos-nombre {
  font-family: 'slight', cursive;
  font-size: 2.1rem;
  font-weight: 100;
  color: #3D3830;
  margin: 0;
  line-height: 1.15;
}

.votos-copy {
  font-family: 'Antic Didone', serif;
  font-size: clamp(16px, 3.8vw, 19px);
  font-weight: 100;
  line-height: 1.55;
  color: #3D3830;
  text-align: justify;
  margin: 0;
}

.votos-copy::first-letter {
  float: left;
  font-size: 3.1em;
  line-height: 0.82;
  margin: 0.06em 0.1em 0 0;
  font-weight: 400;
  color: #3D3830;
}

.votos-section.is-visible .votos-foto--novia {
  animation: votosSlideLeft 1.1s ease 0.45s forwards;
}

.votos-section.is-visible .votos-row--novia .votos-texto {
  animation: votosSlideUp 1.1s ease 0.65s forwards;
}

.votos-section.is-visible .votos-row--novio .votos-texto {
  animation: votosSlideDown 1.1s ease 0.65s forwards;
}

.votos-section.is-visible .votos-foto--novio {
  animation: votosSlideRight 1.1s ease 0.45s forwards;
}

@keyframes votosSlideLeft {
  from { opacity: 0; transform: translateX(-36px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes votosSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes votosSlideDown {
  from { opacity: 0; transform: translateY(-28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes votosSlideRight {
  from { opacity: 0; transform: translateX(36px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 768px) {
  .votos-titulo-wrap {
    min-height: 88px;
    margin-bottom: 28px;
  }

  .votos-titulo-slight {
    transform: translateX(calc(-50% - 28px));
    top: -2px;
  }

  .votos-titulo-didone {
    transform: translateX(calc(-50% + 8px));
    top: 34px;
  }

  .votos-row {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
  }

  .votos-row--novio {
    flex-direction: column-reverse;
  }

  .votos-foto {
    flex: none;
    width: 100%;
    min-height: 302px;
    border-radius: 48px;
  }

  .votos-texto {
    flex: none;
    width: 100%;
    align-self: center !important;
    padding: 0 8px !important;
    text-align: center;
  }

  .votos-rol,
  .votos-nombre {
    text-align: center;
  }

  .votos-copy {
    text-align: justify;
  }
}

/* ===== ITINERARIO — línea de tiempo con iconos ===== */
.timeline-section {
  overflow-x: hidden;
  padding: 24px 10px 44px;
  background: transparent !important;
}
.timeline-section img { max-width: 100%; }

.timeline-section .Container {
  width: 100%;
  max-width: 100%;
  margin: 10px auto;
  padding: 10px;
  position: relative;
  background-position: center;
}

.timeline-section .ag-timeline_item {
  margin: 0 0 10px;
  position: relative;
  min-height: 150px;
}

.timeline-section .ag-timeline_item:nth-child(2n) { text-align: right; }

.timeline-section .ag-timeline {
  display: inline-block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}

.timeline-section .ag-timeline_line {
  width: 4px;
  background-color: #ffffff;
  position: absolute;
  top: 2px;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  border-radius: 2px;
}

.timeline-section .ag-timeline_line-progress {
  width: 100%;
  height: 20%;
  background-color: #A89278;
}

.timeline-section .ag-timeline-card_box {
  padding: 0 0 5px 50%;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 150px;
}

.timeline-section .ag-timeline_item:nth-child(2n) .ag-timeline-card_box {
  padding: 0 50% 5px 0;
  justify-content: flex-end;
}

.timeline-section .ag-timeline-card_point-box {
  display: flex;
  align-items: center;
  margin: 0 14px 0 -4px;
  z-index: 10;
  position: relative;
}

.timeline-section .ag-timeline_item:nth-child(2n) .ag-timeline-card_point-box {
  margin: 0 -4px 0 14px;
  order: 2;
}

.timeline-section .ag-timeline-card_point {
  height: 10px;
  line-height: 10px;
  width: 10px;
  border: 3px solid #f0f0f0;
  background-color: #1d1d1b;
  text-align: center;
  font-size: 0;
  color: transparent;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.5s;
}

.timeline-section .js-ag-active .ag-timeline-card_point {
  color: transparent;
  background-color: #ffffff;
  border: 3px solid #1d1d1b;
}

.timeline-section .ag-timeline-card_meta-box {
  display: block;
  padding: 0;
}

.timeline-section .ag-timeline_item:nth-child(2n) .ag-timeline-card_meta-box { order: 1; }

.timeline-section .ag-timeline-card_meta {
  margin: 0;
  font-family: 'Antic Didone', serif;
  font-weight: 700;
  font-size: 21px;
  color: #000000;
  line-height: 1.2;
  text-shadow: none;
}

.timeline-section .ag-timeline-card_time {
  font-family: 'Antic Didone', serif;
  color: #000000;
  font-size: 16px;
  text-shadow: none;
  font-weight: normal;
}

.timeline-section .ag-timeline-card_item {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 25%;
  padding: 15px;
  border-radius: 25px;
  background-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: transform 0.5s, opacity 0.5s;
  z-index: 1;
}

.timeline-section .ag-timeline_item:nth-child(2n+1) .ag-timeline-card_item {
  right: calc(50% + 20px);
  transform: translateX(-100%) translateY(-50%);
}

.timeline-section .ag-timeline_item:nth-child(2n) .ag-timeline-card_item {
  left: calc(50% + 20px);
  transform: translateX(100%) translateY(-50%);
}

.timeline-section .js-ag-active.ag-timeline_item:nth-child(2n+1) .ag-timeline-card_item,
.timeline-section .js-ag-active.ag-timeline_item:nth-child(2n) .ag-timeline-card_item {
  opacity: 1;
  transform: translateX(0) translateY(-50%);
}

.timeline-section .ag-timeline-card_img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

@media (max-width: 768px) {
  .timeline-section .ag-timeline_line { width: 3px; }

  .timeline-section .ag-timeline-card_item {
    width: 35%;
    padding: 10px;
    border-radius: 20px;
  }

  .timeline-section .ag-timeline_item:nth-child(2n+1) .ag-timeline-card_item { right: calc(50% + 15px); }
  .timeline-section .ag-timeline_item:nth-child(2n) .ag-timeline-card_item { left: calc(50% + 15px); }
}

@media (min-width: 769px) {
  .timeline-section {
    zoom: 0.75;
    transform: scale(0.75);
    transform-origin: top center;
    -moz-transform: scale(0.75);
    -moz-transform-origin: top center;
  }

  .timeline-section .Container {
    max-width: 800px;
    margin: 0 auto;
  }

  .timeline-section .ag-timeline-card_item { width: 20%; }
}

/* ===== FOTO GRANDE C&J ===== */
.foto-pareja {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  display: block;
  height: 420px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* ===== UBICACIÓN ===== */
.ubicacion-section {
  padding: 30px 20px;
  text-align: center;
}

.ubicacion-intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2.5vw, 20px);
  max-width: 640px;
  margin: 0 auto;
  padding: 0 4px;
}

.ubicacion-intro-foto {
  flex: 0 1 32%;
  max-width: 175px;
}

.ubicacion-intro-foto img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 6px;
  box-shadow: 0 10px 26px rgba(61, 56, 48, 0.16);
}

.ubicacion-corazon {
  flex: 0 1 64%;
  max-width: 360px;
  min-width: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ubicacion-corazon-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(61, 56, 48, 0.12));
}

.ubicacion-corazon-texto {
  position: absolute;
  inset: 20% 13% 24%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Antic Didone', serif;
  font-size: clamp(10px, 2.8vw, 15px);
  font-style: italic;
  font-weight: 100;
  line-height: 1.48;
  color: #3D3830;
  margin: 0;
}

@media (max-width: 380px) {
  .ubicacion-intro-foto {
    flex: 0 1 30%;
    max-width: 130px;
  }

  .ubicacion-corazon {
    flex: 0 1 66%;
    min-width: 190px;
  }

  .ubicacion-corazon-texto {
    font-size: 9px;
    line-height: 1.4;
    inset: 21% 12% 25%;
  }
}

.itinerary-flip-card {
  position: relative;
  width: 249px;
  height: 309px;
  perspective: 1000px;
  margin: 60px auto;
  font-family: 'Antic Didone', serif;
  touch-action: pan-y;
  filter: drop-shadow(0 12px 28px rgba(61,56,48,0.12));
}

.itinerary-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  cursor: pointer;
  z-index: 5;
}

.itinerary-flip-card:hover .itinerary-inner,
.itinerary-flip-card.flipped .itinerary-inner { transform: rotateY(180deg); }

.decor { position: absolute; pointer-events: none; }
.decor-sello { top: -40px; left: -35px; width: 105px; z-index: 10; }
.decor-planta {
  bottom: -12px;
  left: -82px;
  width: clamp(110px, 28vw, 150px);
  z-index: 0;
  transform: rotate(-18deg);
  transform-origin: 85% 100%;
}

.itinerary-front,
.itinerary-back {
  position: absolute;
  width: 249px !important;
  height: 309px !important;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.itinerary-front {
  z-index: 2;
  color: #6B5240;
  background: var(--fondo-ubicacion) center/cover no-repeat;
  border-radius: 12px;
  overflow: hidden;
}

.itinerary-front .titulo-itinerario,
.itinerary-front p {
  text-shadow: 0 1px 8px rgba(242,240,236,0.9);
}

.itinerary-back {
  z-index: 1;
  transform: rotateY(180deg);
  padding: 20px;
  background-blend-mode: overlay;
  background-color: rgba(255,255,255,0.85);
}

.titulo-itinerario { font-family: 'slight', cursive; font-size: 2.1rem; margin: 0; }

.timeline-titulo {
  text-align: center;
  margin: 0 auto 28px;
  color: #3D3830;
}
.itinerary-item { display: flex; flex-direction: row-reverse; align-items: center; width: 100%; text-align: right; }
.itinerary-item img { width: 50px; margin-left: 10px; }
.itinerary-text h3 { font-size: 0.65rem; margin: 0; text-transform: uppercase; }
.itinerary-text p { font-size: 0.65rem; font-style: italic; margin: 4px 0 6px; }

.btn-location {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid #000;
  text-decoration: none;
  font-size: 0.6rem;
  color: #000;
}

/* ===== DRESS CODE ===== */
.celebracion-photo-slideshow {
  width: calc(100% + 40px);
  margin: 0 -20px 18px;
  aspect-ratio: 3 / 4;
  max-height: min(72vh, 620px);
  position: relative;
  overflow: hidden;
}

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

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

.dresscode-section {
  padding: 30px 20px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.dc-canvas-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 520px;
  margin: 20px auto;
  z-index: 1;
}

.dc-floral-accent {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

.dc-floral-accent--left {
  left: -34px;
  bottom: 36px;
  width: clamp(78px, 22vw, 130px);
}

.dc-floral-accent--right {
  right: -26px;
  top: 96px;
  width: clamp(86px, 24vw, 140px);
}

.dc-floral-accent img {
  width: 100%;
  display: block;
}

.dc-leaf-wrap {
  position: absolute;
  top: 0;
  right: -90px;
  width: 240px;
  z-index: 1;
  pointer-events: none;
}

.dc-leaf-asset {
  width: 100%;
  display: block;
}

.dc-flip-card {
  position: absolute;
  width: 340px;
  height: 225px;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
  touch-action: pan-y;
}

.card-top-pos {
  top: -50px;
  left: -40px;
  z-index: 5;
}

.dc-logo-asset {
  position: absolute;
  bottom: 20px;
  left: -83px;
  width: 230px;
  z-index: 20;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

.card-bottom-pos {
  bottom: -20px;
  right: -72px;
  z-index: 10;
}

.dc-flip-inner { position: relative; width: 100%; height: 100%; }

.dc-flip-front {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 2;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.slider-left.active .dc-flip-front { transform: translateX(-100%); }
.slider-right.active .dc-flip-front { transform: translateX(100%); }

.dc-flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: #fcfcfc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 0;
}

.dc-back-content {
  text-align: center;
  max-width: 260px;
  transform: translateY(0);
}

.dc-ellos-ajuste {
  padding-left: 0;
  padding-right: 0;
}

.dc-title-style {
  font-family: 'Antic Didone', serif;
  font-size: 30px;
  margin: 0;
  color: #3D3830;
  line-height: 1;
  font-weight: 300;
  text-shadow:
    0 0 1px rgba(255,255,255,0.95),
    0 2px 12px rgba(242,240,236,0.9);
}

.dc-more-link {
  font-family: 'Antic Didone', serif;
  font-size: 17px;
  text-transform: uppercase;
  text-decoration: underline;
  color: #000;
  margin-top: 3px;
}

.dc-back-main {
  font-family: 'Antic Didone', serif;
  font-size: 28px;
  margin: 0;
  color: #000;
}

.dc-back-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  color: #000;
  margin-top: 8px;
  line-height: 1.3;
}

.dc-text-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 16px 14px 18px;
}

@media (max-width: 600px) {
  .dc-canvas-container {
    transform: scale(0.75);
    transform-origin: center center;
    height: 400px;
  }

  .dc-ellos-ajuste {
    padding-left: 0;
    padding-right: 0;
  }
}

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

.gift-wrap {
  position: relative;
  width: 100%;
  max-width: 500px;
  min-height: 700px;
  margin: 0 auto;
  overflow: hidden;
}

.ovalo-fondo {
  position: absolute;
  top: 10px; left: 15px;
  width: 310px; height: 410px;
  background: url('https://caroyjuandiego.royal-invite.com/wp-content/uploads/sites/13/2026/03/mesa-fondo-e1773427293825.webp') no-repeat left center/contain;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
}

.centrado-regalo {
  width: 210px;
  text-align: center;
  font-family: 'Antic Didone', serif;
  color: #000;
}

.regalo-title { font-size: 20px; letter-spacing: 2px; font-style: italic; margin-bottom: 8px; }
.regalo-intro { font-size: 11.5px; line-height: 1.3; font-style: italic; margin-bottom: 8px; }
.info-banco p { margin: 1px 0; font-size: 10px; text-transform: uppercase; }
.mail { text-transform: lowercase !important; }

.divisor-mini { width: 40px; height: 1px; background: #000; margin: 6px auto 4px; }

.btn-copiar {
  display: inline-block; padding: 2px 7px;
  background: transparent; color: #000;
  border: 1px solid #000; border-radius: 15px;
  font-size: 7.5px; cursor: pointer;
  text-transform: uppercase; letter-spacing: 1px;
  margin-top: 5px; font-family: 'Antic Didone', serif;
}

.btn-paypal {
  display: inline-block; padding: 3px 10px;
  background: #fff; color: #000;
  border: 1px solid #000; border-radius: 20px;
  font-size: 8.5px; text-decoration: none;
  font-style: italic; margin-top: 5px;
  font-family: 'Antic Didone', serif;
}

.planta-inf {
  position: absolute; width: 120px;
  top: 360px; left: 30px; z-index: 1;
  transform: rotate(180deg);
}

.foto-novios-wrap {
  position: absolute; top: 290px; right: 0;
  width: 250px; z-index: 2;
}

.foto-novios-wrap img { width: 100%; display: block; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

@media (max-width: 500px) {
  .gift-wrap { min-height: 550px; }
  .ovalo-fondo { width: 280px; height: 370px; left: 5px; }
  .centrado-regalo { width: 190px; }
  .planta-inf { width: 100px; top: 320px; left: 15px; }
  .foto-novios-wrap { width: 200px; top: 270px; }
}

/* ===== NUESTRAS FIRMAS ===== */
.firmas-section {
  padding: 36px 20px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.firmas-heading {
  font-family: 'Antic Didone', serif;
  font-size: clamp(22px, 5.5vw, 32px);
  font-weight: 600;
  color: #3D3830;
  line-height: 1.35;
  margin: 0 auto 28px;
  max-width: 420px;
}

.firmas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  max-width: 520px;
  margin: 0 auto 24px;
}

.firma-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.firma-img-wrap {
  width: 55%;
  max-width: 180px;
  margin-bottom: 4px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.firma-img {
  width: 100%;
  height: auto;
  display: block;
}

.firma-nombre {
  font-family: 'Antic Didone', serif;
  font-size: clamp(18px, 4.5vw, 22px);
  font-weight: 400;
  color: #000;
  margin: 0;
  line-height: 1.2;
}

.firmas-couple-photo {
  width: min(87%, 440px);
  height: clamp(220px, 52vw, 376px);
  object-fit: cover;
  object-position: center;
  margin: 8px auto 0;
  display: block;
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(61,56,48,0.14);
}

@media (max-width: 480px) {
  .firmas-grid { gap: 10px; }
  .firma-img-wrap { max-width: 140px; margin-bottom: 4px; }
}

/* ===== RSVP ===== */
.rsvp-section {
  background-position: center;
  padding: 40px 20px;
  position: relative;
  z-index: 10;
  overflow: visible;
}

.rsvp-sobre-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  overflow: visible;
}

.rsvp-sobre-wrap .planta-rsvp,
#planta-rsvp {
  position: absolute;
  top: -7%;
  right: -7%;
  left: auto;
  width: clamp(60px, 26vw, 120px);
  height: auto;
  display: block;
  transform: rotate(18deg);
  transform-origin: 85% 0%;
  z-index: 100;
  mix-blend-mode: normal;
  filter: sepia(0.1) saturate(0.95) contrast(1.1) brightness(0.98);
  pointer-events: auto;
}

.contacto-wrap .planta-contacto,
#planta-contacto {
  position: absolute;
  top: 107%;
  right: 75%;
  left: auto;
  width: clamp(60px, 26vw, 120px);
  height: auto;
  display: block;
  transform: rotate(85deg);
  transform-origin: 85% 0%;
  z-index: 100;
  mix-blend-mode: normal;
  filter: sepia(0.1) saturate(0.95) contrast(1.1) brightness(0.98);
  pointer-events: auto;
}

.rsvp-heading {
  font-family: 'Antic Didone', serif;
  font-size: clamp(22px, 5vw, 36px);
  font-weight: 100;
  color: #040404;
  text-align: center;
  margin-bottom: 8px;
}

.rsvp-no-ninos {
  font-family: 'Antic Didone', serif;
  font-size: clamp(14px, 4vw, 18px);
  font-weight: 100;
  font-style: italic;
  color: #3D3D3D;
  text-align: center;
  margin-bottom: 20px;
  padding: 20px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
  border-radius: 320px;
  max-width: 380px;
  margin: 0 auto 20px;
}

.royal-inv-main-wrapper {
  --r-dorado: #A89278;
  --r-texto: #333;
  --r-verde: #A89278;
  all: initial;
  display: block;
  width: 100%;
}

.royal-inv-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 850px;
  height: auto;
  background: transparent !important;
  display: block;
  overflow: visible;
  font-family: 'Antic Didone', serif;
}

.royal-inv-layer { position: absolute; width: 100%; height: auto; top: 0; left: 0; pointer-events: none; }
.royal-inv-z1 { z-index: 1; }
.royal-inv-z10 { z-index: 10; }
.royal-inv-sello { width: 22%; left: 38%; top: 12%; pointer-events: auto; }

.royal-inv-paper-wrapper {
  position: relative;
  top: 180px;
  left: 50%;
  width: 76%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  background-image: url('https://caroyjuandiego.royal-invite.com/wp-content/uploads/sites/13/2026/03/dsf-1.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 9px 15px rgba(0,0,0,0.1));
}

.royal-inv-content-overlay {
  position: relative;
  width: 100%;
  padding: 50px 25px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.royal-inv-form-inner { width: 100%; text-align: left; }
.royal-inv-form-header { text-align: center; margin-bottom: 15px; }
.royal-inv-form-title { font-style: italic; font-weight: normal; font-size: 24px; margin: 0 0 5px 0; color: var(--r-texto); }
.royal-inv-form-subtitle { font-size: 12px; color: #555; margin: 0; line-height: 1.2; }

.royal-inv-form-group { margin-bottom: 10px; }
.royal-inv-form-group label {
  display: block; font-weight: bold; font-size: 11px; margin-bottom: 3px;
  text-transform: uppercase; color: var(--r-texto); letter-spacing: 0.5px;
}

.royal-inv-form-input {
  width: 100% !important;
  padding: 8px !important;
  border: 1px solid rgba(0,0,0,0.15) !important;
  background: rgba(255,255,255,0.82) !important;
  box-sizing: border-box !important;
  font-family: 'Antic Didone', serif !important;
  font-size: 14px !important;
  border-radius: 4px !important;
  margin: 0 !important;
}

.royal-inv-disabled { background-color: rgba(0,0,0,0.05) !important; color: #777; cursor: not-allowed; }
.royal-inv-textarea { height: 50px !important; resize: none !important; }
.royal-inv-form-help { font-size: 11px; color: #666; font-style: italic; margin-top: 3px; margin-bottom: 0; }

.royal-inv-submit-btn {
  width: 100%;
  background: var(--r-verde);
  color: white;
  padding: 12px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
  border-radius: 4px;
  margin-top: 10px;
}

@media (max-width: 480px) {
  .royal-inv-container { min-height: 850px; }
  .royal-inv-paper-wrapper {
    top: 160px;
    width: 82%;
  }
  .royal-inv-content-overlay { padding: 40px 20px; }
}

/* ===== FOTOS / ACORDEON ===== */
.fotos-section {
  padding: 48px 20px 44px;
  text-align: center;
  background: transparent !important;
}

.fotos-titulo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0 auto 14px;
  line-height: 1.15;
}

.fotos-titulo-linea {
  display: block;
  font-family: 'Antic Didone', serif;
  font-size: clamp(18px, 4.6vw, 28px);
  font-weight: 100;
  color: #3D3830;
  letter-spacing: 0.02em;
}

.fotos-titulo-script {
  display: block;
  font-family: 'slight', cursive;
  font-size: clamp(28px, 7vw, 42px);
  font-weight: 100;
  color: #A89278;
}

.fotos-frase {
  font-family: 'Antic Didone', serif;
  font-size: clamp(14px, 3.8vw, 18px);
  font-weight: 100;
  font-style: italic;
  color: #3D3830;
  max-width: 420px;
  margin: 0 auto 20px;
  line-height: 1.55;
}

.fotos-section .fotos-hint {
  font-size: 11px;
  color: #8a8078;
  font-family: 'Antic Didone', serif;
  font-style: italic;
  margin-top: 8px;
}

.acordeon {
  display: flex;
  overflow: hidden;
  border-radius: 15px;
  max-width: 900px;
  width: 100%;
  height: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  margin: 15px auto;
}

.acordeon .item {
  flex: 1;
  overflow: hidden;
  transition: flex 0.5s ease;
}

.acordeon .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.acordeon .item:hover { flex: 2; }

/* ===== HASHTAG / FOTOS EVENTO ===== */
.hashtag-section {
  padding: 30px 20px;
  text-align: center;
}

.hashtag-section h2 {
  font-family: 'Antic Didone', serif;
  font-size: clamp(18px, 4vw, 26px);
  color: #A89278;
  margin-bottom: 5px;
}

.camara-img {
  width: clamp(84px, 22vw, 112px);
  max-width: 112px;
  display: block;
  margin: 12px auto;
  animation: heartbeat 1.5s infinite;
  mix-blend-mode: normal;
  filter: drop-shadow(0 3px 8px rgba(61, 56, 48, 0.28)) contrast(1.12) saturate(0.95);
  opacity: 1;
  position: relative;
  z-index: 2;
}

@keyframes heartbeat {
  0%   { transform: scale(1); }
  25%  { transform: scale(1.1); }
  40%  { transform: scale(1); }
  60%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.hashtag-pill {
  display: inline-block;
  padding: 10px 20px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
  border-radius: 30px;
  font-family: 'Antic Didone', serif;
  font-size: clamp(18px, 4vw, 24px);
  color: #000;
  margin: 10px auto;
}

.hashtag-info {
  font-family: 'Antic Didone', serif;
  font-size: clamp(13px, 3vw, 18px);
  color: #000;
  max-width: 380px;
  margin: 10px auto;
}

/* ===== GALERÍA ===== */
.galeria-section {
  padding: 30px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.galeria-section h2 {
  font-family: 'slight', cursive;
  font-size: clamp(24px, 6vw, 40px);
  font-weight: 100;
  color: #A89278;
  margin-bottom: 5px;
}

.galeria-section p {
  font-family: 'Antic Didone', serif;
  font-size: 13px;
  color: #333;
  margin-bottom: 15px;
}

#galeria-vj {
  width: 100%;
  max-width: 1000px;
  height: clamp(520px, 72vw, 620px);
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #2a2520;
  box-shadow: 0 8px 28px rgba(61, 56, 48, 0.15);
}

#wrapper-vj {
  width: 100%;
  height: 100%;
  display: flex;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #2a2520;
  transition: background-image 0.45s ease, transform 0.45s ease;
}

.col-vj {
  flex: 1;
  min-width: 0;
  height: 100%;
  cursor: pointer;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  z-index: 2;
  background: transparent;
  transition: background 0.35s ease, flex 0.4s ease;
}

.col-vj:last-child { border-right: none; }

.col-vj:hover,
.col-vj.is-active {
  flex: 1.35;
  background: rgba(255, 255, 255, 0.1);
}

/* ===== CONTACTO / COLLAGE ===== */
.contacto-section {
  padding: 30px 20px;
  text-align: center;
  position: relative;
  z-index: 10;
  overflow: visible;
}

.contacto-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  overflow: visible;
}

.collage-master {
  position: relative;
  width: 100%; max-width: 400px;
  aspect-ratio: 9/14;
  margin: 0 auto;
  padding: 20px;
}

.collage-layer { position: absolute; transition: all 0.3s ease; }

.layer-monogram { width: 48%; top: 0; left: 0; z-index: 3; }

.layer-monogram img {
  border-radius: 16px;
  object-fit: cover;
}

.layer-couple { width: 70%; top: 22%; left: 18%; z-index: 2; }
.layer-flipbox { width: 40%; bottom: 14%; right: 2%; z-index: 4; }

.collage-layer img { width: 100%; height: auto; display: block; filter: drop-shadow(5px 10px 15px rgba(0,0,0,0.1)); }

.contact-flip-card {
  width: 100%;
  aspect-ratio: 195/209;
  perspective: 1000px;
}

.contact-flip-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.contact-flip-card:hover .contact-flip-inner { transform: rotateY(180deg); }

.c-front, .c-back {
  position: absolute;
  top: 77px;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 5px;
  overflow: hidden;
}

.c-front {
  display: flex; justify-content: center; align-items: center;
}

.c-front img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }

.c-front-text { position: absolute; text-align: center; width: 100%; }
.c-front-text h2 { font-family: 'Antic Didone', serif; font-size: 1.4rem; color: #000; margin: 0; }
.c-front-text p { font-family: 'Antic Didone', serif; font-size: 0.6rem; text-decoration: underline; color: #000; margin-top: 2px; }

.c-back {
  background: #fff;
  display: flex; justify-content: center; align-items: center;
  transform: rotateY(180deg);
  border: 1px solid #eee;
}

.c-back-btns { display: flex; flex-direction: column; gap: 6px; width: 85%; }
.c-back-btns a {
  padding: 6px 2px;
  background: #fff; color: #000;
  text-decoration: none;
  border: 1px solid #000;
  font-size: 8px;
  font-family: 'Antic Didone', serif;
  text-align: center;
}

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

.cierre-section h2 {
  font-family: 'Antic Didone', serif;
  font-size: clamp(14px, 4vw, 18px);
  font-weight: 100;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.6;
}

.cierre-firma {
  font-family: 'slight', cursive;
  font-size: clamp(20px, 5vw, 32px);
  color: #A89278;
  padding: 17px;
}

.royal-invite-credits {
  display: block;
  width: 100%;
  margin: 0;
  padding: 18px 20px max(28px, calc(env(safe-area-inset-bottom, 0px) + 22px));
  border: 0;
  background: transparent;
  font-family: 'Antic Didone', serif;
  font-size: clamp(9px, 2.2vw, 11px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(102, 102, 102, 0.55);
  line-height: 1.65;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.royal-invite-credits:hover,
.royal-invite-credits:focus {
  color: rgba(102, 102, 102, 0.55);
  text-decoration: none;
  outline: none;
}

.royal-invite-brand {
  font-weight: 600;
  color: rgba(80, 70, 60, 0.72);
  letter-spacing: 0.1em;
}

/* ===== SEPARADOR CINTA / SELLO (forma original, champagne arena) ===== */
.elegant-separator {
  position: relative;
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  margin: 0;
  overflow: hidden;
}

.fan-band {
  position: absolute;
  width: 110%;
  left: -5%;
  height: 45px;
  background-color: #D8C4AA;
  transform-origin: center center;
  will-change: transform, opacity;
}

.fan-top-2 { transform: rotate(6deg); z-index: 1; opacity: 0.28; }
.fan-top-1 { transform: rotate(3deg); z-index: 2; opacity: 0.55; }
.fan-bottom-2 { transform: rotate(-6deg); z-index: 1; opacity: 0.28; }
.fan-bottom-1 { transform: rotate(-3deg); z-index: 2; opacity: 0.55; }

.ribbon-main-aligned {
  position: absolute;
  width: 92%;
  max-width: 1200px;
  height: 55px;
  z-index: 5;
  background: linear-gradient(90deg, #C4AD97 0%, #D8C4AA 12%, #D8C4AA 88%, #C4AD97 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 30px) 50%, 100% 100%, 0 100%, 30px 50%);
  filter: drop-shadow(0 5px 12px rgba(196, 173, 151, 0.22));
  transform-origin: center center;
  will-change: transform, opacity;
}

.ribbon-fold-3d {
  position: absolute;
  width: 70px;
  height: 65px;
  background: linear-gradient(135deg, #F2F0EC 0%, #D8C4AA 100%);
  border-radius: 5px;
  box-shadow: inset 0 0 10px rgba(216, 196, 170, 0.35), 0 5px 10px rgba(196, 173, 151, 0.18);
  z-index: 6;
  will-change: transform, opacity;
}

.ribbon-fold-3d.left { transform: translateX(-65px) perspective(150px) rotateY(25deg); }
.ribbon-fold-3d.right { transform: translateX(65px) perspective(150px) rotateY(-25deg); }

.bow-seal {
  position: relative;
  width: 115px;
  z-index: 10;
  filter: drop-shadow(0 6px 12px rgba(61, 56, 48, 0.22));
  cursor: pointer;
  will-change: transform, opacity;
}

/* ===== ANIMACIONES ENTRADA ===== */
/* Sin ocultar contenido: evitamos "doble scroll" en mobile */
.fade-in { opacity: 1; transform: none; transition: none; }
.fade-in.visible { opacity: 1; transform: none; }

@keyframes slideL { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideR { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

.anim-in-left { animation: slideL 1.2s ease-out forwards; }
.anim-in-right { animation: slideR 1.5s ease-out forwards; }
