/* ================================================
   BODA ALEJANDRA & FLAVIO · style.css
   ================================================ */

:root {
  --nude:        #F2E0CC;
  --rose:        #C9897A;
  --terracota:   #B07040;
  --sage:        #7FA688;
  --sage-light:  #A8C4A2;
  --sage-dark:   #4A7A5A;
  --cream:       #FAF5EF;
  --oscuro:      #2C2420;
  --texto-dark:  #3A2E28;
  --texto-mid:   #6B5244;
  --texto-light: #F5EDE4;
  color-scheme:  only light;
}

@font-face {
  font-family: 'ArmaniHerlinda';
  src: url('fotos/ArmaniHerlinda.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: var(--texto-dark);
  background: var(--cream);
  overflow-x: hidden;
  color-scheme: only light;
  -webkit-color-scheme: only light;
}
.hidden { display: none !important; }
img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ================================================
   BLOQUEO DE SCROLL durante animación de entrada
   ================================================ */
body.scroll-bloqueado {
  overflow: hidden;
}

/* ================================================
   SOBRE
   ================================================ */
#envelope-screen {
  position: fixed;
  inset: 0;
  background: var(--cream) url('fotos/intro-bg.webp') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -120px;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  overflow: hidden;
}
#envelope-screen.cerrado { opacity: 0; visibility: hidden; pointer-events: none; }
@media (max-width: 640px) {
  #envelope-screen {
    background: var(--cream) url('fotos/intro-bg2.webp') center center / cover no-repeat;
  }
}
#envelope-wrapper {
  position: relative;
  width: min(560px, 92vw);
  height: min(800px, 131vw);
  cursor: pointer;
  transition: transform 0.4s ease-in-out;
  opacity: 0;
  animation: sobreFadeIn 1.2s ease 0.3s forwards;
  pointer-events: none;
}

@keyframes sobreFadeIn {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

#envelope-wrapper.listo {
  pointer-events: auto;
}
#envelope-wrapper.listo:hover { 
  transform: scale(1.05);
  transition: transform 0.4s ease-in-out;
}

#envelope-wrapper img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#sobre-interior {
  opacity: 0;
  transform: translateY(0%);
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 1;
}
#sobre-solapa {
  transform-origin: top center;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  z-index: 2;
}
#sobre-sello { z-index: 3; transition: opacity 0.4s ease, transform 0.4s ease; }

#envelope-hint {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--texto-mid);
  letter-spacing: 1px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.6s ease;
}
#envelope-hint.visible {
  animation: pulso 2s ease-in-out infinite;
}
@keyframes pulso {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ================================================
   BRILLO NACARADO
   ================================================ */
#envelope-shine {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10000;
  background: radial-gradient(circle 200px at 50% 50%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.06) 40%, transparent 70%);
  transition: background 0.1s ease;
}

/* ================================================
   BOTÓN MÚSICA
   ================================================ */
#music-btn {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff; border: none;
  font-size: 20px; cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s, background 0.2s;
  display: none;
  align-items: center; justify-content: center;
  line-height: 1; padding: 0; text-align: center;
}
#music-btn:hover { transform: scale(1.1); background: var(--sage-dark); }
#music-btn.playing { background: var(--rose); }

/* ================================================
   HERO
   ================================================ */
.hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: center; justify-content: center;
  background-color: #000; overflow: hidden;
}
.hero-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 30% center;
  z-index: 0;
  opacity: 0;
  filter: brightness(0);
  transition: opacity 2s ease,
              filter 3s ease,
              object-position 4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-bg-img.revelada {
  opacity: 1;
  filter: brightness(1);
  object-position: center center;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(42,28,20,0.35); z-index: 1; }

.hero-content {
  position: relative; z-index: 2;
  text-align: center; color: #fff;
  padding: 40px 24px;
}
.hero-elem {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.hero-elem.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

#cursor-anillo-hero {
  opacity: 0;
  transition: opacity 0.8s ease;
}
#cursor-anillo-hero.visible { opacity: 1; }

.eyebrow { font-size: 11px; letter-spacing: 5px; text-transform: uppercase; opacity: 0.85; margin-bottom: 16px; }
.ornament {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  margin-top: 8px;
}
.ornament svg { width: 200px; }
.hero-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 8vw, 80px);
  font-weight: 300; font-style: italic;
  line-height: 1.1; margin-bottom: 20px;
}
.amp { color: var(--nude); font-size: 0.75em; }
.hero-date { font-size: 14px; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 8px; opacity: 0.9; }
.hero-lugar { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 18px; opacity: 0.85; }

/* ================================================
   SECCIONES GENÉRICAS
   ================================================ */
.seccion { padding: 72px 24px; text-align: center; }
.seccion-crema  { background: #FAF5EF !important; color-scheme: only light; }
.seccion-oscura { background: var(--oscuro); }
.seccion-rose {
  background-image: url('fotos/seccion-bg.webp');
  background-size: cover; background-position: center;
  background-color: var(--rose);
  color-scheme: only light;
}
.seccion-eyebrow {
  font-size: 10px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--sage); margin-bottom: 8px;
}
.seccion-bordes-papel .seccion-eyebrow {
  position: relative;
  z-index: 15;
  display: block;
}

.seccion-bordes-papel .seccion-titulo {
  position: relative;
  z-index: 15;
  display: block;
}

.seccion-eyebrow-claro { color: var(--sage-light); }

/* RSVP eyebrow en nude para no perderse con el fondo */
.seccion-rose .seccion-eyebrow {
  color: var(--nude) !important;
  opacity: 0.95;
}

.seccion-titulo {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 300; font-style: italic;
  color: var(--texto-dark); margin-bottom: 40px;
}
.seccion-titulo-claro { color: var(--cream); }

/* ================================================
   BORDES PAPEL RASGADO
   ================================================ */
.seccion-bordes-papel {
  position: relative; overflow: visible;
  background: #f1eee8 !important;
  padding-top: 80px; padding-bottom: 80px;
  text-align: center;
  color-scheme: only light;
  -webkit-color-scheme: only light;
}
.borde-papel {
  position: absolute; left: 0;
  width: 100%; height: 80px;
  object-fit: cover; object-position: center;
  z-index: 2; pointer-events: none;
}
.borde-papel-top    { top: -78px; }
.borde-papel-bottom { bottom: -78px; }
.seccion-push-top   { padding-top: 100px; }

/* ================================================
   CUENTA REGRESIVA
   ================================================ */
.seccion-bordes-papel {
  padding-top: 48px;
  padding-bottom: 48px;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

/* Tamaño base de cada aro */
.cd-aro-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(160px, 22vw, 230px);
  flex-shrink: 0;
}

/* aro1 (días) — corazón izquierdo */
.cd-aro-wrapper:nth-child(1) {
  z-index: 1;
  margin-left: 0;
  align-self: flex-end;
  margin-bottom: 0;
}
/* aro2 (horas) — aro grande */
.cd-aro-wrapper:nth-child(2) {
  z-index: 3;
  margin-left: clamp(-40px, -6vw, -28px);
  align-self: flex-end;
  margin-bottom: 13px;
}
/* aro3 (minutos) — aro mujer, ligeramente más grande */
.cd-aro-wrapper:nth-child(3) {
  z-index: 4;
  margin-left: clamp(-60px, -9vw, -44px);
  align-self: flex-end;
  width: clamp(150px, 20vw, 210px);
  margin-bottom: 16px;
}
/* aro4 (segundos) — corazón derecho */
.cd-aro-wrapper:nth-child(4) {
  z-index: 2;
  margin-left: clamp(-40px, -6vw, -28px);
  align-self: flex-end;
  margin-bottom: 7px;
}

.cd-aro-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 2;
}
.cd-aro-contenido {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
.cd-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 300;
  color: var(--rose);
  line-height: 1;
}
.cd-lbl {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--texto-mid);
}

@media (max-width: 640px) {
  .countdown-grid { flex-wrap: wrap; }
  .cd-aro-wrapper {
    width: clamp(100px, 42vw, 170px);
    margin-left: 0 !important;
  }
  .cd-num { font-size: clamp(24px, 8vw, 36px); }
}

