/* ==========================================================================
   AUTOMATIZIA CORPORATE SHELL & DESIGN SYSTEM 2026
   Tokens Canónicos, Header Unificado y Footer Ecosistema
   ========================================================================== */

:root {
  --atz-bg-canvas: #0b1222;
  --atz-bg-surface: #1e293b;
  --atz-bg-surface-dark: #0f172a;
  --atz-bg-glass: rgba(11, 18, 34, 0.88);
  --atz-teal: #00C9A7;
  --atz-teal-light: #B2FFF3;
  --atz-sky: #38bdf8;
  --atz-indigo: #6366f1;
  --atz-emerald: #10b981;
  --atz-border-subtle: rgba(255, 255, 255, 0.08);
  --atz-border-hover: rgba(255, 255, 255, 0.18);
  --atz-font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --atz-font-body: 'DM Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --atz-text-main: #ffffff;
  --atz-text-sub: #cbd5e1;
  --atz-text-muted: #94a3b8;
}

/* Tipografía Base y Resets Globales */
body.atz-theme {
  background-color: var(--atz-bg-canvas) !important;
  color: var(--atz-text-sub) !important;
  font-family: var(--atz-font-body) !important;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Header Corporativo Global */
.atz-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--atz-bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--atz-border-subtle);
  padding: 14px 0;
  width: 100%;
}

.atz-header-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.atz-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--atz-text-main);
  flex-shrink: 0;
}

.atz-logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #00C9A7, #38bdf8);
  color: #0b1222;
  font-family: var(--atz-font-display);
  font-weight: 800;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 201, 167, 0.35);
}

.atz-logo-text {
  font-family: var(--atz-font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.atz-logo-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--atz-teal);
  background: rgba(0, 201, 167, 0.12);
  border: 1px solid rgba(0, 201, 167, 0.3);
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.atz-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.atz-nav::-webkit-scrollbar {
  display: none;
}

.atz-nav-link {
  font-family: var(--atz-font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--atz-text-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.atz-nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.atz-nav-link.active {
  color: var(--atz-teal);
  background: rgba(0, 201, 167, 0.08);
  border: 1px solid rgba(0, 201, 167, 0.2);
  font-weight: 600;
}

.atz-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.atz-btn-emerald {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff !important;
  font-family: var(--atz-font-body);
  font-weight: 600;
  font-size: 13.5px;
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.atz-btn-emerald:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

/* Footer Corporativo Global */
.atz-footer {
  background: #080d1a;
  border-top: 1px solid var(--atz-border-subtle);
  padding: 48px 0 36px;
  color: var(--atz-text-muted);
  font-family: var(--atz-font-body);
  width: 100%;
  margin-top: 60px;
}

.atz-footer-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
}

.atz-footer-brand p {
  margin: 14px 0 8px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 480px;
  color: var(--atz-text-sub);
}

.atz-footer-copy {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 18px !important;
}

.atz-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.atz-footer-col strong {
  display: block;
  font-family: var(--atz-font-display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin-bottom: 14px;
}

.atz-footer-col a {
  display: block;
  color: var(--atz-text-muted);
  text-decoration: none;
  font-size: 13.5px;
  margin-bottom: 9px;
  transition: color 0.15s ease;
}

.atz-footer-col a:hover {
  color: var(--atz-teal);
}

/* Responsive */
@media (max-width: 900px) {
  .atz-header-wrap {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .atz-nav {
    order: 3;
    width: 100%;
    padding-top: 10px;
  }
  .atz-footer-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
