/* styles.css - Estilos Premium para la Invitación Digital */

/* Configuración de Fuentes */
:root {
  --color-cream-50: #FDFBF7;
  --color-cream-100: #FBF8F2;
  --color-cream-200: #F7F0E5;
  --color-cream-300: #F2E8D7;
  --color-emerald-950: #0A0A0A;
  --color-emerald-900: #141414;
  --color-emerald-800: #1E1E1E;
  --color-gold-600: #C5A880;
  --color-gold-500: #D4AF37;
  
  --font-editorial: "Playfair Display", serif;
  --font-sans: "Montserrat", sans-serif;
  --font-accent: "Playfair Display", serif;
}

/* Reset y Base */
html {
  scroll-behavior: smooth;
  background-color: var(--color-cream-50);
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--color-emerald-950);
  background-color: var(--color-cream-50);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar Personalizado */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-cream-100);
}
::-webkit-scrollbar-thumb {
  background: var(--color-emerald-900);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-600);
}

/* Tipografía Editorial */
.font-editorial {
  font-family: var(--font-editorial);
}
.font-accent {
  font-family: var(--font-accent);
}

/* Clases de Animación y Efectos */
.metallic-gold-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #C5A880 0%, #E2D1B9 50%, #C5A880 100%);
  background-size: 200% auto;
  color: #0A0A0A !important;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(197, 168, 128, 0.2);
}

.metallic-gold-btn:hover {
  background-position: right center;
  box-shadow: 0 6px 20px rgba(197, 168, 128, 0.4);
  transform: translateY(-2px);
}

.metallic-gold-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(45deg);
  transition: none;
  animation: shine 6s infinite ease-in-out;
}

@keyframes shine {
  0% { transform: translate(-30%, -30%) rotate(45deg); }
  20% { transform: translate(30%, 30%) rotate(45deg); }
  100% { transform: translate(30%, 30%) rotate(45deg); }
}

/* Efecto Glassmorphism */
.glass-panel {
  background: rgba(253, 251, 247, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(197, 168, 128, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
}

.glass-panel-dark {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(197, 168, 128, 0.15);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
}

/* Canvas de Pétalos */
#petals-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

/* Animaciones del Intersection Observer (Scroll Reveal) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1), 
              transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fade {
  opacity: 0;
  transition: opacity 1.5s ease-out;
}

.reveal-fade.active {
  opacity: 1;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1), 
              transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-35px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(35px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Parallax Sutil */
.parallax-container {
  overflow: hidden;
  position: relative;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* Decoraciones y Bordes */
.double-border {
  position: relative;
}
.double-border::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 1px solid rgba(197, 168, 128, 0.4);
  pointer-events: none;
}

/* Efecto de máscara de capa premium en imágenes */
.image-mask {
  mask-image: radial-gradient(circle, black 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle, black 60%, transparent 100%);
}

.arch-shape {
  border-top-left-radius: 120px;
  border-top-right-radius: 120px;
  overflow: hidden;
  border: 1px solid rgba(197, 168, 128, 0.3);
}

/* Línea de tiempo interactiva */
.timeline-dot::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--color-gold-600);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Audio Player */
.music-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-emerald-950);
  border: 1px solid var(--color-gold-600);
  color: var(--color-gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  z-index: 50;
}

.music-btn:hover {
  transform: scale(1.1);
  background: var(--color-emerald-900);
}

/* Estilo Masonry Grid de Fotos */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-gap: 1.5rem;
  grid-auto-flow: dense;
}

@media (min-width: 640px) {
  .masonry-item-w2 {
    grid-column: span 2;
  }
  .masonry-item-h2 {
    grid-row: span 2;
  }
}
