/* ============================================================
   Boda Melquisedec & Briyith — Full-Screen Responsive Architecture
   Compatible y optimizado 100% para Computador y Móvil
   ============================================================ */

:root {
  --ink: #140f0e;
  --bg-deep: #1e1615;
  --paper: #faf6f0;
  --paper-card: #ffffff;
  --paper-elevated: #fcf9f5;
  --gold: #c59b58;
  --gold-dark: #8c672b;
  --gold-light: #f7e6c8;
  --gold-glow: rgba(197, 155, 88, 0.4);
  --rose-nude: #f4e5df;
  --rose-accent: #e8c5be;
  --wine: #6e2c2b;
  --text-main: #342724;
  --text-muted: #73625f;
  --line-gold: rgba(197, 155, 88, 0.3);
  --line-gold-strong: rgba(197, 155, 88, 0.6);
  --container-max: 1240px;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Great Vibes', cursive;
  --font-sans: 'Montserrat', system-ui, -apple-system, sans-serif;

  /* Duraciones */
  --t-fast: 350ms;
  --t-base: 700ms;
  --t-slow: 1200ms;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--paper);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  width: 100%;
  background-image:
    radial-gradient(ellipse at 10% 5%, rgba(197, 155, 88, 0.12), transparent 40%),
    radial-gradient(ellipse at 90% 20%, rgba(232, 197, 190, 0.15), transparent 45%),
    radial-gradient(ellipse at 50% 85%, rgba(197, 155, 88, 0.08), transparent 50%);
  background-attachment: fixed;
}

/* Contenedor fluido universal */
.site-container {
  width: 100%;
  min-height: 100vh;
  position: relative;
}

.content-wrap {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1024px) {
  .content-wrap {
    padding: 0 40px;
  }
}

.site-main {
  width: 100%;
  position: relative;
}

/* ── ESPIGAS DE BORDE LATERALES RESPONSIVE & SCROLL REVEAL ────────── */
.seccion-con-espigas {
  position: relative;
  width: 100%;
}

.espiga-borde {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  width: clamp(75px, 14vw, 215px);
  max-width: 225px;
  filter: drop-shadow(0 12px 26px rgba(90, 70, 50, 0.14));
  will-change: transform, opacity;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Posicionamiento lateral (orgánico y sin cortes) */
.espiga-borde--left {
  left: 0px;
  transform-origin: left center;
}

.espiga-borde--right {
  right: 0px;
  transform-origin: right center;
}
.espiga-borde--right img {
  transform: scaleX(-1);
}

/* Posiciones verticales por sección */
.espiga-borde--hero-left {
  top: 15px;
  left: -4px;
}
.espiga-borde--hero-right {
  top: 60px;
  right: -4px;
}

.espiga-borde--verse {
  top: 10px;
  left: -4px;
}

.espiga-borde--count {
  top: 25px;
  right: -4px;
}

.espiga-borde--cards-left {
  top: 120px;
  left: -6px;
}
.espiga-borde--cards-right {
  top: 55%;
  right: -6px;
}

.espiga-borde--rsvp-left {
  top: 40px;
  left: -4px;
}
.espiga-borde--rsvp-right {
  bottom: 20px;
  right: -4px;
}

.espiga-borde--footer-left {
  top: 15px;
  left: -4px;
}
.espiga-borde--footer-right {
  top: 40px;
  right: -4px;
}

/* Animación sutil de brisa natural */
.espiga-borde.revelado.espiga-borde--left {
  animation: espigaBreezeLeft 8s ease-in-out infinite;
}
.espiga-borde.revelado.espiga-borde--right {
  animation: espigaBreezeRight 8s ease-in-out infinite;
}

@keyframes espigaBreezeLeft {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  50%      { transform: rotate(1.3deg) translateY(-5px); }
}

@keyframes espigaBreezeRight {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  50%      { transform: rotate(-1.3deg) translateY(-5px); }
}

/* Ajustes adaptativos en móviles */
@media (max-width: 768px) {
  .espiga-borde {
    width: clamp(70px, 20vw, 110px);
    opacity: 0.82;
    filter: drop-shadow(0 6px 14px rgba(90, 70, 50, 0.1));
  }
  .espiga-borde--left {
    left: -10px;
  }
  .espiga-borde--right {
    right: -10px;
  }
}

/* Pantallas amplias (Desktop / Widescreen) */
@media (min-width: 1400px) {
  .espiga-borde {
    width: 220px;
  }
  .espiga-borde--left {
    left: 12px;
  }
  .espiga-borde--right {
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .espiga-borde.revelado {
    animation: none;
  }
}

/* ── Estados Iniciales para Animación (Guardian JS) ────────── */
.js-motion [data-reveal] {
  opacity: 0;
}

.js-motion [data-reveal-side] {
  opacity: 0;
}

.js-motion [data-stagger] > *:not(svg) {
  opacity: 0;
}

.js-motion .hero .hero-badge,
.js-motion .hero h1,
.js-motion .hero .couple-script,
.js-motion .hero .wedding-date,
.js-motion .hero .hero-sub,
.js-motion .hero .hero-photo-box {
  opacity: 0;
}

/* ── SOBRE DE APERTURA 3D (PANTALLA COMPLETA) ───────────────── */
#sobre {
  display: none;
}

.js-motion #sobre {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background: #181211;
  background-image:
    radial-gradient(circle at 50% 40%, rgba(197, 155, 88, 0.22) 0%, transparent 60%),
    radial-gradient(circle at 80% 85%, rgba(232, 197, 190, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 20% 15%, rgba(140, 103, 43, 0.2) 0%, transparent 50%);
  perspective: 1600px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.sobre-activo, .sobre-activo body {
  overflow: hidden;
}

.sobre {
  position: relative;
  width: min(420px, 86vw);
  aspect-ratio: 1.55 / 1;
  transform-style: preserve-3d;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.7));
}

