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

:root {
  --color-gold: #D4AF37;
  --color-gold-light: #F3E5AB;
  --color-gold-dark: #AA820A;
  --color-gold-warm: #C5A059;
  --color-sand: #EFE6DD;
  --color-ivory: #FAF6F0;
  --color-charcoal: #1C1917;
  --color-charcoal-deep: #12100E;
  --color-bronze: #8C5E3C;
  --color-terracotta: #B46C49;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #1C1917;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #D4AF37, #8C5E3C);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #D4AF37;
}

html, body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--color-ivory);
  color: var(--color-charcoal);
  overflow-x: hidden;
  width: 100vw;
  max-width: 100vw;
  position: relative;
  scroll-behavior: smooth;
}

.font-cinzel {
  font-family: 'Cinzel', serif;
}

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

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

/* Text glow & shadows */
.text-gold-glow {
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.45);
}

.text-dark-shadow {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.text-white-shadow {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Regla Crítica de Encuadre: Superior, Contenido y Sin Recortes de Rostros */
.bg-section-top-contain {
  background-position: center top !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-color: var(--color-charcoal-deep);
}

/* Variante cubierta elegante para Hero */
.bg-section-hero {
  background-position: center top !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

/* Glassmorphism Panels */
.glass-panel-light {
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.glass-panel-dark {
  background: rgba(18, 16, 14, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Luxury Frames */
.luxury-frame {
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.luxury-frame::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  pointer-events: none;
  border-radius: inherit;
}

.luxury-frame-dark {
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.luxury-frame-dark::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  pointer-events: none;
  border-radius: inherit;
}

/* Animaciones de Apertura y Pulso */
@keyframes pulse-ring {
  0% {
    transform: scale(0.96);
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.65);
  }
  70% {
    transform: scale(1.02);
    box-shadow: 0 0 0 18px rgba(212, 175, 55, 0);
  }
  100% {
    transform: scale(0.96);
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
}

.animate-pulse-ring {
  animation: pulse-ring 2.4s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes float-subtle {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-7px) rotate(1deg);
  }
}

.animate-float {
  animation: float-subtle 4s ease-in-out infinite;
}

/* Ecualizador Musical Animado */
@keyframes music-equalizer-bar {
  0%, 100% {
    transform: scaleY(0.25);
  }
  50% {
    transform: scaleY(1);
  }
}

.equalizer-bar {
  display: inline-block;
  width: 3px;
  height: 18px;
  background: #D4AF37;
  margin: 0 1.5px;
  transform-origin: bottom;
  border-radius: 2px;
}

.equalizer-bar-1 { animation: music-equalizer-bar 0.6s ease-in-out infinite; }
.equalizer-bar-2 { animation: music-equalizer-bar 0.9s ease-in-out infinite; animation-delay: 0.2s; }
.equalizer-bar-3 { animation: music-equalizer-bar 0.5s ease-in-out infinite; animation-delay: 0.4s; }
.equalizer-bar-4 { animation: music-equalizer-bar 0.8s ease-in-out infinite; animation-delay: 0.1s; }

/* Partículas Flotantes Doradas (Sparks / Pétalos) */
.particles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.particle {
  position: absolute;
  background: radial-gradient(circle, #F3E5AB 20%, rgba(212, 175, 55, 0.4) 70%, transparent 100%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: particle-drift linear infinite;
}

@keyframes particle-drift {
  0% {
    transform: translateY(-10px) translateX(0) scale(0.6) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.8;
  }
  85% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(105vh) translateX(40px) scale(1.1) rotate(180deg);
    opacity: 0;
  }
}

/* Línea de Tiempo del Itinerario */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, #D4AF37 10%, #D4AF37 90%, transparent);
  transform: translateX(-50%);
}

@media (max-width: 767px) {
  .timeline-line {
    left: 28px;
    transform: none;
  }
}

/* Lightbox Modal */
#lightbox-modal.active {
  display: flex !important;
  opacity: 1;
}

/* Form Inputs & Selects con estilo de línea inferior de lujo */
.input-elegant {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.5);
  color: #FFFFFF;
  padding: 12px 6px;
  width: 100%;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.input-elegant:focus {
  outline: none;
  border-bottom: 2px solid #D4AF37;
  box-shadow: 0 4px 12px -2px rgba(212, 175, 55, 0.2);
}

.input-elegant::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.select-elegant {
  background: #1C1917;
  border: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.5);
  color: #FFFFFF;
  padding: 12px 6px;
  width: 100%;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.select-elegant:focus {
  outline: none;
  border-bottom: 2px solid #D4AF37;
}

.select-elegant option {
  background: #1C1917;
  color: #FFFFFF;
  padding: 8px;
}

/* Botón píldora dorado con microinteracción */
.btn-gold-pill {
  background: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 50%, #B8860B 100%);
  color: #12100E;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
}

.btn-gold-pill:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.55);
  filter: brightness(1.06);
}

.btn-gold-pill:active {
  transform: translateY(0px) scale(0.98);
}

/* Footer Link microinteracción */
.footer-contact-link {
  position: relative;
  display: inline-block;
  color: #F3E5AB;
  font-weight: 700;
  transition: color 0.3s ease;
}

.footer-contact-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #D4AF37, #F3E5AB);
  transform: scaleX(0.8);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.footer-contact-link:hover {
  color: #FFFFFF;
}

.footer-contact-link:hover::after {
  transform: scaleX(1);
}

/* =================================================== */
/* GALERÍA DESORDENADA ORGÁNICA / MOSAICO ASIMÉTRICO   */
/* =================================================== */
.gallery-card {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.gallery-card:hover {
  transform: scale(1.04) rotate(0deg) !important;
  z-index: 20;
  box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.25), 0 0 16px rgba(212, 175, 55, 0.35) !important;
}

.gallery-tilt-left-1 { transform: rotate(-1.5deg); }
.gallery-tilt-right-1 { transform: rotate(1.2deg); }
.gallery-tilt-left-2 { transform: rotate(-2.2deg); }
.gallery-tilt-right-2 { transform: rotate(2deg); }
.gallery-tilt-straight { transform: rotate(0deg); }

/* Cinta decorativa dorada en tarjetas seleccionadas */
.tape-gold::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 50px;
  height: 14px;
  background: rgba(243, 229, 171, 0.8);
  border: 1px dashed rgba(170, 130, 10, 0.5);
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  z-index: 10;
  pointer-events: none;
}