/* ================================================
   SECCIÓN NOSOTROS
   ================================================ */
.seccion-nosotros {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 100px 24px; text-align: center;
  background-color: #2C2420; overflow: hidden;
  color-scheme: only light;
}
.nosotros-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0;
}
.nosotros-overlay { position: absolute; inset: 0; background: rgba(42,28,20,0.45); z-index: 1; }
.nosotros-contenido { position: relative; z-index: 2; max-width: 920px; width: 90%; margin: 0 auto; color: #fff; }/* Tamaños x1.5 */
.versiculo {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(22px, 3.3vw, 30px);
  line-height: 1.9;
  color: var(--nude); margin-bottom: 10px; letter-spacing: 0.3px;
}
.versiculo-referencia {
  font-family: 'Jost', sans-serif; font-weight: 300;
  font-size: 19px;
  letter-spacing: 2px;
  color: var(--nude); opacity: 0.75; margin-bottom: 40px;
}
.logo-wrapper { margin: 10px auto 40px; display: flex; justify-content: center; }
.logo-boda {
  width: clamp(160px, 28vw, 260px); height: auto; object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(212,175,55,0.9)) drop-shadow(0 0 20px rgba(212,175,55,0.6)) drop-shadow(0 0 40px rgba(212,175,55,0.3));
  animation: brilloLogo 3s ease-in-out infinite;
}
@keyframes brilloLogo {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(212,175,55,0.9)) drop-shadow(0 0 20px rgba(212,175,55,0.6)) drop-shadow(0 0 40px rgba(212,175,55,0.3)); }
  50%       { filter: drop-shadow(0 0 12px rgba(255,215,80,1)) drop-shadow(0 0 30px rgba(212,175,55,0.8)) drop-shadow(0 0 60px rgba(212,175,55,0.5)); }
}
.padres-intro {
  font-family: 'Jost', sans-serif; font-weight: 300;
  font-size: 19px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--nude); opacity: 0.8; margin-bottom: 24px;
}
.padres-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px 64px; max-width: 860px; margin: 0 auto;
}
.padres-col p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--nude); line-height: 1.5; letter-spacing: 0.5px;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .padres-col p { white-space: normal; font-size: 16px; }
  .padres-grid  { gap: 16px 24px; }
}

/* ================================================
   SECCIÓN PASES
   ================================================ */
.seccion-pases {
  position: relative; overflow: hidden;
  min-height: 480px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; padding: 80px 24px 60px;
}
.pases-eyebrow {
  position: absolute; top: 24px;
  left: 0; right: 0;
  text-align: center;
  font-size: 10px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--sage);
  z-index: 1; padding: 0 24px;
}
.pileta-bg {
  position: absolute;
  width: min(700px, 90%); height: auto;
  object-fit: contain;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.35; pointer-events: none; z-index: 0;
}
.invitado-wrapper { position: relative; z-index: 1; text-align: center; }
.pajaros-container { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.invitado-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-style: italic;
  color: var(--texto-mid); margin-bottom: 16px;
}
.invitado-linea-wrapper {
  position: relative; display: inline-block;
  min-width: 380px; margin-top: 20px;
}
.invitado-linea-base {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; color: #C4B0A0;
  letter-spacing: 2px; display: block; text-align: center;
}
.invitado-nombre-texto {
  position: absolute; left: 50%; bottom: 6px;
  transform: translateX(-50%);
  font-family: 'Dancing Script', cursive;
  font-size: 46px; color: var(--texto-dark);
  white-space: nowrap; overflow: hidden;
  width: 0; transition: width 2s ease;
}
.invitado-nombre-texto.visible { width: 100%; }
.pajaro { position: absolute; opacity: 0; transition: none; }

/* ================================================
   GALERÍA BANNER
   ================================================ */
.galeria-banner {
  width: 100%; height: 100vh;
  position: relative; overflow: hidden;
}
.galeria-banner-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block;
}
#galeria-brillo-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 640px) {
  .galeria-banner {
    height: 70vh; /* ← reduce este número para hacerla más pequeña */
  }
}

/* ================================================
   SECCIÓN LUGAR
   ================================================ */
.seccion-lugar {
  position: relative;
  overflow: clip; /* ← CAMBIO: clip en vez de hidden */
  padding: 0;
}