.sobre-fondo {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 6px;
  background: linear-gradient(160deg, #f7ece8, #eedcd4 55%, #dfc3b5);
  border: 1px solid rgba(197, 155, 88, 0.45);
}

.sobre-tarjeta {
  position: absolute;
  left: 6%;
  top: 36%;
  bottom: 6%;
  width: 88%;
  z-index: 2;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, #ffffff, #faf6f1 60%, #f4eae0);
  border: 1px solid rgba(197, 155, 88, 0.4);
  box-shadow: 0 10px 25px -10px rgba(70, 50, 40, 0.35);
  text-align: center;
  padding: 16px;
}

.tarjeta-kicker {
  font-family: var(--font-serif);
  font-size: clamp(10px, 2.5vw, 12px);
  letter-spacing: 0.28em;
  color: var(--gold-dark);
  text-transform: uppercase;
}

.tarjeta-nombres {
  font-family: var(--font-script);
  font-size: clamp(26px, 7vw, 36px);
  line-height: 1.1;
  color: #382c2a;
  margin: 4px 0;
}

.tarjeta-fecha {
  font-family: var(--font-serif);
  font-size: clamp(11px, 2.8vw, 13px);
  letter-spacing: 0.18em;
  color: var(--gold-dark);
}

.sobre-frente {
  position: absolute;
  left: 0;
  right: 0;
  top: 28%;
  bottom: 0;
  z-index: 3;
  background: linear-gradient(170deg, #fcf4ef, #f2ded6);
  clip-path: polygon(0 0, 50% 12%, 100% 0, 100% 100%, 0 100%);
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  filter: drop-shadow(0 -2px 3px rgba(197, 155, 88, 0.18));
}

.sobre-solapa {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 44%;
  z-index: 4;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  background: linear-gradient(170deg, #ebd8cf, #f6e6df);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  filter: drop-shadow(0 3px 6px rgba(70, 45, 35, 0.2));
}

.sobre-sello {
  position: absolute;
  top: 44%;
  left: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sobre-sello img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.45));
}

.sobre-abrir {
  background: rgba(197, 155, 88, 0.2);
  border: 1.5px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 14px 34px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(197, 155, 88, 0.35);
  transition: all 0.25s ease;
}

.sobre-abrir:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(197, 155, 88, 0.55);
}

.sobre-pista {
  margin-top: -18px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: rgba(247, 230, 200, 0.65);
  text-transform: uppercase;
}

/* ── BOTÓN FLOTANTE DE MÚSICA ───────────────────────────────── */
.btn-musica {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(30, 22, 21, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--gold);
  border-radius: 9999px;
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
  user-select: none;
}

.btn-musica:hover {
  transform: scale(1.05);
  border-color: #fff;
  box-shadow: 0 8px 26px rgba(197, 155, 88, 0.4);
}

.audio-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 15px;
  width: 15px;
}

