:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;

  /* Light Theme — Modern Warm Sky & Lume Magenta */
  --bg: #F3F5FA;
  --bg-subtle: #EAEFF8;
  --surface: #FFFFFF;
  --surface-hover: #F9FAFD;
  --surface-glass: rgba(255, 255, 255, 0.84);
  --border: #E4E8F2;
  --border-strong: #CFD7E8;

  --text: #111827;
  --text-secondary: #475569;
  --text-muted: #64748B;

  --brand: #E12D75;
  --brand-hover: #C81E63;
  --brand-soft: rgba(225, 45, 117, 0.11);
  --brand-gradient: linear-gradient(135deg, #FF4D8D 0%, #E12D75 48%, #7C3AED 100%);
  --story-ring: linear-gradient(135deg, #FF9A3C 0%, #FF4D8D 45%, #7C3AED 100%);

  --sky: #3B82F6;
  --sky-soft: rgba(59, 130, 246, 0.12);
  --amber: #F59E0B;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --emerald: #10B981;
  --emerald-soft: rgba(16, 185, 129, 0.13);
  --violet: #7C3AED;
  --violet-soft: rgba(124, 58, 237, 0.12);
  --danger: #EF4444;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.10), 0 2px 8px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 54px -16px rgba(15, 23, 42, 0.22);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --topbar-h: 62px;
  --transition: 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #0A0D14;
  --bg-subtle: #111622;
  --surface: #141A26;
  --surface-hover: #1B2333;
  --surface-glass: rgba(18, 24, 36, 0.84);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #8B9BB4;

  --brand: #FF4D8D;
  --brand-hover: #FF6BA1;
  --brand-soft: rgba(255, 77, 141, 0.16);

  --sky-soft: rgba(59, 130, 246, 0.18);
  --amber-soft: rgba(245, 158, 11, 0.18);
  --emerald-soft: rgba(16, 185, 129, 0.18);
  --violet-soft: rgba(139, 92, 246, 0.20);

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 14px 36px -10px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 28px 64px -12px rgba(0, 0, 0, 0.72);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
}

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

button, input, textarea, select {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

/* Scrollbars elegantes */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Filtros fotográficos estilo Instagram */
.filter-none  { filter: none; }
.filter-retro { filter: sepia(0.28) contrast(1.08) saturate(1.18) hue-rotate(-8deg); }
.filter-warm  { filter: sepia(0.16) saturate(1.32) brightness(1.04); }
.filter-cyber { filter: contrast(1.16) saturate(1.42) hue-rotate(12deg); }
.filter-bw    { filter: grayscale(1) contrast(1.22); }
.filter-vivid { filter: contrast(1.10) saturate(1.45) brightness(1.03); }