.lugar-fondo {
  position: absolute;
  inset: 0;
  background-image: url('fotos/lugar-bg.webp');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

@media (max-width: 640px) {
  .lugar-fondo {
    background-position: left center;
  }
  .lugar-contenido {
    padding-top: 80px;
  }
}

.rama-decorativa {
  position: absolute;
  width: min(500px, 45vw);
  height: auto;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: none;
  will-change: transform, opacity;
}

/* Rama superior izquierda — crece de izquierda a derecha */
.rama-top-left {
  top: 0; left: 0;
  transform-origin: top left;
  transform: scaleX(0);
}
.rama-top-left.visible {
  animation: ramaIzquierda 1.0s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes ramaIzquierda {
  0%   { transform: scaleX(0); opacity: 0; }
  100% { transform: scaleX(1); opacity: 1; }
}

/* Rama inferior derecha — crece de derecha a izquierda */
.rama-bottom-right {
  bottom: 0; right: 0;
  transform-origin: bottom right;
  transform: scaleX(0);
}
.rama-bottom-right.visible {
  animation: ramaDerecha 1.0s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes ramaDerecha {
  0%   { transform: scaleX(0); opacity: 0; }
  100% { transform: scaleX(1); opacity: 1; }
}

@media (max-width: 640px) {
  .rama-decorativa { width: min(280px, 70vw); }
  .rama-bottom-right {
    position: absolute;
    top: auto; right: auto;
    transform-origin: bottom right;
    transform: scaleX(0);
    opacity: 0;
  }
}

.lugar-contenido {
  position: relative;
  z-index: 3;
  padding: 32px 24px 60px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.lugar-contenido .seccion-eyebrow { margin-bottom: 4px; font-weight: 500; }
.lugar-contenido .seccion-titulo  { margin-bottom: 20px; font-weight: 500; }

/* Mapa reducido al 80% */
.ubicacion-card {
  max-width: 100%;
  margin: 0;
  background: rgba(255,255,255,0.92) !important;
  border: 1px solid #DDD0C0;
  border-radius: 12px;
  overflow: hidden;
  color-scheme: only light;
}
.mapa-wrapper {
  display: flex;
  justify-content: center;
  padding: 0;
}
.mapa-wrapper iframe {
  display: block;
  width: 100% !important;
  height: 240px !important;
  border-radius: 0;
  margin: 0 auto;
}
.ubicacion-info {
  padding: 16px 24px 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ubicacion-nombre {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-style: italic;
  color: var(--texto-dark);
}
.ubicacion-detalle { font-size: 13px; color: var(--texto-mid); }

/* Ocultar la línea de fecha/hora — se gestiona desde HTML
   pero por si acaso también por clase */
.ubicacion-fecha { display: none !important; }

.btn-mapa {
  display: inline-block; margin-top: 8px; padding: 9px 22px;
  background: var(--sage); color: #fff; border-radius: 24px;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; transition: background 0.2s; align-self: flex-start;
}
.btn-mapa:hover { background: var(--sage-dark); }

/* Bloque hora debajo del mapa */
.ubicacion-hora-bloque {
  text-align: center;
  padding: 20px 0 24px;
  border-top: 1px solid #EDE4D8;
  margin-top: 4px;
  padding: 20px 0 16px;
}
.ubicacion-hora-label {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 6px;
  font-weight: 500;
}
.ubicacion-hora-valor {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 500;
  font-style: italic;
  color: var(--texto-dark);
  line-height: 1.1;
}

@media (max-width: 640px) {
  .rama-decorativa { width: min(280px, 70vw); }
  .lugar-contenido { padding: 70px 16px 48px; }
  .seccion-lugar {
    min-height: 650px;}
  .mapa-wrapper iframe { width: 100% !important; height: 200px !important; }}
  .ubicacion-card {
    width: 100%;
    margin: 0 auto;
    margin-bottom: 0px;
    margin-top: 30px;  /* aumenta para bajar, reduce o pon negativo para subir */
    .ubicacion-info {
    padding: 0px 16px 8px;
    gap: 0px;
  }
  .ubicacion-nombre {
    font-size: 20px;
    margin-top: 10px;
  }
  .ubicacion-detalle {
    font-size: 11px;
  }
  .btn-mapa {
    font-size: 9px;
    padding: 7px 14px;
  } }

/* ================================================
   RSVP
   ================================================ */
.rsvp-subtitulo { color: var(--texto-light); font-size: 14px; margin-top: -24px; margin-bottom: 36px; opacity: 0.85; }
.rsvp-botones { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-confirmar {
  background: #fff; color: var(--rose); border: 1px solid #fff;
  border-radius: 28px; padding: 14px 36px; font-size: 13px;
  letter-spacing: 1px; cursor: pointer; font-family: 'Jost', sans-serif; transition: all 0.2s;
}
.btn-confirmar:hover { background: var(--rose); color: #fff; }
.btn-declinar {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5);
  border-radius: 28px; padding: 14px 36px; font-size: 13px;
  letter-spacing: 1px; cursor: pointer; font-family: 'Jost', sans-serif; transition: all 0.2s;
}
.btn-declinar:hover { border-color: #fff; }
.rsvp-mensaje {
  margin-top: 28px; background: rgba(255,255,255,0.15);
  border-radius: 10px; padding: 20px 28px; color: #fff;
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 20px; max-width: 500px; margin-left: auto; margin-right: auto;
}

/* ================================================
   SECCIÓN REGISTRO
   ================================================ */
.seccion-registro {
  background: #FAF5EF !important;
  color-scheme: only light;
  padding-bottom: 150px;
  position: relative;  /* necesario para que overflow-x funcione como barrera */
  overflow-x: clip;    /* corta pétalos que se salgan por los laterales */
}

.registro-form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: left;
}
.form-grupo { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-family: 'Jost', sans-serif;
  font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--texto-mid);
}
.form-opcional { font-size: 10px; opacity: 0.6; text-transform: none; letter-spacing: 0; }
.form-input,
.form-select,
.form-textarea {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  color: #3A2E28 !important;
  background: #ffffff !important;
  border: 1px solid #DDD0C0;
  border-radius: 8px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  color-scheme: only light;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--rose); }
.form-textarea { resize: vertical; min-height: 80px; }

.btn-registro {
  background: var(--sage); color: #fff;
  border: none; border-radius: 28px;
  padding: 14px 36px; font-size: 13px;
  letter-spacing: 1px; cursor: pointer;
  font-family: 'Jost', sans-serif;
  transition: background 0.2s;
  align-self: center; margin-top: 8px;
  position: relative;
  z-index: 1;
}
.btn-registro:hover { background: var(--sage-dark); }

.registro-confirmado {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 20px;
  color: var(--sage-dark); padding: 16px;
  background: rgba(127, 166, 136, 0.12);
  border-radius: 10px;
  position: relative;
  z-index: 1;
  align-self: center;   /* mismo alineamiento que el botón */
  margin-top: 8px;      /* mismo margen que el botón */
  width: fit-content;   /* no ocupa todo el ancho */
  max-width: 400px;
}

/* Pétalos */
.petalo {
  position: fixed;
  pointer-events: none;
  z-index: 99997;
  animation: caerPetalo linear forwards;
}
@keyframes caerPetalo {
  0%   { transform: translateX(0) translateY(0) rotate(0deg); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateX(var(--deriva, 0px)) translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ================================================
   SECCIONES DETALLES POST-CONFIRMACIÓN
   ================================================ */
.seccion-detalles { border-top: 1px solid #EDE4D8; }

.seccion-contacto {
  background: #6B5244 !important;
  color-scheme: only light;
  position: relative;
  overflow: hidden;
}

/* Imagen de fondo cabaña */
.contacto-fondo-img {
  position: absolute;
  z-index: 1;
  opacity: 0.5;             /* ← siempre visible, sin transición */
  pointer-events: none;

  /* ── ESCRITORIO — tamaño y posición ── */
  width: 100%;               /* ← tamaño: % del ancho de la sección */
  height: auto;
  object-fit: contain;
  top: 50%;                 /* ← posición vertical: 50% = centrado */
  left: 50%;                /* ← posición horizontal: 50% = centrado */
  transform: translate(-50%, -50%); /* centra respecto a top/left */
}

/* ── DISPOSITIVO — tamaño y posición ── */
@media (max-width: 640px) {
  .contacto-fondo-img {
    width: 180%;            /* ← tamaño en móvil */
    top: 50%;               /* ← posición vertical en móvil */
    left: 50%;              /* ← posición horizontal en móvil */
    transform: translate(-50%, -50%);
  }
}

/* El contenido de la sección va por encima de la imagen */
.seccion-contacto .seccion-eyebrow,
.seccion-contacto .seccion-titulo,
.seccion-contacto .contacto-card {
  position: relative;
  z-index: 2;
}

/* "¿Necesitas ayuda?" en negrita */
.seccion-contacto .seccion-eyebrow {
  font-weight: 700 !important;
}

/* Título "Contacto" en nude y negrita */
.seccion-contacto .seccion-titulo {
  color: var(--nude) !important;  /* ← color del título, cámbialo aquí */
  font-weight: 700 !important;    /* ← grosor: 400 normal, 700 negrita */
}

/* Itinerario */
.itinerario { max-width: 480px; margin: 0 auto; position: relative; }
.itinerario::before {
  content: '';
  position: absolute; left: 50%; top: 12px; bottom: 12px;
  width: 1px;
  background: linear-gradient(to bottom, var(--rose), var(--nude));
  transform: translateX(-50%);
}
.it-item {
  display: grid; grid-template-columns: 1fr 32px 1fr;
  align-items: center; gap: 16px; margin-bottom: 28px;
}
.it-item:nth-child(odd) .it-hora  { text-align: right; order: 1; }
.it-item:nth-child(odd) .it-dot   { order: 2; }
.it-item:nth-child(odd) .it-texto { order: 3; text-align: left; }
.it-item:nth-child(even) .it-hora  { text-align: left; order: 3; }
.it-item:nth-child(even) .it-dot   { order: 2; }
.it-item:nth-child(even) .it-texto { order: 1; text-align: right; }
.it-hora {
  font-family: 'Jost', sans-serif; font-size: 11px;
  letter-spacing: 2px; color: var(--rose); text-transform: uppercase;
}
.it-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--rose); border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--rose);
  margin: 0 auto; flex-shrink: 0;
}
.it-dot-final { background: var(--sage); box-shadow: 0 0 0 2px var(--sage); }
.it-titulo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-style: italic; color: var(--texto-dark);
}

/* Detalles grid */
.detalles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; max-width: 900px; margin: 0 auto;
}
.detalle-card {
  background: #ffffff !important;
  border: 1px solid #EDE4D8; border-radius: 12px;
  padding: 28px 20px; text-align: center;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
  color-scheme: only light;
}
.detalle-icono { font-size: 32px; }
.detalle-titulo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-style: italic;
  color: var(--texto-dark); font-weight: 400;
}
.detalle-texto { font-size: 13px; color: var(--texto-mid); line-height: 1.6; }
.detalle-subtexto { font-size: 12px; color: var(--sage-dark); font-style: italic; }
.colores-paleta { display: flex; gap: 8px; justify-content: center; margin: 4px 0; }
.color-muestra { width: 28px; height: 28px; border-radius: 50%; display: inline-block; }
.detalle-aviso {
  display: flex; align-items: flex-start; gap: 8px;
  text-align: left; font-size: 13px; color: var(--texto-mid); line-height: 1.5;
}
.aviso-icono { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* Mesa de regalos */
.colectivo-intro {
  max-width: 480px; margin: -16px auto 28px;
  font-size: 14px; color: var(--texto-mid);
  line-height: 1.6; text-align: center;
}
.colectivo-card {
  max-width: 480px; margin: 0 auto;
  background: #ffffff !important;
  border: 1px solid #EDE4D8; border-radius: 12px;
  padding: 32px 28px; text-align: center;
  display: flex; flex-direction: column; gap: 16px; align-items: center;
  color-scheme: only light;
}
.colectivo-titular-header {
  width: 100%; padding-bottom: 12px;
  border-bottom: 1px solid #EDE4D8; text-align: center;
}
.colectivo-titular-nombre {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-style: italic;
  color: var(--rose); letter-spacing: 0.3px;
}
.colectivo-texto { font-size: 14px; color: var(--texto-mid); line-height: 1.6; }
.colectivo-datos {
  width: 100%; display: flex; flex-direction: column; gap: 8px;
  background: var(--cream); border-radius: 8px; padding: 16px 20px;
}
.colectivo-fila {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.colectivo-lbl { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--texto-mid); }
.colectivo-val { font-family: 'Cormorant Garamond', serif; font-size: 17px; color: var(--texto-dark); font-style: italic; }
.colectivo-card .btn-copiar { margin-top: 4px; }
.btn-copiar {
  background: var(--sage); color: #fff; border: none;
  border-radius: 24px; padding: 10px 24px;
  font-size: 12px; letter-spacing: 1px;
  cursor: pointer; font-family: 'Jost', sans-serif; transition: background 0.2s;
}
.btn-copiar:hover { background: var(--sage-dark); }
.copiado-msg { font-size: 13px; color: var(--sage-dark); font-style: italic; }
.colectivo-subtexto { font-size: 12px; color: var(--texto-mid); font-style: italic; }
.colectivo-botones { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Álbum */
.album-card {
  max-width: 400px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.album-icono { font-size: 48px; }
.album-texto { font-size: 14px; color: var(--texto-mid); line-height: 1.6; }
.album-subtexto { font-size: 12px; color: var(--texto-mid); font-style: italic; }
.btn-drive {
  display: inline-block; background: #C9897A; color: #fff;
  border-radius: 24px; padding: 12px 28px;
  font-size: 12px; letter-spacing: 1px;
  text-decoration: none; font-family: 'Jost', sans-serif; transition: background 0.2s;
}
.btn-drive:hover { background: #a56f63; }

/* Contacto / WhatsApp */
.contacto-card {
  max-width: 400px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px; 
}
.contacto-texto { font-size: 14px; color: var( --texto-light); line-height: 1.6; }
.contacto-nombre { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-style: italic; color: var( --texto-light); }
.contacto-numero { font-size: 16px; color: var( --texto-light); letter-spacing: 1px; }
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sage); color: #fff; border-radius: 24px;
  padding: 12px 28px; font-size: 12px; letter-spacing: 1px;
  text-decoration: none; font-family: 'Jost', sans-serif; transition: background 0.2s;
}
.btn-whatsapp:hover { background: var(--sage-dark); }

/* QR wrapper */
.qr-wrapper { margin: 8px auto; }
.qr-wrapper canvas {
  border-radius: 12px; border: 6px solid #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.1);
}

/* Responsive detalles */
@media (max-width: 768px) {
  .detalles-grid { grid-template-columns: 1fr; }
  .it-item:nth-child(even) .it-hora  { text-align: right; order: 1; }
  .it-item:nth-child(even) .it-texto { order: 3; text-align: left; }
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--oscuro); color: var(--texto-light);
  text-align: center; padding: 48px 24px;
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 18px; line-height: 1.8;
  color-scheme: only light;
}
.footer-sub {
  font-size: 13px; opacity: 0.6; font-style: normal;
  font-family: 'Jost', sans-serif; letter-spacing: 2px;
  text-transform: uppercase; margin-top: 8px;
}

/* ================================================
   ANIMACIONES DE SCROLL
   ================================================ */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 640px) {
  #envelope-screen  { margin-top: 0; align-items: center; }
  #envelope-hint    { bottom: 28px; font-size: 13px; }
  .countdown-grid   { grid-template-columns: repeat(2, 1fr); max-width: 280px; }
  .padres-grid      { grid-template-columns: 1fr; gap: 20px; }
  .invitado-linea-wrapper { min-width: 260px; }
  .invitado-nombre-texto  { font-size: 32px; }
}

/* ================================================
   CEREZOS — sección countdown
   ================================================ */
.cerezo {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 10;
  /* Crítico: no afecta el layout */
  display: block;
  height: auto;
  object-fit: contain;
}
.cerezo.visible {
  opacity: 0.4;
}

/* Rama grande — esquina superior izquierda */
.cerezo-1 {
  width: clamp(160px, 18vw, 260px);
  top: 0px;
  left: 0px;
  transform-origin: top left;
}

/* Flor izquierda debajo de cerezo-1 */
.cerezo-4 {
  width: clamp(55px, 7vw, 100px);
  bottom: 70px;
  left: 60px;
  transform: scaleX(-1) rotate(10deg);
}

/* Flor izquierda más abajo */
.cerezo-5 {
  width: clamp(45px, 5.5vw, 80px);
  bottom: 10px;
  left: 140px;
  transform: rotate(-8deg);
}

/* Flor derecha principal */
.cerezo-2 {
  width: clamp(70px, 8vw, 120px);
  bottom: 20px;
  right: 20px;
  transform: rotate(10deg);
}

/* Flor derecha media */
.cerezo-3 {
  width: clamp(60px, 7vw, 100px);
  bottom: 80px;
  right: 110px;
  transform: scaleX(-1) rotate(-5deg);
}

/* Flor derecha pequeña arriba */
.cerezo-6 {
  width: clamp(50px, 6vw, 85px);
  top: 50px;
  right: 40px;
  transform: rotate(20deg);
}

@media (max-width: 640px) {
  .cerezo-1 { width: 110px; left: 0px; top: 115px; }
  .cerezo-4 { width: 50px; left: 20px; bottom: 400px; }
  .cerezo-5 { width: 40px; left: 50px; bottom: 50px; }
  .cerezo-2 { width: 55px; right: 20px; bottom: 550px; }
  .cerezo-3 { width: 50px; right: 30px; bottom: 250px; }
  .cerezo-6 { width: 45px; right: 20px; top: 20px; }
  .cd-aro-wrapper:nth-child(3) {
    width: clamp(100px, 42vw, 170px);
  }
}

/* ================================================
   POSICIÓN INDIVIDUAL DEL CONTENIDO DE CADA ARO
   top: sube con menos %, baja con más %
   left: mueve izquierda con menos %, derecha con más %
   ================================================ */

/* ARO 1 — corazón izquierdo (días) */
.cd-aro-contenido-1 {
  top: 50%;
  left: 50%;
}

/* ARO 2 — aro grande hombre (horas) */
.cd-aro-contenido-2 {
  top: 50%;
  left: 50%;
}

/* ARO 3 — aro mujer (minutos) */
.cd-aro-contenido-3 {
  top: 49%;
  left: 50%;
}

/* ARO 4 — corazón derecho (segundos) */
.cd-aro-contenido-4 {
  top: 45%;
  left: 50%;
}

/* ================================================
   SHIMMER DEL SOBRE — brillo diagonal periódico
   ================================================ */
#sobre-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  border-radius: inherit;

  /* Máscara con la silueta del sobre */
  -webkit-mask-image: url('fotos/sobre-brillo-mask.webp');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: url('fotos/sobre-brillo-mask.webp');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;

  /* Gradiente champagne con centro muy brillante */
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 25%,
    rgba(241, 229, 172, 0.0)  33%,
    rgba(241, 229, 172, 0.35) 39%,
    rgba(255, 255, 255, 0.80) 45%,
    rgba(241, 229, 172, 0.35) 51%,
    rgba(241, 229, 172, 0.0)  57%,
    transparent 65%,
    transparent 100%
  );
  background-size: 300% 100%;
  background-position: 150% 0;

  /* Overlay para interactuar con la textura del sobre */
  mix-blend-mode: color-dodge;

  /* Glow sutil alrededor del haz */
  filter: blur(1.5px) brightness(1.1);

  animation: shimmerSobre 7.5s ease-in-out infinite;
}

