/* ==========================================================================
   Eduardo Contreras — Pianista Clásico, Docente & Eventos
   Sitio Web Oficial
   Identidad Visual Institucional: Fundación Claudio Arrau
   Paleta: Brilliant Black (#0c0c0e / #000000) & Oro Arrau (#c9a84c)
   ========================================================================== */

/* 1. Variables de Diseño & Paleta Oficial de la Fundación Arrau */
:root {
  --bg-primary: #0a0a0d;
  --bg-secondary: #141416;
  --bg-tertiary: #1b1b1f;
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.075);
  
  /* Gama de Dorados Oficiales Fundación Claudio Arrau */
  --gold-primary: #c9a84c;
  --gold-light: #e6c976;
  --gold-frost: #f6e7b0;
  --gold-dark: #8c6d23;
  --gold-glow: rgba(201, 168, 76, 0.35);
  --gold-gradient: linear-gradient(135deg, #f6e7b0 0%, #c9a84c 50%, #8c6d23 100%);
  --gold-gradient-subtle: linear-gradient(135deg, rgba(201, 168, 76, 0.16) 0%, rgba(201, 168, 76, 0.03) 100%);
  
  /* Textos */
  --text-primary: #ffffff;
  --text-secondary: #f8f9fa;
  --text-muted: #9ca3af;
  --text-gold: #c9a84c;

  /* Bordes */
  --border-subtle: rgba(255, 255, 255, 0.10);
  --border-gold: rgba(201, 168, 76, 0.40);
  --border-gold-strong: #c9a84c;
  
  /* Tipografías */
  --font-serif: 'Old Standard TT', Georgia, 'Times New Roman', serif;
  --font-cormorant: 'Cormorant Garamond', Georgia, serif;
  --font-cinzel: 'Cinzel', 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 2. Resets y Tipografía Base */
html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: #0c0c0e;
  color: #d1d5db;
  font-family: var(--font-serif);
  overflow-x: hidden;
}

::selection {
  background: #c9a84c;
  color: #000000;
}

/* Clases tipográficas auxiliares */
.font-oldstandard { font-family: 'Old Standard TT', Georgia, 'Times New Roman', serif; }
.font-cormorant { font-family: 'Cormorant Garamond', Georgia, serif; }
.font-cinzel { font-family: 'Cinzel', serif; }
.font-sans-body { font-family: 'Plus Jakarta Sans', sans-serif; }

/* Scrollbar Dorada */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: #0a0a0d;
}
::-webkit-scrollbar-thumb {
  background: #2a2a2e;
  border-radius: 4px;
  border: 1px solid rgba(201, 168, 76, 0.3);
}
::-webkit-scrollbar-thumb:hover {
  background: #c9a84c;
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.5);
}

/* 3. Marco Perimetral Dorado Animado (.gold-frame) - Identidad Fundación Arrau */
.gold-frame {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 2px rgba(201, 168, 76, 0.45),
    inset 0 0 22px rgba(201, 168, 76, 0.30),
    inset 0 0 75px rgba(201, 168, 76, 0.15);
}

.gold-frame::before,
.gold-frame::after {
  content: "";
  position: absolute;
  inset: 0;
}

.gold-frame::before {
  box-shadow:
    inset 0 0 0 2px rgba(230, 201, 118, 0.60),
    inset 0 0 28px rgba(201, 168, 76, 0.48),
    inset 0 0 80px rgba(201, 168, 76, 0.26),
    inset 0 0 150px rgba(201, 168, 76, 0.12);
  animation: goldFlame 9s ease-in-out infinite;
}

.gold-frame::after {
  box-shadow:
    inset 0 0 18px rgba(246, 231, 176, 0.42),
    inset 0 0 60px rgba(230, 201, 118, 0.24),
    inset 0 0 120px rgba(201, 168, 76, 0.14);
  animation: goldFlame 6s ease-in-out infinite reverse;
}

@keyframes goldFlame {
  0%   { opacity: 0.74; }
  15%  { opacity: 0.94; }
  27%  { opacity: 0.79; }
  41%  { opacity: 1; }
  54%  { opacity: 0.80; }
  67%  { opacity: 0.96; }
  81%  { opacity: 0.76; }
  100% { opacity: 0.88; }
}

@media (prefers-reduced-motion: reduce) {
  .gold-frame::before,
  .gold-frame::after { animation: none; opacity: 0.85; }
}

/* 4. Títulos de Sección y Ornamentos */
.section-title {
  font-family: 'Old Standard TT', Georgia, 'Times New Roman', serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.03em;
  margin: 0;
}

.section-title-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.25rem auto 1.75rem auto;
  max-width: 240px;
}
.section-title-ornament .line {
  display: block;
  height: 1px;
  background: #c9a84c;
  flex: 1;
}
.section-title-ornament .diamond {
  color: #c9a84c;
  font-size: 0.8rem;
  line-height: 1;
}

/* 5. Efectos de Oro y Metálicos */
.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gold-glow {
  box-shadow: 0 0 35px -5px rgba(201, 168, 76, 0.3);
}

.gold-glow-hover {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.gold-glow-hover:hover {
  box-shadow: 0 12px 40px -8px rgba(201, 168, 76, 0.45);
  border-color: #c9a84c;
  transform: translateY(-4px);
}

/* 6. Tarjetas de Cristal Translúcido */
.glass-card {
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 1rem;
  transition: all 0.35s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(201, 168, 76, 0.6);
  transform: translateY(-3px);
}

/* 7. Tabs de Repertorio */
.rep-tab-btn {
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.03);
}
.rep-tab-btn:hover {
  border-color: rgba(201, 168, 76, 0.6);
  color: #f6e7b0;
  background: rgba(201, 168, 76, 0.1);
}
.rep-tab-btn.active {
  color: #0c0c0e !important;
  border-color: #c9a84c !important;
  background: #c9a84c !important;
  font-weight: 700 !important;
  box-shadow: 0 0 25px rgba(201, 168, 76, 0.45);
}

/* Botón Flotante WhatsApp */
#whatsapp-float-btn {
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#whatsapp-float-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

/* 8. Galería & Filtros */
.gallery-item {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.gallery-item.hide {
  display: none;
}

.filter-btn {
  transition: all 0.25s ease;
}
.filter-btn.active {
  background: #c9a84c;
  color: #000000;
  font-weight: 600;
  border-color: #c9a84c;
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.35);
}

/* 9. Lightbox Profesional */
#lightbox-modal {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}
#lightbox-modal .lightbox-content {
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

/* 10. Botón Flotante Volver Arriba & WhatsApp */
#btn-back-to-top {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}
#btn-back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* 11. Animaciones de Entrada (Scroll Reveal) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 12. Tarjetas de Servicio Destacadas */
.service-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9a84c;
  transition: all 0.3s ease;
}
.glass-card:hover .service-icon-box {
  background: #c9a84c;
  color: #0c0c0e;
  box-shadow: 0 0 25px rgba(201, 168, 76, 0.5);
}

/* 13. Ajustes Responsivos */
@media (max-width: 768px) {
  .hero-headline {
    font-size: 2.75rem !important;
    line-height: 1.15 !important;
  }
}
