/* ==========================================================================
   ISABELLA XV - CELEBRACIÓN DE GALA
   Diseño de Alta Costura Digital & Dirección Artística Premium
   ========================================================================== */

/* --- Variables Globales y Paleta Cromática --- */
:root {
  --bg-page: #fbf8f5;
  --bg-gradient: linear-gradient(180deg, #fdfbf9 0%, #faedea 25%, #f7e6e5 50%, #fdf8f6 100%);
  --surface-card: rgba(255, 255, 255, 0.92);
  --surface-border: rgba(212, 175, 55, 0.35);
  --surface-border-rose: rgba(197, 138, 143, 0.35);
  --surface-shadow: 0 12px 36px rgba(138, 78, 86, 0.10);
  --surface-shadow-lg: 0 20px 48px rgba(109, 54, 63, 0.16);

  --gold-primary: #d4af37;
  --gold-secondary: #aa7c11;
  --gold-light: #fef0c8;
  --gold-gradient: linear-gradient(135deg, #ffe082 0%, #d4af37 50%, #9e7413 100%);
  --gold-gradient-text: linear-gradient(135deg, #dfba43 0%, #b88d22 50%, #875c08 100%);

  --rose-gold: #c58a8f;
  --rose-dark: #6f373f;
  --rose-blush: #fce8ea;
  --rose-soft: #fff5f6;

  --text-main: #331e24;
  --text-muted: #6e5259;
  --text-light: #987880;

  --font-script: 'Alex Brush', cursive;
  --font-title: 'Cinzel Decorative', 'Cinzel', serif;
  --font-serif: 'Cinzel', serif;
  --font-editorial: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Reset & Normalización Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  background-image: var(--bg-gradient);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Accesibilidad :focus-visible */
:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, a {
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

/* --- Canvas de Pétalos Flotantes --- */
#petals-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.75;
}

/* --- Wrapper Principal de la Invitación --- */
.invitation-wrapper {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 0 16px 60px;
  box-shadow: 0 0 60px rgba(183, 110, 121, 0.08);
  background: rgba(253, 251, 249, 0.82);
  backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
  .invitation-wrapper {
    margin: 30px auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--surface-border);
    padding: 0 24px 80px;
  }
}

/* --- Botón Flotante con Disco de Vinilo Dorado de Gala --- */
.floating-music-btn {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 99;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 14px 5px 5px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 18px rgba(109, 54, 63, 0.15);
  backdrop-filter: blur(10px);
  color: var(--rose-dark);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.floating-music-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.35);
  border-color: var(--gold-primary);
}

.floating-music-btn.playing {
  border-color: var(--gold-primary);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.4), 0 4px 18px rgba(109, 54, 63, 0.15);
}

.vinyl-disc-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 6px rgba(92, 61, 5, 0.3));
  flex-shrink: 0;
}

.vinyl-disc-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.floating-music-btn.playing .vinyl-disc-img,
.floating-music-btn.spinning .vinyl-disc-img {
  animation: spinVinyl 5s linear infinite;
}

.floating-music-btn:not(.playing) .vinyl-disc-wrap {
  opacity: 0.85;
}

@keyframes spinVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.music-waves {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 13px;
}

.wave-bar {
  width: 3px;
  height: 3px;
  background: var(--gold-primary);
  border-radius: 2px;
  transition: height 0.2s ease;
}

.floating-music-btn.playing .bar-1 {
  animation: wavePulse 0.9s infinite ease-in-out;
}
.floating-music-btn.playing .bar-2 {
  animation: wavePulse 0.9s infinite ease-in-out 0.25s;
}
.floating-music-btn.playing .bar-3 {
  animation: wavePulse 0.9s infinite ease-in-out 0.5s;
}

@keyframes wavePulse {
  0%, 100% { height: 3px; }
  50% { height: 13px; }
}

.music-badge-text {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--rose-dark);
}

/* --- Botón Hamburguesa / Menú Drawer --- */
.floating-menu-btn {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 99;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--surface-border);
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(138, 78, 86, 0.16);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.floating-menu-btn:hover {
  transform: scale(1.06);
}

