/* =============================================
   XV AÑOS — TEMA MEXICANO/VAQUERO
   ============================================= */

/* ---- Variables globales ---- */
:root {
  --rojo:        #8B1010;  /* crimson oscuro */
  --oro:         #C8780A;  /* ámbar antiguo */
  --negro:       #1A1A1A;
  --hueso:       #F0E5C8;  /* pergamino cálido */
  --hueso-dk:    #D8C9A0;
  --cafe:        #2A1208;  /* madera oscura */

  --font-titulo: 'Rye', serif;
  --font-script: 'Kaushan Script', cursive;
  --font-body:   'Lato', sans-serif;

  --transition:  0.4s ease;
  --sombra-oro:  0 4px 16px rgba(120, 60, 5, 0.30);
  --sombra-deep: 0 8px 32px rgba(0, 0, 0, 0.65);

  /* Grain de película — 5% opacidad, tile 200px, stitched */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' seed='15' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)' opacity='0.05'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  /* Fondo dorado fijo — visible en los laterales del wrapper en desktop */
  background-color: #0d0a06;
  background-image:
    radial-gradient(ellipse at 50% 50%, transparent 32%, rgba(0,0,0,0.60) 100%),
    linear-gradient(rgba(0,0,0,0.22), rgba(0,0,0,0.22)),
    url('assets/img/texturas/ranchito.webp');
  background-attachment: fixed, fixed, fixed;
  background-size: auto, auto, 100% 100%;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  color: var(--negro);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Overlay fijo para variar el fondo lateral por sección */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.9s ease;
  z-index: -1;
  pointer-events: none;
}

body.lateral-muted::before {
  background: rgba(0, 0, 0, 0.52); /* oscurece el dorado en secciones sobrias */
}

/* Canvas de rosas negras — fijo, sobre todo el scroll */
#roseCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  /* filter eliminado: el negro se pre-procesa en JS (offscreen canvas) evitando
     el costo de compositing que filter: brightness(0) tiene en móvil */
}

/* Columna central de invitación */
.invitation-wrapper {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  background-color: #EFE5D0;
  box-shadow:
    -12px 0 60px rgba(0, 0, 0, 0.75),
     12px 0 60px rgba(0, 0, 0, 0.75);
  min-height: 100vh;
}

.video-fondo-flores {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 100svh;
  overflow: clip;
  z-index: 0;
  pointer-events: none;
}
.video-fondo-flores-media {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  object-fit: cover;
  display: block;
}

/* Canvas de partículas global — fijo, sobre todo el contenido */
#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* =============================================
   PANTALLA DE APERTURA — HERO
   ============================================= */

.envelope-screen {
  position: fixed;
  inset: 0;
  background-image: url('assets/img/fondo-hero.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: #1C0E0E;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow: hidden;
  outline: none;
}

.envelope-screen:focus-visible { outline: 3px solid var(--oro); outline-offset: -3px; }
.envelope-screen.is-opening    { pointer-events: none; }
.envelope-screen.is-hidden     { pointer-events: none; }

/* Canvas de partículas */
.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
  mix-blend-mode: screen;
  opacity: 0.55;
}

/* ---- Rosas decorativas ---- */
.hero-rosa {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  line-height: 1;
  user-select: none;
}

.hero-rosa--tc {
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.8rem;
  filter: drop-shadow(0 3px 8px rgba(100,10,25,0.35));
}

.hero-rosa--ml {
  top: 50%;
  left: -10px;
  transform: translateY(-50%) rotate(12deg);
  font-size: 3.2rem;
  filter: drop-shadow(0 4px 10px rgba(80,5,18,0.30));
}

.hero-rosa--mr {
  top: 50%;
  right: -10px;
  transform: translateY(-50%) rotate(-12deg) scaleX(-1);
  font-size: 3.2rem;
  filter: drop-shadow(0 4px 10px rgba(80,5,18,0.30));
}

.hero-rosa--bl {
  bottom: -12px;
  left: -18px;
  font-size: 4.8rem;
  transform: rotate(18deg);
  filter: drop-shadow(0 6px 14px rgba(80,5,18,0.35));
}

.hero-rosa--br {
  bottom: -12px;
  right: -18px;
  font-size: 4.8rem;
  transform: rotate(-18deg) scaleX(-1);
  filter: drop-shadow(0 6px 14px rgba(80,5,18,0.35));
}

/* ---- Contenido hero ---- */
.hero-content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 2rem 1.5rem;
  gap: 0.3rem;
  width: 100%;
  max-width: 430px;
}

.hero-eyebrow {
  font-family: 'Cinzel', serif;
  color: rgba(240, 229, 200, 0.80);
  font-size: clamp(0.58rem, 2.2vw, 0.72rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Separador línea + corazón */
.hero-hline-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(160px, 44vw);
  margin: 0.05rem 0;
}

.hero-hline {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(150,110,20,0.55), transparent);
}

.hero-hline-heart {
  color: rgba(150,110,20,0.6);
  font-size: 0.5rem;
}

/* Nombre — gradiente dorado metálico sobre fondo pergamino */
.hero-name {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(4.5rem, 24vw, 7.5rem);
  line-height: 1.25;
  padding: 0.1em 0;
  background: linear-gradient(160deg, #7a3808 5%, #C8780A 25%, #F0B820 50%, #C8780A 75%, #7a3808 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 5px rgba(90,50,0,0.35));
  animation: hero-name-shimmer 4s ease-in-out infinite;
  position: relative;
}

.hero-name::before { display: none; }

@keyframes hero-name-shimmer {
  0%, 100% { filter: drop-shadow(0 2px 5px rgba(100,40,0,0.45)); }
  50%       { filter: drop-shadow(0 2px 14px rgba(200,120,10,0.60)) brightness(1.08); }
}

/* XV AÑOS */
.hero-xv-anos {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.3rem, 5.5vw, 1.8rem);
  font-weight: 700;
  color: var(--rojo);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-orn {
  color: rgba(200,120,10,0.80);
  font-size: 0.65em;
  vertical-align: middle;
}

/* Año */
.hero-anyo {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.95rem, 3.5vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.55em;
  color: rgba(200,120,10,0.90);
  margin-top: 0.05rem;
}

/* ---- Selector de idioma ---- */
.lang-selector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin: 0.55rem 0 0.65rem;
}

.lang-prompt {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200,120,10,0.85);
  font-weight: 600;
}

.lang-buttons {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
}