.audio-bars span {
  width: 3px;
  background: linear-gradient(180deg, #ffffff, var(--gold));
  border-radius: 1px;
  height: 4px;
  transition: height 0.2s ease;
}

.btn-musica.playing .audio-bars span:nth-child(1) {
  animation: audioWave 0.8s ease-in-out infinite alternate;
}
.btn-musica.playing .audio-bars span:nth-child(2) {
  animation: audioWave 0.6s ease-in-out 0.2s infinite alternate;
}
.btn-musica.playing .audio-bars span:nth-child(3) {
  animation: audioWave 0.7s ease-in-out 0.4s infinite alternate;
}

@keyframes audioWave {
  0% { height: 3px; }
  50% { height: 14px; }
  100% { height: 5px; }
}

.btn-musica.paused .audio-bars span {
  height: 4px;
  background: rgba(247, 230, 200, 0.4);
}

/* ── HERO FULL-SCREEN RESPONSIVE ────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  padding: 60px 0 50px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(244, 229, 223, 0.4) 0%, transparent 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    padding: 80px 0 70px;
  }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    text-align: left;
    gap: 50px;
  }
}

.hero-photo-stage {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

/* ── FOTO EN ARCO + CORONA DE ESPIGAS (capas reales, sin composición horneada) ──
   Geometría (en % del ancho W de la figura):
   - Corona: 100% W, proporción 1169x699 → alto ≈ 0.598W, anclada abajo.
   - Arco: 58% W centrado; los brazos de la corona suben por sus costados
     y el centro floral cubre la base de la foto.                         */
.foto-corona {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.foto-arco {
  position: relative;
  z-index: 1;
  width: clamp(260px, 68%, 380px);
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 24px 24px;
  overflow: hidden;
  border: 4px solid #fffaf3;
  box-shadow:
    0 0 0 1px rgba(197, 155, 88, 0.6),
    0 0 0 8px rgba(255, 250, 243, 0.8),
    0 0 0 9px rgba(197, 155, 88, 0.35),
    0 24px 50px rgba(90, 70, 60, 0.2);
  background: #e9d9cb;
}

.foto-arco-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 20%;
  transition: transform 1.2s ease;
}

.foto-corona:hover .foto-arco-img {
  transform: scale(1.03);
}

.corona-espigas {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 10px 16px rgba(90, 70, 50, 0.22));
  transform-origin: 50% 80%;
  animation: coronaRespira 7s ease-in-out infinite;
}

@keyframes coronaRespira {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.012) rotate(-0.4deg); }
}

/* Despedida: arco más cuadrado para que entren ambos rostros */
.foto-corona--despedida .foto-arco {
  aspect-ratio: 1 / 1;
}

.foto-corona--despedida .foto-arco-img {
  object-position: 40% 25%;
}

@media (prefers-reduced-motion: reduce) {
  .corona-espigas { animation: none; }
}