.menu-bar {
  width: 18px;
  height: 2px;
  background: var(--rose-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* Menú Lateral Drawer */
.nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 290px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  box-shadow: -10px 0 30px rgba(51, 30, 36, 0.15);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 30px 24px;
  transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-drawer.open {
  right: 0;
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(51, 30, 36, 0.35);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--surface-border);
  margin-bottom: 20px;
}

.drawer-crown-icon {
  width: 32px;
  height: 32px;
}

.drawer-title {
  font-family: var(--font-title);
  font-size: 16px;
  color: var(--rose-dark);
  letter-spacing: 1px;
}

.drawer-close-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-muted);
  line-height: 1;
}

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover {
  background: var(--rose-blush);
  color: var(--rose-dark);
  padding-left: 18px;
}

.nav-link-highlight {
  background: var(--gold-gradient);
  color: #3f2806;
  font-weight: 700;
  text-align: center;
  margin-top: 10px;
}

/* ==========================================================================
   SECCIÓN 1: SOBRE CEREMONIAL 3D
   ========================================================================== */
.ceremonial-section {
  padding-top: 70px;
  padding-bottom: 30px;
  text-align: center;
}

.envelope-intro-header {
  margin-bottom: 24px;
}

.envelope-pretitle {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rose-gold);
  margin-bottom: 4px;
}

.envelope-parents {
  font-family: var(--font-script);
  font-size: 36px;
  font-weight: 400;
  color: var(--rose-dark);
  line-height: 1.15;
  text-shadow: 0 1px 2px rgba(183, 110, 121, 0.2);
  padding: 0 10px;
}

/* Escenario del Sobre */
.envelope-stage {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  perspective: 1200px;
}

.envelope-container {
  position: relative;
  width: 100%;
  height: 250px;
  margin: 0 auto;
  transform-style: preserve-3d;
  transition: height 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  /* Sin overflow hidden para permitir ascender la carta */
}

/* Solapa Superior */
.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 140px;
  z-index: 12;
  transform-origin: top center;
  transform-style: preserve-3d;
  transform: rotateX(0deg) translateZ(12px);
  transition: transform 0.85s cubic-bezier(0.25, 1, 0.5, 1);
}

.envelope-flap-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #f5d3d9 0%, #ecd0d6 100%);
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 16px rgba(109, 54, 63, 0.15);
  position: relative;
}

.flap-roses-decor {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 32px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.7) 0%, rgba(245, 213, 218, 0) 75%);
  border-bottom: 2px dashed rgba(212, 175, 55, 0.4);
}

/* Cuerpo Delantero del Sobre */
.envelope-pocket {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 175px;
  background: linear-gradient(135deg, #f6dce1 0%, #ecd0d6 50%, #e6c5cb 100%);
  border-radius: 0 0 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 35px rgba(109, 54, 63, 0.16);
  z-index: 8;
  transform: translateZ(8px);
  clip-path: polygon(0 0, 50% 45%, 100% 0, 100% 100%, 0 100%);
}

.pocket-crease {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(197, 138, 143, 0.15) 0%, transparent 40%);
}

/* Sello de Cera Dorado Monograma */
.seal-button {
  position: absolute;
  top: 130px;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(14px);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: none;
  border: none;
  z-index: 15;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seal-image {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 14px rgba(92, 61, 5, 0.4));
  transition: transform 0.3s ease;
}

.seal-button:hover .seal-image {
  transform: scale(1.08) rotate(3deg);
}

.seal-glow-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px dashed rgba(212, 175, 55, 0.65);
  animation: pulseSealRing 2.2s infinite;
  pointer-events: none;
}

@keyframes pulseSealRing {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.12); opacity: 0.2; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Carta / Tarjeta Interior (Oculta al inicio hasta abrir) */
.envelope-letter {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(40px) translateZ(4px) scale(0.95);
  width: 92%;
  max-width: 340px;
  background: #fffdfb;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 10px 30px rgba(109, 54, 63, 0.14);
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transition: transform 1.0s cubic-bezier(0.16, 1, 0.3, 1) 0.45s, 
              opacity 0.4s ease 0.4s, 
              box-shadow 0.6s ease 0.5s;
  padding: 22px 18px;
  text-align: center;
}

.letter-inner-frame {
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  padding: 16px 12px;
  position: relative;
  background: radial-gradient(circle at 50% 20%, rgba(254, 240, 200, 0.18) 0%, transparent 70%);
}

.letter-crown-wrap {
  width: 44px;
  height: 32px;
  margin: 0 auto 10px;
}

.letter-crown-svg {
  width: 100%;
  height: 100%;
}

