:where([class^="ri-"])::before {
  content: "\f3c2";
}

:root {
  --oro-luna: #C5A065;
  --piedra-santuario: #E9E7E0;
  /* Sincronizado con el fondo del logo para evitar cortes */
  --carbon-mistico: #433E37;
  --verde-salvia: #6B7A5D;
  --atardecer-suave: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%);
  --glass-bg: rgba(233, 231, 224, 0.7);
  /* Actualizado para mantener coherencia con el fondo */
  --glass-border: rgba(197, 160, 101, 0.2);
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--piedra-santuario);
  color: var(--carbon-mistico);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.serif {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: -0.01em;
}

/* Glassmorphism Effect */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(67, 62, 55, 0.05);
}

.glass-dark {
  background: rgba(67, 62, 55, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

/* Premium Buttons */
.btn-oro {
  background-color: var(--oro-luna);
  color: white;
  transition: all 0.3s ease;
}

.btn-oro:hover {
  background-color: #b08d55;
  transform: translateY(-2px);
}

.btn-salvia {
  background-color: var(--verde-salvia);
  color: white;
  transition: all 0.3s ease;
}

.btn-salvia:hover {
  background-color: #5a684e;
  transform: translateY(-2px);
}

.btn-outline-oro {
  border: 1px solid var(--oro-luna);
  color: var(--oro-luna);
  background: transparent;
  transition: all 0.3s ease;
}

.btn-outline-oro:hover {
  background: var(--oro-luna);
  color: white;
}

/* Premium Navigation */
.nav-link {
  position: relative;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: var(--oro-luna);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover::after {
  width: 100%;
}

/* Cards & Containers */
.card-ritual {
  background: white;
  border: 1px solid rgba(197, 160, 101, 0.1);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-ritual:hover {
  transform: translateY(-8px);
  border-color: var(--oro-luna);
  box-shadow: 0 20px 40px -10px rgba(67, 62, 55, 0.1);
}

/* Inputs & Forms */
input,
select,
textarea {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(67, 62, 55, 0.1);
  transition: all 0.3s ease;
}

input:focus {
  outline: none;
  border-color: var(--oro-luna);
  background: white;
}

/* Custom Utilities - Explicitly Mapped */
.text-oro,
.text-oro-luna {
  color: var(--oro-luna);
}

.text-carbon,
.text-carbon-mistico {
  color: var(--carbon-mistico);
}

.bg-santuario,
.bg-background {
  background-color: var(--piedra-santuario);
}

.bg-salvia {
  background-color: var(--verde-salvia);
}

.bg-carbon-mistico {
  background-color: var(--carbon-mistico);
}

.bg-oro,
.bg-oro-luna {
  background-color: var(--oro-luna);
}

.text-foreground {
  color: var(--carbon-mistico);
}

.text-shadow-sm {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  :root {
    --glass-bg: rgba(240, 235, 229, 0.85);
    /* Slightly more opaque on mobile for legibility */
  }

  h1 {
    font-size: 2.2rem !important;
  }

  h2 {
    font-size: 1.8rem !important;
  }

  .glass {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  header nav {
    margin: 0.5rem !important;
    padding: 0.75rem 1.25rem !important;
  }
}

.separator-mistico {
  width: 40px;
  height: 1px;
  background: var(--oro-luna);
  margin: 1.5rem auto;
  opacity: 0.6;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.fade-in-up {
  animation: fadeInUp 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
  /* Ensure it starts invisible */
}