@keyframes shimmerSobre {
  /* --- PRIMER BRILLO: izquierda → derecha --- */
  0%   { background-position: 150% 0; opacity: 0; }
  3%   { opacity: 1; }
  28%  { background-position: -50% 0; opacity: 1; }
  31%  { opacity: 0; }

  /* --- SEGUNDO BRILLO: derecha → izquierda --- */
  33%  { background-position: -50% 0; opacity: 0; }
  36%  { opacity: 1; }
  61%  { background-position: 150% 0; opacity: 1; }
  64%  { opacity: 0; }

  /* --- PAUSA de ~1.5 segundos (mitad de 3s) --- */
  64%  { background-position: 150% 0; opacity: 0; }
  82%  { background-position: 150% 0; opacity: 0; }
  100% { background-position: 150% 0; opacity: 0; }
}

/* ================================================
   IMAGEN CEREZO LAGO — formulario registro
   ================================================ */
.cerezo-lago-form {
  width: 120%;
  height: 300px; /* ← cambia este valor para modificar la altura de la imagen */
  object-fit: cover; /* recorta si la imagen no encaja en la proporción */
  object-fit: contain;
  opacity: 0.7;
  display: block;
  margin-top: -80px;
  margin-bottom: -100px;
  margin-left: -10%;
  border-radius: 8px;
  position: relative;
  z-index: 0;
}