/* Retrato de Isabella en la Tarjeta */
.letter-portrait-container {
  position: relative;
  width: 135px;
  height: 170px;
  margin: 0 auto 14px;
}

.letter-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 75px 75px 14px 14px;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 8px 20px rgba(109, 54, 63, 0.2);
}

.letter-portrait-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 80px 80px 18px 18px;
  border: 1px dashed rgba(212, 175, 55, 0.5);
  pointer-events: none;
}

.letter-greeting {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rose-gold);
}

.letter-quince-title {
  font-family: var(--font-editorial);
  font-size: 20px;
  font-style: italic;
  color: var(--text-main);
  font-weight: 600;
  line-height: 1.2;
}

.letter-girl-name {
  font-family: var(--font-script);
  font-size: 54px;
  font-weight: 400;
  color: var(--rose-dark);
  line-height: 0.95;
  margin: 4px 0 2px;
  text-shadow: 0 2px 4px rgba(183, 110, 121, 0.25);
}

.letter-roman-xv {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 900;
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

/* Badge de Fecha y Lugar */
.letter-details-badge {
  background: var(--rose-soft);
  border: 1px solid var(--surface-border-rose);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.letter-date-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}

.letter-day-num {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 800;
  color: var(--rose-dark);
  line-height: 1;
}

.letter-month-text {
  font-family: var(--font-editorial);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
}

.letter-badge-divider {
  width: 60px;
  height: 1px;
  background: var(--gold-primary);
  opacity: 0.4;
  margin: 6px auto;
}

.letter-time {
  font-size: 13px;
  font-weight: 600;
  color: var(--rose-dark);
}

.letter-venue-short {
  font-size: 12px;
  color: var(--text-muted);
}

/* Botones Rápidos en Tarjeta */
.letter-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-letter {
  display: block;
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-align: center;
  transition: var(--transition);
}

.btn-letter-primary {
  background: var(--gold-gradient);
  color: #3c2605;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-letter-primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.btn-letter-secondary {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--surface-border-rose);
  color: var(--rose-dark);
}

.btn-letter-secondary:hover {
  background: var(--rose-blush);
}



/* --- ESTADO DEL SOBRE ABIERTO (.is-open) --- */
.envelope-container.is-open {
  height: 520px; /* Expande altura para exhibir la carta completa */
}

.envelope-container.is-open .envelope-flap {
  transform: rotateX(180deg) translateZ(-6px);
  z-index: 2; /* Pasa a la capa trasera */
  transition: transform 0.85s cubic-bezier(0.25, 1, 0.5, 1), z-index 0.01s linear 0.4s;
}

.envelope-container.is-open .seal-button {
  transform: translate(-50%, -50%) translateZ(14px) scale(0.8);
  opacity: 0;
  pointer-events: none;
}

.envelope-container.is-open .envelope-letter {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(-25px) translateZ(35px) scale(1);
  z-index: 25; /* Frente absoluto sin recortes */
  box-shadow: 0 20px 45px rgba(109, 54, 63, 0.22);
}



/* Hint de Apertura */
.envelope-hint-wrapper {
  margin-top: 24px;
}

.envelope-hint-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--rose-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.85);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--surface-border-rose);
  box-shadow: 0 4px 12px rgba(109, 54, 63, 0.08);
}

.hint-sparkle {
  color: var(--gold-primary);
  font-size: 11px;
}

.envelope-container.is-open ~ .envelope-hint-wrapper {
  display: none;
}

/* ==========================================================================
   ESTILOS COMUNES DE SECCIÓN
   ========================================================================== */
.inv-section {
  padding: 44px 0;
  text-align: center;
  position: relative;
}

.section-ornament-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ornament-line {
  width: 45px;
  height: 1px;
  background: var(--gold-primary);
  opacity: 0.5;
}

.ornament-crown, .ornament-icon-center {
  width: 32px;
  height: 24px;
}

.butterfly-icon-left, .butterfly-icon-right {
  width: 22px;
  height: 18px;
}

.section-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rose-gold);
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-editorial);
  font-size: 32px;
  font-weight: 600;
  color: var(--rose-dark);
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-description {
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 360px;
  margin: 0 auto 24px;
}

/* ==========================================================================
   SECCIÓN 2: CUENTA REGRESIVA
   ========================================================================== */
