/* ================================================
   TuBot.ar — Design System
   Variables, reset, tipografía, utilidades.
   ================================================ */

:root {
  /* Base */
  --color-bg:        #0a0a0b;
  --color-bg-2:      #111114;
  --color-bg-3:      #1a1a1f;
  --color-text:      #f0ede8;
  --color-text-2:    #9a9690;
  --color-text-3:    #555555;
  --color-border:    #ffffff10;
  --color-border-2:  #ffffff1a;

  /* Acentos */
  --hub-accent:      #e8e4de;
  --chat-accent:     #FFD700;
  --muni-accent:     #1A6FE8;
  --mutual-accent:   #2ECC7A;
  --empresa-accent:  #FF6B35;

  --accent: var(--hub-accent);

  /* Tipografía */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* Espaciado */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 5rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --t-fast: 120ms ease;
  --t-base: 200ms ease;

  --container-max: 1280px;
  --container-px: clamp(1rem, 4vw, 2rem);

  --section-py: 80px;
}

.theme-hub     { --accent: var(--hub-accent); }
.theme-chat    { --accent: var(--chat-accent); }
.theme-muni    { --accent: var(--muni-accent); }
.theme-mutual  { --accent: var(--mutual-accent); }
.theme-empresa { --accent: var(--empresa-accent); }

/* ================ Reset ================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; margin: 0; list-style: none; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
a { color: inherit; text-decoration: none; transition: color var(--t-base); }

/* ================ Tipografía ================ */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.5rem, 5vw + 1rem, 5rem); }
h2 { font-size: clamp(2rem, 3vw + 1rem, 3rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

em, .italic { font-style: italic; font-weight: 300; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

p { color: var(--color-text); }
.muted { color: var(--color-text-2); }

/* ================ Layout ================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section {
  padding-block: var(--section-py);
  border-bottom: 1px solid var(--color-border);
}
.section:last-of-type { border-bottom: none; }

.flex   { display: flex; }
.iflex  { display: inline-flex; }
.grid   { display: grid; }
.hidden { display: none !important; }

.flex-col { flex-direction: column; }
.items-center    { align-items: center; }
.items-start     { align-items: flex-start; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.text-center { text-align: center; }
.full-width  { width: 100%; }

.accent       { color: var(--accent); }
.bg-1 { background: var(--color-bg); }
.bg-2 { background: var(--color-bg-2); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--accent);
  color: var(--color-bg);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-border-2); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-3); }