/* ================================================
   SECCIÓN ITINERARIO — imagen sobre fondo
   ================================================ */
.seccion-itinerario {
  position: relative;
  background-color: #FAF5EF;
  background-size: cover;
  background-position: center;
  padding: 0;
  min-height: 900px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: visible;
}

.seccion-itinerario::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('fotos/itinerario-bg.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.8;
  z-index: 0;
}

.itinerario-img {
  position: relative;
  z-index: 1;
}

.itinerario-img {
  position: relative;
  z-index: 1;
  width: auto;
  height: 130%;
  max-height: 1000px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  margin-bottom: 0;
  margin-top: -13%;
}

@media (max-width: 640px) {
  .seccion-itinerario {
    min-height: 500px;
    overflow: visible;
  }

  #contenido-confirmados {
    overflow-x: clip; /* ← controla el desborde lateral desde el padre */
  }

  .itinerario-img {
    height: auto;          /* deja que el ancho controle el tamaño */
    width: 210%;           /* ← CAMBIA ESTE VALOR para hacer la imagen más grande */
    max-width: none;       /* permite que supere el 100vw */
    max-height: none;
    margin-top: -15%;      /* ← cuánto sobresale por arriba */
    position: relative;
    left: 3%;
    transform: translateX(-50%);
  }
}

/* ================================================
   SECCIÓN DETALLES VISUAL — carteles
   ================================================ */
.seccion-detalles-visual {
  position: relative;
  padding: 0 40px 60px 40px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden; /* permite que las sogas sobresalgan por arriba */
  min-height: 700px;
}

.seccion-detalles-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('fotos/detalles-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
  z-index: 0;
}

/* Escritorio: 3 carteles colgando desde arriba */
.carteles-escritorio {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  max-width: 1200px;
  margin-top: -100px; /* sube los carteles para que sobresalgan del borde superior */
}

.cartel-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  display: block;
  /* Parámetros para ajustar posición individual de cada cartel */
  position: relative;
  top: 0px; /* sube (negativo) o baja (positivo) cada cartel */
}

/* --- CARTEL 1 — vestimenta ---
   width: tamaño
   top: sube (negativo) o baja (positivo)
   margin-left: mueve izquierda (negativo) o derecha (positivo) */
.cartel-img-1 {
  width: 150%;
  top: 20px;
  margin-left: 30px;
}

/* --- CARTEL 2 — clima ---
   width: tamaño
   top: sube (negativo) o baja (positivo)
   margin-left: mueve izquierda (negativo) o derecha (positivo) */
.cartel-img-2 {
  width: 150%;
  top: -60px;
  margin-left: -80px;
}

/* --- CARTEL 3 — avisos ---
   width: tamaño
   top: sube (negativo) o baja (positivo)
   margin-left: mueve izquierda (negativo) o derecha (positivo) */
.cartel-img-3 {
  width: 150%;
  top: 100px;
  margin-left: -80px;
}

/* Dispositivo: 1 cartel centrado */
.carteles-dispositivo {
  display: none;
}

.cartel-img-d {
  width: 190%;
  max-width: 1500px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  margin-top: 0px;
}

@media (max-width: 640px) {
  .carteles-escritorio { display: none; }
  .carteles-dispositivo {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    width: 100%;
  }
}

/* ================================================
   SECCIÓN MESA DE REGALOS
   ================================================ */
.seccion-regalos {
  position: relative;
  padding: 72px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 600px;
  overflow: hidden;
  perspective: 1000px;
}

.regalos-fondo {
  position: absolute;
  inset: 0;
  background-image: url('fotos/mansion-bg.webp');
  background-size: cover;
  background-position: center;
  opacity: 1;                /* SIN transparencia */
  z-index: 0;
}

.regalos-eyebrow {
  position: relative;
  z-index: 2;
  font-weight: 700;          /* negrita */
}

.regalos-titulo {
  position: relative;
  z-index: 2;
  font-weight: 700;          /* negrita */
  color: var(--texto-light);
}

/* --- Escena central --- */
.regalo-escena {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 32px;
  width: 100%;

  /* Resplandor aplicado al padre para que la máscara no lo recorte */
  filter:
    drop-shadow(0 0 20px rgba(242, 224, 204, 1))
    drop-shadow(0 0 40px rgba(242, 224, 204, 0.8))
    drop-shadow(0 0 80px rgba(242, 224, 204, 0.6));
  transition: filter 0.4s ease;
}

/* Hover — resplandor aumentado en el padre */
.regalo-escena:has(.regalo-wrapper:not(.abierto):hover) {
  filter:
    drop-shadow(0 0 28px rgba(242, 224, 204, 0.95))
    drop-shadow(0 0 60px rgba(242, 224, 204, 0.7))
    drop-shadow(0 0 90px rgba(242, 224, 204, 0.4));
}

/* Al abrir — quitar resplandor del padre */
.regalo-escena:has(.regalo-wrapper.abierto) {
  filter: none;
}

/* --- Regalo clickeable --- */
.regalo-wrapper {
  position: relative;
  cursor: pointer;
  width: clamp(90px, 10vw, 130px);
  z-index: 3;

  /* Desplazamiento visual — mueve el bloque completo */
  margin-top: 55px;  /* ← sube/baja el regalo */
  margin-left: 10px; /* ← mueve izquierda/derecha el regalo */

  /* Máscara centrada y alineada con la imagen */
  -webkit-mask-image: url('fotos/regalo.webp');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center center;
  mask-image: url('fotos/regalo.webp');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center center;

  transition: transform 0.4s ease;
}

/* Shimmer como pseudo-elemento — se mueve con el wrapper */
.regalo-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;

  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 25%,
    rgba(255, 255, 255, 0.0)  33%,
    rgba(255, 255, 255, 0.25) 39%,
    rgba(255, 255, 255, 0.75) 45%,
    rgba(255, 255, 255, 0.25) 51%,
    rgba(255, 255, 255, 0.0)  57%,
    transparent 65%,
    transparent 100%
  );
  background-size: 300% 100%;
  background-position: 150% 0;
  mix-blend-mode: screen;
  filter: blur(1px) brightness(1.2);
  animation: shimmerRegalo 5s ease-in-out infinite;
}

/* Al abrir — quitar shimmer y cursor */
.regalo-wrapper.abierto {
  cursor: default;
  /* Quitar máscara para que regalo-abierto se vea sin recorte */
  -webkit-mask-image: none;
  mask-image: none;
}
.regalo-wrapper.abierto::after {
  display: none;
}

/* Hover escritorio — escala el wrapper completo */
.regalo-wrapper:not(.abierto):hover {
  transform: scale(1.2);
}

.regalo-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Imagen sin desplazamiento — se alinea perfectamente con la máscara */
.regalo-cerrado {
  display: block;
}