.countdown-section {
  background: radial-gradient(circle at center, rgba(254, 240, 200, 0.25) 0%, transparent 70%);
  border-radius: var(--radius-lg);
  padding: 36px 14px;
  margin: 16px 0;
  border: 1px solid var(--surface-border);
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 24px auto;
  max-width: 360px;
}

.countdown-box {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 10px 4px;
  flex: 1;
  min-width: 55px;
  box-shadow: 0 6px 16px rgba(109, 54, 63, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-value {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 800;
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 4px;
}

.countdown-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--text-muted);
}

.countdown-colon {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-primary);
  margin-top: -10px;
}

.calendar-action-wrap {
  margin-top: 18px;
}

.btn-gold-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold-primary);
  background: rgba(255, 255, 255, 0.85);
  color: var(--rose-dark);
  font-size: 13.5px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-gold-outline:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.25);
}

.btn-icon-svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   SECCIÓN 3: HISTORIA "THEN & NOW"
   ========================================================================== */
.polaroid-duo {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 26px auto;
  perspective: 1000px;
}

.polaroid-card {
  background: #ffffff;
  padding: 10px 10px 16px;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(109, 54, 63, 0.12);
  width: 48%;
  max-width: 165px;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.polaroid-then {
  transform: rotate(-3deg);
}

.polaroid-now {
  transform: rotate(3deg);
}

.polaroid-card:hover {
  transform: scale(1.05) rotate(0deg);
  box-shadow: 0 16px 36px rgba(109, 54, 63, 0.2);
  z-index: 5;
}

.polaroid-pin {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe082, #b76e79);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.polaroid-photo-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 3px;
  background: var(--rose-blush);
}

.polaroid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.polaroid-caption {
  text-align: center;
  margin-top: 8px;
}

.polaroid-tag {
  display: block;
  font-family: var(--font-script);
  font-size: 24px;
  color: var(--rose-dark);
  line-height: 1;
}

.polaroid-sub {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Carta Emotiva de los Padres */
.parents-letter-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border-rose);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  box-shadow: var(--surface-shadow);
  position: relative;
  margin-top: 24px;
  text-align: left;
}

.letter-wax-stamp-corner {
  position: absolute;
  top: -14px;
  right: 16px;
  width: 40px;
  height: 40px;
}

.corner-seal {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 8px rgba(92, 61, 5, 0.3));
}

.parents-letter-quote {
  font-family: var(--font-editorial);
  font-size: 18px;
  font-style: italic;
  color: var(--rose-dark);
  line-height: 1.4;
  margin-bottom: 10px;
}

.parents-letter-text {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.parents-signature {
  font-size: 12.5px;
  color: var(--text-main);
  text-align: right;
}

.parents-signature strong {
  font-family: var(--font-script);
  font-size: 26px;
  font-weight: 400;
  color: var(--rose-dark);
}

/* ==========================================================================
   SECCIÓN 4: CORTE DE HONOR
   ========================================================================== */
.court-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  box-shadow: var(--surface-shadow);
  margin-bottom: 18px;
}

.court-card-title {
  font-family: var(--font-editorial);
  font-size: 21px;
  font-weight: 600;
  color: var(--rose-dark);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.court-card-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: var(--gold-primary);
  opacity: 0.6;
}

.padrinos-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.padrino-item {
  padding: 8px 12px;
  background: var(--rose-soft);
  border-radius: var(--radius-sm);
}

.padrino-role {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--rose-gold);
}

.padrino-names {
  font-family: var(--font-editorial);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.corte-columns {
  display: flex;
  justify-content: space-between;
  text-align: left;
}

.corte-column {
  flex: 1;
}

.corte-divider-vertical {
  width: 1px;
  background: var(--surface-border);
  margin: 0 12px;
}

.corte-col-title {
  font-family: var(--font-serif);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--rose-dark);
  margin-bottom: 10px;
  text-align: center;
}

.corte-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.corte-list li {
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   SECCIÓN 5: EL VESTIDO DE GALA (INTERACTIVO)
   ========================================================================== */
.dress-showcase-container {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 22px 14px;
  box-shadow: var(--surface-shadow);
}

.dress-selector-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.dress-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--surface-border);
  background: #ffffff;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  transition: var(--transition);
}

.dress-tab-btn.active {
  background: var(--rose-soft);
  border-color: var(--gold-primary);
  color: var(--rose-dark);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
}