.lang-btn {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.52rem 1.15rem;
  border: 1.5px solid rgba(200,120,10,0.65);
  border-radius: 5px;
  background: #580A0E;
  color: var(--hueso);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.lang-btn:hover {
  background: #6E1010;
  border-color: rgba(200,120,10,0.95);
}

.lang-btn.is-active {
  background: rgba(200,120,10,0.20);
  border-color: rgba(200,120,10,0.95);
  color: var(--hueso);
  font-weight: 700;
}

/* ---- Botón CTA ---- */
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  padding: 0.65rem 2.2rem;
  background: #580A0E;
  border: 1.5px solid rgba(200,120,10,0.65);
  border-radius: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.22s, border-color 0.22s, box-shadow 0.22s;
  box-shadow: 0 4px 18px rgba(80,10,10,0.55), 0 0 0 1px rgba(200,120,10,0.12);
  width: min(290px, 82vw);
  animation: cta-halo 2.6s ease-in-out infinite;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.5rem, 5.5vw, 1.85rem);
  color: #F0B820;
  text-shadow: 0 0 10px rgba(200,120,10,0.45);
  line-height: 1.2;
}

.hero-cta::before {
  content: "❧ ♥ ❧";
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.82rem;
  color: rgba(200,120,10,0.65);
  line-height: 1;
  display: block;
  text-shadow: none;
}

.hero-cta::after {
  content: "❧ ♦ ❧";
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.82rem;
  color: rgba(200,120,10,0.65);
  line-height: 1;
  display: block;
  text-shadow: none;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  background: #6E1010;
  border-color: rgba(200,120,10,0.9);
  outline: none;
}

@keyframes cta-halo {
  0%, 100% {
    box-shadow: 0 4px 18px rgba(80,10,10,0.55), 0 0  0px rgba(200,120,10,0);
  }
  50% {
    box-shadow: 0 4px 24px rgba(80,10,10,0.70), 0 0 22px rgba(200,120,10,0.22);
  }
}

.hero-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  animation: none;
}


/* hfd-* reemplazado por bv-fecha-* en SECCIÓN 1 */

/* =============================================
   PANTALLA DE VIDEO
   ============================================= */

.video-screen {
  position: fixed;
  inset: 0;
  background: #000;
  display: none;          /* JS lo activa en el momento correcto */
  align-items: center;
  justify-content: center;
  z-index: 1001;
  overflow: hidden;
}

.transition-video {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: auto;   /* respeta el ratio nativo — vertical ocupa todo el alto */
  display: block;
  z-index: 0;
}

/* Canvas de pétalos sobre el video */
.petal-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
  z-index: 1;
}

/* Botón saltar video */
.skip-btn {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(197, 160, 89, 0.55);
  color: var(--oro);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0.7;
  transition: opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.skip-btn:hover,
.skip-btn:focus-visible {
  opacity: 1;
  border-color: var(--oro);
  background: rgba(0, 0, 0, 0.65);
  outline: none;
}

.skip-btn:active { transform: scale(0.96); }

/* Resplandor cálido al final del video */
.video-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 248, 220, 0.92) 0%,
    rgba(212, 175, 80, 0.6)  45%,
    rgba(255, 200, 80, 0.15) 100%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

/* =============================================
   CONTENIDO PRINCIPAL
   ============================================= */
.main-content {
  background: transparent;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.main-content.hidden {
  display: none;
}

.main-content.visible {
  display: block;
  animation: reveal-main 1s ease forwards;
}

@keyframes reveal-main {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* =============================================
   REPRODUCTOR FLOTANTE
   ============================================= */

/* Contenedor raíz — ancla en la esquina */
.music-widget {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  width: 44px;
  height: 44px;
}

/* Botón FAB */
.music-fab {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--rojo);
  border: 2px solid var(--oro);
  color: var(--oro);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sombra-deep);
  transition: transform 0.3s ease, background 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  font-size: 1.1rem;
}

.music-fab:hover,
.music-fab:active {
  transform: scale(1.12);
  background: #6E0C0C;
}

/* Iconos del FAB: nota, eq-bars, cerrar */
.fab-icon-note  { display: block; line-height: 1; }
.fab-eq-bars    { display: none; align-items: flex-end; gap: 2px; height: 16px; }
.fab-icon-close { display: none; line-height: 1; font-size: 0.85rem; }

.fab-eq-bars span {
  display: block;
  width: 3px;
  height: 3px;
  background: var(--oro);
  border-radius: 1px;
}

/* Reproduce + cerrado → eq bars */
.music-widget.is-playing:not(.is-open) .fab-icon-note  { display: none; }
.music-widget.is-playing:not(.is-open) .fab-eq-bars    { display: flex; }
.music-widget.is-playing:not(.is-open) .fab-eq-bars span { animation: eq-bar 0.7s ease-in-out infinite; }
.music-widget.is-playing:not(.is-open) .fab-eq-bars span:nth-child(2) { animation-delay: 0.18s; }
.music-widget.is-playing:not(.is-open) .fab-eq-bars span:nth-child(3) { animation-delay: 0.36s; }

/* Panel abierto → ✕ */
.music-widget.is-open .fab-icon-note  { display: none; }
.music-widget.is-open .fab-eq-bars    { display: none; }
.music-widget.is-open .fab-icon-close { display: block; }

/* Panel expandido */
.music-panel {
  position: absolute;
  bottom: calc(100% + 0.625rem);
  right: 0;
  width: 290px;
  background: #111111;
  border: 1px solid rgba(197, 160, 89, 0.4);
  border-radius: 16px;
  padding: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.75), 0 0 0 1px rgba(197,160,89,0.07);

  /* Cerrado */
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.music-widget.is-open .music-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Botón cerrar (top-right del panel) */
.music-panel-close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 18px;
  height: 18px;
  background: none;
  border: none;
  color: rgba(197,160,89,0.55);
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s ease;
}
.music-panel-close:hover { color: var(--oro); }

/* Mini-ícono decorativo */
.music-album-art {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--rojo) 0%, #5E0F1A 100%);
  border: 1.5px solid rgba(197,160,89,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--oro);
  box-shadow: 0 4px 14px rgba(0,0,0,0.45);
}

/* Body del panel */
.music-panel-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Título y artista */
.music-info { line-height: 1.25; }

.music-song-title {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--hueso);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 1rem;
}

.music-artist {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: rgba(197,160,89,0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Barra de progreso */
.music-progress-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.music-time {
  font-family: var(--font-body);
  font-size: 0.58rem;
  color: rgba(245,240,232,0.45);
  white-space: nowrap;
  min-width: 1.8em;
}
.music-time-right { text-align: right; }

.music-progress-track {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.music-progress-track:focus-visible { box-shadow: 0 0 0 2px var(--oro); }

.music-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--rojo), var(--oro));
  border-radius: 2px;
  pointer-events: none;
}

