/* ============================================
   La Granada GRX - Tokens y reset globales
   ============================================ */
:root {
  --burgundy-950: #2C0B14;
  --burgundy-900: #3A0F1B;
  --burgundy-800: #4A1523;
  --burgundy-700: #5C1A2B;
  --rose-copper: #C98F82;
  --rose-copper-light: #E9C9B9;
  --cream: #F6F0E6;
  --stone: #EDE6D8;
  --cream-dim: #D9CFC0;
  --charcoal: #17130F;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --header-opacity: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--charcoal);
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
section { position: relative; }

.eyebrow {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  font-size: .72rem;
}

/* ============================================
   SISTEMA DE ANIMACIÓN Y REVELADO (Compartido)
   ============================================ */

/* 1. Revelado al hacer scroll (.reveal) */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Escalonado con data-reveal-delay */
[data-reveal-delay="1"] { transition-delay: 150ms; }
[data-reveal-delay="2"] { transition-delay: 300ms; }
[data-reveal-delay="3"] { transition-delay: 450ms; }
[data-reveal-delay="4"] { transition-delay: 600ms; }

/* 2. Movimiento ambiente lento en fotos de sección (@keyframes drift) */
@keyframes drift {
  0% { transform: scale(1.02); }
  100% { transform: scale(1.1); }
}

.ambient-drift {
  animation: drift 28s ease-in-out infinite alternate;
  will-change: transform;
}

/* 3. Enlaces con subrayado animado (.link-underline) */
.link-underline {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--rose-copper);
  transition: width 0.35s var(--ease);
}

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

/* 4. Respeto a las preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  [data-reveal-delay] {
    transition-delay: 0ms !important;
  }
  .ambient-drift {
    animation: none !important;
  }
}

/* Estilos comunes reutilizados entre páginas (Botones) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  transition: all 0.35s var(--ease);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn--cta {
  background-color: var(--rose-copper);
  color: var(--burgundy-950);
  border: 1px solid var(--rose-copper);
}

.btn--cta:hover {
  background-color: var(--rose-copper-light);
  border-color: var(--rose-copper-light);
  color: var(--burgundy-950);
  box-shadow: 0 4px 20px rgba(201, 143, 130, 0.35);
  transform: translateY(-2px);
}

.btn--secondary {
  background: transparent;
  color: var(--rose-copper-light);
  border: 1px solid var(--rose-copper);
}

.btn--secondary:hover {
  background-color: var(--rose-copper);
  color: var(--burgundy-950);
  box-shadow: 0 4px 20px rgba(201, 143, 130, 0.25);
  transform: translateY(-2px);
}