.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.dot-gold {
  background: linear-gradient(135deg, #ffe082, #d4af37);
}

.dot-black {
  background: linear-gradient(135deg, #222222, #000000);
}

.dress-display-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dress-image-wrapper {
  width: 100%;
  max-width: 270px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(109, 54, 63, 0.14);
  background: #fffdfa;
  border: 1px solid var(--surface-border);
  position: relative;
}

.dress-main-image {
  width: 100%;
  height: auto;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.dress-info-box {
  margin-top: 14px;
  max-width: 310px;
}

.dress-info-title {
  font-family: var(--font-editorial);
  font-size: 19px;
  font-weight: 600;
  color: var(--rose-dark);
  margin-bottom: 5px;
}

.dress-info-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   SECCIÓN 6: EL LUGAR (THE VENUE)
   ========================================================================== */
.venue-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--surface-shadow);
}

.venue-image-frame {
  position: relative;
  width: 100%;
  height: 190px;
}

.venue-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.venue-photo-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
}

.venue-badge {
  background: rgba(51, 30, 36, 0.85);
  color: var(--gold-light);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold-primary);
}

.venue-content {
  padding: 22px 18px;
  text-align: center;
}

.venue-name {
  font-family: var(--font-editorial);
  font-size: 25px;
  font-weight: 600;
  color: var(--rose-dark);
  margin-bottom: 6px;
}

.venue-address {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.venue-reception-hours {
  font-size: 12.5px;
  color: var(--rose-gold);
  margin-bottom: 18px;
}

.venue-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 290px;
  margin: 0 auto;
}

.btn-gold-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--gold-gradient);
  color: #3c2605;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
  transition: var(--transition);
}

.btn-gold-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

/* ==========================================================================
   SECCIÓN 7: ITINERARIO (TIMELINE)
   ========================================================================== */
.section-date-highlight {
  font-family: var(--font-editorial);
  font-size: 17px;
  font-style: italic;
  color: var(--rose-dark);
  margin-bottom: 26px;
}

.timeline-container {
  position: relative;
  max-width: 360px;
  margin: 0 auto;
  padding-left: 10px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 27px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-primary) 0%, var(--rose-gold) 50%, var(--gold-primary) 100%);
  opacity: 0.5;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  position: relative;
  text-align: left;
}

.timeline-marker {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
}

.timeline-icon-svg {
  width: 18px;
  height: 18px;
}

.timeline-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border-rose);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  flex: 1;
  box-shadow: 0 4px 14px rgba(109, 54, 63, 0.06);
}

.timeline-time {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--rose-dark);
  background: var(--rose-soft);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 4px;
}

.timeline-milestone {
  font-family: var(--font-editorial);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.timeline-detail {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   SECCIÓN 8: CÓDIGO DE VESTIMENTA
   ========================================================================== */
.dresscode-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  box-shadow: var(--surface-shadow);
  max-width: 360px;
  margin: 0 auto;
}

.dresscode-main-type {
  font-family: var(--font-editorial);
  font-size: 21px;
  font-weight: 600;
  color: var(--rose-dark);
  margin-bottom: 10px;
}

.dresscode-instructions {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.palette-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--rose-dark);
  margin-bottom: 8px;
}

.palette-swatches {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.swatch-gold { background: #d4af37; }
.swatch-navy { background: #1b2838; }
.swatch-emerald { background: #1c4938; }
.swatch-burgundy { background: #581825; }
.swatch-rose { background: #dfb2b8; }

.dresscode-gentle-note {
  font-size: 12px;
  color: var(--rose-dark);
  background: var(--rose-soft);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  display: block;
}

/* ==========================================================================
   SECCIÓN 9: LLUVIA DE SOBRES
   ========================================================================== */
.gift-digital-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  box-shadow: var(--surface-shadow);
  max-width: 360px;
  margin: 0 auto;
}

.gift-icon-header {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
}

.gift-icon-svg {
  width: 100%;
  height: 100%;
}

.gift-bank-title {
  font-family: var(--font-editorial);
  font-size: 19px;
  font-weight: 600;
  color: var(--rose-dark);
}

.gift-bank-name {
  font-size: 13.5px;
  color: var(--text-muted);
}

.gift-holder {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.gift-account-box {
  background: var(--rose-soft);
  border: 1px dashed var(--surface-border-rose);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.account-info {
  text-align: left;
}

.account-label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--rose-gold);
}

.account-number {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--rose-dark);
  letter-spacing: 0.5px;
}

.btn-copy-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  background: var(--gold-gradient);
  border: none;
  border-radius: var(--radius-pill);
  color: #3c2605;
  font-size: 11.5px;
  font-weight: 700;
  transition: var(--transition);
}

.btn-copy-action:hover {
  transform: scale(1.05);
}

.copy-icon {
  width: 13px;
  height: 13px;
}

/* ==========================================================================
   SECCIÓN 10: CONFIRMACIÓN RSVP
   ========================================================================== */
.rsvp-section {
  padding-top: 15px;
}

.rsvp-ribbon-header {
  width: 170px;
  margin: 0 auto -20px;
  position: relative;
  z-index: 10;
}

.rsvp-ribbon-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 12px rgba(109, 54, 63, 0.2));
}

.rsvp-card-wrapper {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--surface-shadow-lg);
  padding: 34px 16px 24px;
  max-width: 380px;
  margin: 0 auto;
  position: relative;
}