.music-progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--oro);
  box-shadow: 0 0 5px rgba(197,160,89,0.7);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.music-progress-track:hover .music-progress-thumb,
.music-widget.is-dragging .music-progress-thumb { opacity: 1; }

/* Fila de controles */
.music-controls-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Botón play/pause */
.music-play-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--rojo);
  border: 1.5px solid rgba(197,160,89,0.45);
  color: var(--oro);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}
.music-play-btn svg   { width: 15px; height: 15px; }
.music-play-btn:hover { transform: scale(1.1); background: #8a1424; }

.icon-play  { display: block; }
.icon-pause { display: none;  }

.music-widget.is-playing .icon-play  { display: none;  }
.music-widget.is-playing .icon-pause { display: block; }

/* Ecualizador en panel */
.music-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.music-widget.is-playing .music-eq { opacity: 1; }

.music-eq span {
  display: block;
  width: 3px;
  height: 3px;
  background: var(--oro);
  border-radius: 1px;
}
.music-widget.is-playing .music-eq span { animation: eq-bar 0.7s ease-in-out infinite; }
.music-widget.is-playing .music-eq span:nth-child(2) { animation-delay: 0.14s; }
.music-widget.is-playing .music-eq span:nth-child(3) { animation-delay: 0.28s; }
.music-widget.is-playing .music-eq span:nth-child(4) { animation-delay: 0.07s; }

@keyframes eq-bar {
  0%, 100% { height: 3px;  }
  50%       { height: 13px; }
}

/* =============================================
   SECCIONES — BASE
   ============================================= */
.section {
  padding: 3.5rem 1.5rem;
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* =============================================
   SEPARADOR ORNAMENTAL ENTRE SECCIONES
   ============================================= */
.separador-seccion {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 1.5rem;
}

.sep-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(200, 120, 10, 0.60), transparent);
}

.sep-rombo {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: var(--oro);
  transform: rotate(45deg);
  margin: 0 0.75rem;
  box-shadow: 0 0 6px rgba(197, 160, 89, 0.5);
}

.section-title {
  font-family: var(--font-titulo);
  color: var(--rojo);
  font-size: clamp(1.6rem, 6vw, 2rem);
  text-align: center;
  margin-bottom: 2rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--oro);
  margin: 0.45rem auto 0;
  border-radius: 2px;
}

/* =============================================
   SECCIÓN 1 — BIENVENIDA
   ============================================= */
.section-bienvenida {
  position: relative;
  background-color: #1a0d0a;
  background-image:
    var(--grain),
    linear-gradient(rgba(0,0,0,0.42), rgba(0,0,0,0.42)),
    url('assets/img/fondo-bienvenida.jpg');
  background-size: 200px 200px, cover, cover;
  background-position: 0 0, center, center;
  background-repeat: repeat, no-repeat, no-repeat;
  text-align: center;
  padding: 52px 1.5rem 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}

/* 1. Bendición */
.bv-bendicion {
  font-family: 'Lato', sans-serif;
  font-size: clamp(0.58rem, 2.4vw, 0.74rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.80);
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

/* 2. Foto con marco dorado ornamental */
.bv-foto-wrap {
  width: min(60%, 300px);
  aspect-ratio: 1 / 1;
  margin-top: 6rem;
  flex-shrink: 0;
}

.bv-foto-clip {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.bv-foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.bienvenida-marco {
  position: absolute;
  width: clamp(280px, 78vw, 370px);
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
}

/* 3. MIS XV */
.bv-mis-xv {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(0.95rem, 4.5vw, 1.3rem);
  letter-spacing: 0.28em;
  color: var(--oro);
  text-shadow: 0 2px 12px rgba(197,160,89,0.5);
  margin-top: auto;
  line-height: 1;
  margin-top: 8rem;
}

/* 4. AÑOS */
.bv-anos {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 8vw, 2.4rem);
  letter-spacing: 0.35em;
  color: var(--oro);
  text-shadow: 0 2px 16px rgba(197,160,89,0.5);
  line-height: 1.1;
  margin-bottom: 0;
}

/* 5. Nombre */
.bv-nombre {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3.8rem, 20vw, 6rem);
  line-height: 1.25;
  padding: 0.05em 0;
  color: #ffffff;
  text-shadow:
    0 2px 8px rgba(0,0,0,0.7),
    0 0 30px rgba(0,0,0,0.4);
  margin-bottom: 0.15rem;
}

/* 6. Rosa decorativa */
.bv-rosa {
  font-size: 1.8rem;
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* 7. Frase */
.bv-frase {
  font-family: 'Lato', sans-serif;
  font-size: clamp(0.58rem, 2.4vw, 0.74rem);
  font-style: italic;
  letter-spacing: 0.06em;
  color: rgba(245, 240, 232, 0.75);
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
  line-height: 1.85;
  margin-bottom: 0.9rem;
}

/* 8. Separador dorado */
.bv-sep {
  width: min(80%, 280px);
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(197,160,89,0.6), transparent);
  margin-bottom: 0.8rem;
}

/* 9. Fecha */
.bv-fecha {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.bv-fecha-sabado {
  font-family: 'Lato', sans-serif;
  font-size: clamp(0.52rem, 2.1vw, 0.68rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.65);
}

.bv-fecha-divider {
  width: 2px;
  height: 2.5rem;
  background: linear-gradient(to bottom, transparent, rgba(197,160,89,0.7), transparent);
  flex-shrink: 0;
}

.bv-fecha-dia {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 10vw, 3rem);
  color: var(--rojo);
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  line-height: 1;
}

.bv-fecha-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
}

.bv-fecha-mes {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.68rem, 2.7vw, 0.88rem);
  letter-spacing: 0.14em;
  color: var(--oro);
  text-transform: uppercase;
}

.bv-fecha-anio {
  font-family: 'Lato', sans-serif;
  font-size: clamp(0.52rem, 2.1vw, 0.68rem);
  letter-spacing: 0.22em;
  color: rgba(245, 240, 232, 0.65);
}

/* =============================================
   SECCIÓN 2 — PROGRAMA / COUNTDOWN
   ============================================= */
.section-programa {
  background: transparent;
  justify-content: flex-start;
  padding-top: 3.5rem;
  overflow: visible;
}

.event-date-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.event-day {
  font-family: var(--font-titulo);
  color: var(--cafe);
  font-size: clamp(4rem, 18vw, 5.5rem);
  line-height: 1;
}

