/* ONBARCLASS Custom Styles & Gold Aesthetics */

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

:root {
  --color-gold-light: #F4D068;
  --color-gold: #D4AF37;
  --color-gold-dark: #AA820A;
  --color-dark-bg: #0A0A0A;
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Montserrat', 'Outfit', sans-serif;
  --font-montserrat: 'Montserrat', sans-serif;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-dark-bg);
  color: #E2E8F0;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.font-serif-gold {
  font-family: var(--font-serif);
}

/* Gold Text Gradients */
.text-gold {
  color: #D4AF37;
}

.text-gold-gradient {
  background: linear-gradient(135deg, #FFE28A 0%, #D4AF37 50%, #997A15 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.border-gold {
  border-color: #D4AF37;
}

.border-gold-subtle {
  border-color: rgba(212, 175, 55, 0.4);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0D0D0D;
}
::-webkit-scrollbar-thumb {
  background: #2A2A2A;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* Image Placeholder styling when image is missing */
.img-placeholder {
  position: relative;
  background-color: #111115;
  background-image: linear-gradient(135deg, #0A0A0D 0%, #1A1A22 100%);
}

.img-placeholder-light {
  position: relative;
  background-color: #F3F4F6;
  background-image: linear-gradient(135deg, #E5E7EB 0%, #F9FAFB 100%);
}

/* Watermark text behind especializacion section */
.watermark-especializacion {
  font-family: var(--font-serif);
  font-size: 5.5rem;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.04);
  line-height: 0.9;
  user-select: none;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .watermark-especializacion {
    font-size: 2.5rem;
  }
}

/* Gold Outline Buttons */
.btn-gold-outline {
  border: 1px solid #D4AF37;
  color: #D4AF37;
  transition: all 0.2s ease-in-out;
}

.btn-gold-outline:hover {
  background-color: #D4AF37;
  color: #000000;
}

/* ==================== GLOBAL SMOOTH PAGE PRELOADER ==================== */
#global-page-preloader {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#global-page-preloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ==================== HERO SHIMMER EFFECT ==================== */
.hero-shimmer-title {
  background: linear-gradient(
    115deg,
    #E6C254 0%,
    #FFFFFF 25%,
    #C5A059 50%,
    #FFF6D1 75%,
    #AA820A 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmerSweep 6s linear infinite, titleFloat 4s ease-in-out infinite alternate;
}

@keyframes goldShimmerSweep {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes titleFloat {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-6px);
  }
}