@keyframes shimmerRegalo {
  0%   { background-position: 150% 0; opacity: 0; }
  5%   { opacity: 1; }
  35%  { background-position: -50% 0; opacity: 1; }
  40%  { opacity: 0; }
  42%  { background-position: -50% 0; opacity: 0; }
  47%  { opacity: 1; }
  77%  { background-position: 150% 0; opacity: 1; }
  82%  { opacity: 0; }
  100% { background-position: 150% 0; opacity: 0; }
}

/* Móvil — palpitar en el wrapper, shimmer sincronizado */
@media (max-width: 640px) {
  .regalo-escena:has(.regalo-wrapper:not(.abierto)) {
    animation: palpitarEscena 2s ease-in-out infinite;
  }

  @keyframes palpitarEscena {
    0%, 100% {
      filter:
        drop-shadow(0 0 20px rgba(242, 224, 204, 1))
        drop-shadow(0 0 40px rgba(242, 224, 204, 0.8))
        drop-shadow(0 0 80px rgba(242, 224, 204, 0.6));
    }
    50% {
      filter:
        drop-shadow(0 0 35px rgba(242, 224, 204, 1))
        drop-shadow(0 0 70px rgba(242, 224, 204, 0.9))
        drop-shadow(0 0 120px rgba(242, 224, 204, 0.7));
    }
  }

  .regalo-wrapper:not(.abierto) {
    animation: palpitarWrapper 2s ease-in-out infinite;
  }

  @keyframes palpitarWrapper {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.15); }
  }

  /* Shimmer más rápido proporcional al palpitar */
  .regalo-wrapper:not(.abierto)::after {
    animation: shimmerRegalo 2s ease-in-out infinite;
  }

  @keyframes palpitarRegalo {
    0%, 100% {
      transform: scale(1);
      filter:
        drop-shadow(0 0 20px rgba(242, 224, 204, 1))
        drop-shadow(0 0 40px rgba(242, 224, 204, 0.8))
        drop-shadow(0 0 80px rgba(242, 224, 204, 0.6));
    }
    50% {
      transform: scale(1.15);
      filter:
        drop-shadow(0 0 35px rgba(242, 224, 204, 1))
        drop-shadow(0 0 70px rgba(242, 224, 204, 0.9))
        drop-shadow(0 0 120px rgba(242, 224, 204, 0.7));
    }
  }
}

/* --- Tabloide — aparece ENCIMA del regalo, centrado --- */
.tabloide-wrapper {
  position: absolute;
  top: 50%;                          /* centrado vertical */
  left: 50%;                         /* centrado horizontal */
  transform: translate(-50%, -50%);  /* ajuste perfecto al centro */
  width: clamp(560px, 80vw, 650px); /* ← TAMAÑO del tabloide: cambia este valor */
  display: none;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.tabloide-wrapper.visible {
  display: flex;
}

.tabloide-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  opacity: 0;
  transform: scale(0) rotateY(90deg);
  filter:
    drop-shadow(0 0 40px rgba(242, 224, 204, 0.95))
    drop-shadow(0 0 100px rgba(242, 224, 204, 0.8))
    drop-shadow(0 0 160px rgba(242, 224, 204, 0.5));
}

.tabloide-img.show-tabloide {
  animation: tabloideSale 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes tabloideSale {
  0% {
    opacity: 0;
    transform: scale(0) rotateY(90deg);
    filter: drop-shadow(0 0 0px rgba(242, 224, 204, 0));
  }
  100% {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
    filter:
      drop-shadow(0 0 40px rgba(242, 224, 204, 0.95))
      drop-shadow(0 0 100px rgba(242, 224, 204, 0.8))
      drop-shadow(0 0 160px rgba(242, 224, 204, 0.5));
  }
}

/* Contenido sobre el tabloide */
.tabloide-contenido {
  position: absolute;
  top: 47%;                    /* ← SUBE con menos %, BAJA con más % */
  left: 50%;                   /* ← mueve izquierda con menos %, derecha con más % */
  transform: translate(-50%, -50%);
  width: 55%;                  /* ← ancho del contenido relativo al tabloide */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 11;
}

/* Nombre titular — madera oscura */
.tabloide-contenido .colectivo-titular-nombre {
  color: #3D1F0A;
  font-size: 28px;
  font-weight: 700;
  font-style: normal;
}

/* Línea divisoria — madera oscura */
.tabloide-contenido .colectivo-titular-header {
  border-bottom: 1px solid #3D1F0A;
  width: 120%;
  padding-bottom: 10px;
  text-align: center;
}

/* Recuadro de datos — gris claro con multiply */
.tabloide-contenido .colectivo-datos {
  background: rgba(136, 98, 63, 0.55);
  mix-blend-mode: multiply;
  border-radius: 10px;
  padding: 14px 20px;
  width: 140%;
}

/* Textos en negrita dentro del recuadro */
.tabloide-contenido .colectivo-lbl {
  font-weight: 400;
  color: #2C1A08;
  font-size: 14px;
  letter-spacing: 2px;
}

.tabloide-contenido .colectivo-val {
  font-weight: 700;
  color: #2C1A08;
  font-size: 18px;
}

.tabloide-botones {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .regalo-wrapper   { width: clamp(80px, 30vw, 80px); }
  .tabloide-wrapper { width: 95%; }
  .tabloide-contenido { width: 80%; }
  .tabloide-botones { flex-direction: column; align-items: center; }
}

.regalos-subtitulo {
  position: relative;
  z-index: 2;
  font-family: 'Cormorant Garamond', serif;
  font-style: normal;
  font-weight: 300;
  font-size: clamp(15px, 1.8vw, 20px);
  color: #ffffff;
  max-width: 600px;
  margin: 0 auto 16px;
  margin-top: -40px;
  line-height: 1.2;
  opacity: 1;
}

/* Palpitar del regalo en móvil — solo táctil/sin cursor */
@media (max-width: 640px) {
  .regalo-cerrado {
    animation: palpitarRegalo 2s ease-in-out infinite;
  }

  @keyframes palpitarRegalo {
    0%, 100% {
      transform: scale(1);
      filter:
        drop-shadow(0 0 20px rgba(242, 224, 204, 1))
        drop-shadow(0 0 40px rgba(242, 224, 204, 0.8))
        drop-shadow(0 0 80px rgba(242, 224, 204, 0.6));
    }
    50% {
      transform: scale(1.15);
      filter:
        drop-shadow(0 0 35px rgba(242, 224, 204, 1))
        drop-shadow(0 0 70px rgba(242, 224, 204, 0.9))
        drop-shadow(0 0 120px rgba(242, 224, 204, 0.7));
    }
  }

  /* Al abrir el regalo, detener el palpitar */
  .regalo-wrapper.abierto .regalo-cerrado {
    animation: none;
  }
}

@media (max-width: 640px) {

  /* Rotar el tabloide 90° */
  .tabloide-wrapper {
    width: clamp(500px, 85vw, 700px); /* ← ancho del wrapper en móvil */
    top: 20%;
  }

  .tabloide-img {
    transform-origin: center center;
  }

    .tabloide-img {
    width: 100%;
    height: 400px;  /* ← esto controla el ANCHO visual (porque está rotado 90°) */
    object-fit: fill;
  }

  .tabloide-img.show-tabloide {
    animation: tabloideSaleMovil 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  }

  @keyframes tabloideSaleMovil {
    0% {
      opacity: 0;
      transform: scale(0) rotateY(90deg) rotate(90deg);
    }
    100% {
      opacity: 1;
      transform: scale(1) rotateY(0deg) rotate(90deg); /* ← cambia 90deg para ajustar rotación */
      filter:
        drop-shadow(0 0 40px rgba(242, 224, 204, 0.95))
        drop-shadow(0 0 100px rgba(242, 224, 204, 0.8));
    }
  }

  /* Contenido del tabloide en columna vertical */
  .tabloide-contenido {
    top: 48%;          /* ← sube/baja el bloque de contenido */
    left: 50%;
    width: 40%;        /* ← ancho del contenido dentro del tabloide rotado */
    gap: 12px;          /* ← separación entre elementos */
    transform: translate(-50%, -50%) rotate(0deg); /* rota el contenido para compensar */
  }

  /* Datos en una sola columna vertical */
  .tabloide-contenido .colectivo-datos {
    width: 100%;       /* ← ancho del recuadro de datos */
    padding: 10px 14px; /* ← padding interior del recuadro */
  }

  .tabloide-contenido .colectivo-fila {
    flex-direction: column;  /* columna en vez de fila */
    align-items: center;
    gap: 2px;                /* ← espacio entre label y valor */
    margin-bottom: 8px;      /* ← espacio entre cada grupo banco/cuenta/cci */
  }

  .tabloide-contenido .colectivo-lbl {
    font-size: 15px;   /* ← tamaño del label (BANCO, N° DE CUENTA, CCI) */
  }

  .tabloide-contenido .colectivo-val {
    font-size: 18px;   /* ← tamaño del valor (BCP, número de cuenta) */
  }

  /* Nombre titular */
  .tabloide-contenido .colectivo-titular-nombre {
    font-size: 22px;   /* ← tamaño del nombre Alejandra Soto & Flavio Gonzales */
  }

  /* Línea divisoria */
  .tabloide-contenido .colectivo-titular-header {
    width: 100%;       /* ← ancho de la línea divisoria */
    margin-left: 0;
  }

  /* Botones en columna */
  .tabloide-botones {
    flex-direction: column;
    gap: 8px;          /* ← espacio entre botones */
    width: 100%;
  }

  .tabloide-botones .btn-copiar {
    font-size: 13px;   /* ← tamaño de texto de los botones */
    padding: 7px 12px; /* ← padding de los botones */
    width: 100%;
  }

  .regalos-subtitulo {
    font-size: 21px;       /* ← tamaño de letra */
    font-weight: 450;      /* ← grosor: 300 delgado, 400 normal, 700 negrita */
    line-height: 1.1;      /* ← separación entre líneas */
    max-width: 100%;        /* ← ancho máximo del bloque de texto */
    margin-top: -30px;     /* ← sube (más negativo) o baja (menos negativo o positivo) */
    margin-bottom: 8px;    /* ← espacio debajo del texto antes del regalo */
    padding: 0 10px;       /* ← margen izquierdo y derecho */
    letter-spacing: 0px;   /* ← separación entre letras */
    opacity: 0.9;          /* ← transparencia: 1 opaco, 0 invisible */
    text-align: center;    /* ← alineación: center, left, right */
  }
}

/* ================================================
   SHIMMER GALERÍA
   ================================================ */
#galeria-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;

  /* Máscara sincronizada con el background-image del contenedor */
  -webkit-mask-image: url('fotos/galeria-brillo.webp');
  -webkit-mask-size: cover;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center center;
  mask-image: url('fotos/galeria-brillo.webp');
  mask-size: cover;
  mask-repeat: no-repeat;
  mask-position: center center;

  /* Brillo blanco puro para esta sección oscura */
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 25%,
    rgba(255, 255, 255, 0.0)  33%,
    rgba(255, 255, 255, 0.25) 39%,
    rgba(255, 255, 255, 0.75) 45%,
    rgba(255, 255, 255, 0.25) 51%,
    rgba(255, 255, 255, 0.0)  57%,
    transparent 65%,
    transparent 100%
  );
  background-size: 300% 100%;
  background-position: 150% 0;
  mix-blend-mode: screen;   /* screen funciona mejor que color-dodge sobre fondos oscuros */
  filter: blur(2px) brightness(1.2);
  animation: shimmerGaleria 8s ease-in-out infinite;
}