.event-date-detail {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.event-month {
  font-family: var(--font-titulo);
  color: var(--cafe);
  font-size: clamp(1.2rem, 5vw, 1.6rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.event-year {
  font-family: var(--font-body);
  color: var(--oro);
  font-size: 1.5rem;
  letter-spacing: 0.18em;
}

.event-weekday {
  font-family: var(--font-body);
  color: var(--cafe);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ── Cabecera countdown rediseñada ── */
.cr-titulo {
  text-align: center;
  line-height: 1;
  margin-top: 1rem;
}

.cr-titulo-normal {
  display: block;
  font-family: 'Cinzel', 'Rye', serif;
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  font-weight: 600;
  color: var(--rojo);
  letter-spacing: 0.08em;

}

.cr-titulo-script {
  display: block;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(4.5rem, 16vw, 6rem);
  line-height: 1.1;
  background: linear-gradient(160deg, #C8780A 15%, #F4C040 45%, #C8780A 70%, #8A5010 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 2px rgba(60, 10, 10, 0.35));
  padding-right: 3rem;
}

.cr-separador {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 240px;
  margin: 8px auto 16px;
}

.cr-linea {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #C8780A, transparent);
}

.cr-corazon {
  color: #C8780A;
  font-size: 0.75rem;
}

.cr-fecha {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: -20px;
}

.cr-dia-num {
  font-family: 'Cormorant Garamond', 'Rye', serif;
  font-weight: 700;
  font-size: clamp(12rem, 18vw, 6rem);
  line-height: 0.9;
  color: var(--rojo);
  margin-top: -3rem;
}

.cr-fecha-detalle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.cr-semana {
  font-family: 'Cinzel', 'Lato', serif;
  font-size: 1rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rojo);
  padding-left: 1.5rem;
  font-weight: 600;
}

.cr-mes {
  font-family: 'Cinzel', 'Rye', serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 5vw, 1.7rem);
  letter-spacing: 0.12em;
  color: var(--rojo);
}

.cr-anio {
  font-family: 'Cinzel', 'Lato', serif;
  font-size: 1rem;
  letter-spacing: 0.18em;
  color: #C8780A;
  padding-left: 1.5rem;
  font-weight: 600;
}

.cr-leyenda { text-align: center; margin-bottom: 16px; }

.cr-leyenda-caps {
  font-family: 'Cinzel', 'Lato', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: #A07010;
}

.cr-leyenda-script {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  color: var(--rojo);
  margin-top: -0.4rem;
  letter-spacing: 0.10em;
  font-weight: 550;
}

/* Caja del countdown */
.countdown-box {
  position: relative; /* ancla para los destellos */
  background: var(--negro);
  border: 2px solid var(--oro);
  border-radius: 8px;
  padding: 1.5rem 1rem 1.25rem;
  text-align: center;
  margin-bottom: 2.5rem;
  box-shadow: var(--sombra-deep);
  overflow: hidden;   /* contiene los sparkles dentro del borde redondeado */
}

.countdown-label {
  font-family: var(--font-body);
  color: rgba(245,240,232,0.6);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* ── Countdown simple ── */
.cd-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.cd-num {
  font-family: 'Cormorant Garamond', 'Rye', serif;
  font-weight: 700;
  font-size: clamp(3.6rem, 14vw, 5rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg,
    #FFF8DC 0%, #F4D98C 30%,
    #D4AF37 65%, #A07820 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.02em;
  display: inline-block;
}

.cd-lbl {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.65rem, 2vw, 0.85rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 217, 140, 0.75);
  font-weight: 600;
}

.cd-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  color: rgba(212, 175, 55, 0.65);
  align-self: flex-start;
  margin-top: 2rem;
  line-height: 1;
}

@keyframes cd-bounce {
  0%   { transform: scale(1);    }
  35%  { transform: scale(1.22); }
  65%  { transform: scale(0.95); }
  100% { transform: scale(1);    }
}

.cd-num.cd-bounce {
  animation: cd-bounce 0.35s ease-out forwards;
}

/* ── Destellos tipo estrella (sparkles) ── */
.sparkle {
  position: absolute;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  /* --sp-rot y --sp-sz se inyectan por JS */
  transform: scale(0) rotate(var(--sp-rot, 0deg));
}

/* Brazo horizontal del destello */
.sp-h {
  position: absolute;
  width: 100%;
  height: 1.5px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  border-radius: 50%;
  background: linear-gradient(
    to right,
    transparent      0%,
    rgba(212,175,80,0.85) 28%,
    rgba(255,238,150,1)   50%,
    rgba(212,175,80,0.85) 72%,
    transparent     100%
  );
  box-shadow: 0 0 4px rgba(212,175,80,0.55);
}

/* Brazo vertical del destello */
.sp-v {
  position: absolute;
  height: 100%;
  width: 1.5px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(
    to bottom,
    transparent       0%,
    rgba(212,175,80,0.85) 28%,
    rgba(255,238,150,1)   50%,
    rgba(212,175,80,0.85) 72%,
    transparent      100%
  );
  box-shadow: 0 0 4px rgba(212,175,80,0.55);
}

@keyframes sparkle-life {
  0%   { opacity: 0;    transform: scale(0.15) rotate(var(--sp-rot, 0deg)); }
  22%  { opacity: 0.95; transform: scale(1)    rotate(var(--sp-rot, 0deg)); }
  68%  { opacity: 0.75; transform: scale(0.9)  rotate(var(--sp-rot, 0deg)); }
  100% { opacity: 0;    transform: scale(0.2)  rotate(var(--sp-rot, 0deg)); }
}


/* Encabezado de programa */
.timeline-heading {
  font-family: var(--font-titulo);
  color: var(--hueso);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.5rem;
}

.timeline-heading + .cr-separador {
  max-width: 180px;
  margin-bottom: 0;
}

/* Tarjetas de programa */
.programa-dia {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0.5rem 0 1rem;
  margin-top: 1.25rem;
  align-items: center;
}

.evento-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background-color: #0f0a07;
  background-image: url('assets/img/texturas/fondo-cuero-cafe.jpg');
  background-size: cover;
  background-position: center;
  border: 1px solid var(--oro);
  border-radius: 14px;
  padding: 1.1rem 1.5rem;
  min-height: 70px;
  box-shadow:
    0 4px 20px rgba(197, 160, 89, 0.35),
    0 0 0 2px rgba(67, 42, 30, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  max-width: 350px;
}

.evento-icono {
  font-size: 2.8rem;
  flex-shrink: 0;
}

.evento-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.evento-hora {
  font-family: 'Cinzel', 'Rye', serif;
  font-size: clamp(1.6rem, 6vw, 2rem);
  color: #D4940E;
  letter-spacing: 0.08em;
}

.evento-nombre {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.6rem, 6vw, 2rem);
  color: var(--hueso);
  line-height: 1.2;
}

/* =============================================
   SECCIÓN 3 — UBICACIONES
   ============================================= */
.section-ubicaciones {
  background: transparent;
  justify-content: flex-start;
  margin-top: -3rem;
}

.locations-grid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
  padding: 0 1rem;
  margin-top: 2rem;
}

.location-card {
  background-color: #1A0C07;
  background-image: url('assets/img/texturas/fondo-cuero-cafe.jpg');
  background-size: cover;
  background-position: center;
  border: 1px solid var(--oro);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-shadow: var(--sombra-oro);
  margin-top: -4rem;
}

.location-icon {
  font-size: 2.6rem;
  margin-bottom: 0.4rem;
}

.location-title {
  font-family: 'Cinzel', 'Rye', serif;
  color: var(--oro);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.loc-linea-hora {
  font-family: 'Cinzel', 'Lato', serif;
  color: var(--oro);
  font-size: 1rem;
  letter-spacing: 0.12em;
  margin: 0.3rem 0;
}

.location-name {
  font-family: 'Great Vibes', cursive;
  color: var(--hueso);
  font-size: 1.6rem;
  line-height: 1.35;
  margin-bottom: 0.3rem;
}

.location-address {
  font-family: var(--font-body);
  color: rgba(245, 240, 232, 0.65);
  font-size: 0.78rem;
  font-style: italic;
  margin-bottom: 0.75rem;
}

.location-map {
  width: 100%;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(197, 160, 89, 0.3);
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.location-buttons {
  display: flex;
  flex-direction: row;
  gap: 0.65rem;
  justify-content: center;
}

/* Botones tipo herradura */
.btn-map {
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: transform var(--transition), box-shadow var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.btn-map:active {
  transform: scale(0.96);
}

.btn-gmaps {
  background: #580A0E;
  color: var(--hueso);
  border: 1.5px solid rgba(197, 160, 89, 0.6);
  flex: 1;
  text-align: center;
}

.btn-waze {
  background: transparent;
  color: var(--hueso);
  border: 1.5px solid rgba(197, 160, 89, 0.6);
  flex: 1;
  text-align: center;
}

.location-connector {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.4rem 0;
}

.conn-line {
  width: 20px;
  height: 1px;
  background: var(--oro);
  opacity: 0.45;
}

.conn-star {
  color: var(--oro);
  font-size: 0.75rem;
}

/* =============================================
   SECCIÓN 4 — GALERÍA / MI HISTORIA
   ============================================= */
.section-galeria {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2.5rem 1.25rem;
}

/* Título */
.mh-titulo { text-align: center; line-height: 1; margin-bottom: 25rem; }

.mh-titulo-serif {
  display: block;
  font-family: 'Cinzel', 'Rye', serif;
  font-size: clamp(1.3rem, 5vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rojo);
}

.mh-titulo-script {
  display: block;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3rem, 11vw, 4rem);
  background: linear-gradient(160deg, #C8780A 15%, #F4C040 50%, #C8780A 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 2px rgba(60, 10, 10, 0.35));
  margin-top: 1rem;
}

/* Escena orbital */
.mh-escena {
  position: relative;
  width: min(340px, 88vw);
  height: min(340px, 88vw);
  margin: 0 auto;
  overflow: visible;
}

/* Órbita: contenedor estático, cada satélite se anima solo */
.mh-orbita {
  position: absolute;
  inset: 0;
  animation: none;
}

/* Satélite base — traslación circular pura, foto siempre derecha */
.mh-satelite {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(110px, 32vw);
  height: min(138px, 40vw);
  border: 2.5px solid rgba(184, 145, 47, 0.75);
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(184, 145, 47, 0.2);
  background: #0d0a06;
  animation: none;
  margin-top: -15rem;
}

.mh-satelite:nth-child(1) { animation: orbita-0 20s linear infinite; animation-delay:   -0s; }
.mh-satelite:nth-child(2) { animation: orbita-0 20s linear infinite; animation-delay:  -2.22s; }
.mh-satelite:nth-child(3) { animation: orbita-0 20s linear infinite; animation-delay:  -4.44s; }
.mh-satelite:nth-child(4) { animation: orbita-0 20s linear infinite; animation-delay:  -6.67s; }
.mh-satelite:nth-child(5) { animation: orbita-0 20s linear infinite; animation-delay:  -8.89s; }
.mh-satelite:nth-child(6) { animation: orbita-0 20s linear infinite; animation-delay: -11.11s; }
.mh-satelite:nth-child(7) { animation: orbita-0 20s linear infinite; animation-delay: -13.33s; }
.mh-satelite:nth-child(8) { animation: orbita-0 20s linear infinite; animation-delay: -15.56s; }
.mh-satelite:nth-child(9) { animation: orbita-0 20s linear infinite; animation-delay: -17.78s; }

@keyframes orbita-0 {
  0%   { transform: translate(calc(-50% - 210px), calc(-50% - 210px)); }
  25%  { transform: translate(calc(-50% + 210px), calc(-50% - 210px)); }
  50%  { transform: translate(calc(-50% + 210px), calc(-50% + 210px)); }
  75%  { transform: translate(calc(-50% - 210px), calc(-50% + 210px)); }
  100% { transform: translate(calc(-50% - 210px), calc(-50% - 210px)); }
}
@keyframes orbita-90 {
  0%   { transform: translate(calc(-50% + 210px), calc(-50% - 210px)); }
  25%  { transform: translate(calc(-50% + 210px), calc(-50% + 210px)); }
  50%  { transform: translate(calc(-50% - 210px), calc(-50% + 210px)); }
  75%  { transform: translate(calc(-50% - 210px), calc(-50% - 210px)); }
  100% { transform: translate(calc(-50% + 210px), calc(-50% - 210px)); }
}
@keyframes orbita-180 {
  0%   { transform: translate(calc(-50% + 210px), calc(-50% + 210px)); }
  25%  { transform: translate(calc(-50% - 210px), calc(-50% + 210px)); }
  50%  { transform: translate(calc(-50% - 210px), calc(-50% - 210px)); }
  75%  { transform: translate(calc(-50% + 210px), calc(-50% - 210px)); }
  100% { transform: translate(calc(-50% + 210px), calc(-50% + 210px)); }
}
@keyframes orbita-270 {
  0%   { transform: translate(calc(-50% - 210px), calc(-50% + 210px)); }
  25%  { transform: translate(calc(-50% - 210px), calc(-50% - 210px)); }
  50%  { transform: translate(calc(-50% + 210px), calc(-50% - 210px)); }
  75%  { transform: translate(calc(-50% + 210px), calc(-50% + 210px)); }
  100% { transform: translate(calc(-50% - 210px), calc(-50% + 210px)); }
}

/* Fotos siempre derechas — sin transform propio */
.mh-satelite img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: none;
  animation: none;
}

/* Centro fijo */
.mh-centro {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-15rem);
}

/* Foto central recortada en óvalo */
.mh-foto-central {
  width: 55%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  clip-path: ellipse(42% 50% at 50% 50%);
  display: block;
  position: relative;
  z-index: 1;
}

/* Marco ovalado encima */
.mh-marco-oval {
  position: absolute;
  width: 100%;
  height: auto;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.5));
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .mh-satelite { animation: none !important; }
}

