/* ============================================================
   Zintekia Design System — shared/design-system.css
   Importado por todos los tools y hubs del monorepo.
   Fuente de verdad: _system/context/company/design/DESIGN.md
   ============================================================ */

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

/* ---- DESIGN TOKENS ---- */
:root {
  /* Brand colors */
  --color-midnight:     #141E2B;
  --color-teal:         #00B2B8;
  --color-teal-dark:    #009499;
  --color-teal-medium:  #7DD8DC;
  --color-teal-soft:    #E3F5F6;
  --color-petroleum:    #1D4A5C;
  --color-warm-white:   #F6F5F1;
  --color-graphite:     #4A5668;
  --color-surface:      #EEEDEA;
  --color-border-dark:  #2A3A4C;
  --color-error:        #EF4444;
  --color-text-muted:   #7B8794;

  /* App surfaces */
  --bg:          var(--color-midnight);
  --bg-card:     #182231;
  --bg-input:    #1a2b3d;
  --text:        var(--color-warm-white);
  --border:      var(--color-border-dark);
  --teal-glow:   rgba(0, 178, 184, 0.20);

  /* Typography */
  --font-display: "Rajdhani", "DM Sans", system-ui, sans-serif;
  --font-body:    "DM Sans", system-ui, sans-serif;
  --font-ui:      "IBM Plex Sans", "DM Sans", system-ui, sans-serif;

  /* Radii */
  --radius-card:   24px;
  --radius-button: 14px;
  --radius-input:  10px;
  --radius-pill:   9999px;

  /* Shadows */
  --shadow-card: 0 18px 48px rgba(7, 21, 39, 0.28);
  --shadow-glow: 0 0 32px rgba(0, 178, 184, 0.18);

  --transition: 0.2s ease;
}

/* ---- BASE ---- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

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

/* ---- LAYOUT ---- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- UTILITY CLASSES ---- */
.label-caps {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-teal);
}

.modular-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 56px;
}

.modular-bars-sm { width: 40px; gap: 4px; }

.bar { height: 4px; border-radius: var(--radius-pill); }
.bar-1 { background: var(--color-teal);       width: 100%; }
.bar-2 { background: var(--color-teal-medium); width: 70%; }
.bar-3 { background: rgba(246,245,241,0.25);   width: 45%; }
.modular-bars-sm .bar { height: 3px; }

/* ---- HEADER ---- */
.header {
  background: rgba(20, 30, 43, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo       { display: flex; align-items: center; }
.logo-img   { height: 28px; width: auto; }

.header-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  background: var(--color-teal);
  color: var(--color-midnight);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: var(--color-teal-dark);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-primary:active  { transform: translateY(0); }
.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  background: transparent;
  color: var(--color-teal);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(0, 178, 184, 0.4);
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  letter-spacing: 0.01em;
}

.btn-secondary:hover {
  background: rgba(0, 178, 184, 0.08);
  border-color: var(--color-teal);
}

/* ---- CARDS ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 22px;
  width: auto;
  opacity: 0.6;
  transition: opacity var(--transition);
}

.footer-logo:hover { opacity: 1; }

.footer-copy {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-muted);
  flex: 1;
}

.footer-link {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-teal);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.footer-link:hover { color: var(--color-teal-medium); }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
