@import url('https://fonts.googleapis.com/css2?family=Lustria&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100..900;1,100..900&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

:root {
  --color-bg-neutro: #F9F6EC;
  --color-principal: #1F2A44;
  --color-secundario: #2F6F8F;
  --color-acento: #F2C14E;
  --color-marquee: #C4D6D6;

  --font-h1: 'Source Sans 3', 'Source Sans Pro', system-ui, -apple-system, sans-serif;
  --font-h2: 'Lustria', Georgia, serif;
  --font-h3: 'Lustria', Georgia, serif;
  --font-body: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-eyebrow: 'Poppins', system-ui, -apple-system, sans-serif;
}

/* Fallback base styles in case Tailwind fails to load */
body {
  background-color: var(--color-bg-neutro);
  color: #1a1a1a;
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Apply premium typography variables */
h1, .font-h1 {
  font-family: var(--font-h1);
}
h2, .font-h2 {
  font-family: var(--font-h2);
}
h3, .font-h3 {
  font-family: var(--font-h3);
}
.font-eyebrow {
  font-family: var(--font-eyebrow);
}

/* Custom transitions and scroll behaviors */
html {
  scroll-behavior: smooth;
}

/* Premium Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-neutro);
}
::-webkit-scrollbar-thumb {
  background: var(--color-principal);
  border-radius: 5px;
  border: 2px solid var(--color-bg-neutro);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-secundario);
}

/* Glassmorphism utility classes */
.glass-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-card-dark {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Marquee Animation styles */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  width: 100%;
}

.marquee-content {
  display: inline-flex;
  flex-shrink: 0;
  min-width: 100%;
  justify-content: space-around;
  animation: marquee-scroll 60s linear infinite;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Custom scale and transition helpers */
.hover-premium {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-premium:hover {
  transform: translateY(-4px) scale(1.025);
}

.hover-premium-sm {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-premium-sm:hover {
  transform: translateY(-2px) scale(1.015);
}

/* Hero Slider Cross-Fade Animation */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Lightbox container */
.lightbox-active {
  overflow: hidden;
}