.rsvp-title {
  font-family: var(--font-editorial);
  font-size: 27px;
  font-weight: 600;
  color: var(--rose-dark);
  margin-bottom: 5px;
}

.rsvp-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

/* Formulario */
.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rose-dark);
}

.required-star {
  color: #b73232;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid rgba(197, 138, 143, 0.4);
  border-radius: var(--radius-sm);
  background: var(--rose-soft);
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--text-main);
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
  outline: none;
}

/* Opciones de Asistencia Radio */
.attendance-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.attendance-radio-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--rose-soft);
  border: 1px solid rgba(197, 138, 143, 0.3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.attendance-radio-card:hover {
  background: #ffffff;
  border-color: var(--gold-primary);
}

.attendance-radio-card input[type="radio"] {
  display: none;
}

.radio-custom {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--rose-gold);
  position: relative;
  flex-shrink: 0;
}

.attendance-radio-card input[type="radio"]:checked + .radio-custom {
  border-color: var(--gold-primary);
  background: var(--gold-primary);
}

.attendance-radio-card input[type="radio"]:checked + .radio-custom::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}

.radio-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
}

/* Status Box */
.rsvp-status-box {
  display: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.4;
  margin-top: 4px;
}

.rsvp-status-box.error {
  display: block;
  background: #fdf0f0;
  border: 1px solid #e0a3a3;
  color: #8c2424;
}

.rsvp-status-box.success {
  display: block;
  background: #f2faf3;
  border: 1px solid #a3d9ad;
  color: #1c6b29;
}

/* Botones RSVP */
.rsvp-buttons-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.btn-rsvp-direct {
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--gold-gradient);
  color: #3c2605;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
  transition: var(--transition);
}

.btn-rsvp-direct:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.45);
}

.btn-rsvp-whatsapp {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-pill);
  border: 1px solid #25d366;
  background: #ffffff;
  color: #128c7e;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.18);
  transition: var(--transition);
}

.btn-rsvp-whatsapp:hover {
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.28);
}

.rsvp-bottom-seal {
  margin-top: 22px;
  text-align: center;
}

.seal-image-small {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 4px 10px rgba(92, 61, 5, 0.3));
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.inv-footer {
  text-align: center;
  padding: 36px 16px 20px;
}

.footer-ornament {
  width: 36px;
  height: 26px;
  margin: 0 auto 10px;
}

.footer-crown {
  width: 100%;
  height: 100%;
}

.footer-names {
  font-family: var(--font-script);
  font-size: 36px;
  color: var(--rose-dark);
  line-height: 1;
  margin-bottom: 4px;
}

.footer-quince-line {
  font-family: var(--font-serif);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-secondary);
  margin-bottom: 4px;
}

.footer-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.footer-thanks {
  font-size: 12.5px;
  font-style: italic;
  color: var(--rose-gold);
}

/* ==========================================================================
   TOAST POPUP
   ========================================================================== */
.toast-popup {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(51, 30, 36, 0.95);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold-primary);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
  pointer-events: none;
}

.toast-popup.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   REGLAS PARA PREFERS-REDUCED-MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  #petals-canvas {
    display: none !important;
  }

  .seal-glow-ring {
    animation: none !important;
  }

  .floating-music-btn.playing .vinyl-disc-img {
    animation: none !important;
  }
}
