/* ============================================================
   LAYOUT — Header, nav tabs, contenedor principal
   ============================================================ */

/* ── Header ──────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(11, 15, 26, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.12);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

/* ── Logo / Nombre en header ─────────────────────────────── */

.header-identity {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.header-name {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.header-title {
  font-size: var(--text-xs);
  color: var(--accent);
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* ── Navegación por tabs ─────────────────────────────────── */

.tabs-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  justify-content: flex-end;
}

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

.tab-btn {
  position: relative;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: color var(--transition-base), background var(--transition-base);
  white-space: nowrap;
  flex-shrink: 0;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.tab-btn.active {
  color: var(--accent);
  background: var(--bg-elevated);
}

.tab-btn.active::after {
  width: calc(100% - var(--space-8));
}

/* ── Main content ────────────────────────────────────────── */

.main-content {
  padding-top: var(--space-12);
  padding-bottom: var(--space-16);
  min-height: calc(100vh - var(--header-height));
}

/* ── Secciones ───────────────────────────────────────────── */

.section {
  display: none;
  animation: sectionIn var(--transition-base) ease forwards;
}

.section.active {
  display: block;
}

@keyframes sectionIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Section header (título de cada sección) ─────────────── */

.section-header {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, rgba(59, 130, 246, 0.4) 0%, var(--bg-border) 30%, transparent 100%);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.section-title svg {
  color: var(--accent);
  flex-shrink: 0;
}

.section-subtitle {
  margin-top: var(--space-2);
  font-size: var(--text-base);
  color: var(--text-secondary);
}

/* ── Footer ──────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--bg-border);
  padding: var(--space-8) 0;
  margin-top: var(--space-16);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-copy {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: var(--space-4);
}

.footer-link {
  color: var(--text-muted);
  transition: color var(--transition-base);
}

.footer-link:hover {
  color: var(--accent);
  opacity: 1;
}

.footer-link svg {
  width: 18px;
  height: 18px;
  display: block;
}
