/* ============================================================
   Déjate Enredar -- Style.css
   Design tokens, nav, animations, reveal effects
   ============================================================ */

/* -- Design Tokens -------------------------------------------- */
:root {
  /* Colors */
  --color-primary:       #0f0f0f;
  --color-primary-light: #1a1a1a;
  --color-primary-dark:  #080808;
  --color-accent:        #c9a96e;
  --color-accent-light:  #d4b97e;
  --color-accent-dark:   #a8884d;
  --color-olive:         #5a6346;
  --color-olive-light:   #6e7958;

  --color-bg:            #0f0f0f;
  --color-bg-alt:        #141414;
  --color-bg-card:       #181818;
  --color-text:          #e8e0d4;
  --color-text-muted:    #8a8070;
  --color-text-subtle:   #5a5248;
  --color-border:        rgba(201, 169, 110, 0.15);

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-width: 1280px;

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;
  --space-3xl:  8rem;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.6);
  --shadow-gold: 0 4px 30px rgba(201,169,110,0.15);

  /* Border radius */
  --radius-sm:  2px;
  --radius-md:  4px;
  --radius-lg:  8px;

  /* ── Standard Tokens (auto-injected) ── */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --space-4xl: 6rem;
  --radius-default: 4px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* -- Base ----------------------------------------------------- */
html { scroll-behavior: smooth; }

/* -- Keyframes ------------------------------------------------ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

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

/* -- Scroll Reveal -------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal-stagger].is-visible > *:nth-child(1)  { transition-delay:   0ms; }
[data-reveal-stagger].is-visible > *:nth-child(2)  { transition-delay: 100ms; }
[data-reveal-stagger].is-visible > *:nth-child(3)  { transition-delay: 200ms; }
[data-reveal-stagger].is-visible > *:nth-child(4)  { transition-delay: 300ms; }
[data-reveal-stagger].is-visible > *:nth-child(5)  { transition-delay: 400ms; }
[data-reveal-stagger].is-visible > *:nth-child(6)  { transition-delay: 500ms; }
[data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* -- Navigation ----------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  background-color: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.12);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
.site-header.is-scrolled {
  background-color: rgba(8, 8, 8, 0.98);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
  font-style: italic;
  flex-shrink: 0;
}
.nav-logo:hover { color: var(--color-accent-light); }

.nav-desktop {
  display: none;
}
@media (min-width: 1100px) {
  .nav-desktop { display: flex; }
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a09080;
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 2px;
  transition: color 0.2s ease;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.6rem;
  right: 0.6rem;
  height: 1px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}
.nav-link:hover,
.nav-link.active { color: var(--color-accent); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.nav-cta {
  display: none;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-accent);
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 2px;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--color-accent-light);
  transform: translateY(-1px);
}
@media (min-width: 768px) {
  .nav-cta { display: inline-block; }
}

.nav-toggle {
  color: var(--color-accent);
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
}

/* -- Mobile Menu ----------------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #080808;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-link {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 300;
  color: #a09080;
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(201, 169, 110, 0.08);
  letter-spacing: 0.02em;
  transition: color 0.2s ease, padding-left 0.3s ease;
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--color-accent);
  padding-left: 0.75rem;
}

/* -- Icon Sizing ----------------------------------------------- */
.icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.15em;
  flex-shrink: 0;
}
.icon.hidden { display: none; }
.icon-sm  { width: 1em;    height: 1em; }
.icon-lg  { width: 1.5em;  height: 1.5em; }
.icon-xl  { width: 2em;    height: 2em; }

/* -- Utility Helpers ------------------------------------------- */
.gold-divider {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--color-accent);
  margin: 1.5rem 0;
}
.gold-divider-center {
  margin-left: auto;
  margin-right: auto;
}

/* -- Reduced Motion -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:        0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration:       0.01ms !important;
    scroll-behavior:           auto !important;
  }
}body { margin: 0; }

.mobile-menu-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: inherit;
  padding: 0.5rem;
  line-height: 1;
  z-index: 1;
}
