/* ============================================
   DESIGN SYSTEM — Grupo Al Peso
   Eventos & Sala Privada
   Personalidad: Luxury / Hostelería Asturiana
   ============================================ */

:root {
  /* === COLORES === */
  --color-bg: #0a0a0a;
  --color-bg-alt: #0f0f0f;
  --color-bg-dark: #050505;
  --color-surface: #1a1a1a;
  --color-surface-light: #222222;
  --color-primary: #c09449;
  --color-primary-light: #d4ad6a;
  --color-primary-dark: #a07a35;
  --color-primary-rgb: 192, 148, 73;
  --color-secondary: #9b1c1c;
  --color-secondary-light: #b52a2a;
  --color-secondary-rgb: 155, 28, 28;
  --color-text: #ffffff;
  --color-text-muted: #999999;
  --color-text-dim: #666666;
  --color-text-light: #f5f0e8;
  --color-border: rgba(192, 148, 73, 0.15);
  --color-border-subtle: rgba(255, 255, 255, 0.06);
  --color-overlay: rgba(5, 5, 5, 0.85);
  --color-overlay-light: rgba(5, 5, 5, 0.6);

  /* === TIPOGRAFIA === */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-accent: 'Cormorant Garamond', 'Times New Roman', serif;

  --text-xs: clamp(0.7rem, 0.8vw, 0.8rem);
  --text-sm: clamp(0.8rem, 0.9vw, 0.9rem);
  --text-base: clamp(0.95rem, 1vw, 1.1rem);
  --text-lg: clamp(1.1rem, 1.3vw, 1.3rem);
  --text-xl: clamp(1.3rem, 1.8vw, 1.6rem);
  --text-2xl: clamp(1.6rem, 2.5vw, 2.2rem);
  --text-3xl: clamp(2rem, 3.5vw, 3rem);
  --text-4xl: clamp(2.5rem, 5vw, 4rem);
  --text-hero: clamp(2.8rem, 7vw, 6rem);

  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.8;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.12em;
  --tracking-widest: 0.2em;

  /* === SPACING === */
  --space-2xs: 0.125rem;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 10rem;
  --section-padding: clamp(5rem, 12vh, 9rem);

  /* === LAYOUT === */
  --container-max: 1400px;
  --container-narrow: 800px;
  --container-wide: 1600px;
  --container-padding: clamp(1.25rem, 4vw, 3rem);
  --border-radius: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-full: 999px;

  /* === SOMBRAS === */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(var(--color-primary-rgb), 0.25);
  --shadow-glow-sm: 0 0 15px rgba(var(--color-primary-rgb), 0.15);
  --shadow-glow-lg: 0 0 60px rgba(var(--color-primary-rgb), 0.3);

  /* === TRANSICIONES === */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.8s;
  --duration-slower: 1.2s;

  /* === Z-INDEX === */
  --z-behind: -1;
  --z-default: 1;
  --z-above: 10;
  --z-nav: 100;
  --z-overlay: 500;
  --z-modal: 1000;
  --z-chatbot: 1500;
  --z-loader: 9999;
  --z-cursor: 10000;
}

/* === RESET & BASE === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

/* === TIPOGRAFIA === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  max-width: 65ch;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-smooth);
}

a:hover {
  color: var(--color-primary-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* === UTILIDADES === */
.text-accent {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--color-primary);
}

.text-gold {
  color: var(--color-primary);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary), var(--color-primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

.divider-gold {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  margin: var(--space-lg) 0;
}

.divider-gold--center {
  margin-left: auto;
  margin-right: auto;
}

/* === SELECTION === */
::selection {
  background: rgba(var(--color-primary-rgb), 0.3);
  color: var(--color-text);
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(var(--color-primary-rgb), 0.3);
  border-radius: var(--border-radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--color-primary-rgb), 0.5);
}

/* === 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;
  }
}
