@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Great+Vibes&family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&display=swap');

:root {
  --color-gold-light: #FEF08A;
  --color-gold: #D4AF37;
  --color-gold-dark: #B48811;
  --color-pink-soft: #FCE7F0;
  --color-pink-accent: #F472B6;
}

body {
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
  background-color: #0B0F19;
  color: #F8FAFC;
}

.font-serif-title {
  font-family: 'Playfair Display', serif;
}

.font-serif-body {
  font-family: 'Cormorant Garamond', serif;
}

.font-script {
  font-family: 'Great Vibes', cursive;
}

/* Gold Gradient Utilities */
.text-gold-gradient {
  background: linear-gradient(135deg, #FDE68A 0%, #D4AF37 50%, #9A7B1C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gold-gradient {
  background: linear-gradient(135deg, #FDE68A 0%, #D4AF37 50%, #B48811 100%);
}

.border-gold-gradient {
  border-image: linear-gradient(135deg, #FDE68A, #D4AF37, #B48811) 1;
}

/* Floating 3D Card / Envelope Effect */
.perspective-container {
  perspective: 1200px;
}

.envelope-card {
  transform-style: preserve-3d;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 30px rgba(212, 175, 55, 0.2);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.envelope-card:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-1deg);
  box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 175, 55, 0.35);
}

/* Smooth Intro Unlock Fade Out */
#intro-screen {
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out, visibility 0.8s;
}

#intro-screen.unlocked {
  opacity: 0;
  transform: scale(1.05) translateY(-30px);
  pointer-events: none;
  visibility: hidden;
}

/* Glassmorphism Cards */
.glass-panel {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-panel-light {
  background: rgba(255, 253, 249, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Pulsing Music Icon */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
}

.music-btn-playing {
  animation: pulse-ring 2s infinite;
}

/* Canvas Particles Overlay */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 30;
}

/* Custom Input Focus */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #D4AF37;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

/* Responsive Image Container */
.gallery-img-container {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-img-container:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 20px 35px -5px rgba(212, 175, 55, 0.25);
}

/* Galería Masonry Tipo Mosaico */
.masonry-gallery {
  column-count: 1;
  column-gap: 1.5rem;
}

@media (min-width: 640px) {
  .masonry-gallery {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .masonry-gallery {
    column-count: 3;
  }
}

@media (min-width: 1280px) {
  .masonry-gallery {
    column-count: 4;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  display: inline-block;
  width: 100%;
}


/* Reserved Color Swatches with Strikethrough / Tachado */
.color-swatch-container {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.swatch-circle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 0 8px rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Linea diagonal roja tachada */
.swatch-circle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -10%;
  width: 120%;
  height: 3px;
  background-color: #EF4444; /* Red strike line */
  transform: translateY(-50%) rotate(-45deg);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.8);
}

/* Timeline Lineal Vertical */
.vertical-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* La linea central o lateral vertical */
.vertical-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 2rem;
  width: 4px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.9) 15%, rgba(212, 175, 55, 0.9) 85%, rgba(212, 175, 55, 0.2) 100%);
  border-radius: 2px;
}

@media (min-width: 768px) {
  .vertical-timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 100%;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .timeline-item {
    flex-direction: row;
    justify-content: flex-end;
  }

  .timeline-item:nth-child(even) {
    justify-content: flex-start;
  }
}

/* El nodo circular con el icono en la linea */
.timeline-node {
  position: absolute;
  top: 0;
  left: 2rem;
  transform: translateX(-50%);
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #FDE68A, #D4AF37);
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
  z-index: 10;
}

@media (min-width: 768px) {
  .timeline-node {
    left: 50%;
  }
}

/* El contenido de la tarjeta de la linea de tiempo */
.timeline-content {
  margin-left: 4.5rem;
  width: calc(100% - 4.5rem);
}

@media (min-width: 768px) {
  .timeline-content {
    margin-left: 0;
    width: 44%;
  }
  
  .timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    text-align: left;
  }
}