/* Destellos estelares dorados animados (Efecto exacto del video) */
.sparkle-group {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.sparkle-star {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  filter: drop-shadow(0 0 6px rgba(255, 235, 170, 0.95)) drop-shadow(0 0 14px rgba(212, 175, 55, 0.85));
  animation: sparkleTwinkle 3s infinite ease-in-out;
}

.sparkle-star::before {
  content: '✦';
  font-size: inherit;
  color: #fff;
  text-shadow: 0 0 6px #ffd984, 0 0 14px #e5a93b;
}

.sparkle-1 { top: 32%; right: 18%; font-size: 26px; animation-delay: 0s; }
.sparkle-2 { top: 48%; left: 16%; font-size: 20px; animation-delay: 1.1s; }
.sparkle-3 { top: 58%; right: 24%; font-size: 30px; animation-delay: 1.8s; }
.sparkle-4 { top: 66%; left: 30%; font-size: 22px; animation-delay: 2.3s; }
.sparkle-5 { top: 72%; right: 38%; font-size: 24px; animation-delay: 0.6s; }

.sparkle-ring1 { top: 38%; left: 42%; font-size: 26px; animation-delay: 0.4s; }
.sparkle-ring2 { top: 52%; right: 36%; font-size: 22px; animation-delay: 1.6s; }

.sparkle-f1 { top: 45%; left: 20%; font-size: 24px; animation-delay: 0.8s; }
.sparkle-f2 { top: 58%; right: 22%; font-size: 28px; animation-delay: 1.9s; }
.sparkle-f3 { top: 68%; left: 36%; font-size: 22px; animation-delay: 2.5s; }

@keyframes sparkleTwinkle {
  0%, 100% {
    transform: scale(0.2) rotate(0deg);
    opacity: 0.05;
  }
  50% {
    transform: scale(1.15) rotate(90deg);
    opacity: 1;
  }
}

/* Destellos dorados detrás de la foto */
.rays {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 380px;
  height: 380px;
  pointer-events: none;
  overflow: visible;
  z-index: -1;
}

.ray--gold { stroke: var(--gold); }
.ray--light { stroke: var(--gold-light); }


.hero-text-content {
  display: flex;
  flex-direction: column;
}

.hero-badge {
  font-family: var(--font-serif);
  font-size: clamp(12px, 2vw, 14px);
  letter-spacing: 0.26em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 600;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #2b1f1e;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 8px;
}

.couple-script {
  font-family: var(--font-script);
  font-size: clamp(42px, 8vw, 70px);
  line-height: 1.1;
  color: var(--gold-dark);
  margin-bottom: 18px;
}

.wedding-date {
  font-family: var(--font-serif);
  font-size: clamp(18px, 3vw, 24px);
  letter-spacing: 0.15em;
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 48ch;
}

/* ── TICKER INFINITO DE BORDE A BORDE (100vw) ───────────────── */
.ticker {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  border-top: 1px solid var(--line-gold);
  border-bottom: 1px solid var(--line-gold);
  background: rgba(197, 155, 88, 0.09);
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
  margin-top: 20px;
  margin-bottom: 50px;
}

.ticker-track {
  display: inline-block;
  animation: tickerSlide 35s linear infinite;
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 0.18em;
  color: var(--gold-dark);
  text-transform: uppercase;
}

.ticker-track span {
  margin: 0 20px;
}

.ticker-track em {
  color: var(--gold);
  font-style: normal;
}

@keyframes tickerSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── SECCIONES Y ENCABEZADOS ────────────────────────────────── */
section {
  padding: 50px 0;
}

.sec-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #2b1f1e;
  text-align: center;
  margin-bottom: 6px;
}

.sec-intro {
  color: var(--text-muted);
  font-size: 16px;
  text-align: center;
  max-width: 58ch;
  margin: 0 auto 36px;
}

/* ── VERSÍCULO BÍBLICO HEROICO ──────────────────────────────── */
.verse-container {
  max-width: 820px;
  margin: 0 auto;
  background: var(--paper-card);
  border: 1px solid var(--line-gold);
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: 0 10px 35px rgba(60, 45, 40, 0.05);
  position: relative;
  text-align: center;
}

.corner-flower {
  position: absolute;
  width: 60px;
  height: 60px;
  pointer-events: none;
}

.corner-top-left {
  top: 10px;
  left: 10px;
}

.corner-bottom-right {
  bottom: 10px;
  right: 10px;
  transform: rotate(180deg);
}

.verse-text {
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 26px);
  font-style: italic;
  color: #382927;
  line-height: 1.7;
  margin-bottom: 14px;
}

.verse-cite {
  font-family: var(--font-script);
  font-size: clamp(28px, 4vw, 36px);
  color: var(--gold-dark);
}

/* ── CUENTA REGRESIVA ───────────────────────────────────────── */
.count {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
}