/* Marcos estilo scrapbook */
.photo-frame {
  background: var(--hueso);
  padding: 0.5rem 0.5rem 1.8rem;
  box-shadow: 3px 4px 14px rgba(0,0,0,0.45);
  position: relative;
  transition: transform 0.3s ease, z-index 0s;
  z-index: 1;
}

.photo-frame:hover {
  z-index: 2;
  transform: rotate(0deg) scale(1.05) !important;
}

/* Borde interior dorado */
.photo-frame::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(197,160,89,0.35);
  pointer-events: none;
}

.frame-1 { transform: rotate(-2.5deg); }
.frame-2 { transform: rotate(2deg);   margin-top: 1.25rem; }

/* Foto del vestido — destacada en el centro */
.frame-3 {
  transform: rotate(1deg);
  grid-column: 1 / -1;
  max-width: 210px;
  margin: 0.25rem auto;
  justify-self: center;
}

.frame-4 { transform: rotate(1.5deg); }
.frame-5 { transform: rotate(-2.2deg); margin-top: 1rem; }

.photo-inner {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--hueso-dk);
}

/* Ratio vertical para foto del vestido */
.photo-inner--portrait {
  aspect-ratio: 3 / 4;
}

.photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.ph-icon {
  font-size: 1.8rem;
  opacity: 0.3;
}

