/* ============================================
   DULCE NECTAR CAFE — DESIGN SYSTEM
   Botanico Tropical: Esmeralda + Oro + Crema
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

:root {
  /* === COLORES — Botanico Tropical === */
  --color-bg: #f8f5ef;
  --color-bg-rgb: 248, 245, 239;
  --color-bg-alt: #f0ebe2;
  --color-bg-dark: #1a2e28;
  --color-bg-dark-rgb: 26, 46, 40;
  --color-surface: #ffffff;
  --color-surface-dark: #223d35;

  --color-primary: #1a6b5a;
  --color-primary-rgb: 26, 107, 90;
  --color-primary-light: #2a8f78;
  --color-primary-dark: #0e4a3d;
  --color-primary-pale: rgba(26, 107, 90, 0.08);

  --color-accent: #c9a84c;
  --color-accent-rgb: 201, 168, 76;
  --color-accent-light: #dcc06a;
  --color-accent-dark: #a8892e;

  --color-text: #2a2a2a;
  --color-text-muted: #6b6b6b;
  --color-text-light: #f5f0e8;
  --color-text-on-dark: #e8e0d0;

  --color-border: rgba(26, 107, 90, 0.12);
  --color-border-light: rgba(0, 0, 0, 0.06);
  --color-overlay: rgba(26, 46, 40, 0.85);
  --color-overlay-light: rgba(26, 46, 40, 0.4);

  /* Tonos botanicos extra */
  --color-leaf: #2d7a5e;
  --color-leaf-light: #4a9e7e;
  --color-leaf-pale: rgba(45, 122, 94, 0.06);
  --color-cream: #f5ede1;
  --color-cream-dark: #e8dccb;

  /* === TIPOGRAFIA === */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, 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.05rem);
  --text-lg: clamp(1.1rem, 1.3vw, 1.25rem);
  --text-xl: clamp(1.3rem, 1.8vw, 1.5rem);
  --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(3rem, 8vw, 7rem);

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

  --tracking-tight: -0.03em;
  --tracking-normal: 0;
  --tracking-wide: 0.1em;
  --tracking-wider: 0.2em;
  --tracking-widest: 0.3em;

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

  /* === LAYOUT === */
  --container-max: 1400px;
  --container-narrow: 860px;
  --container-wide: 1600px;
  --border-radius: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-full: 999px;

  /* === SOMBRAS === */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px rgba(var(--color-primary-rgb), 0.15);
  --shadow-gold: 0 0 30px rgba(var(--color-accent-rgb), 0.2);

  /* === 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-cursor: 5000;
  --z-loader: 9999;
}

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

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

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

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

p {
  line-height: var(--leading-normal);
  color: var(--color-text-muted);
}

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

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

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

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

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

/* === FOCUS VISIBLE === */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

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

/* ============================================
   ACCESSIBILITY — Skip to Content (WCAG 2.4.1)
   ============================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--color-primary);
  color: var(--color-bg);
  border-radius: 6px;
  font-family: var(--font-body, Inter, sans-serif);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Focus visible para items interactivos de la galería */
.gallery__item:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 8px;
}