.count div {
  background: linear-gradient(170deg, #ffffff, #faf3ea);
  border: 1.5px solid rgba(197, 155, 88, 0.45);
  border-radius: 12px;
  padding: 18px 8px 14px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(197, 155, 88, 0.12);
}

.count b {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 700;
  line-height: 1;
  color: var(--gold-dark);
  font-variant-numeric: tabular-nums;
}

.count small {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── TARJETAS DE INFORMACIÓN FIJAS (ORDEN LÓGICO & SIN DESPLEGAR) ── */
.cards-responsive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 768px) {
  .cards-responsive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tarjeta-info {
  background: var(--paper-card);
  border: 1px solid var(--line-gold);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(60, 45, 40, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.tarjeta-info:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 14px 34px rgba(197, 155, 88, 0.18);
}

.tarjeta-info-header {
  padding: 22px 24px 18px;
  background: linear-gradient(135deg, #ffffff 0%, #fdf9f4 100%);
  border-bottom: 1px solid rgba(197, 155, 88, 0.25);
}

.tarjeta-info-body {
  padding: 22px 24px 26px;
  background: #faf5ee;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* ── VERSÍCULO BÍBLICO HEROICO CON FONDO FLORAL DE ROSAS Y ESPIGAS ── */
.tarjeta-versiculo-rosas {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 20px;
  border: 1.5px solid var(--gold);
  box-shadow: 0 14px 40px rgba(90, 70, 60, 0.12);
  background-color: #fcf9f5;
  background-image: url('../assets/images/tarjeta_versiculo_rosas_espigas.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 70px 40px;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.tarjeta-versiculo-rosas .verse-inner {
  position: relative;
  z-index: 2;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 34px 28px;
  border-radius: 16px;
  border: 1px solid rgba(197, 155, 88, 0.45);
  box-shadow: 0 8px 24px rgba(90, 70, 60, 0.08);
}

.tarjeta-versiculo-rosas .verse-text {
  font-family: var(--font-serif);
  font-size: clamp(21px, 3.2vw, 27px);
  font-style: italic;
  font-weight: 500;
  color: #3d2b27;
  line-height: 1.7;
  margin-bottom: 18px;
}

.tarjeta-versiculo-rosas .verse-cite {
  font-family: var(--font-script);
  font-size: clamp(32px, 4.5vw, 42px);
  color: var(--gold-dark);
  display: block;
}

@media (max-width: 600px) {
  .tarjeta-versiculo-rosas {
    padding: 50px 20px;
  }
  .tarjeta-versiculo-rosas .verse-inner {
    padding: 24px 18px;
  }
}

.media-frame {
  width: 100%;
  max-height: 250px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(197, 155, 88, 0.35);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.media-frame img, .media-frame svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.church-arch-frame {
  width: 100%;
  max-width: 320px;
  margin: 12px auto 16px;
  border-radius: 160px 160px 12px 12px;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 10px 30px rgba(197, 155, 88, 0.22);
}

.church-arch-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.rings-arch-frame {
  position: relative;
  width: 100%;
  max-height: 250px;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--gold);
  box-shadow: 0 8px 25px rgba(197, 155, 88, 0.18);
  margin-bottom: 14px;
}

.rings-arch-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.farewell-photo-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 20px;
  text-align: center;
}


.vector-graphic-box {
  width: 100%;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 10px;
  margin-bottom: 16px;
  border: 1px solid rgba(197, 155, 88, 0.25);
  padding: 10px;
}

.vector-graphic-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Botones de acción y mapas */
.btn-maps {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(197, 155, 88, 0.35);
  transition: all 0.25s ease;
}

.btn-maps:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197, 155, 88, 0.5);
  color: #fff;
}

/* ── CÓDIGO DE VESTIMENTA (SWATCHES) ────────────────────────── */
.swatches {
  display: flex;
  gap: 18px;
  margin: 18px 0 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.sw {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.sw span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -24px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

.sw-no::after {
  content: "✕";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 800;
  color: #d32f2f;
  text-shadow: 0 0 6px #fff, 0 2px 4px rgba(0,0,0,0.4);
}

/* ── ITINERARIO RESPONSIVE (TIMELINE RUN-LINE) ──────────────── */
.timeline-section-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.run {
  list-style: none;
  position: relative;
  padding-left: 90px;
  margin: 30px 0;
}

.run-line {
  position: absolute;
  left: 74px;
  top: 8px;
  width: 3px;
  height: calc(100% - 16px);
  overflow: visible;
}

.run-line path {
  fill: none;
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.run li {
  position: relative;
  padding: 0 0 32px;
}

.run li:last-child {
  padding-bottom: 0;
}

.run time {
  position: absolute;
  left: -90px;
  top: 0;
  width: 66px;
  text-align: right;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-dark);
}

.run li::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(197, 155, 88, 0.25);
}

.run h4 {
  font-size: 17px;
  font-weight: 600;
  color: #2b1f1e;
  margin-bottom: 4px;
}

.run p {
  font-size: 14.5px;
  color: var(--text-muted);
}

/* ── GALERÍA DE FOTOS EN ALTA DEFINICIÓN ────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--line-gold);
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* ── FORMULARIO RSVP EXPANSIVO Y RESPONSIVE ──────────────────── */
.rsvp-wrapper {
  max-width: 760px;
  margin: 0 auto;
}

.rsvp-card {
  background: linear-gradient(165deg, #ffffff 0%, #fdf9f4 100%);
  border: 1px solid var(--line-gold);
  border-radius: 16px;
  padding: 36px 30px;
  box-shadow: 0 12px 40px rgba(60, 45, 40, 0.07);
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.field input, .field select {
  width: 100%;
  padding: 14px 16px;
  background: #ffffff;
  border: 1.5px solid rgba(197, 155, 88, 0.4);
  color: var(--text-main);
  font-family: inherit;
  font-size: 15px;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 155, 88, 0.25);
}

.asistentes-contenedor {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.asistente-item {
  margin-bottom: 16px;
}

.asistente-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(197, 155, 88, 0.15);
  color: var(--gold-dark);
  border: 1px solid rgba(197, 155, 88, 0.3);
  margin-left: 8px;
  display: inline-block;
  vertical-align: middle;
}

.tag-excusa {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border-color: rgba(220, 53, 69, 0.25);
}

.rsvp-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

@media (min-width: 600px) {
  .rsvp-actions {
    flex-direction: row;
  }
}

.btn-rsvp-direct {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
  padding: 16px 20px;
  border: 1.5px solid var(--gold);
  cursor: pointer;
  background: linear-gradient(135deg, #2b1f1e 0%, #1e1514 100%);
  color: #fff9f0;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(43, 31, 30, 0.35);
  transition: all 0.25s ease;
}

.btn-rsvp-direct i {
  color: var(--gold-light);
}

.btn-rsvp-direct:hover:not(:disabled) {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #3d2c2b 0%, #2b1f1e 100%);
  box-shadow: 0 10px 30px rgba(43, 31, 30, 0.45);
}

.btn-rsvp-direct:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 1;
  padding: 16px 20px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  border-radius: 50px;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(37, 211, 102, 0.55);
}

.confirm {
  margin-top: 18px;
  font-size: 14px;
  text-align: center;
  display: none;
  font-weight: 600;
}

.confirm.on { display: block; }
.confirm.err { color: #c92a2a; }

/* ── FOOTER WIDESCREEN ──────────────────────────────────────── */
footer {
  width: 100%;
  text-align: center;
  padding: 70px 0 80px;
  border-top: 1px solid var(--line-gold);
  background: linear-gradient(180deg, transparent 0%, rgba(197, 155, 88, 0.1) 100%);
}

footer .sig {
  font-family: var(--font-script);
  font-size: clamp(38px, 6vw, 56px);
  color: var(--gold-dark);
  margin-bottom: 10px;
}

footer p {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--text-muted);
}

/* ── CRÉDITO DEL CREADOR & SOLUCIONES CON IA ────────────────── */
.creator-badge {
  max-width: 680px;
  margin: 40px auto 0;
  background: #ffffff;
  border: 1px solid var(--line-gold);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(74, 62, 61, 0.07);
  padding: 24px 28px;
  position: relative;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.creator-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(74, 62, 61, 0.12);
  border-color: var(--gold);
}

.creator-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

@media (min-width: 768px) {
  .creator-inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 24px;
  }
}

.creator-info {
  flex: 1;
}

.creator-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 4px;
}

.creator-label i {
  color: var(--gold);
}

.creator-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: #2b1f1e;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.creator-tagline {
  font-family: var(--font-sans) !important;
  font-size: 13.5px !important;
  line-height: 1.5;
  color: var(--text-muted) !important;
  margin: 0 !important;
}

.btn-creator-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: #ffffff !important;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.btn-creator-wa:hover {
  background: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  color: #ffffff !important;
}

.btn-creator-wa i {
  font-size: 18px;
}

@media (max-width: 767px) {
  .creator-badge {
    padding: 20px 18px;
    text-align: center;
  }
  .creator-label {
    justify-content: center;
  }
  .btn-creator-wa {
    width: 100%;
  }
}

/* ── RESPONSIVE PARA DISPOSITIVOS MÓVILES ────────────────────── */
@media (max-width: 600px) {
  .run { padding-left: 70px; }
  .run-line { left: 56px; }
  .run time { left: -70px; width: 50px; font-size: 17px; }
  .btn-musica { top: 16px; right: 16px; padding: 8px 14px; font-size: 12px; }
  .count { gap: 8px; }
  .verse-container { padding: 30px 18px; }
  .rsvp-card { padding: 26px 18px; }
}