.ph-text {
  font-family: var(--font-body);
  color: var(--negro);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  opacity: 0.45;
}

.photo-caption {
  font-family: var(--font-script);
  color: var(--negro);
  font-size: 0.78rem;
  text-align: center;
  margin-top: 0.35rem;
  padding: 0 0.2rem;
  line-height: 1.3;
  opacity: 0.7;
}

/* =============================================
   SECCIÓN 5 — RSVP
   ============================================= */
.section-rsvp {
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.25rem;
}

/* Encabezado sobre la tarjeta */
.rsvp-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.rsvp-header-titulo {
  font-family: 'Cinzel', 'Rye', serif;
  font-size: clamp(1rem, 4vw, 1.3rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rojo);
}

.rsvp-header-script {
  display: block;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.8rem, 10vw, 3.5rem);
  background: linear-gradient(160deg, #C8780A 15%, #F4C040 50%, #C8780A 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 2px rgba(60, 10, 10, 0.30));
  line-height: 1.1;
}

/* Frase bajo la tarjeta */
.rsvp-frase {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.3rem, 5vw, 1.7rem);
  color: var(--hueso);
  text-align: center;
  opacity: 0.80;
  max-width: 280px;
  line-height: 1.4;
  margin-top: 1.25rem;
}

/* Tarjeta principal */
.rsvp-card {
  position: relative;
  background-image: url('assets/img/texturas/fondo-cuero-cafe.jpg');
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(201, 168, 76, 0.85);
  border-radius: 12px;
  padding: 2.5rem 1.75rem;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.65),
    inset 0 0 40px rgba(0, 0, 0, 0.35);
}

/* Borde interior decorativo */
.rsvp-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 7px;
  pointer-events: none;
}

/* Esquinas en L */
.rsvp-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(201, 168, 76, 0.75);
  border-style: solid;
  z-index: 1;
}
.rsvp-corner--tl { top: 14px;    left: 14px;   border-width: 1.5px 0 0 1.5px; }
.rsvp-corner--tr { top: 14px;    right: 14px;  border-width: 1.5px 1.5px 0 0; }
.rsvp-corner--bl { bottom: 14px; left: 14px;   border-width: 0 0 1.5px 1.5px; }
.rsvp-corner--br { bottom: 14px; right: 14px;  border-width: 0 1.5px 1.5px 0; }

/* Título */
.rsvp-titulo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 1;
}

.rsvp-titulo-normal {
  font-family: 'Cinzel', 'Rye', serif;
  font-size: clamp(0.68rem, 2.8vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.7);
}

.rsvp-titulo-script {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3rem, 12vw, 3.8rem);
  color: #f0d98c;
  line-height: 1.1;
  text-shadow:
    0 0 10px rgba(240, 200, 80, 0.75),
    0 0 24px rgba(200, 150, 30, 0.45),
    0 2px 5px rgba(0, 0, 0, 0.7);
}

/* Separador */
.rsvp-sep {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 75%;
  max-width: 180px;
  position: relative;
  z-index: 1;
}

.rsvp-sep-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201, 168, 76, 0.55), transparent);
}

.rsvp-sep-ico {
  color: rgba(201, 168, 76, 0.75);
  font-size: 0.5rem;
}