@keyframes shimmerGaleria {
  0%   { background-position: 150% 0; opacity: 0; }
  3%   { opacity: 1; }
  28%  { background-position: -50% 0; opacity: 1; }
  31%  { opacity: 0; }
  33%  { background-position: -50% 0; opacity: 0; }
  36%  { opacity: 1; }
  61%  { background-position: 150% 0; opacity: 1; }
  64%  { opacity: 0; }
  64%  { background-position: 150% 0; opacity: 0; }
  82%  { background-position: 150% 0; opacity: 0; }
  100% { background-position: 150% 0; opacity: 0; }
}

/* ================================================
   SHIMMER REGALO
   ================================================ */
.regalo-shimmer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;

  -webkit-mask-image: url('fotos/regalo.webp');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: url('fotos/regalo.webp');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;

  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 25%,
    rgba(241, 229, 172, 0.0)  33%,
    rgba(241, 229, 172, 0.35) 39%,
    rgba(255, 255, 255, 0.80) 45%,
    rgba(241, 229, 172, 0.35) 51%,
    rgba(241, 229, 172, 0.0)  57%,
    transparent 65%,
    transparent 100%
  );
  background-size: 300% 100%;
  background-position: 150% 0;
  mix-blend-mode: color-dodge;
  filter: blur(1px) brightness(1.1);
  animation: shimmerRegalo 5s ease-in-out infinite;
}

/* Al abrir el regalo, detener el shimmer */
.regalo-wrapper.abierto .regalo-shimmer {
  display: none;
}

@keyframes shimmerRegalo {
  0%   { background-position: 150% 0; opacity: 0; }
  5%   { opacity: 1; }
  35%  { background-position: -50% 0; opacity: 1; }
  40%  { opacity: 0; }
  42%  { background-position: -50% 0; opacity: 0; }
  47%  { opacity: 1; }
  77%  { background-position: 150% 0; opacity: 1; }
  82%  { opacity: 0; }
  100% { background-position: 150% 0; opacity: 0; }
}

/* ================================================
   SECCIÓN ÁLBUM COMPARTIDO
   ================================================ */
.seccion-album-compartido {
  position: relative;
  background: var(--cream);
  padding: 60px 40px 0px; /* ← padding-bottom en 0 para que la sección termine donde el photoprop */
  overflow: hidden;
  text-align: center;
}

/* Flores de esquina */
.album-borde {
  position: absolute;
  width: clamp(200px, 30vw, 300px);
  height: auto;
  object-fit: contain;
  top: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0.8;
}
.album-borde-izq {
  left: 0;
}
.album-borde-der {
  right: 0;
  transform: scaleX(-1); /* espejo horizontal */
}

/* Textos superiores */
.album-header {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto 32px;
}
.album-camara {
  font-size: 32px;           /* ← tamaño del emoticon */
  line-height: 1;
  margin-bottom: 12px;       /* ← espacio entre el emoticon y el texto de abajo */
  margin-top: -20px;         /* ← sube (más negativo) o baja (menos negativo) respecto al título */
}
.album-header .seccion-titulo {
  margin-bottom: 12px;
}
.album-header .album-texto {
  font-size: 14px;
  color: var(--texto-mid);
  line-height: 1.6;
}

/* Escena visual */
.album-escena {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
}

/* Pergola — fondo de la escena */
.album-pergola {
  position: absolute;
  bottom: 0;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 180%;           /* ← ancho de la pergola */
  max-width: 1100px;
  height: auto;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
}

/* Photoprop wrapper — lado izquierdo */
.album-photoprop-wrapper {
  position: relative;
  z-index: 3;
  width: clamp(300px, 30vw, 400px);  /* ← tamaño del photoprop */
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 2%;
  margin-bottom: 0;
}