/* Subtítulos */
.rsvp-sub-caps {
  font-family: 'Cinzel', 'Lato', serif;
  font-size: clamp(0.6rem, 2.4vw, 0.7rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FFFFFF;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* Botón WhatsApp */
.btn-whatsapp {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 280px;
  padding: 0.85rem 1.4rem;
  margin-top: 0.4rem;
  background: linear-gradient(
    90deg,
    #a07020 0%,
    #d4a83a 20%,
    #f2d060 45%,
    #fff6c0 52%,
    #f2d060 60%,
    #d4a83a 80%,
    #a07020 100%
  );
  background-size: 200% 100%;
  animation: shimmer-rsvp 3s infinite linear;
  color: #1a0e00;
  border-radius: 50px;
  border: 1px solid rgba(220, 185, 80, 0.5);
  text-decoration: none;
  box-shadow:
    0 4px 20px rgba(180, 130, 10, 0.55),
    0 0 0 1px rgba(255, 240, 150, 0.15);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 1;
}

.btn-wa-ico {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  filter: brightness(0) opacity(0.7);
}

.btn-wa-divider {
  width: 1px;
  height: 34px;
  background: rgba(30, 15, 0, 0.22);
  flex-shrink: 0;
  margin: 0 0.75rem;
}

.btn-wa-txt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.btn-wa-line1 {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
  line-height: 1.3;
}

.btn-wa-line2 {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.3;
}

.btn-whatsapp:active { transform: scale(0.97); }

@media (hover: hover) {
  .btn-whatsapp:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 28px rgba(184, 134, 11, 0.65);
  }
}

@keyframes shimmer-rsvp {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* Nota */
.rsvp-note {
  font-family: var(--font-body);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-style: italic;
  position: relative;
  z-index: 1;
}

/* =============================================
   SECCIÓN 6 — LIBRO DE MENSAJES
   ============================================= */
.section-mensajes {
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.25rem 2rem;
}

/* Encabezado */
.msg-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.msg-eyebrow {
  font-family: 'Cinzel', 'Rye', serif;
  font-size: clamp(0.9rem, 3.5vw, 1.1rem);
  letter-spacing: 0.12em;
  color: var(--rojo);
  font-weight: 600;
}

.msg-title-script {
  display: block;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3.5rem, 14vw, 4.5rem);
  background: linear-gradient(160deg, #C8780A 15%, #F4C040 50%, #C8780A 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 3px rgba(60, 10, 10, 0.25));
  line-height: 1.05;
}

.msg-sub {
  font-family: 'Cinzel', serif;
  font-size: clamp(1rem, 2.5vw, 0.78rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rojo);
  opacity: 0.8;
  margin-top: 1rem;
  font-weight: 700;
}

.msg-sep {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 140px;
  margin: 0.6rem auto 0;
}

.msg-sep-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(200, 120, 10, 0.55), transparent);
}

.msg-sep-heart {
  color: rgba(200, 120, 10, 0.70);
  font-size: 0.5rem;
}

/* Tarjeta del formulario */
.mensaje-form-card {
  position: relative;
  background-color: #0f0a07;
  background-image: url('assets/img/texturas/fondo-cuero-cafe.jpg');
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(201, 168, 76, 0.8);
  border-radius: 12px;
  padding: 1.5rem 1.4rem 1.75rem;
  width: 100%;
  max-width: 480px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 0 30px rgba(0, 0, 0, 0.25);
}

.mensaje-form-card::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 8px;
  pointer-events: none;
}

/* Ornamento superior */
.msg-card-orn {
  text-align: center;
  font-family: 'Great Vibes', cursive;
  font-size: 1.5rem;
  color: rgba(201, 168, 76, 0.55);
  margin-bottom: 1rem;
}

.mensaje-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Fila campo: icono + contenido */
.fld-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.fld-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: #1a0e06;
  border: 1.5px solid rgba(201, 168, 76, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  margin-top: 1.45rem;
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.12);
}

.fld-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-left: 3.5rem;
  margin-top: -3.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-family: 'Cinzel', serif;
  font-size: 0.63rem;
  font-weight: 700;
  color: var(--oro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.form-input {
  background: rgba(245, 240, 232, 0.95);
  border: 1px solid rgba(201, 168, 76, 0.45);
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: #3a3028;
  outline: none;
  width: 150%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder { color: #8a7d6f; }
.form-input:focus {
  border-color: var(--oro);
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.25);
}

.form-textarea { resize: vertical; min-height: 90px; }

.char-count {
  font-family: var(--font-body);
  font-size: 0.6rem;
  color: rgba(245, 240, 232, 0.3);
  text-align: right;
}

/* Separador asistencia */
.asist-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.15rem;
}

.asist-div-line {
  flex: 1;
  height: 1px;
  background: rgba(201, 168, 76, 0.28);
  margin-top: 2rem;
}

.asist-div-txt {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oro);
  white-space: nowrap;
  margin-bottom: -2rem;
}

.asist-div-heart {
  text-align: center;
  font-size: 2rem;
  color: rgba(201, 168, 76, 0.45);
  margin-bottom: -0.4rem;
}

/* Chips de asistencia */
.asistencia-opts {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.asist-opt {
  cursor: pointer;
  flex: 1;
}

.asist-opt input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.asist-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.4rem;
  border-radius: 50px;
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1.5px solid rgba(197, 160, 89, 0.5);
  color: rgba(245, 240, 232, 0.75);
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.18s ease;
  user-select: none;
  width: 100%;
  text-align: center;
}

.asist-opt:hover .asist-chip {
  border-color: var(--oro);
  background: rgba(255, 255, 255, 0.1);
}

.asist-opt input:checked + .asist-si     { background: rgba(46,125,50,0.5);  border-color: #4caf50; color: #c8f0c8; box-shadow: 0 0 10px rgba(76,175,80,0.3); }
.asist-opt input:checked + .asist-talvez { background: rgba(197,160,89,0.3); border-color: var(--oro); color: #fff5cc; box-shadow: 0 0 10px rgba(197,160,89,0.35); }
.asist-opt input:checked + .asist-no    { background: rgba(166,25,46,0.5);  border-color: var(--rojo); color: #ffc0c0; box-shadow: 0 0 10px rgba(166,25,46,0.35); }

/* Botón enviar */
.btn-enviar {
  background: linear-gradient(90deg, #b8860b 0%, #f0d98c 40%, #fff8dc 50%, #f0d98c 60%, #b8860b 100%);
  background-size: 200% 100%;
  animation: shimmer-rsvp 2.5s infinite linear;
  color: #1a0e00;
  font-family: 'Cinzel', serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.9rem 1.75rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 4px 16px rgba(184, 134, 11, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  margin-top: 0.2rem;
}

.btn-enviar:hover  { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(184,134,11,0.55); }
.btn-enviar:active { transform: scale(0.97); }
.btn-enviar:disabled { opacity: 0.6; cursor: not-allowed; animation: none; }

.form-success { font-family: var(--font-body); color: #a5d6a7; font-size: 0.85rem; text-align: center; }
.form-error   { font-family: var(--font-body); color: #ef9a9a; font-size: 0.85rem; text-align: center; }

/* Muro de mensajes */
.mensajes-wall {
  width: 100%;
  max-width: 480px;
  margin: 1.25rem auto 0;
}

.mensajes-loading,
.mensajes-empty {
  text-align: center;
  font-family: var(--font-body);
  color: rgba(240, 229, 200, 0.50);
  font-size: 0.85rem;
  padding: 2rem 0;
}

.loading-spinner {
  display: inline-block;
  animation: spinner-spin 1.8s linear infinite;
}

@keyframes spinner-spin { to { transform: rotate(360deg); } }

.mensajes-lista {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Tarjeta individual — grid con avatar decorativo */
.mensaje-card {
  background-color: #0f0a07;
  background-image: url('assets/img/texturas/fondo-cuero-cafe.jpg');
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: 10px;
  padding: 0.9rem 1.1rem 0.9rem 0.9rem;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.35);
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.85rem;
  align-items: start;
}

/* Avatar circular decorativo */
.mensaje-card::before {
  content: attr(data-inicial);
  grid-column: 1;
  grid-row: 1 / 3;
  width: 40px;
  height: 40px;
  background: #1a0e06;
  border: 1.5px solid rgba(201, 168, 76, 0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 40px;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(201, 168, 76, 0.8);
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.1);
  align-self: center;
}

.mensaje-card-header {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.mensaje-nombre {
  font-family: 'Cinzel', serif;
  color: var(--oro);
  font-size: 0.88rem;
  font-weight: 700;
  flex: 1;
  min-width: 0;
}

.asist-badge {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.55rem;
  border-radius: 50px;
  flex-shrink: 0;
}

.badge-si     { background: rgba(46,125,50,0.35);  color: #a5d6a7; border: 1px solid rgba(76,175,80,0.45); }
.badge-talvez { background: rgba(197,160,89,0.18); color: var(--oro); border: 1px solid rgba(197,160,89,0.38); }
.badge-no     { background: rgba(166,25,46,0.35);  color: #ef9a9a; border: 1px solid rgba(166,25,46,0.45); }

.mensaje-fecha {
  font-family: var(--font-body);
  font-size: 0.58rem;
  color: rgba(197, 160, 89, 0.65);
  flex-shrink: 0;
  margin-left: auto;
}

.mensaje-texto {
  grid-column: 2;
  grid-row: 2;
  font-family: var(--font-body);
  color: rgba(245, 240, 232, 0.75);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: transparent;
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-ornament {
  color: var(--oro);
  font-size: 0.55rem;
  letter-spacing: 0.8rem;
  opacity: 0.5;
}

.footer-text {
  font-family: var(--font-script);
  color: #2c1808;
  font-size: 1.1rem;
  opacity: 0.85;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.5);
}

.footer-date {
  font-family: var(--font-titulo);
  color: var(--oro);
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  opacity: 0.6;
}

/* =============================================
   TEXTURAS
   ============================================= */

/* ── Madera de rancho — fondo secciones oscuras ── */
/* Stack de 4 capas (top→bottom): grain · vignette · overlay · imagen */
/* background-size: grain | vignette | overlay | madera */
/* 1600px anchoría la imagen más allá del viewport → sin costuras horizontales */
/* repeat-y en la imagen tila solo verticalmente; el vignette cubre las juntas */

.section-galeria {
  background-color: transparent;
  background-image: var(--grain);
  background-size: 200px 200px;
  background-position: 0 0;
  background-repeat: repeat;
}

.site-footer {
  background-color: transparent;
  background-image: var(--grain);
  background-size: 200px 200px;
  background-position: 0 0;
  background-repeat: repeat;
}

/* ── Cuero guinda — tarjeta countdown ── */
.countdown-box {
  background-color: #2B0A0E;
  background-image: url("assets/img/texturas/fondo-cuero-cafe.jpg");
  background-size: cover;
  background-position: center;
  animation: glow-box-fc 2.5s infinite ease-in-out;
}

/* ── Cuero negro — tarjetas de ubicación ── */
.location-card {
  background-color: #0f0a07;
  background-image: url("assets/img/texturas/fondo-cuero-cafe.jpg");
  background-size: cover;
  background-position: center;
  box-shadow:
    0 4px 20px rgba(197, 160, 89, 0.35),
    0 0 0 2px rgba(67, 42, 30, 0.4),
    0 0 0 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(197, 160, 89, 0.12);
}

/* Texto adaptado al fondo oscuro de cuero */
.location-card .location-title   { color: #e6c76e; }
.location-card .location-name    { color: var(--hueso); }
.location-card .location-address { color: rgba(245, 240, 232, 0.65); }
.location-card .btn-waze         { color: var(--hueso); }

/* ── Cuero repujado — acento decorativo en botón RSVP ── */
.btn-rsvp {
  position: relative;
  overflow: hidden;
}

.btn-rsvp::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url("assets/img/texturas/cuero-repujado.webp") center / cover;
  opacity: 0.18;
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* =============================================
   RESPONSIVE — TABLET / ESCRITORIO
   ============================================= */
@media (min-width: 480px) {
  .galeria-frame {
    max-width: 440px;
  }
}

@media (min-width: 768px) {
  .section {
    padding: 5rem 3rem;
  }

  .locations-grid {
    flex-direction: column;
    max-width: 100%;
    padding: 0 1.5rem;
  }

  .location-card {
    max-width: 100%;
  }

  .galeria-frame {
    max-width: 480px;
  }

  .frame-3 {
    max-width: 250px;
  }
}

/* =============================================
   INVITATION WRAPPER — responsive
   ============================================= */

/* Mobile: wrapper a ancho completo, sin sombra lateral */
@media (max-width: 719px) {
  .invitation-wrapper {
    box-shadow: none;
  }
}

/* Desktop: fondo decorativo visible a los lados, sombra separa el wrapper */
@media (min-width: 720px) {
  .invitation-wrapper {
    box-shadow:
      -20px 0 80px rgba(0, 0, 0, 0.85),
       20px 0 80px rgba(0, 0, 0, 0.85),
      inset 0 0 0 1px rgba(197, 160, 89, 0.12); /* borde dorado sutil */
  }
}

/* =============================================
   MOBILE PERFORMANCE
   ============================================= */

/* background-attachment: fixed rompe el compositing del GPU en móvil → scroll */
@media (max-width: 768px) {
  body {
    background-attachment: scroll, scroll, scroll;
  }
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: lb-fade-in 0.25s ease;
}
.lightbox.is-open {
  display: flex;
}
@keyframes lb-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lightbox-img {
  max-width: min(90vw, 520px);
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.75);
  animation: lb-zoom-in 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
}
@keyframes lb-zoom-in {
  from { transform: scale(0.82); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--hueso);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  opacity: 0.8;
  transition: opacity 0.15s, transform 0.15s;
}
.lightbox-close:hover { opacity: 1; transform: scale(1.15); }