.album-photoprop {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* QR dentro del marco polaroid */
.album-qr-inner {
  position: absolute;
  top: 26%;          /* ← sube/baja el QR dentro del marco */
  left: 50.5%;
  transform: translateX(-50%);
  width: 45%;        /* ← tamaño del QR relativo al photoprop */
}
.album-qr-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

/* Botón sobre el photoprop */
.album-btn {
  position: absolute;
  bottom: 15%;        /* ← sube/baja el botón */
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 12px;
  padding: 10px 17px;
  z-index: 4;
}

/* Firma Alejandra & Flavio — lado derecho */
.album-firma {
  position: relative;
  z-index: 3;
  text-align: right;
  flex: 1;
  padding: 0 20px 40px 40px;
}
.album-firma-nombres {
  font-family: 'ArmaniHerlinda', 'Cormorant Garamond', serif;
  font-style: normal;
  font-size: clamp(20px, 4vw, 40px);
  color: var(--texto-dark);
  line-height: 0.5;
  margin-bottom: 0px;
}
.album-firma-fecha {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(10px, 3vw, 30px);
  color: var(--texto-dark);
  letter-spacing: 2px;
  margin-bottom: 7px;
}
.album-firma .album-subtexto {
  font-size: 13px;
  color: var(--texto-mid);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: -20px;
}

/* Altura mínima de la escena para que la pergola se vea */
.album-escena {
  min-height: clamp(280px, 40vw, 480px);
  padding-bottom: 0;
  margin-bottom: 0;
}

/* ---- MÓVIL ---- */
@media (max-width: 640px) {
  .seccion-album-compartido { padding: 40px 20px 24px; } /* ← cambia 32px para ajustar espacio debajo del botón */

  .album-borde { width: 120px; }

  .album-escena {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    min-height: auto;
  }

  .album-pergola {
    position: relative;
    left: -6%;
    transform: none;
    width: 300%;
    margin-bottom: -150px;
    margin-top: -70px;
  }

  .album-photoprop-wrapper {
    width: 80%;
    margin-top: -180px;
  }

  .album-firma {
    text-align: center;
    padding: 0 0 20px;
  }
}

/* ================================================
   ÁLBUM COMPARTIDO — VERSIÓN MÓVIL
   ================================================ */
@media (max-width: 640px) {

  /* 1) Subtexto sube al header, debajo del texto principal */
  .album-subtexto-movil {
    display: block;            /* visible solo en móvil */
    font-size: 12px;           /* ← tamaño del texto */
    color: var(--texto-mid);
    font-style: italic;
    line-height: 1.5;
    margin-top: 15px;           /* ← espacio encima */
    margin-bottom: 0;
    text-align: center;
  }

  /* Ocultar el subtexto original del lado derecho en móvil */
  .album-firma .album-subtexto {
    display: none;
  }

  /* 2) Firma y fecha ENCIMA del photoprop — posición absoluta */
  .album-firma {
    position: absolute;        /* se posiciona sobre el photoprop */
    z-index: 10;
    text-align: center;
    padding: 0;

    /* ← ajusta estas coordenadas para mover la firma */
    top: 77%;                  /* ← sube/baja: menos % sube, más % baja */
    left: 51%;                 /* ← centrado horizontal */
    transform: translateX(-50%);
    width: 70%;                /* ← ancho del bloque de firma */
  }

  .album-firma-nombres {
    font-size: 30px;           /* ← tamaño del nombre */
    line-height: 1;
    margin-bottom: 0px;        /* ← espacio entre nombre y fecha */
    color:#2C1A08;          /* ← color del nombre en móvil */
  }

  .album-firma-fecha {
    font-size: 20px;           /* ← tamaño de la fecha */
    color: #2C1A08;       /* ← color de la fecha en móvil */
    letter-spacing: 2px;
    margin-bottom: 30%;        /* ← espacio debajo de la fecha */
  }

  /* 2) Botón al pie de la sección */
    .album-btn-movil {
    display: block;
    margin: 24px auto 0; /* ← el primer valor (24px) es el espacio entre pergola y botón */    position: relative;
    z-index: 6;
    text-align: center;
    width: fit-content;

    /* Hereda estilos de .btn-drive */
    background: #C9897A;
    color: #fff;
    border-radius: 24px;
    padding: 12px 40px;        /* ← tamaño interno del botón */
    font-size: 12px;           /* ← tamaño del texto del botón */
    letter-spacing: 1px;
    text-decoration: none;
    font-family: 'Jost', sans-serif;
    transition: background 0.2s;
  }
  .album-btn-movil:hover { background: #a56f63; }

  /* Ocultar el botón original en móvil */
  .album-btn {
    display: none;
  }

  /* Sección necesita position relative para que la firma se posicione */
  .seccion-album-compartido {
    position: relative;
  }

  /* Escena necesita position relative para anclar la firma */
  .album-escena {
    position: relative;
  }
}

/* En escritorio ocultar los elementos exclusivos de móvil */
@media (min-width: 641px) {
  .album-subtexto-movil { display: none; }
  .album-btn-movil      { display: none; }
}

/* ================================================
   ANIMACIONES DE ENTRADA — SECCIONES DINÁMICAS
   ================================================ */

/* 1) ITINERARIO — entra desde la izquierda */
.itinerario-img {
  transform: translateX(-60px);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 1.0s ease;
}
.itinerario-img.animar {
  transform: translateX(0);
  opacity: 1;
}

/* 2) CARTELES — caen desde arriba con desvanecimiento */
.cartel-img-1,
.cartel-img-2,
.cartel-img-3,
.cartel-img-d {
  opacity: 0;
  transform: translateY(-60px) rotate(var(--rot, 0deg));
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cartel-img-1.animar,
.cartel-img-2.animar,
.cartel-img-3.animar,
.cartel-img-d.animar {
  opacity: 1;
  transform: translateY(0) rotate(var(--rot, 0deg));
}

/* 3) MANSION — zoom out al entrar */
.regalos-fondo {
  transform: scale(1.15);
  transition: transform 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.regalos-fondo.animar {
  transform: scale(1);
}

/* 4) ÁLBUM — entradas individuales */
.album-borde-izq,
.album-borde-der {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.album-borde-izq.animar,
.album-borde-der.animar {
  opacity: 0.8;
}

.album-pergola {
  opacity: 0;
  transform: translateY(60px) translateX(-50%);
  transition: opacity 0.9s ease,
              transform 1.0s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.album-pergola.animar {
  opacity: 1;
  transform: translateY(0) translateX(-50%);
}

/* En móvil la pergola no usa translateX(-50%) */
@media (max-width: 640px) {
  .album-pergola {
    transform: translateY(60px);
  }
  .album-pergola.animar {
    transform: translateY(0);
  }
}

.album-photoprop-wrapper {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 0.9s ease,
              transform 1.0s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.album-photoprop-wrapper.animar {
  opacity: 1;
  transform: translateX(0);
}

/* QR, botón, firma — aparecen tras el photoprop */
.album-qr-inner,
.album-btn,
.album-btn-movil,
.album-firma {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.album-qr-inner.animar,
.album-btn.animar,
.album-btn-movil.animar,
.album-firma.animar {
  opacity: 1;
}

/* 5) CONTACTO — elementos suben con desvanecimiento */
.contacto-card > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.contacto-card > *.animar {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   SECCIÓN PASES — escritura de nombre + mariposas
   ================================================ */
.invitado-nombre-texto {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  font-family: 'Dancing Script', cursive;
  font-size: 46px;
  color: #000000 !important;  /* ← color tinta negra */
  white-space: nowrap;
  overflow: visible;
  width: auto;
  opacity: 1;
}

.mariposa-voladora {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  image-rendering: auto;
  will-change: transform, opacity;
}

/* ================================================
   DESACTIVAR AUTODETECCIÓN DE NÚMEROS EN IOS
   ================================================ */
.contacto-numero,
.colectivo-val {
  -webkit-user-select: text;
  user-select: text;
}

.contacto-numero a,
.colectivo-val a {
  color: inherit !important;
  text-decoration: none !important;
  pointer-events: none;
}

/* ================================================
   BLOQUEO VISUAL DE ORIENTACIÓN HORIZONTAL
   ================================================ */
#orientacion-aviso {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--oscuro);
  color: var(--nude);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  gap: 20px;
}

@media (max-width: 900px) and (orientation: landscape) {
  #orientacion-aviso {
    display: flex;
  }
  body {
    overflow: hidden !important;
  }
}

.orientacion-icono {
  font-size: 60px;
  animation: rotarIcono 2s ease-in-out infinite;
}

@keyframes rotarIcono {
  0%, 100% { transform: rotate(0deg); }
  50%       { transform: rotate(-90deg); }
}

.orientacion-texto {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--nude);
  line-height: 1.6;
}

.orientacion-subtexto {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rose);
  opacity: 0.8;
}